Transform a Raspberry Pi Server Subsonic

Subsonic… Quezako ? And although Subsonic is a bit like owning an account Deezer and Spotify, the only difference that it is you who host your own music from your computer, all for free.

You'll understand, It obviously need to host it all on a babasse which remains lit, here in this case, a Raspberry Pi.

Raspberry Pi Home Server – Raspbian – Installer un serveur Subsonic

Musical content that you host can be read from any media (among buddies who have a computer, You can access it through a web browser e.g.), but I will come back later.

Let's start with the beginning : installing the server on your Raspberry !

  1. As a first step, You must install the Java runtime environment.
    sudo apt - get install openjdk-6-jre
  2. You must then retrieve the subsonic .deb, available at this address, then launch.
    sudo dpkg-I subsonic - x.x.deb

    (x be replaced depending on the version you have downloaded).

  3. Here are the commands to manage the subsonic service :
    sudo subsonic {Start|stop|status|restart|force-reload}
  4. Once the service launched, We check that it works by entering localhost followed by the port used by subsonic in the address bar of the browser of the Raspberry :

    If you have any worries, be aware that a log file is available at the location /var/subsonic/subsonic_sh.log

    The service is dependent on the performance of Raspberry Pi, you will sometimes need to take a little your evil in patience if the pages are long to load…

If everything went well, you arrive on this interface :

Raspberry Pi Home Server – Raspbian – Installer un serveur Subsonic

Connection interface

For first authentication, use the login and password Admin / Admin.

Once authenticated, you arrive on the homescreen of subsonic. The first thing to do is change the admin password on :

Raspberry Pi Home Server – Raspbian – Installer un serveur Subsonic

Subsonic configuration screen

There is more to declare the folder containing your music files :

Raspberry Pi Home Server – Raspbian – Installer un serveur Subsonic

Set your music directory

Click “Scan media folder now” Once the path entered and let subsonic automatically add your music in the subsonic library.

Then, It returns to the command prompt and typing the command used to properly refresh the subsonic service :

sudo service subsonic force-reload

Voilà ! Now, Subsonic recommends that you make a small donation, that will allow you to obtain a domain name in., in this way, You can access from any browser of a device connected to the internet to your media folder declared earlier ! (Practice for those with no fixed IP). Otherwise you can use Inadyn as presented in this article.

To be able to access your Subsonic server outside your local network, It is compulsory to open port 4040 on your router, in TCP and UDP !

If you do not want to go through a browser to listen to your music, You can download the application which will well depending on the device that you want to play your music. A list of applications is available on the official website of Subsonic, accessible

Subsonic is not really optimized for Raspberry EPS service, I recommend you personally create secondary identifiers with lower access rights (read-only or jukebox) to your friends so that they listen to your music for the simple reason that the Raspberry would be quickly saturated in memory. By the way, It is possible to change the RAM used by the subsonic service by editing the configuration file :

nano /etc/default/subsonic

By modifying the following line the parameter “–Max-memory = XXX”

There is more to a walk in your local configuration interface, where a whole bunch of configurations are waiting for you, ranging from customization of the interface, up the possibility to edit your tags !

Good listening on Subsonic !

Like this article ? Bear with me on patreon!

You may also like...