From ef2187d9844e2b28714eebaf5ba2d39ef39ac1ed Mon Sep 17 00:00:00 2001 From: starcalc Date: Sun, 16 Oct 2022 19:09:08 +0200 Subject: [PATCH] Updated chmod --- README.md | 41 ++++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 1cad428..2770ca1 100644 --- a/README.md +++ b/README.md @@ -16,29 +16,30 @@ After login (ssh) proceed with these steps: 1. `sudo apt update` 2. `sudo apt upgrade` 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` -5. `rm -rf /usr/local/go && tar -C /usr/local -xzf go1.19.2.linux-amd64.tar.gz` -6. `echo 'export PATH=$PATH:/usr/local/go/bin' >>~/.profile` -7. `git clone https://repos.ctdo.de/interfisch/bananenkeyboard/` -8. `cd ~/bananenkeyboard/Pi` -9. `go get .` -10. `go build .` -11. `sudo sh -c 'echo "\n[all]\nenable_uart=1\n" >>/boot/config.txt'` -12. `sudo sh -c 'sed "s/^dtoverlay=vc4-kms-v3d/dtoverlay=vc4-fkms-v3d/" -i /boot/config.txt'` -13. `sudo mkdir /etc/systemd/system/systemd-udevd.service.d` -14. `sudo sh -c 'echo "[Service]\nPrivateMounts=no" >/etc/systemd/system/systemd-udevd.service.d/00-my-custom-mountflags.conf'` -15. `sudo sh -c 'cp /home/pi/bananenkeyboard/piconfig/rc.local /etc/rc.local'` -16. `sudo chmod u+x /etc/rc.local` -17. `chmod u+x ~/bananenkeyboard/piconfig/readonly.sh` -18. `sudo gpasswd --add pi tty` -19. `sudo /home/pi/bananenkeyboard/piconfig/readonly.sh` -20. `sudo reboot` +4. `sudo chmod 1777 /tmp` +5. `wget 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` +7. `echo 'export PATH=$PATH:/usr/local/go/bin' >>~/.profile` +8. `git clone https://repos.ctdo.de/interfisch/bananenkeyboard/` +9. `cd ~/bananenkeyboard/Pi` +10. `go get .` +11. `go build .` +12. `sudo sh -c 'echo "\n[all]\nenable_uart=1\n" >>/boot/config.txt'` +13. `sudo sh -c 'sed "s/^dtoverlay=vc4-kms-v3d/dtoverlay=vc4-fkms-v3d/" -i /boot/config.txt'` +14. `sudo mkdir /etc/systemd/system/systemd-udevd.service.d` +15. `sudo sh -c 'echo "[Service]\nPrivateMounts=no" >/etc/systemd/system/systemd-udevd.service.d/00-my-custom-mountflags.conf'` +16. `sudo sh -c 'cp /home/pi/bananenkeyboard/piconfig/rc.local /etc/rc.local'` +17. `sudo chmod u+x /etc/rc.local` +18. `chmod u+x ~/bananenkeyboard/piconfig/readonly.sh` +19. `sudo gpasswd --add pi tty` +20. `sudo /home/pi/bananenkeyboard/piconfig/readonly.sh` +21. `sudo reboot` -By copying the rc.local (step 15), the script will be started in a `screen` after reboot. +By copying the rc.local (step 16), the script will be started in a `screen` after reboot. To start it manually type: -`./bananakeyboard_go` +`./bananenkeyboard/Pi/bananenkeyboard` # Convert and remove silence from samples: `for file in *.mp3; do ffmpeg -i ${file} -af silenceremove=1:0:-30dB ${file/mp3/wav} -y; done` @@ -46,7 +47,5 @@ To start it manually type: An open source for samples is for example: https://philharmonia.co.uk/resources/sound-samples/ # TODO -* Connect USB stick with samples which should override the default samples -* `ALSA lib pcm.c:8545:(snd_pcm_recover) underrun occurred`. Especially if using mp3s? * It's necessary to activate the serial via raspi-config? * raspi-config -> Interface -> I6 Serial Port -> No (Login Shell?) -> Yes (Serial hardware port?) -> Ok