Making Minecraft Linux server
Posted: Wed May 15, 2013 10:42 pm
Thought i would publish my scripts etc for minecraft running on Linux (opensuse in my case)
1. Go to minecraft.net > server file is https://s3.amazonaws.com/MinecraftDownl ... server.jar but you can click through the downloads area.
2. Copy minecraft_server.jar into a folder (i called mine "minecraft")
3. Make sure the file has execute permissions. chmod help is at -> http://en.wikipedia.org/wiki/Chmod
I use 3 main scripts to control the server.
bounce.sh -> located in the minecraft folder
start.sh -> located in the minecraft folder
stop.sh -> located in the minecraft folder
I also run a script to backup the server each day.
minecraft.sh -> located in the /home/<user> folder
I also run a "check server is running script every 5 minutes
minecraft_chech.sh -> located in the /home/<user> folder
I also currently have some log files to show scripts have run
screen.txt -> located in the /home/<user> folder
also the mail file in /var/spool/mail named as the user the scripts run under
and these 2 log files get cleaned each day to stop them getting too large
mail_clear.sh -> located in the /home/<user> folder
N.B. - <user> in this case is called cic but you should change to whatever you called your user account
Scripts up next
1. Go to minecraft.net > server file is https://s3.amazonaws.com/MinecraftDownl ... server.jar but you can click through the downloads area.
2. Copy minecraft_server.jar into a folder (i called mine "minecraft")
3. Make sure the file has execute permissions. chmod help is at -> http://en.wikipedia.org/wiki/Chmod
I use 3 main scripts to control the server.
bounce.sh -> located in the minecraft folder
start.sh -> located in the minecraft folder
stop.sh -> located in the minecraft folder
I also run a script to backup the server each day.
minecraft.sh -> located in the /home/<user> folder
I also run a "check server is running script every 5 minutes
minecraft_chech.sh -> located in the /home/<user> folder
I also currently have some log files to show scripts have run
screen.txt -> located in the /home/<user> folder
also the mail file in /var/spool/mail named as the user the scripts run under
and these 2 log files get cleaned each day to stop them getting too large
mail_clear.sh -> located in the /home/<user> folder
N.B. - <user> in this case is called cic but you should change to whatever you called your user account
Scripts up next