Forums

Resolved
0 votes
http://www.subsonic.org/pages/inc/img/subsonic.png


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.



http://www.subsonic.org/pages/inc/img/screenshots/screen01.png



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.


  • Install java



  • yum --enablerepo=clearos-core install java-1.7.0-openjdk



  • If not already done install wget



  • yum install wget



  • change directory to /tmp



  • cd /tmp


  • Download Subsonic 4.8



  • 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



  • Install Subsonic 4.8



  • yum localinstall subsonic-4.8.rpm



  • add Subsonic user



  • useradd -u 501 subsonic.



  • Edit the config file of subsonic. You have to change the subsonic user (SUBSONIC_USER=root to SUBSONIC_USER=subsonic). So that subsonic is not running with root privileges.



  • nano /etc/sysconfig/subsonic


  • Example:



  • #
    # 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



  • Start service Subsonic.



  • service subsonic start


  • access subsonic website.



  • 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.


    http://www.subsonic.org/pages/inc/img/screenshots/screen14.png


    Changelog:

  • 28-10-2012 added LDAP information.
  • .
  • 28-04-2013 updated installation information (subsonic 4.8 is available).
  • Friday, July 20 2012, 02:19 PM
    Share this post:
    Responses (27)
    • Accepted Answer

      Friday, March 20 2015, 09:16 PM - #Permalink
      Resolved
      0 votes
      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...
      The reply is currently minimized Show
    • Accepted Answer

      Sunday, April 28 2013, 04:56 PM - #Permalink
      Resolved
      0 votes
      Just checked clearos-core.repo is disabled by default.

      So i enabled the repo with:


      yum --enablerepo=clearos-core install java-1.7.0-openjdk


      and java-1.7.0 installed fine. Solved!


      I've been known to break stuff while tinkering

      Best way to learn Linux stuff!!! :laugh:
      The reply is currently minimized Show
    • Accepted Answer

      Sunday, April 28 2013, 04:32 PM - #Permalink
      Resolved
      0 votes
      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 :)
      The reply is currently minimized Show
    • Accepted Answer

      Sunday, April 28 2013, 07:47 AM - #Permalink
      Resolved
      0 votes
      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. :)
      The reply is currently minimized Show
    • Accepted Answer

      Sunday, April 28 2013, 02:21 AM - #Permalink
      Resolved
      0 votes
      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
      The reply is currently minimized Show
    • Accepted Answer

      Thursday, March 28 2013, 09:21 PM - #Permalink
      Resolved
      0 votes
      Hi Bryan Guidroz,

      I'm not yet using ClearOS 6.4 Beta 2 so i didn't encountered this problem. Thanks for sharing this information!
      The reply is currently minimized Show
    • Accepted Answer

      Thursday, March 28 2013, 01:51 PM - #Permalink
      Resolved
      0 votes
      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...
      The reply is currently minimized Show
    • Accepted Answer

      lctang
      lctang
      Offline
      Thursday, January 24 2013, 04:08 PM - #Permalink
      Resolved
      0 votes
      Question

      I have UTF-8 name files when i tried to packaged download. It changed "mess" files. How to resolve ?

      Thanks.


      sorry for my poor english.
      The reply is currently minimized Show
    • Accepted Answer

      Tuesday, January 15 2013, 04:02 PM - #Permalink
      Resolved
      0 votes
      updated the how-to with the right version and download links.
      The reply is currently minimized Show
    • Accepted Answer

      Monday, December 17 2012, 06:29 PM - #Permalink
      Resolved
      0 votes
      Glad you have it working!
      The reply is currently minimized Show
    • Accepted Answer

      moaz refat
      moaz refat
      Offline
      Monday, December 17 2012, 09:36 AM - #Permalink
      Resolved
      0 votes
      i got it work fine , thanks for your post ,
      The reply is currently minimized Show
    • Accepted Answer

      moaz refat
      moaz refat
      Offline
      Monday, December 17 2012, 09:30 AM - #Permalink
      Resolved
      0 votes
      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 .
      The reply is currently minimized Show
    • Accepted Answer

      Saturday, December 15 2012, 09:16 AM - #Permalink
      Resolved
      0 votes
      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! :)
      The reply is currently minimized Show
    • Accepted Answer

      Friday, December 14 2012, 10:51 PM - #Permalink
      Resolved
      0 votes
      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.
      The reply is currently minimized Show
    • Accepted Answer

      Thursday, December 13 2012, 04:37 AM - #Permalink
      Resolved
      0 votes
      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?
      The reply is currently minimized Show
    • Accepted Answer

      Tuesday, December 11 2012, 07:40 PM - #Permalink
      Resolved
      0 votes
      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.
      The reply is currently minimized Show
    • Accepted Answer

      Paul
      Paul
      Offline
      Wednesday, December 05 2012, 03:39 PM - #Permalink
      Resolved
      0 votes
      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.
      The reply is currently minimized Show
    • Accepted Answer

      Tuesday, December 04 2012, 06:28 PM - #Permalink
      Resolved
      0 votes
      Paul wrote:
      Just saying thanks for the howto. I followed it and got it all working including the LDAP authentication bit. I used the 4.7 RPM rather than the beta and it all seems to work.

      So thanks again
      Paul :)


      meanwhile i also used 4.7 rpm. I have to update that part of the how-to. thank you :)
      The reply is currently minimized Show
    • Accepted Answer

      Tuesday, December 04 2012, 06:26 PM - #Permalink
      Resolved
      0 votes
      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 :)
      The reply is currently minimized Show
    • Accepted Answer

      Paul
      Paul
      Offline
      Tuesday, December 04 2012, 01:02 PM - #Permalink
      Resolved
      0 votes
      Just saying thanks for the howto. I followed it and got it all working including the LDAP authentication bit. I used the 4.7 RPM rather than the beta and it all seems to work.

      So thanks again
      Paul :)
      The reply is currently minimized Show
    • Accepted Answer

      Sunday, December 02 2012, 11:19 PM - #Permalink
      Resolved
      0 votes
      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...
      The reply is currently minimized Show
    • Accepted Answer

      Saturday, December 01 2012, 12:03 PM - #Permalink
      Resolved
      0 votes
      Thanks! I enjoyed putting this how-to together. :)
      The reply is currently minimized Show
    • Accepted Answer

      Andi  Riza
      Andi Riza
      Offline
      Saturday, December 01 2012, 03:15 AM - #Permalink
      Resolved
      0 votes
      Great howto. Thank you Marcel :)
      The reply is currently minimized Show
    • Accepted Answer

      Sunday, October 28 2012, 01:27 PM - #Permalink
      Resolved
      0 votes
      I've updated the howto!

      Now you can authenticate against ClearOS LDAP!

      :)
      The reply is currently minimized Show
    • Accepted Answer

      Friday, July 20 2012, 07:30 PM - #Permalink
      Resolved
      0 votes
      Great! thanks Marcel good howto :)
      The reply is currently minimized Show
    • Accepted Answer

      Friday, July 20 2012, 02:23 PM - #Permalink
      Resolved
      0 votes
      Maybe in the future i can create a marketplace app but for now we have this how-to because i have no idea how to create a marketplace app.

      If you have any question or comments let me know and i will try to help you :)
      The reply is currently minimized Show
    • Accepted Answer

      Friday, July 20 2012, 02:20 PM - #Permalink
      Resolved
      0 votes
      reserved
      The reply is currently minimized Show
    Your Reply