Subsonic Forum Forum Index Subsonic Forum

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   SmartFeedSmartFeed   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to install Subsonic on Ubuntu
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Subsonic Forum Forum Index -> Tutorials
View previous topic :: View next topic  
Author Message
sindre_mehus



Joined: 29 Nov 2005
Posts: 1138
Location: Oslo, Norway

PostPosted: Tue Jan 13, 2009 5:29 pm    Post subject: How to install Subsonic on Ubuntu Reply with quote

Installing Subsonic on the Ubuntu Linux distribution is a straight-forward process.
The following was done with Subsonic 3.6 and Ubuntu 8.10.

Step 1: Install Sun Java 6 (or later):
Code:
$ sudo apt-get install sun-java6-jdk

Step 2: Download Subsonic standalone version and install it in /var/subsonic/standalone, as described here.
Code:
$ sudo mkdir -p /var/subsonic/standalone
$ sudo tar -C /var/subsonic/standalone -zvxf subsonic-3.6.beta2-standalone.tar.gz

Step 3: To start Subsonic, execute the subsonic.sh script:
Code:
$ sudo /var/subsonic/standalone/subsonic.sh

If you like Subsonic to start automatically when booting, add the following line to /etc/rc.local:
Code:
/var/subsonic/standalone/subsonic.sh


Your comments are welcome!
Back to top
View user's profile Send private message Visit poster's website
braddyo



Joined: 29 Oct 2007
Posts: 97
Location: UT

PostPosted: Fri Feb 27, 2009 8:39 pm    Post subject: Reply with quote

Sindre,

I installed on Debian, and the procedure is mostly the same - you just have to add the following line to /etc/apt/sources.list

deb http://ftp.de.debian.org/debian lenny main non-free

Thanks for the guide.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
hook2009



Joined: 06 Apr 2009
Posts: 1
Location: Perth, WA

PostPosted: Mon Apr 06, 2009 1:31 pm    Post subject: Ubuntu installation problem Reply with quote

I'm getting an error when I try to run subsonic:

8822 [main] ERROR org.springframework.web.context.ContextLoader - Context initialization failed

Perhaps this may also help:

Error creating bean with name 'podcastService' defined in ServletContext resource

This is followed by the java stack dump. I downloaded the latest Ubuntu version from the web site (subsonic-3.6-standalone.tar.gz). I assume that there's something that I've missed somewhere - can anyone out there enlighten me ?

TIA
Back to top
View user's profile Send private message Visit poster's website
Lobo



Joined: 12 Apr 2009
Posts: 1

PostPosted: Sun Apr 12, 2009 7:32 pm    Post subject: Reply with quote

As a new user to Ubuntu I am having difficulty with installing. Is there any chance this will be made into its own .deb file so it may be installed without much interaction?

Any clarity or help would be appreciated, I am really looking forward to be able to use SS but I find these instructions a little vague.

My main obstacle is Step 2.
# Unpack subsonic-x.x-standalone.tar.gz to SUBSONIC_HOME/standalone. SUBSONIC_HOME is typically c:\subsonic on Windows, and /var/subsonic on Unix-based operating systems.

So am I extracting to a folder called "SUBSONIC_HOME/standalone" and then putting that into the folder "subsonic" so it looks like "/var/subsonic/SUBSONIC_HOME/standalone"? Is that correct? Also, don't I have to first open Terminal and run gksudo nautilus in order to add folders to /var?

# Optionally configure the startup script SUBSONIC_HOME/standalone/subsonic.sh

What exactly do you mean by configure? How is this done?

# Execute the startup script. (Typically you will configure your operating system to execute the script automatically at start-up.)

How is this done?

# Open the Subsonic web page. The default address is http://localhost:8080.[/i]
Back to top
View user's profile Send private message
bormuff



Joined: 17 Apr 2009
Posts: 1

PostPosted: Fri Apr 17, 2009 5:43 pm    Post subject: Reply with quote

Lobo wrote:
As a new user to Ubuntu I am having difficulty with installing. Is there any chance this will be made into its own .deb file so it may be installed without much interaction?

Any clarity or help would be appreciated, I am really looking forward to be able to use SS but I find these instructions a little vague.


The instructions at the top of the thread are pretty comprehensive. Just open your terminal app, probably via Applications -> Accessories -> Terminal and then start pasting the commands as shown, one step at a time.

You may find that the Java app is already installed so can skip that step.

Don't worry about SUBSONIC_HOME, that's just a shorthand way to describe the location of Subsonic on your system.
Back to top
View user's profile Send private message
eksatx



Joined: 09 May 2009
Posts: 4

PostPosted: Sat May 09, 2009 8:46 pm    Post subject: How to start Subsonic on boot on Ubuntu Reply with quote

Your suggestion of adding a line to /etc/rc.local does not appear to work for me.

Has this worked for anybody?

If not, do you have any suggestions?
Back to top
View user's profile Send private message
jonathanroz



