setting up headless raspberry pi for sound
use raspberry pi imager & setup wifi, ssh, etc.
choose lite OS (not full desktop)
# power the pi
# on mac/pc remove old key
ssh-keygen -R raspberrypi.local
# login to pi
ssh [email protected]
# update
sudo apt update
sudo apt full-upgrade
# install
sudo apt install jackd2
sudo apt install supercollider
sudo reboot
# list devices
aplay -l
# card 0 (built-in)
speaker-test -c2 -D plughw:0,0
# card 1 (external)
speaker-test -c2 -D plughw:1,0
# test jack
jack_simple_client
# jackd [options] -d backend [backend-parameters]
# check backend-parameters
jackd -dalsa --help
# .jackdrc minimum
# reduce max port num (-p16)
# realtime (-R), priority (-P95)
# alsa backend, output hw:0
# num in 0 (noise workaround!), num out 2
installing a minimum DE with openbox for kiosk use
# install stuff
sudo apt install --no-install-recommends xserver-xorg x11-xserver-utils xinit openbox chromium-browser
mkdir .config/openbox
vi .config/openbox/autostart
# add these
# disable screensaver, blankout, auto screen turnoff
xset s off
xset s noblank
xset -dpms
chromium-browser --kiosk <https://soundtope.coton.jp>
# fine tune options
# --noerrdialogs --disable-infobars
# --enable-features=OverlayScrollbar --disable-translate
# --incognito
# --disable-restore-session-state
# now, login at the actual pi (not via ssh):
sudo startx -- -nocursor
https://patorjk.com/software/taag/
# Message Of The Day
sudo nano /etc/motd
# graffiti
# rectangles
# slant, small, small slant,
# babyface
camera
# enable via raspi-config interface options
raspistill -o test.jpg
waveshare display
https://www.waveshare.com/wiki/7.9inch_HDMI_LCD
# config.txt
# pi4 comment out
# dtoverlay=vc4-fkms-V3D.
# add:
max_usb_current=1
hdmi_group=2
hdmi_mode=87
hdmi_timings=400 0 100 10 140 1280 10 20 20 2 0 0 0 60 0 43000000 3
# orientation
# config.txt, add:
# X can be 1,2,3 (90,180,270deg)
display_rotate=X
# for horizontal (up-facing ports, 3:270deg)