[Tutorial] How to set up Bukkit on a Linux VPS

iHarrison

Member
Mar 11, 2012
321
131
Hey everyone,

Today I will be showing you how to install Bukkit on a remote Linux VPS. The same principals can be used if you have Linux installed on your own computer also, but keep in mind that everything is done through SSH/terminal.

Requirements:
  • Linux-powered VPS/PC
  • PuTTY or another SSH client (to connect to the VPS console)
If you are searching for a Linux VPS to host your server on then I recommend DataSphere. The server I have is hosted on there, and I have had no problems since.
  1. Connect to your server through SSH. Your server host should have provided you with the login details.
  2. Once you have logged in you should be introduced to a screen like this:
    qpcQY.png
  3. The next few stages involves typing a few commands into the terminal. First we need to create a folder to store your servers contents in:
    Code:
    mkdir /server
  4. Now let's go inside that directory
    Code:
    cd /server
  5. Now it's time to download the latest bukkit file. What we are about to use here is the wget command, which can be used for downloading files from the internet. Type this:
    Code:
    wget 'http://dl.bukkit.org/latest-rb/craftbukkit.jar'
  6. Now we need to create a .sh script that will keep your server running, whilst your SSH session is still closed. Type:
    Code:
    nano start-server.sh
  7. And put the following inside it:
    Code:
    #!/bin/sh
    screen java -Xincgc -Xmx1024M -jar craftbukkit-1.2.4-R1.0.jar
  8. Replace the -Xmx1024M with how much RAM you require. So if you wish to use 3GB RAM you would use -Xmx3072M
  9. If the file we just downloaded is not called craftbukkit-1.2.4-R1.0.jar (as shown in the script) then change it!
  10. To save the script, press Ctrl+X, then Y and then enter.
  11. To start your server you do the following:
    Code:
    sh start-server.sh
  12. And there you go! You should be taken to the server console and see your server startup for the first time. Type help for a list of commands if you're unsure what to do when using the console.
  13. If you close your SSH session and want to return to your console then type:
    Code:
    screen -d -r
  14. You can edit files such as server.properties or ops.txt using the same nano command as we did for the start-server.sh file. You can also install SFTP and access your server's files from here, which is MUCH easier than using the nano command, especially when dealing with large plugins that you need to configure.
I highly recommend you host your server on a Linux VPS as they are faster, cheaper and easy to run if you know your way around a Linux console. If you require any help feel free to reply to the thread below - I'll try to help as much as I can!

Thanks, and enjoy!
 

Users who are viewing this thread

Top