June 2, 2016 tim 0Comment

Subsonic is a host-it-yourself media streaming service. It allows you to take your entire music & video library (MP3, OGG, AAC and other stream able audio and video formats & stream them to your devices from a centralized server, it also makes for a very nice podcast client. Subsonic is available under GNU General Public License with a Premium license model that enabled additional features and allows you to take advantage of tons of mobile & desktop apps that are available. I would strongly suggest supporting this project by purchasing a Subsonic premium license; either way once installed you’ll get 29-days of Subsonic Premium.

For this tutorial we will be installing the standalone version of subsonic on FreeBSD 10.1 at the time of writing this post version 5.2 is available in the pkgng repo that we will be installing from.

To find the latest subsonic package run a search like so

# pkg search subsonic
subsonic-jetty-5.3             Subsonic streaming media server
subsonic-standalone-5.2        Subsonic streaming media server, standalone version

install the standalone package using pkgng

# pkg install subsonic-standalone-5.2      

enter “y” when prompted to install all dependencies.

Enable Subsonic to run at start up

# nano  /etc/rc.conf

Add this line:

subsonic_enable="YES"

to start subsonic manually run

# sh /usr/local/subsonic-standalone/subsonic.sh
Started Subsonic [PID 15196, /var/subsonic/subsonic_sh.log]

Now from another computer on the same network as the subsonic server go to http://ip_address:4040 in your web browser. Login with admin / admin and click the change password button to set a new password.

From the webUI you can select the directory that has your media (in my case /var/music) and select to “Scan media folders now” and configure a time to automatically update new media.

A note on security

I would strongly recommend clicking on the Users tab and creating a new user (not an administrator) to use exclusively when accessing subsonic from outside of your network. Subsonic does support using an SSL cert to secure the traffic and encrypt the login during transit, which we will not be covering in this post. So if you plan to access subsonic from outside your network use a username/password combo that you don’t use for any other service and change the password every 30 days. Also make sure all your media files are properly being backed up.

More on Subsonic & SSL installation here http://www.subsonic.org/pages/getting-started.jsp#5

Premium license

Click on the About tab and select the “Subsonic Premium” link here you will see an active 29-day trial for subsonic, a list of the features Subsonic Premium offers and an option to activate the Premium license after purchasing it here http://www.subsonic.org/pages/premium.jsp

DNS

You can use any DNS service to setup an A host record to point to your public IP address, so subsonic can be access from outside the network with an easy to remember domain name. One of the Premium licenses feature allows you to register with a name.susbonic.org domain by going to Settings > Network from the WebUI.

Outside access (use with caution)

This depends on your router but all you will need to do is create a NAT/port forwarding rule for port 4040 to access your subsonic server from outside of your network example: http://public_IP_address:4040 & or the domain name you setup in the above step http://name.subsonic.org:4040

Now that we have a fully functional subsonic server check out the variety of mobile and desktop client apps here: http://www.subsonic.org/pages/apps.jsp

ENJOY!