Rebuild on go
This commit is contained in:
parent
5b47592d64
commit
902a96d66a
31
README.md
31
README.md
|
@ -18,22 +18,23 @@ After login (ssh) proceed with these steps:
|
||||||
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. `wget go1.19.2.linux-armv6l.tar.gz`
|
4. `wget go1.19.2.linux-armv6l.tar.gz`
|
||||||
5. `rm -rf /usr/local/go && tar -C /usr/local -xzf go1.19.2.linux-amd64.tar.gz`
|
5. `rm -rf /usr/local/go && tar -C /usr/local -xzf go1.19.2.linux-amd64.tar.gz`
|
||||||
6. `git clone https://repos.ctdo.de/interfisch/bananenkeyboard/`
|
6. `echo 'export PATH=$PATH:/usr/local/go/bin' >>~/.profile`
|
||||||
7. `go get .`
|
7. `git clone https://repos.ctdo.de/interfisch/bananenkeyboard/`
|
||||||
8. `go build .`
|
8. `cd ~/bananakeyboard/Pi`
|
||||||
9. `echo 'export PATH=$PATH:/usr/local/go/bin' >>~/.profile`
|
9. `go get .`
|
||||||
10. `sudo sh -c 'echo "\n[all]\nenable_uart=1\n" >>/boot/config.txt'`
|
10. `go build .`
|
||||||
11. `sudo sh -c 'sed "s/^dtoverlay=vc4-kms-v3d/dtoverlay=vc4-fkms-v3d/" -i /boot/config.txt'`
|
11. `sudo sh -c 'echo "\n[all]\nenable_uart=1\n" >>/boot/config.txt'`
|
||||||
12. `sudo mkdir /etc/systemd/system/systemd-udevd.service.d`
|
12. `sudo sh -c 'sed "s/^dtoverlay=vc4-kms-v3d/dtoverlay=vc4-fkms-v3d/" -i /boot/config.txt'`
|
||||||
13. `sudo sh -c 'echo "[Service]\nPrivateMounts=no" >/etc/systemd/system/systemd-udevd.service.d/00-my-custom-mountflags.conf'`
|
13. `sudo mkdir /etc/systemd/system/systemd-udevd.service.d`
|
||||||
14. `sudo sh -c 'cp /home/pi/bananenkeyboard/piconfig/rc.local /etc/rc.local'`
|
14. `sudo sh -c 'echo "[Service]\nPrivateMounts=no" >/etc/systemd/system/systemd-udevd.service.d/00-my-custom-mountflags.conf'`
|
||||||
15. `sudo chmod u+x /etc/rc.local`
|
15. `sudo sh -c 'cp /home/pi/bananenkeyboard/piconfig/rc.local /etc/rc.local'`
|
||||||
16. `chmod u+x ~/bananenkeyboard/piconfig/readonly.sh`
|
16. `sudo chmod u+x /etc/rc.local`
|
||||||
17. `sudo gpasswd --add pi tty`
|
17. `chmod u+x ~/bananenkeyboard/piconfig/readonly.sh`
|
||||||
18. `sudo /home/pi/bananenkeyboard/piconfig/readonly.sh`
|
18. `sudo gpasswd --add pi tty`
|
||||||
19. `sudo reboot`
|
19. `sudo /home/pi/bananenkeyboard/piconfig/readonly.sh`
|
||||||
|
20. `sudo reboot`
|
||||||
|
|
||||||
By copying the rc.local (step 14), the script will be started in a `screen` after reboot.
|
By copying the rc.local (step 15), 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