Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 4687  / 3 Years ago, tue, june 22, 2021, 6:36:41

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


SOLVED!:


Followed these instructions [SOLVED] HOW DO I CHANGE LINUX MINECRAFT SERVER DIRECTORY?


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


More From » server

 Answers
3

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.






UPDATE:



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 run.sh



sudo mkdir /opt/minecraft_server
touch /opt/minecraft_server/run.sh


Step 2: (Optional)



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



cd /opt/minecraft_server/
wget http://dl.dropboxusercontent.com/u/50254717/mineserver.png


Step 3:



edit the run.sh



sudo gedit /opt/minecraft_server/run.sh


and put this code in:



#!/bin/bash

## 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]
Type=Application
Categories=Game
Exec=sh /opt/minecraft_server/run.sh
Name=Minecraft Server
Icon=/opt/minecraft/mineserver.png
#Icon taken from http://www.minecraftforum.net/topic/1328888-free-minecraft-server-icon/


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


[#38406] Tuesday, June 22, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
puccop

Total Points: 66
Total Questions: 99
Total Answers: 93

Location: Aruba
Member since Sun, Nov 27, 2022
1 Year ago
puccop questions
Thu, Feb 17, 22, 08:16, 2 Years ago
Fri, Jan 13, 23, 18:55, 1 Year ago
Fri, Jan 21, 22, 07:21, 2 Years ago
Thu, Jul 28, 22, 06:32, 2 Years ago
;