Koozali.org: home of the SME Server

Subsonic Music Streamer

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Subsonic Music Streamer
« on: June 08, 2012, 02:08:36 AM »
I finally got Subsonic to install without the use of Tomcat.
Firstly, install Java 6. I used http://download.oracle.com/otn-pub/java/jdk/6u32-b05/jdk-6u32-linux-x64-rpm.bin
I have a x64 version of SME 8 installed
Code: [Select]
wget http://download.oracle.com/otn-pub/java/jdk/6u32-b05/jdk-6u32-linux-x64-rpm.bin
Code: [Select]
chmod a+x jdk-6u32-linux-x64-rpm.bin
./jdk-6u32-linux-x64-rpm.bin
ln -s /usr/java/jdk1.6.0_32

You can remove the rpm and bin files from the root directory
Code: [Select]
rm jdk-6u32-linux-x64-rpm.bin
Now download the subsonic installation for Fedora/Red Hat
Code: [Select]
wget http://downloads.sourceforge.net/project/subsonic/subsonic/4.6/subsonic-4.6.rpm?r=http%3A%2F%2Fwww.subsonic.org%2Fpages%2Fdownload2.jsp%3Ftarget%3Dsubsonic-4.6.rpm&ts=1339113681&use_mirror=voxel
Code: [Select]
then yum localinstall subsonic-4.6.rpmor whatever version you have

Afterwards, there are some key things to make it work in SME
Code: [Select]
ln -s /etc/init.d/subsonic /etc/rc.d/rc0.d/K02subsonic
ln -s /etc/init.d/subsonic /etc/rc.d/rc7.d/S98subsonic
ln -s /etc/init.d/subsonic /etc/rc.d/rc6.d/K02subsonic
ln -s /etc/init.d/subsonic /etc/rc.d/rc2.d/K02subsonic
ln -s /etc/init.d/subsonic /etc/rc.d/rc1.d/K02subsonic
Last is:
Code: [Select]
service subsonic startThe Installation is complete, and you can go to http://yourdomain.com:4040

In order to adjust the Java memory heap size you can
Code: [Select]
nano /etc/sysconfig/subsonic
or
Code: [Select]
nano /usr/share/subsonic/subsonic.shreveals some other settings possible through subsonic.sh


The only thing I am trying to figure out is how to get the webpage on yourdomain.com/subsonic vs. yourdomain.com:4040 without using a proxypass

I am also trying to get the native yourdomain.subsonic.org to register, but it is failing with a HTTP error 404. Would anyone care to help resolve this?
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: Subsonic Music Streamer
« Reply #1 on: June 08, 2012, 07:28:25 PM »
I am having two issues:
In order to access from outside the LAN I had to create a port forward rule for port 4040 going to destination port 4040.
Is there a way to do some type of db configuration to set access to public?

I am having issues with my proxypass directive
Code: [Select]
[root@mtrose ~]# db accounts set subsonic ProxyPass
[root@mtrose ~]# db accounts setprop subsonic Target http://10.1.12.1:4040
[root@mtrose ~]# db accounts setprop subsonic Description Music Streamer
[root@mtrose ~]# expand-template /etc/httpd/conf/httpd.conf
[root@mtrose ~]# sv t httpd-e-smith
[root@mtrose ~]# service subsonic restart
Stopping subsonic ...                                      [  OK  ]
Starting subsonic ...
Started Subsonic [PID 13968, /var/subsonic/subsonic_sh.log]
Now when I go to /subsonic it comes up /index.view and error "The requested URL /index.view was not found on this server."
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: Subsonic Music Streamer
« Reply #2 on: June 10, 2012, 05:55:24 AM »
I figured out one answer: http://wiki.contribs.org/Firewall#DB_Settings
Code: [Select]
config set subsonic service access public status enabled TCPPort 4040
signal-event remoteaccess-update

Now I need to setup a redirect or proxypass properly to go to an alias such as /subsonic or /music
My regular proxypass did not work as documented above.
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline mmccarn

  • *
  • 2,628
  • +10/-0
Re: Subsonic Music Streamer
« Reply #3 on: June 10, 2012, 04:43:47 PM »
Now when I go to /subsonic it comes up /index.view and error "The requested URL /index.view was not found on this server."
It sounds like the app is configured to run from the root of the selected domain.

