VPS FAQ and Tutorials

How to install a Garry's Mod server with Debian 8 ?
In this tutorial, we are going to see how to install a Garry's Mod server with Debian 8 (64Bits).

You should have a VPS GAME-8 Server at least to play in optimum conditions.

Dependancies


Execute this command to install all required dependancies :

sudo dpkg --add-architecture i386; sudo apt-get update; sudo apt-get install mailutils postfix curl wget file gzip bzip2 bsdmainutils python util-linux tmux lib32gcc1 libstdc++6 libstdc++6:i386 lib32tinfo5


Installation


Execute this command to create an user :

adduser gmodserver

Choose your password and skip details with your Enter key.

Connect as gmodserver :

su - gmodserver

Now, download server script :

wget https://gameservermanagers.com/dl/gmodserver

Make it executable :

chmod +x gmodserver

Launch the install (It can take a few minutes):

./gmodserver install


Commands


Basic Commands


Commands list :
./gmodserver

Start server :
./gmodserver start

Stop server :
./gmodserver stop

Restart server :
./gmodserver restart

Console (Use Ctrl+B then D to exit, Ctrl+C stop the server):
./gmodserver console

Update


Update (if needed) :
./gmodserver update

Force Update :
./gmodserver force-update

Verify server files :
./gmodserver validate

Debug


Get server informations :
./gmodserver details

Debug mode :
./gmodserver debug

Backup


Create a server backup (gzip) :
./gmodserver backup

Script from : gameservermanagers.