You are viewing our Forum Archives. To view or take place in current topics click here.
How to Create your own Minecraft Server [Linux/Windows]
Posted:

How to Create your own Minecraft Server [Linux/Windows]Posted:

Portland
  • TTG Addict
Status: Offline
Joined: Aug 12, 201014Year Member
Posts: 2,671
Reputation Power: 280
Status: Offline
Joined: Aug 12, 201014Year Member
Posts: 2,671
Reputation Power: 280
How to create your own Minecraft server (No VPS)
If you are looking to host on a VPS go here!

Installing Java (Ubuntu)

1. Go to Applications, Ubuntu Software Center, then type "Java" into the search bar.
[ Register or Signin to view external links. ]

2. Download "OpenJDK Java 6 Runtime", once java is installed you are good to go.
NOTE: You will notice their are add-ons just below OpendJDK Java You want to check all of them.
[ Register or Signin to view external links. ]



Port forwarding
NOTE: You may or may not need to do this as I did not, but here it is just incase.

1. Go here to access your router [ Register or Signin to view external links. ] or [ Register or Signin to view external links. ] or [ Register or Signin to view external links. ]
(.1.1 = Linksys & Westell // .0.1 = D-Link & NetGear // .2.1 = Belkin)

2. Click on the tab that says "Applications", "Gaming" or "Applications & Gaming"
(In my case on a Cisco Linksys router it is "Applications & Gaming" most routers are pretty identical)

3. Under that tab you will see different options, click on the one that says "Port Range Fowarding" then enter in what i have, then click save changes.
(Replace the "111" with your IPv4 IP address numbers. ex: 192.168.1.131)
[ Register or Signin to view external links. ]



[ Register or Signin to view external links. ]
[ Register or Signin to view external links. ]
[ Register or Signin to view external links. ]
Server Option #1 - Bukkit Server (w/Plugins)

Installation
1. Go here [ Register or Signin to view external links. ] and download the latest build.

2. Open a text editor 'notepad' or 'gedit' and copy in this code, then save the file as minecraft.sh
cat > minecraft.sh << EOF
#!/bin/sh
BINDIR="\$(dirname "\$(readlink -fn "\$0")")"
cd "\$BINDIR"
java -Xincgc -Xmx1G -jar craftbukkit-0.0.1-SNAPSHOT.jar
EOF
chmod +x minecraft.sh

Download: [ Register or Signin to view external links. ]
Virus Scan
[ Register or Signin to view external links. ]

3. Once you have saved the "minecraft.sh" file, right click it, go to properties, then permissions, and click "Execute: Allow executing file as program"
[ Register or Signin to view external links. ]

NOTE: If you don't your server will not start when you go to run it.

4. Create a folder on your desktop and name the folder "Minecraft" or whatever you'd like.

5. Now that you have your two files "craftbukkit-0.0.1-SNAPSHOT.jar" and "minecraft.sh" drag them both into the folder you created on your desktop.

6. Now open terminal and change your directory to the folder that you created. (ctrl + alt + T)
(In my case it's called "Minecraft2" since I already have my main server setup)
[ Register or Signin to view external links. ]

eddie@ubuntu:~$ cd Desktop/Minecraft2

Your directory should now look like this:
eddie@ubuntu:~/Desktop/Mincraft2$

7. Now that your directory is directed to that folder you need to execute the "minecraft.sh" file by typing in this command.
[ Register or Signin to view external links. ]

./minecraft.sh

Before your execute the command it should look like this:
eddie@ubuntu:~/Desktop/Mincraft2$ ./minecraft.sh

8. Run the command to start your server.
NOTE: The first time your run this command because your server is not yet setup it will say unusual things and give you [Warnings]

Server being setup
[ Register or Signin to view external links. ] [ Register or Signin to view external links. ] [ Register or Signin to view external links. ]

Server after the setup
[ Register or Signin to view external links. ]

9. You're done. To start your server after you shut it down repeat steps 5-7.
or
Open the folder your created on your desktop and double click the "minecraft.sh" and 'run in terminal'



Server Option #2 - Legit Server (No Plugins)

[ Register or Signin to view external links. ]

Installation
1. Go here [ Register or Signin to view external links. ] and download the latest build.
or
Download: [ Register or Signin to view external links. ]
Virus Scan
[ Register or Signin to view external links. ]

2. Create a folder on your desktop and name the folder "Minecraft" or whatever you'd like.

3. Now that you have your file "minecraft_server.jar" drag it into the folder you created on your desktop.

4. Right click the "minecraft_server.jar" file, go to properties, permissions, and click "Execute: Allow executing file as program"
[ Register or Signin to view external links. ]

NOTE: Only do step 4 if you're choosing to use step 5a.

5a. Double click "minecraft_server.jar" and your server is now online.
[ Register or Signin to view external links. ]

(Step 5a. runs /w GUI) If did step 4 & 5a you are now done. Enjoy your server!
-----------------------------------------------------------------------------------------------------
(Steps 5b. - 8 runs /w noGUI) *I prefer noGUI
5b. Now open terminal and change your directory to the folder that you created. (ctrl + alt + T)
(In my case it's called "Minecraft2" since I already have my main server setup)
[ Register or Signin to view external links. ]

eddie@ubuntu:~$ cd Desktop/Minecraft2

Your directory should now look like this:
eddie@ubuntu:~/Desktop/Mincraft2$

6. Now that your directory is directed to that folder you need to execute the "minecraft_server.jar" file by typing in this command.
[ Register or Signin to view external links. ]

java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui

Before your execute the command it should look like this:
eddie@ubuntu:~/Desktop/Mincraft2$ java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui

7. Run the command to start your server.
NOTE: The first time your run this command because your server is not yet setup it will say unusual things and give you [Warnings]

Server being setup
[ Register or Signin to view external links. ] [ Register or Signin to view external links. ]

Server after the setup
[ Register or Signin to view external links. ]

8. You're done. To start your server after you shut it down repeat steps 6-8.



[ Register or Signin to view external links. ]

Bukkit Server
[ Register or Signin to view external links. ]

Installation
1. Go here [ Register or Signin to view external links. ] and download the latest build.

2. Open notepad and copy in this code, then save the file as minecraft.bat
@ECHO OFF
SET BINDIR=%~dp0
CD /D "%BINDIR%"
"%ProgramFiles%\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit-0.0.1-SNAPSHOT.jar
PAUSE

NOTE: If you are running java on a 32bit machine use the exact coding above, if on a 64bit machine use the coding above but change %ProgramFiles% to %ProgramFiles(x86)%
3. Create a folder on your desktop and name the folder "Minecraft" or whatever you'd like.

4. Now that you have your two files "craftbukkit-0.0.1-SNAPSHOT.jar" and "minecraft.bat" drag them both into the folder you created on your desktop.

5. Execute "minecraft.bat" by double clicking it.

Server being setup
[ Register or Signin to view external links. ]

Server after the setup
[ Register or Signin to view external links. ]

6. You're done. To start your server after you shut it down repeat step 5 only.



[ GUI ] Legit Server

Installation
1. Go here [ Register or Signin to view external links. ] and download the latest build.

2. Create a folder on your desktop and name the folder "Minecraft" or whatever you'd like.

3. Now that you have your file "minecraft_server.exe" drag it into the folder you created on your desktop.

4. Double click "minecraft_server.exe" and play.
[ Register or Signin to view external links. ]



[ NO GUI ] Legit Server

Installation
1. Go here [ Register or Signin to view external links. ] and download the "minecraft_server.jar" file and place it on your desktop for now.

2. Now create a folder on your desktop and name the folder "Minecraft" or whatever you'd like.

3. Now that you have your file "minecraft_server.jar" drag it into the folder you created on your desktop.

4. Click the Start button, then in search programs and files type in "Run" open that, in "Run" type in cmd.exe and run that.
[ Register or Signin to view external links. ]

[ Register or Signin to view external links. ]

5. In cmd.exe change your directory to the folder that you created.
[ Register or Signin to view external links. ]

C:\Users\Eddie>cd Desktop/Minecraft

Your directory should now look like this:
C:\Users\Eddie\Desktop\Minecraft>


6. Now that your directory is directed to that folder you need to execute the "minecraft_server.jar" file by typing in this command.
[ Register or Signin to view external links. ]

Command:
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui

Before you execute the command it should look like this:
C:\Users\Eddie\Desktop\Minecraft>java -Xmx1024M -Xms1024M -jar minecraft_server.
jar nogui

7. Run the command to start your server.
NOTE: The first time your run this command because your server is not yet setup it will say unusual things and give you [Warnings]

Server being setup
[ Register or Signin to view external links. ]

Server after the setup
[ Register or Signin to view external links. ]

8. You're done. To start your server after you shut it down repeat steps 4-6.


Last edited by Portland ; edited 26 times in total

The following 9 users thanked Portland for this useful post:

Foostest (07-18-2012), Clean (05-28-2012), Sea (09-07-2011), Catnip (08-04-2011), Morpha (08-03-2011), xiHouston (07-29-2011), TTG_FlyWire (07-25-2011), iDemand (07-25-2011), WZRD (07-25-2011)
#2. Posted:
Dec
  • Supporter
Status: Offline
Joined: Feb 26, 201113Year Member
Posts: 2,317
Reputation Power: 2216
Status: Offline
Joined: Feb 26, 201113Year Member
Posts: 2,317
Reputation Power: 2216
Nice post bro, this will help a lot of people out.

EDIT: Sticky much?


Last edited by Dec ; edited 1 time in total
#3. Posted:
WZRD
  • TTG Senior
Status: Offline
Joined: May 16, 201113Year Member
Posts: 1,260
Reputation Power: 58
Status: Offline
Joined: May 16, 201113Year Member
Posts: 1,260
Reputation Power: 58
Reading it as i type, But very nice tutorial.
#4. Posted:
iDemand
  • Rising Star
Status: Offline
Joined: Dec 23, 200915Year Member
Posts: 770
Reputation Power: 35
Status: Offline
Joined: Dec 23, 200915Year Member
Posts: 770
Reputation Power: 35
Thanks For The Help .
It Helped A Lot.

Sticky?
#5. Posted:
Portland
  • Retired Staff
Status: Offline
Joined: Aug 12, 201014Year Member
Posts: 2,671
Reputation Power: 280
Status: Offline
Joined: Aug 12, 201014Year Member
Posts: 2,671
Reputation Power: 280
Updated:
Server options #1 & #2 done.

Coming soon:
Bukkit Plugins
How to hide your IP (So you don't have to give out your real IP address)
Server option #3 (This option to setup a server no longer works)

Edit: Windows tutorials coming soon (After linux)
-Thanks -Ant-

Recommendations are welcome, I will do my best to help out.


Last edited by Portland ; edited 2 times in total
#6. Posted:
Ant
  • V5 Launch
Status: Offline
Joined: Jun 12, 200915Year Member
Posts: 8,515
Reputation Power: 520
Status: Offline
Joined: Jun 12, 200915Year Member
Posts: 8,515
Reputation Power: 520
You should really include tutorials for those who use windows even though linux is more recommended for servers.

Not many people use linux nowadays.
#7. Posted:
Portland
  • Retired Staff
Status: Offline
Joined: Aug 12, 201014Year Member
Posts: 2,671
Reputation Power: 280
Status: Offline
Joined: Aug 12, 201014Year Member
Posts: 2,671
Reputation Power: 280
Update:
Hide your IP tutorial, done.
Some bukkit plugins added. (If you want more let me know)

Coming soon:
Windows tutorials
#8. Posted:
-TTG_DaN-
  • TTG Senior
Status: Offline
Joined: Jan 12, 201113Year Member
Posts: 1,781
Reputation Power: 76
Status: Offline
Joined: Jan 12, 201113Year Member
Posts: 1,781
Reputation Power: 76
Great Post Port! Im doing now!
#9. Posted:
Eminem-
  • TTG Fanatic
Status: Offline
Joined: Feb 21, 201014Year Member
Posts: 4,190
Reputation Power: 195
Status: Offline
Joined: Feb 21, 201014Year Member
Posts: 4,190
Reputation Power: 195
My router (which is Belkin) wont like support this. Like I type in my IP on the "Virtual Servers" page. And it says "Invalid IP." What do I do?!
#10. Posted:
xDiesel
  • TTG Senior
Status: Offline
Joined: Jul 12, 201014Year Member
Posts: 1,403
Reputation Power: 60
Status: Offline
Joined: Jul 12, 201014Year Member
Posts: 1,403
Reputation Power: 60
Awh Shucks, You created a kick-ass post once again.

Thanks for the nice tut!
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.