Koozali.org: home of the SME Server
Obsolete Releases => SME 8.x Contribs => Topic started by: newburns 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
wget http://download.oracle.com/otn-pub/java/jdk/6u32-b05/jdk-6u32-linux-x64-rpm.bin
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
rm jdk-6u32-linux-x64-rpm.bin
Now download the subsonic installation for Fedora/Red Hat
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
then yum localinstall subsonic-4.6.rpm
or whatever version you have
Afterwards, there are some key things to make it work in SME
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:
service subsonic start
The Installation is complete, and you can go to http://yourdomain.com:4040
In order to adjust the Java memory heap size you cannano /etc/sysconfig/subsonic
or
nano /usr/share/subsonic/subsonic.sh
reveals 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?
-
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
[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."
-
I figured out one answer: http://wiki.contribs.org/Firewall#DB_Settings
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.
-
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 (http://sourceforge.net/apps/mediawiki/subsonic/index.php?title=Linux_stand_alone)), or set up a domain proxy pass (http://wiki.contribs.org/SME_Server:Documentation:ProxyPass#ProxyPass_a_domain) so that the Subsonic content is served from the root of the resulting URL.
-
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.
-
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?
-
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 !
-
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.
-
http://wiki.contribs.org/User_talk:Newburns
I'm not able to create any other pages but this User:Talk kind
-
newburns
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.
-
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
-
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 ?
-
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.