Results 1 to 8 of 8
Like Tree4Likes
  • 1 Post By tdoyle
  • 2 Post By tdoyle
  • 1 Post By GtoXic

Thread: Installing game servers on your VPS

  1. #1
    tdoyle's Avatar
    tdoyle is offline x10Hosting Member
    Join Date
    Nov 2010
    Location
    Los Angeles, California
    Posts
    13

    Question Installing game servers on your VPS

    WARNING: Game servers take lots of resources. Ensure you have the proper resources to run a server. Usage of one of x10's Dedicated VPSes is EXTREMELY recomended

    Welcome to my tutorial! Here I'll teach you how to install different game servers on your VPS running CentOS. If you need any help or have any questions, just post them to this thread!

    Installing and setting up a Minecraft server

    The first thing you will need to do is install Java on to your server. Log in to your SSH as the "root" user. And enter this command into your SSH:
    Code:
    yum install \*java-1.6\*
    Once you do that, you will want to create a folder for the minecraft server files. Let's just drop them into the /srv folder. First make a a folder into the /srv directory:
    Code:
    mkdir /srv/minecraft
    Switch to the directory:
    Code:
    cd /srv/minecraft
    Now you will need to download the minecraft server java file:
    Code:
    wget http://www.minecraft.net/download/minecraft_server.jar
    The rest is pretty straight forward. Create a linux user and give it access to the folder.
    Code:
    /usr/sbin/useradd -d /srv/minecraft -s /bin/bash -c "Minecraft Server" minecraft; chown minecraft /srv/minecraft; passwd minecraft
    Now you can sign in to your server's ssh as the user "minecraft" with the password you selected earlier. Once you sign in, you will automatically go to the /srv/minecraft directory we set up before. Run this command and you should be good to go:
    Code:
    java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui

    Installing and setting up SRCDS for source games
    So you want to install a server for one of the popular source games? Let's start up the installation then! Let's make the default srcds folder:
    Code:
    mkdir /srv/srcds
    Install "ncompress" a dependencies for hldsupdatetool:
    Code:
    yum install ncompress
    Make the "srcds" user and assign it to the srcds folder:
    Code:
    /usr/sbin/useradd -d /srv/srcds -s /bin/bash -c "SRCDS" srcds; chown srcds /srv/srcds; passwd srcds
    Now log in to the "srcds" account on your ssh, once you get in run this command:
    Code:
    wget http://storefront.steampowered.com/download/hldsupdatetool.bin; chmod u+x hldsupdatetool.bin; ./hldsupdatetool.bin
    Follow the instructions and once it tells you that it finished extracting steam.tar.Z enter this command:
    Code:
    ./steam
    Once that command is finished installing the steam linux files (which you may need to install the previous command a few times) you'll want to install one of the games. Here is a list of the games you can install, and the command to install them:
    Click here for the list of game names
    Code:
    ./steam -command update -game "<game id>" -dir /srv/srcds
    Once you're done with this, you can run the game using these command:
    Code:
    cd orangebox
    
    ./srcds_run -console -game <game id> -port 27015 +maxplayers <amount of player> +map <map name>
    Thanks for reading! Let me know if you have any trouble!
    rahul.verma.iu84 likes this.

  2. #2
    Brandon's Avatar
    Brandon is offline Former Senior Account Rep
    Join Date
    Jun 2006
    Location
    Tewksbury, MA
    Posts
    9,612

    Re: Installing game servers on your VPS

    Thanks for the tutorial, Tom Doyle. I have moved this to the VPS Tutorials section.
    Thanks,
    Brandon Long | brandon[@]brandonlong[.]me

  3. #3
    tdoyle's Avatar
    tdoyle is offline x10Hosting Member
    Join Date
    Nov 2010
    Location
    Los Angeles, California
    Posts
    13

    Re: Installing game servers on your VPS

    Thanks brandon! I appreciate the move!
    dinomirt96 and karimirt47 like this.

    Web designer and developer ~ tdoyle.me

  4. #4
    tdoyle's Avatar
    tdoyle is offline x10Hosting Member
    Join Date
    Nov 2010
    Location
    Los Angeles, California
    Posts
    13

    Re: Installing game servers on your VPS

    You may need to chmod the folder to use SCP/FTP to upload files, for minecraft type this as the root user:
    Code:
    chmod 777 /srv/minecraft

    Web designer and developer ~ tdoyle.me

  5. #5
    tomtiger11 is offline x10Hosting Member
    Join Date
    Oct 2011
    Posts
    8

    Re: Installing game servers on your VPS

    tdoyle,

    You have to have an x10VPS D* package to host a web server :P

  6. #6
    GtoXic is offline x10 Support
    Join Date
    Apr 2010
    Posts
    637

    Re: Installing game servers on your VPS

    Quote Originally Posted by tomtiger11 View Post
    tdoyle,

    You have to have an x10VPS D* package to host a web server :P
    Please read the beginning of his post, you'll notice he mentioned Dedicated which is our D* package.
    Livewire likes this.
    GtoXic | x10Hosting Technical Support
    █ john.h[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

  7. #7
    tomtiger11 is offline x10Hosting Member
    Join Date
    Oct 2011
    Posts
    8

    Re: Installing game servers on your VPS

    Quote Originally Posted by GtoXic View Post
    Please read the beginning of his post, you'll notice he mentioned Dedicated which is our D* package.
    I meant, he says 'is extremely recommended', I was saying that you have to have a D* package.

  8. #8
    SierraAR's Avatar
    SierraAR is offline The Razgriz
    Join Date
    Aug 2010
    Location
    Washington, U.S.A.
    Posts
    806

    Re: Installing game servers on your VPS

    Any reason you replied to a year old thread to make that 'correction'?

    Let's not necro threads unless it's relevant, helpful information.
    ***I am taking a break from support to focus on getting into college. Wish me luck!
    Sierra Brown | x10Hosting Volunteer Support
    █ sierra[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

Similar Threads

  1. CoD: Black Ops to get Dedicated Game Servers
    By roh2cool in forum Off Topic
    Replies: 10
    Last Post: 06-07-2010, 01:01 AM
  2. got new game servers? that match this list?
    By D2Chaos in forum Classifieds
    Replies: 0
    Last Post: 07-03-2008, 09:16 PM
  3. Installing and Using Php Decoders in web servers
    By rkaraca in forum Off Topic
    Replies: 0
    Last Post: 02-23-2007, 01:03 PM
  4. Game Servers
    By dsfreak in forum Off Topic
    Replies: 5
    Last Post: 10-07-2005, 12:31 AM
  5. Cheap Game Servers
    By repusmod in forum Off Topic
    Replies: 2
    Last Post: 06-06-2005, 02:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
dedicated servers