September 18, 2015
- Acquire raspberry pi
- Install raspbian on SD card per https://www.raspberrypi.org/documentation/installation/installing-images/
- Update the firmware
rpi-update
- FIXME Remove unnecessary packages:
apt-get remove --purge scratch dillo xpdf galculator lxde-common lxde-icon-theme hicolor-icon-theme wolfram-engine
- Adjust swap size in /etc/dphys-swapfile:
CONF_SWAPSIZE=100
otherwise your card will fill up.
- Update the OS:
s/weezy/jessie/g
in sources.list, then apt-get update && apt-get upgrade && apt-get dist-upgrade
(wait forever)
- Set the default sound output to headphone jack:
amixer cset numid=3 1
per https://www.raspberrypi.org/documentation/configuration/audio-config.md (if testing with omxplayer, note that it ignores this setting, so you'll have to use -o local
)
- Install squeezelite
apt-get install squeezelite
- Add buffering parameter in /etc/default/squeezelite:
SB_EXTRA_ARGS="-a 160"
per https://code.google.com/p/squeezelite/issues/detail?id=28
- Eh, fuck LMS! Let's try subsonic...
- Install subsonic
- Enable DLNA (premium!!?!?!?!) in settings
- Add library folders
- Enable access to library folders for guest account
- Install GinkgoDlna on phone
- Install some things for gmediarender:
sudo apt-get install libupnp-dev libgstreamer0.10-dev \
gstreamer0.10-plugins-base gstreamer0.10-plugins-good \
gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly \
gstreamer0.10-ffmpeg \
gstreamer0.10-pulseaudio gstreamer0.10-alsa
- Install gmediarender
sudo apt-get install gmediarender
- Use GinkgoDlna to queue audio for playing
- Eh.... fuck it, let's try MPD per http://www.hackerposse.com/~rozzin/journal//whole-home-pulseaudio.html or https://fruit.je/mpd-rtp
- On the NAS/server:
apt-get install pulseaudio rtkit mpd
- Edit
/etc/mpd.conf
and /etc/pulse/default.pa
per the site
- Add a controller:
sudo apt-get install ncmpc
- sudo chown mpd.audio
/var/lib/mpd/music
- delete the fucking tag db to make it reload the mp3s
rm /var/lib/mpd/tag_cache
; supposedly it should work with mpc update
- Fix the fucking routes:
sudo route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
- On the pi:
sudo apt-get install pulseaudio rtkit
- Edit
/etc/pulse/default.pa
per the site
- Make
/etc/network/if-up.d/pulseaudio
with su pi --login --shell /bin/sh --command 'pulseaudio --exit-idle-time=-1 --daemonize'
and then sudo chmod a+x pulseaudio
- Make
/etc/network/if-down.d/pulseaudio
with killall pulseaudio
and then sudo chmod a+x pulseaudio
- FIXME necessary? Add pi to pulse groups
sudo usermod -aG pulse,pulse-access pi
per http://askubuntu.com/questions/28176/how-do-i-run-pulseaudio-in-a-headless-server-installation