Subsonic is a free, web-based media streamer, providing ubiquitous access to your music. Use it to share your music with friends, or to listen to your own music while at work. You can stream to multiple players simultaneously, for instance to one player in your kitchen and another in your living room.
Subsonic is designed to handle very large music collections (hundreds of gigabytes). Although optimized for MP3 streaming, it works for any audio or video format that can stream over HTTP, for instance AAC and OGG. By using transcoder plug-ins, Subsonic supports on-the-fly conversion and streaming of virtually any audio format, including WMA, FLAC, APE, Musepack, WavPack and Shorten.
If you have constrained bandwidth, you may set an upper limit for the bitrate of the music streams. Subsonic will then automatically resample the music to a suitable bitrate.
In addition to being a streaming media server, Subsonic works very well as a local jukebox. The intuitive web interface, as well as search and index facilities, are optimized for efficient browsing through large media libraries. Subsonic also comes with an integrated Podcast receiver, with many of the same features as you find in iTunes.
Based on Java technology, Subsonic runs on most platforms, including Windows, Mac, Linux and Unix variants.
GPL
Subsonic is open-source software licensed under GPL.
I think most people know Subsonic but for who do not know here a link to a demo server.
Subsonic demo server
So lets begin with the installation.
yum --enablerepo=clearos-core install java-1.7.0-openjdk
yum install wget
cd /tmp
http://downloads.sourceforge.net/project/subsonic/subsonic/4.8/subsonic-4.8.rpm?r=http%3A%2F%2Fwww.subsonic.org%2Fpages%2Fdownload2.jsp%3Ftarget%3Dsubsonic-4.8.rpm&ts=1367134236&use_mirror=heanet
yum localinstall subsonic-4.8.rpm
useradd -u 501 subsonic.
nano /etc/sysconfig/subsonic
#
# This is the configuration file for the Subsonic service
# (/etc/init.d/subsonic)
#
# To change the startup parameters of Subsonic, modify
# the SUBSONIC_ARGS variable below.
#
# Type "subsonic --help" on the command line to read an
# explanation of the different options.
#
# For example, to specify that Subsonic should use port 80 (for http)
# and 443 (for https), and use a Java memory heap size of 200 MB, use
# the following:
#
# SUBSONIC_ARGS="--port=80 --https-port=443 --max-memory=200"
SUBSONIC_ARGS="--max-memory=150"
# The user which should run the Subsonic process. Default "root".
# Note that non-root users are by default not allowed to use ports
# below 1024. Also make sure to grant the user write permissions in
# the music directories, otherwise changing album art and tags will fail.
SUBSONIC_USER=subsonic
service subsonic start
http://yourdomain:4040
You can open port 4040 in your firewall so you can access you music from the outside world. Also there are apps for most platforms to access your subsonic server via your phone and list to your music.
UPDATE 28-10-2012: Use ClearOS LDAP to authenticate user.
Go to Server --> Directory --> Directory Server. I've got on my ClearOS system:
Base DN: dc=X,dc=Y,dc=Z
Bind DN: cn=manager,cn=internal,dc=X,dc=Y,dc=Z
Bind Password: XXXXXXXXXXXXXXXXXX
So now you have to activate LDAP on Subsonic. Go to subsonic --> Settings --> advanced. Tick Enable LDAP authentication. Use the following information.
LDAP URL: ldap://localhost:389/dc=X,dc=Y,dc=Z
LDAP search filter: (uid={0})
LDAP manager DN: cn=manager,ou=internal,dc=X,dc=Y,dc=Z
Password: XXXXXXXXXXXXXXXXXX (use Bind Password)
enable "Automatically create users in Subsonic"
save
So now you can add users to your ClearOS system and subsonic will automatically create this user too.
Changelog:
Share this post:
Responses (27)
-
Accepted Answer
Subsonic has Sonos support. So if you own a Sonos you now can connect your Sonos to Subsonic.
Subsonic comes with built-in support for your Sonos players. Access your personal music library the same way as other Sonos music services like Spotify or Google Play.
Features
Works with giant music libraries. Not limited to 65,000 songs like the native Sonos controller.
Configure which folders each user is allowed to access.
Access your personal Subsonic playlists (as well as Sonos playlists).
Star your favorites.
Audioscrobbling and play statistics.
Powerful search feature.
The Subsonic web app shows who is playing what on Sonos.
Artist radio for playing similar songs.
Shuffle play whole library or by artist.
Album lists: Random, Recently added, Starred, Top rated, Most Played, Recently played, By decade, By genre.
Same folder structure / album art / media meta data as in the Subsonic web app.
The Subsonic web app shows who is playing what on Sonos.
Artist radio for playing similar songs.
Shuffle play whole library or by artist.
Album lists: Random, Recently added, Starred, Top rated, Most Played, Recently played, By decade, By genre.
Same folder structure / album art / media meta data as in the Subsonic web app.
For detailed information... -
Accepted Answer
-
Accepted Answer
Looks like it came from the clearos-core repo.
I didn't realize that repo was enabled (and don't know if it should or shouldn't be.)
It's strange because the clearos-core repo doesn't show up as a repo in the webconfig page on my system.
But, it is in /etc/yum.repos.d/clearos-core.repo.
Guess I'll need to do some investigating to find out if this repo should or shouldn't be enabled.
If it shouldn't be enabled, I'm sure I enabled it at some point while tinkering and never disabled it.
I've been known to break stuff while tinkering -
Accepted Answer
Hi Bryan Guidroz,
Updated the installation guide without the java part.
From which repo did you install java-1.7.0-openjdk? It seems not available in the ClearOS repos. I did install it on java-1.6.0-openjdk and it seems to work without issues.
and thanks for sharing the upgrade information. -
Accepted Answer
Subsonic 4.8 is available.
Changelog: http://www.subsonic.org/pages/changelog.jsp
Mentions using java 7 instead of java 6.
Upgrading from 4.7 to 4.8 seems to have "just worked" for me.
This guide assumes you have a previous version of subsonic installed.
Stop subsonic
service subsonic stop
Install java 7
yum install java-1.7.0-openjdk
Download subsonic4.8
wget http://downloads.sourceforge.net/project/subsonic/subsonic/4.8/subsonic-4.8.rpm?r=http%3A%2F%2Fwww.subsonic.org%2Fpages%2Fdownload2.jsp%3Ftarget%3Dsubsonic-4.8.rpm&ts=1358264547&use_mirror=netcologne
Upgrade subsonic
yum upgrade subsonic-4.8.rpm
Start subsonic
service subsonic start
Remove subsonic rpm
rm -f subsonic-4.8.rpm
I don't use the web interface much, but it is reporting that it's using java 7 and subsonic 4.8.
The iSub app on my iPhone "just worked" after upgrading.
Thanks -
Accepted Answer
-
Accepted Answer
After a fresh install of COS 6.4b2, I was having a problem with jukebox mode.
When the subsonic service was running as subsonic user, jukebox mode would not play audio.
When the subsonic service was running as root user, jukebox mode would play audio.
After some googling and tinkering, I found issuing the following command fixed this permissions problem.
There may be a better way, but this is what worked for me.
setfacl -m u:subsonic:rw /dev/snd/*
Thanks... -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
thanks for the posting , it is useful , but i have an issue as when i tried to add any music by setting > Media folders > then enter the name and the folder and then press save ,
when i try to check the shared media i can't find it anymore !! as if i didn't add anything , and no music is loaded .
anyone can help what is the problem
your help and cooperation is highly appreciated . -
Accepted Answer
My first thoughts when i read your post were use a airplay enabled device like the airport express or the apple tv and connect it to your home theater. This way you also can stream music. If your ClearOS server is near your home theater you can use your solution and it costs no money. Great idea and thanks for sharing! -
Accepted Answer
Well that was easy.
yum install alsa-utils
Was all I needed and the audio out of my COS system works.
Connect the audio out of the COS system to my receiver.
Then, with the iSub music streamer app, I'm able to enter jukebox mode and control audio coming out of COS server from my iPhone.
Pretty sweet.
http://isubapp.com/
Thanks Marcel. This is great. -
Accepted Answer
Will play with the album art suggestion. Thanks!
I really am starting to like subsonic, especially after getting the iSub app for my iphone.
In the iPhone app, there is a Jukebox mode, that, if I understand correctly, allows you to control the music played from the subsonic server.
Assuming that's correct, I'm wondering how difficult it would be to get this working in COS.
I'm thinking... Connect my COS audio output to my home theater and use the iSub app as a remote to control music played through the house.
Any thoughts? Asking for a lot? -
Accepted Answer
Bryan Guidroz wrote:
Got it up and running without a problem. Great how-to.
Any suggestion on how to give permissions to allow the subsonic user account to update album art?
I tried this, but it broke subsonic.
usermod -a -G allusers subsonic
I was able to fix it by stopping the subsonic service, deleting and recreating the subsonic user account, then restarting the subsonic service.
Being my allusers group has needed permissions to the folder, I thought adding the subsonic account to the allusers group would do the trick. But, it didn't.
When I run subsonic as root, it is able to update the album art, but less than ideal solution.
Suggestions?
And, thanks...
I did a quick look last weekend. If you make subsonic the owner of your music tracks you can change the album art. -
Accepted Answer
I know this doesnt answer about how to upload cover art as a user so this is a bit off topic. But have you discovered coverlovin
I used this to get art for my entire music collection.
I just run something similar to
coverlovinflac.py /music --size=large --image=jpg --name=cover.jpg
I am afraid I cant remember which other python bits I had to install to get it to run. Its not 100% active but did save me many hours. -
Accepted Answer
-
Accepted Answer
Bryan Guidroz wrote:
Got it up and running without a problem. Great how-to.
Any suggestion on how to give permissions to allow the subsonic user account to update album art?
I tried this, but it broke subsonic.
usermod -a -G allusers subsonic
I was able to fix it by stopping the subsonic service, deleting and recreating the subsonic user account, then restarting the subsonic service.
Being my allusers group has needed permissions to the folder, I thought adding the subsonic account to the allusers group would do the trick. But, it didn't.
When I run subsonic as root, it is able to update the album art, but less than ideal solution.
Suggestions?
And, thanks...
Hi Bryan Guidroz,
I never tried to add album art so i never encountered this problem. I will take a look if i can reproduce this behaviour.
Glad you liked the how-to -
Accepted Answer
-
Accepted Answer
Got it up and running without a problem. Great how-to.
Any suggestion on how to give permissions to allow the subsonic user account to update album art?
I tried this, but it broke subsonic.
usermod -a -G allusers subsonic
I was able to fix it by stopping the subsonic service, deleting and recreating the subsonic user account, then restarting the subsonic service.
Being my allusers group has needed permissions to the folder, I thought adding the subsonic account to the allusers group would do the trick. But, it didn't.
When I run subsonic as root, it is able to update the album art, but less than ideal solution.
Suggestions?
And, thanks... -
Accepted Answer
-
Accepted Answer
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »