setting up in debian buster



* write image, save ssh, wpa\_supplicant.conf to /boot
* `sudo apt-get update/upgrade`
* `sudo 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-pip`
* `sudo apt-get autoremove`
* `sudo apt-get clean`
* `sudo pip3 install oyaml RPi.GPIO RPLCD mido`
* install dac: add `dtoverlay=hifiberry-dac` and `#dtparam=audio=on` to /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 0002` to [Service]
* create systemd service  
  [www.reddit.com/r/raspberry\_pi/comments/4vhofs/creating\_a\_systemd\_daemon\_so\_you\_can\_run\_a\_python/](http://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`