setting up in debian buster
- write image, save ssh, wpa_supplicant.conf to /boot
sudo apt-get update/upgradesudo apt-get install fluidsynth- build newest fluid: get source; edit /etc/apt/sources.list uncomment deb-src line;
sudo apt-get build-dep fluidsynth --no-install-recommends;mkdir build;cmake ..;make - install nginx - (https://www.raspberrypi.org/documentation/remote-access/web-server/nginx.md) - lots of stuff
sudo apt-get install nginx;sudo apt-get install php-fpm; edit /etc/nginx/sites-enabled/default
allow large files to upload: add to http context in /etc/nginx/nginx.conf:client_max_body_size 900M;in /etc/php/7.0/fpm/php.ini:
memory_limit = 32M? upload_max_filesize = 900M post_max_size = 999M sudo apt-get install python3-pipsudo apt-get autoremovesudo apt-get cleansudo pip3 install oyaml RPi.GPIO RPLCD mido- install dac: add
dtoverlay=hifiberry-dacand#dtparam=audio=onto /boot/config.txt - upload squishbox code
chmod a+x squishbox.py- realtime audio:
sudo usermod -a -G audio pi
sudo vi /etc/security/limits.d/audio.conf:
@audio - rtprio 80 @audio - memlock unlimited - web panel stuff tinyfilemanager
- add www-data to pi group and
chmod -R g+rw /home/pi - edit /lib/systemd/system/php7.3-fpm.service -
umask 0002to [Service] - create systemd service
www.reddit.com/r/raspberry_pi/comments/4vhofs/creating_a_systemd_daemon_so_you_can_run_a_python/
create /etc/systemd/system/squishbox.service:
[Unit] Description=SquishBox After=multi-user.target [Service] Type=simple ExecStart=/home/pi/squishbox.py User=root WorkingDirectory=/home/pi Restart=on-failure [Install] WantedBy=multi-user.target sudo systemctl enable squishbox.service sudo systemctl daemon-reload sudo systemctl start squishbox.service