Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I installed Universal Media Server 3.6 on ubuntu 14.04 desktop. What I want to do is, to launch it during startup. How to add this into startup? Any suggestions? Thanks in advance.

share|improve this question

marked as duplicate by Web-E, karel, Radu Rădeanu, Eric Carvalho, Avinash Raj May 6 '14 at 9:12

This question was marked as an exact duplicate of an existing question.

I assume you've already installed Java. If not, you can execute the following command to install the OpenJDK JRE (an open source alternative for Oracle's Java):

sudo apt-get install openjdk-7-jre

Follow the these instructions to start Universal Media Server at startup.

  1. Open your Dash
  2. Search for Startup Applications and open it
  3. Click on Add
  4. Enter the following:

    Name:    Universal Media Server
    Command: java -jar /path/to/ums.jar
    Comment: Start Universal Media Server
    

    Replace /path/to/ums.jar by the actual path to ums.jar.

  5. Click on Add
share|improve this answer
    
are you sure about .jar? maybe ums.sh? – hunter May 4 '14 at 19:47
    
Oh, could be, I downloaded it quickly, saw a .jar and assumed that was the main binary. If you can confirm it doesn't work I'll edit my answer. – Louis Matthijssen May 4 '14 at 19:53
    
I did as you said, but neither .sh nor .jar didn't work. i mean application not launched on startup. – hunter May 4 '14 at 22:14

Not the answer you're looking for? Browse other questions tagged or ask your own question.