Either figure out how to tell the app that it is running from /subsonic (using a command line argument to subsonic.sh, according to this), or set up a domain proxy pass so that the Subsonic content is served from the root of the resulting URL.

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: Subsonic Music Streamer
« Reply #4 on: January 09, 2013, 03:25:16 PM »
Can other users test this so that I may write a wiki. I have wiki access, and am really excited about writing my first one, but I don't want there to be any false information.
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Subsonic Music Streamer
« Reply #5 on: January 09, 2013, 08:12:39 PM »
The only thing I am trying to figure out is how to get the webpage on yourdomain.com/subsonic vs. yourdomain.com:4040 without using a proxypass

Why do you want to avoid using proxypass?

Offline flep

  • *
  • 14
  • +0/-0
Re: Subsonic Music Streamer
« Reply #6 on: January 09, 2013, 09:13:04 PM »
hello,

i make it work by modifying /etc/sysconfig/subsonic and add argument :

--context-path='/subsonic'

then modify proxypass :

db accounts set subsonic ProxyPass
db accounts setprop subsonic Target http://localhost:4040/subsonic
expand-template /etc/httpd/conf/httpd.conf
sv t httpd-e-smith
then
service subsonic restart

at this time http/mydom/subsonic work !
« Last Edit: January 09, 2013, 09:36:37 PM by flep »

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: Subsonic Music Streamer
« Reply #7 on: January 09, 2013, 09:18:13 PM »
Ever since the proxypass Panel for Server Manager was stopped being developed, I have had issues with proxypass. A lot of times, I can't even find what proxypasses I have set in the past, or whether accidental db set were taken or not. I am not very fluent in proxypass, and the wiki does not lay it all out blindly, so I try to avoid it. But as of now, proxypass seems to be the only solution. I am looking into the subsonic files and settings to stop it from running as root, or set some aliases for it.
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: Subsonic Music Streamer
« Reply #8 on: January 10, 2013, 09:03:16 PM »
http://wiki.contribs.org/User_talk:Newburns

I'm not able to create any other pages but this User:Talk kind
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Subsonic Music Streamer
« Reply #9 on: January 11, 2013, 02:23:18 AM »
newburns

Quote
I'm not able to create any other pages but this User:Talk kind

If you are referring to Wiki pages eg Contribs or Howtos wiki articles, then simply open your web browser at a URL like
http://wiki.contribs.org/Subsonic

You will need to login if not already logged in, and then Edit the page (which will be blank initially).
Of course select a name that does not already exist as a wiki page.
If creating a new Howto, then review the list of current Howtos & select a new and appropriate name, remembering to use underscores in the name if the title is multi worded.

Remember to add appropriate Categories eg Howto, Medium & so on at the end of the page.
Refer to other wiki pages for examples of style, layout & code used.

There is more help in the Wiki re creating pages, under the "Wiki Help" link at the upper left of screen.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: Subsonic Music Streamer
« Reply #10 on: January 11, 2013, 06:18:44 AM »
Thanks Mary
http://wiki.contribs.org/Subsonic_Music_Streamer

Is there any moderator I can submit it to for content/integrity checking. I want to be sure everything I have said is 100% true and operational.

Also, how do you mark a topic as SOLVED
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline Jean-Philippe Pialasse

  • *
  • 2,774
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Subsonic Music Streamer
« Reply #11 on: October 27, 2013, 03:21:36 PM »
Hello newburns,

I have seen your work on the wiki, and here and I decided to do it as a smeserver package:

here it is : http://bugs.contribs.org/show_bug.cgi?id=7936

If you want to test it, it would be great.

if you want to be maintainer I would be pleased !

also if you can point me a little more about Madsonic, it would be great. As far as I understand this is a fork from subsonic, and allow to fully stream without having to pay for a license ? does it works with subsonic clients for iphones ?

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: Subsonic Music Streamer
« Reply #12 on: October 27, 2013, 04:31:11 PM »
Madsonic is even more streamline than Subsonic. It has a lot of great new features and does not require the server monetary donation as Subsonic does.
It utilizes JDK 1.7 and 1.6, and allows for many new implementations of Last.fm integration.

I am not sure if it is completely compatible with SME as of the latest versions because it tries to install PostgreSQL through the rpm installation.

I have a working copy of Madsonic with content if you would like to test against the API for your mobile app.
At this time, Madsonic complies with all previous versions of Android Apps that were available to Subsonic.
It is also, the one that is actively being developed. There are rpm based installs, but it is updated every 2 weeks. You may want to look into this when there are more standard and stable releases. I am using the latest platform if you wanted to test. PM me for credentials.
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware