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

Me and my friends are having a Minecraft server on our Dropbox folder and whenever i start the sever it starts a new server and moves it into my home folder. If i already have a server in my home folder, it starts that one.

Home Folder

How can i run the server in directly from the dropbox folder? like Windows users can

I'm running Ubuntu 12.04 64bit



How can i put this as solved when the one with the answer putted it as a comment?

share|improve this question
You need read this or this. – us3r May 15 '12 at 16:00
Thanks that Worked! :D – Jeggy May 15 '12 at 16:09
up vote 1 down vote accepted

As this is an old question i'm just gonna write myself what i did :P

You need to cd to the folder within the terminal so if the minecraft_server.jar is in the folder /home/username/Dropbox/minecraft_server/ you'll first need to cd to the folder and then open it, like this

cd /home/username/Dropbox/minecraft_server
java -jar minecraft_server.jar

Then it will load all the files that are in that folder and if there aren't any it will create them in there.


Instead of writing this every time you want to turn on the server, you can do this:

Step 1:

make a folder in /opt called minecraft_server and a file called

sudo mkdir /opt/minecraft_server
touch /opt/minecraft_server/

Step 2: (Optional)

Download a image that you want to be shown in the launcher and dash.

cd /opt/minecraft_server/

Step 3:

edit the

sudo gedit /opt/minecraft_server/

and put this code in:


## destination of the minecraft server file
cd /home/USERNAME/Dropbox/test/; 

## name of the minecraft server file
java -jar minecraft_server.jar;

Step 4:

create the .desktop file

sudo gedit /usr/share/applications/minecraft_server.desktop

and put this code in:

[Desktop Entry]
Exec=sh /opt/minecraft_server/
Name=Minecraft Server
#Icon taken from

Now you should be able to open the server within the server itself :)

share|improve this answer
Do I have to do this every time I open the server? – Shingaling Jun 28 '13 at 23:30
Thats what i do, but you could write a simple .desktop file if you wanna. I'll update the answer to make the .desktop file – Jeggy Jul 2 '13 at 15:12
there was no simple way of executing 2 commands from a .desktop file, so i had to create a file instead – Jeggy Jul 2 '13 at 15:43

Check the ownership of the files in the dropbox folder with those that have been created in your home folder, compare the 2 different sets of ownership & permissions and make sure they are the same on both that you try and run.

You can find full permissions by using the ll command, i.e.:

    ll /root/to/folder

And if you find the ownership needs changing use:

    chown -R username:username /path/to//folder

If the permissions are incorrect:

    chmod -r <flags e.g. 775> /path/to/folder
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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