Rothchild
28-06-2015, 10:15
It's been a little while since I originally posted my recipe for a digital streamer using a Raspberry Pi (http://theartofsound.net/forum/showthread.php?24351-Recipe-for-a-budget-digital-media-streaming-server) and it seems like the world and his dog have now caught up with me ;)
So, what with all the developments of the past 2 years I thought I'd have a little rethink of my streaming setup, reset and refresh a couple of items.
This is very much still a work in progress but I thought I'd start off here now as there are a number of AOSers who have good hacking knowledge and may want to contribute to tweaking out this setup.
The main change I'm making to my setup is that I'm basing it on 'DietPi': http://fuzon.co.uk/phpbb/viewtopic.php?f=8&t=6 a super-lightweight debian/raspbian hardfloat distro (a native boot runs something like 18 processes, uses about 3% processor and 35mb ram)
The issue I'm working through is that by default it only installs a root user, which has caused issues later down the line with installation of other apps (mopidy)
First thing to do after initial installation is to follow these notes to set up a user (obviously you don't have to call them 'pi' ;-)) http://fuzon.co.uk/phpbb/viewtopic.php?f=9&t=22
I've stopped short of disabling the root account as it's still useful whilst setting the box up but ultimately it will probably go. Also, because of the root account business I've not used the very easy to use software installer app (if you want it will run up an mpd install with a lightweight webclient (YMPD) and DNLA server in about 10 clicks). Preferring instead to use 'sudo apt-get package' from my user account to install apps (and to grab YMPD from their website and install it manually).
I've switched back from madsonic to subsonic (www.subsonic.org) just download the .deb to the pi and sudo dpkg -i subsonic-etc-.deb and it will install.
Fortunately Oracle Java is now in the repositories so installation is a simple apt-get away, however you may need to run: sudo update alternatives --config java to ensure you're running on java 8
You'll also need to redirect Subsonic to the correct version of LAME and FFMPEG by using these commands:
sudo ln -fs /usr/bin/ffmpeg /var/subsonic/transcode
sudo ln -fs /usr/bin/lame /var/subsonic/transcode
Mopidy have a debian repository so installation is pretty straightforward, however configuration isn't as easy. I've found (so far) that it's better to disable the mopidy mpd server and use 'proper' mpd from the debian repo. The main reason I've got it installed at all (with the manual start option) is because at some point I'd like to play with the spotify integration.
That said Subsonic does pretty much everything I need anyway so ultimately I might ditch mpd and mopidy and save that small amount of ram and processor.
Currently I'm just on the jack output while I wait for the headerpins I've ordered so I can solder them up to the i2s interface and mount my Sabre ES9023 DAC.
Interested to know if anyone else has tried dietpi and has any other streamlining and efficiency tips?
So, what with all the developments of the past 2 years I thought I'd have a little rethink of my streaming setup, reset and refresh a couple of items.
This is very much still a work in progress but I thought I'd start off here now as there are a number of AOSers who have good hacking knowledge and may want to contribute to tweaking out this setup.
The main change I'm making to my setup is that I'm basing it on 'DietPi': http://fuzon.co.uk/phpbb/viewtopic.php?f=8&t=6 a super-lightweight debian/raspbian hardfloat distro (a native boot runs something like 18 processes, uses about 3% processor and 35mb ram)
The issue I'm working through is that by default it only installs a root user, which has caused issues later down the line with installation of other apps (mopidy)
First thing to do after initial installation is to follow these notes to set up a user (obviously you don't have to call them 'pi' ;-)) http://fuzon.co.uk/phpbb/viewtopic.php?f=9&t=22
I've stopped short of disabling the root account as it's still useful whilst setting the box up but ultimately it will probably go. Also, because of the root account business I've not used the very easy to use software installer app (if you want it will run up an mpd install with a lightweight webclient (YMPD) and DNLA server in about 10 clicks). Preferring instead to use 'sudo apt-get package' from my user account to install apps (and to grab YMPD from their website and install it manually).
I've switched back from madsonic to subsonic (www.subsonic.org) just download the .deb to the pi and sudo dpkg -i subsonic-etc-.deb and it will install.
Fortunately Oracle Java is now in the repositories so installation is a simple apt-get away, however you may need to run: sudo update alternatives --config java to ensure you're running on java 8
You'll also need to redirect Subsonic to the correct version of LAME and FFMPEG by using these commands:
sudo ln -fs /usr/bin/ffmpeg /var/subsonic/transcode
sudo ln -fs /usr/bin/lame /var/subsonic/transcode
Mopidy have a debian repository so installation is pretty straightforward, however configuration isn't as easy. I've found (so far) that it's better to disable the mopidy mpd server and use 'proper' mpd from the debian repo. The main reason I've got it installed at all (with the manual start option) is because at some point I'd like to play with the spotify integration.
That said Subsonic does pretty much everything I need anyway so ultimately I might ditch mpd and mopidy and save that small amount of ram and processor.
Currently I'm just on the jack output while I wait for the headerpins I've ordered so I can solder them up to the i2s interface and mount my Sabre ES9023 DAC.
Interested to know if anyone else has tried dietpi and has any other streamlining and efficiency tips?