Joined: 18 Dec 2008
Posts: 150
Location: Frisco, TX USA

PostPosted: Sat May 09, 2009 9:19 pm    Post subject: Reply with quote

I used these instructions and have it running on Ubuntu. Perhaps post something in the help section with the exact issue you are seeing and someone else may have had a similar issue or know how to work through it.
Back to top
View user's profile Send private message
eksatx



Joined: 09 May 2009
Posts: 4

PostPosted: Sat May 09, 2009 9:28 pm    Post subject: How to start Subsonic on boot on Ubuntu Reply with quote

I have subsonic running -- it just won't start on boot. Can you confirm that you are able to get subsonic to start on boot?
Back to top
View user's profile Send private message
jonathanroz



Joined: 18 Dec 2008
Posts: 150
Location: Frisco, TX USA

PostPosted: Sat May 09, 2009 10:25 pm    Post subject: Reply with quote

Yes it works for me. If you are able to start it manually then adding it to rc.local should work. I would validate the location is listed correctly and that your rc.local ends in exit 0

Below is what mine looks like

Code:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

/var/subsonic/standalone/subsonic.sh

exit 0


You can also add it thru the Ubuntu GUI by going to System-->Preferences-->Sessions and adding the application there using the Add button.
Back to top
View user's profile Send private message
eksatx



Joined: 09 May 2009
Posts: 4

PostPosted: Sun May 10, 2009 5:07 pm    Post subject: Subsonic will not start on boot on Ubuntu Reply with quote

I believe I am doing the same thing. Here is my /etc/rc.local:
Code:

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

/var/subsonic/standalone/subsonic.sh

exit 0

After I reboot, subsonic is not running. The subsonic.log file has not been updated. The subsonic_sh.log file has a mod time of when the machine was booted, but the file is empty (0 bytes).

I am able to start subsonic fine from a terminal with

Code:
sudo /var/subsonic/standalone/subsonic.sh


Ideas?
Back to top
View user's profile Send private message
pino_otto



Joined: 24 May 2009
Posts: 8

PostPosted: Sun May 24, 2009 10:03 am    Post subject: Re: Subsonic will not start on boot on Ubuntu Reply with quote

eksatx wrote:

After I reboot, subsonic is not running. The subsonic.log file has not been updated. The subsonic_sh.log file has a mod time of when the machine was booted, but the file is empty (0 bytes).

I am able to start subsonic fine from a terminal with

Code:
sudo /var/subsonic/standalone/subsonic.sh


Ideas?


I solved the problem simply using the "nohup" command in front of the start command (/var/subsonic/standalone/subsonic.sh) in the file /etc/rc.local:

nohup /var/subsonic/standalone/subsonic.sh

exit 0

I hope this can help you.
Back to top
View user's profile Send private message
eksatx



Joined: 09 May 2009
Posts: 4

PostPosted: Wed May 27, 2009 3:12 pm    Post subject: nohup solved the problem Reply with quote

Adding nohup to the command in /etc/rc.local as you suggested worked for me too:

Code:
nohup /var/subsonic/standalone/subsonic.sh


Should this perhaps be added to the instructions at the top of this thread?
Back to top
View user's profile Send private message
jonathanroz



Joined: 18 Dec 2008
Posts: 150
Location: Frisco, TX USA

PostPosted: Wed Aug 19, 2009 3:59 am    Post subject: Reply with quote

After upgrading my server from Ubuntu 8.10 to 9.04 my subsonic stopped working.

When I tried to start it manually it would not start and the log file showed that the database was locked.

Adding the nohup command as shown in the above post got everything up and running after messing with my server for almost an hour...

Thanks, I guess I should have checked here faster.
Back to top
View user's profile Send private message
ferreol



Joined: 08 Sep 2009
Posts: 5

PostPosted: Wed Sep 09, 2009 11:08 am    Post subject: Help after install reach localhost Reply with quote

Dear all ,

I have follow this procedure on Ubuntu 9.04 and all worked fine however I used to get the setup page on http://localhost or http://localhost:8080 which I don't get anymore .

It shows me the root of the /var/subsonic instead of the page config .

Maybe it's due to the fact I have several servers , then I can edit the setup.sh but I m not successful even specifiyng the domain it keeps showing me the root of the /var/subsonic folder .

any advices ?

thanks in advance.
Back to top
View user's profile Send private message
jigsaw



Joined: 13 Oct 2007
Posts: 238
Location: Stavanger, Norway

PostPosted: Wed Sep 09, 2009 7:35 pm    Post subject: Reply with quote

Did you change the context_path?
in subsonic.sh:
SUBSONIC_CONTEXT_PATH=/subsonic
_________________
Version 3.8 (build 1130) – October 23, 2009
Server jetty-6.1.x, java 1.6.0_16, Linux
OS Fedora release 11 (Leonidas)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Subsonic Forum Forum Index -> Tutorials All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group