Readme corrected
This commit is contained in:
parent
53d7f10960
commit
cb6507d933
35
README.md
35
README.md
|
@ -17,25 +17,26 @@ After login (ssh) proceed with these steps:
|
||||||
2. `sudo apt upgrade`
|
2. `sudo apt upgrade`
|
||||||
3. `sudo apt -y install git python3-pip libsdl2-mixer-2.0-0 usbmount screen libasound2-dev`
|
3. `sudo apt -y install git python3-pip libsdl2-mixer-2.0-0 usbmount screen libasound2-dev`
|
||||||
4. `sudo chmod 1777 /tmp`
|
4. `sudo chmod 1777 /tmp`
|
||||||
5. `wget go1.19.2.linux-armv6l.tar.gz`
|
5. `wget https://go.dev/dl/go1.19.2.linux-armv6l.tar.gz`
|
||||||
6. `rm -rf /usr/local/go && tar -C /usr/local -xzf go1.19.2.linux-amd64.tar.gz`
|
6. `sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.19.2.linux-armv6l.tar.gz`
|
||||||
7. `echo 'export PATH=$PATH:/usr/local/go/bin' >>~/.profile`
|
7. `echo 'export PATH=$PATH:/usr/local/go/bin' >>~/.profile`
|
||||||
8. `git clone https://repos.ctdo.de/interfisch/bananenkeyboard/`
|
8. `. ~/.profile`
|
||||||
9. `cd ~/bananenkeyboard/Pi`
|
9. `git clone https://repos.ctdo.de/interfisch/bananenkeyboard/`
|
||||||
10. `go get .`
|
10. `cd ~/bananenkeyboard/Pi`
|
||||||
11. `go build .`
|
11. `go get .`
|
||||||
12. `sudo sh -c 'echo "\n[all]\nenable_uart=1\n" >>/boot/config.txt'`
|
12. `go build .`
|
||||||
13. `sudo sh -c 'sed "s/^dtoverlay=vc4-kms-v3d/dtoverlay=vc4-fkms-v3d/" -i /boot/config.txt'`
|
13. `sudo sh -c 'echo "\n[all]\nenable_uart=1\n" >>/boot/config.txt'`
|
||||||
14. `sudo mkdir /etc/systemd/system/systemd-udevd.service.d`
|
14. `sudo sh -c 'sed "s/^dtoverlay=vc4-kms-v3d/dtoverlay=vc4-fkms-v3d/" -i /boot/config.txt'`
|
||||||
15. `sudo sh -c 'echo "[Service]\nPrivateMounts=no" >/etc/systemd/system/systemd-udevd.service.d/00-my-custom-mountflags.conf'`
|
15. `sudo mkdir /etc/systemd/system/systemd-udevd.service.d`
|
||||||
16. `sudo sh -c 'cp /home/pi/bananenkeyboard/piconfig/rc.local /etc/rc.local'`
|
16. `sudo sh -c 'echo "[Service]\nPrivateMounts=no" >/etc/systemd/system/systemd-udevd.service.d/00-my-custom-mountflags.conf'`
|
||||||
17. `sudo chmod u+x /etc/rc.local`
|
17. `sudo sh -c 'cp /home/pi/bananenkeyboard/piconfig/rc.local /etc/rc.local'`
|
||||||
18. `chmod u+x ~/bananenkeyboard/piconfig/readonly.sh`
|
18. `sudo chmod u+x /etc/rc.local`
|
||||||
19. `sudo gpasswd --add pi tty`
|
19. `chmod u+x ~/bananenkeyboard/piconfig/readonly.sh`
|
||||||
20. `sudo /home/pi/bananenkeyboard/piconfig/readonly.sh`
|
20. `sudo gpasswd --add pi tty`
|
||||||
21. `sudo reboot`
|
21. `sudo /home/pi/bananenkeyboard/piconfig/readonly.sh`
|
||||||
|
22. `sudo reboot`
|
||||||
|
|
||||||
By copying the rc.local (step 16), the script will be started in a `screen` after reboot.
|
By copying the rc.local (step 17), the script will be started in a `screen` after reboot.
|
||||||
|
|
||||||
To start it manually type:
|
To start it manually type:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue