Advertisement
itnetsec

Setting up a Subsonic Media Server on Linux

Dec 1st, 2011
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.17 KB | None | 0 0
  1. #Written by: Michael Wood
  2. #Date 12-01-2011
  3.  
  4. First off, 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.
  5.  
  6. Has really cool features
  7. -An intuitive web interface
  8. -The developer wrote a Subsonic app for the Android platform to stream music to your phone! (Subsonic for Android)
  9. -iPhone users also have cool apps to stream music from a Subsonic server. (iSub, Z-Subsonic, SubStream)
  10. -Pulls in cover art from the Internet by parsing ID3 tags from your audio files
  11. The list goes on...
  12.  
  13. Check out the list of apps here: http://www.subsonic.org/pages/apps.jsp
  14.  
  15. Lets begin...
  16. We are going to get a Subsonic server setup and configured properly. I'll be using putty to SSH into my Linux server for the tutorial.
  17.  
  18. First, we need to grab the .deb package from the developers site (the package is actually hosted on Sourceforge.net)
  19. sudo wget http://downloads.sourceforge.net/project/subsonic/subsonic/4.5/subsonic-4.5.deb
  20.  
  21. Install Java:
  22. sudo apt-get install openjdk-7-jre (This could take some time)
  23.  
  24. Install the package:
  25. sudo dpkg -i subsonic-4.5.deb
  26.  
  27. Selecting previously deselected package subsonic.
  28. (Reading database ... 84670 files and directories currently installed.)
  29. Unpacking subsonic (from subsonic-4.5.deb) ...
  30. Setting up subsonic (4.5) ...
  31. Adding system startup for /etc/init.d/subsonic ...
  32. /etc/rc0.d/K99subsonic -> ../init.d/subsonic
  33. /etc/rc1.d/K99subsonic -> ../init.d/subsonic
  34. /etc/rc6.d/K99subsonic -> ../init.d/subsonic
  35. /etc/rc2.d/S99subsonic -> ../init.d/subsonic
  36. /etc/rc3.d/S99subsonic -> ../init.d/subsonic
  37. /etc/rc4.d/S99subsonic -> ../init.d/subsonic
  38. /etc/rc5.d/S99subsonic -> ../init.d/subsonic
  39. Started Subsonic [PID 17140, /var/subsonic/subsonic_sh.log]
  40. Processing triggers for ureadahead ...
  41.  
  42. After installing the installer configures your system to start Subsonic automatically. You can access the web interface at http://localhost:4040
  43. Now if you like tweaking stuff like I do, you can find more advanced configuration settings in /etc/default/subsonic
  44. In the /etc/default/subsonic file you can change stuff like the port number Subsonic listens on. How much memory is allocated to Java, etc.
  45.  
  46. Taking a look at /etc/default/subsonic we are going to change the line:
  47. SUBSONIC_ARGS="--max-memory=100"
  48.  
  49. I want my Subsonic server to listen on a different port than the default of 4040. Also, I will be changing the https port from the default of 443.
  50.  
  51. Change the line to look like this:
  52. SUBSONIC_ARGS="--port=15500 --https-port=15501 --max-memory=120"
  53.  
  54. Save the file and run sudo /etc/init.d/subsonic restart
  55.  
  56. Now I should be able to access https://localhost:15501 and setup the rest of my Subsonic server. Once you login to the web interface you can point Subsonic to the directory where your music resides. Setup SSL certificates, configure transcoding (if you don't have the bandwidth or if you are streaming over 3G).
  57.  
  58. Oh and don't forget to open the ports on your router/firewall. Have fun!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement