Raspberry Pi - Subsonic

mkfs.ext4 -L Music /some/device
mkfs.ext4 -L Subsonic /some/device
LABEL=Subsonic /home/subsonic/tmp ext4 defaults,users,noatime 0 1
LABEL=Music /home/subsonic/Music ext4 defaults,users,noatime 0 1
useradd -m subsonic
chsh -s /usr/sbin/nologin subsonic
mkdir /home/subsonic/Music
mkdir /home/subsonic/tmp
mount -a
mkdir /home/subsonic/tmp/Podcasts
chown -R subsonic:subsonic /home/subsonic
apt install openjdk-8-jre
dpkg -i subsonic-6.1.5.deb
SUBSONIC_ARGS="--max-memory=300"
SUBSONIC_USER="subsonic"

SSL

certificate-key
certificate
intermediates
cat certificate-key certificate intermediates > subsonic.crt
openssl pkcs12 -in subsonic.crt -export -out subsonic.pkcs12
cp subsonic.pkcs12 /etc/ssl
chmod 644 /etc/ssl/subsonic.pkcs12
rm -f subsonic.crt
SUBSONIC_ARGS="--https-port=4443 --port=4040 {Other Args, such as --max-memory}"
-Dsubsonic.ssl.keystore=/etc/ssl/subsonic.pkcs12 \
-Dsubsonic.ssl.password=...password-from-above... \