Why Choose Libresonic over Subsonic?libresonic is essentially subsonic but with the license feature removed. Subsonic allows mobile streaming for 30 days whereas it is disabled unless you donate.
The main reason as to why I decided to deploy libresonic as Standalone rather than a tomcat WAR (Web Archive) package is because tomcat8 will hang when deploying libresonic.war package for somewhat unknown reason, so I resorted to compile a debian package manually using the following method.
PrerequisitesDownload the following packages using debian apt-get package manager:
* lintian is needed when compiling debian package
* jdk8 is needed to compile booter and debian package
Add the JDK8 to your environment variable JAVA_HOME. Make sure to quit the terminal session if you're logging using SSH or simply open up a new terminal after making the changes.
Downloading and Compile libresonic Source Code
Modifying libresonic Service FileAfter installing the .deb package, open /etc/default/libresonic which is the service unit file for libresonic that is started everytime Raspberry Pi is booted. Modify the LIBRESONIC_ARGS to use the port that you want.
The following arguments will run libresonic on port 4041. Make sure to do port forwarding on your router to allow external access to your libresonic music server.
Running libresonic ServiceAfter making the changes above, try restarting the libresonic service and make sure it is up and running correctly.
You should see the following output if the service is up and running successfully.
There are two log files related to libresonic that you can inspect libresonic program status. You will have to switch to root superuser account to view these logs files since /var/libresonic ownership is assigned to root.
In my case I'm seeing a lot of Garbage Collection messages on libresonic_sh.log such as the following. Not sure whether it is important but I simply ignore them for now. You will have to wait for a couple of minutes before the libresonic
Wait until you see the following message on libresonic_sh.log before launching libresonic Web User Interface.
Opening libresonic Web User InterfaceNow that the libresonic service is up and running, it's time to launch your web browser and navigate to http://<YOUR-RASPBERRY-PI-IP-ADDRESS>:4041/libresonic. Everything should resemble the Subsonic UI except the logo :-)
Misc.By default, you can find the libresonic program files on /var/libresonic. Following are the directory output after libresonic is successfully running.