I’ve been meaning to write up a guide to setting up a minecraft server ever since I made the walk-through of our Minecraft server last year. It’s finally here so put on your nerd glasses, you know the ones you bought with the thick black frames and no lenses, and lets jump right into it. This will be showing how to set up a vanilla server and believe me, once you figure that out then setting up Bukkit or any other mods won’t be too difficult.
The first thing you will need is a server, dedicated or VPS although VPS servers will be cheaper. For the sake of this we are using a VPS so you won’t see me installing Linux. Our VPS is CentOS 6.2 with 1Gb of RAM. It’s up to you on what you want but if you go more or less make sure you change out the text where I tell you to change out the text. Detailed instructions under the video.
To access the vps you will need to use PuTTY, once downloaded open it up, put in the vps ip and connect. Type in your user/pass for the root account, the user is most likely root.
Step 1) Install Java
Type in yum install java-1.6.0-openjdk, hitting “y” when prompted.
Step 2) Install Screen
Type yum install screen, hitting “y” when prompted.
Step 3) Open the port on your firewall for Minecraft
You will want to directly copy the line that has the number 22 in it and just replace 22 with 25565. Yours may look dffirent from what I have/using.
- Type vi /etc/sysconfig/iptables, hit enter
- Hit “i” on keyboard
- Down arrow to line below line with the number 22
- Hit enter to push the lines down
- Type in the blank space exactly what’s above except change 22 to 25565
- Hit esc
- Hit shift+: then type “wq” and hit enter
- Type service iptables restart and hit enter
Step 4) Create a directory for Minecraft
- Type cd /home, hit enter
- Type mkdir minecraft, hit enter
- Type cd minecraft, hit enter
Step 5) Get Minecraft server file
*While in the minecraft folder you just created*
Type wget http://minecraft.net/download/minecraft_server.jar, hit enter
Step 6) Start Minecraft
*While in the same folder you downloaded the minecraft_server.jar file*
Type screen -S mc_server java -Xmx1024M -Xms102 -jar minecraft_sever.jar nogui, hit enter
Wait until you see that it’s done. Connect to your server with the Minecraft client.
- To get out of a Screen hold down ctrl+a+d
- To return to the screen type screen -x mc_server
- When back in the screen type stop to stop minecraft and the screen.
- You can call the screen whatever you like just change out mc_server with something you will remember.
- For more or less memory than 1GB change where it says 1024 to the number in MB for how much memory you want to use.