Entries tagged with raspberrypi rss

Setting up a raspberry pi with squeezelite

  1. Acquire raspberry pi
  2. Install raspbian on SD card per https://www.raspberrypi.org/documentation/installation/installing-images/
  3. Update the firmware rpi-update
  4. FIXME Remove unnecessary packages: apt-get remove --purge scratch dillo xpdf galculator lxde-common lxde-icon-theme hicolor-icon-theme wolfram-engine
  5. Adjust swap size in /etc/dphys-swapfile: CONF_SWAPSIZE=100 otherwise your card will fill up.
  6. Update the OS: s/weezy/jessie/g in sources.list, then apt-get update && apt-get upgrade && apt-get dist-upgrade (wait forever)
  7. 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)
  8. Install squeezelite apt-get install squeezelite
  9. Add buffering parameter in /etc/default/squeezelite: SB_EXTRA_ARGS="-a 160" per https://code.google.com/p/squeezelite/issues/detail?id=28
  10. Eh, fuck LMS! Let's try subsonic...
  11. Install subsonic
  12. Enable DLNA (premium!!?!?!?!) in settings
  13. Add library folders
  14. Enable access to library folders for guest account
  15. Install GinkgoDlna on phone
  16. 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
  17. Install gmediarender sudo apt-get install gmediarender
  18. Use GinkgoDlna to queue audio for playing
  19. Eh.... fuck it, let's try MPD per http://www.hackerposse.com/~rozzin/journal//whole-home-pulseaudio.html or https://fruit.je/mpd-rtp
  20. On the NAS/server: apt-get install pulseaudio rtkit mpd
  21. Edit /etc/mpd.conf and /etc/pulse/default.pa per the site
  22. Add a controller: sudo apt-get install ncmpc
  23. sudo chown mpd.audio /var/lib/mpd/music
  24. delete the fucking tag db to make it reload the mp3s rm /var/lib/mpd/tag_cache; supposedly it should work with mpc update
  25. Fix the fucking routes: sudo route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
  26. On the pi: sudo apt-get install pulseaudio rtkit
  27. Edit /etc/pulse/default.pa per the site
  28. 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
  29. Make /etc/network/if-down.d/pulseaudio with killall pulseaudio and then sudo chmod a+x pulseaudio
  30. 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