Personal tools

Server/Getting started/Linux Server

From JC2-MP Documentation

< Server
Revision as of 02:59, 7 December 2013 by RedCat (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Welcome to the JC2-MP Linux server tutorial. This page will explain the very basics of setting up a Linux server. This tutorial assumes you already have some basic Linux knowledge.

Downloading SteamCMD

First we need to download SteamCMD. For more information on SteamCMD please click here

Login to your server with SSH, then head over to the home directory, we will make our Steam folder there.

cd /home
mkdir steam
cd steam

Now we can download SteamCMD and unpack it.

tar -xvzf steamcmd_linux.tar.gz
rm steamcmd_linux.tar.gz

Running SteamCMD and downloading the server

Now we need to run SteamCMD.


SteamCMD will now update and it might download some files, wait till it finishes.

Now let's download the latest server version!

force_install_dir ./jcmp
app_update 261140

It will now download the latest server version. Once it is done downloading we can safely exit SteamCMD.


Changing the server options

First lets move to the JC2-MP server directory.

cd jcmp

Now use your favorite editor to edit the server's configuration file, I personally use nano.

nano config.lua

Every possible server option is explained in the configuration file. Simply follow the instructions.

Starting up the server in screen

Now that we have successfully downloaded the server and configured it, we can now start it up. We will do this in a screen.

If you do not have screen installed type:

apt-get install screen

And follow the instructions.

Now start the screen and the server.

screen -S jcmp -d -m ./Jcmp-Server

This will run a silent screen in the background.

To access the screen / JC2-MP server type the following:

screen -d -R jcmp

It should now say that the server has successfully started. You can press CTRL + A then CTRL + D to exit the screen safely without stopping the server.

You are now ready to play on your own server and you can start adding scripts and gamemodes.

Updating the server

To update the server to the latest version we will need to run SteamCMD again.

First cd to your Steam directory.

cd /home/steam

Now run SteamCMD.


Now let's update to the latest server version!

force_install_dir ./jcmp
app_update 261140

You can now quit SteamCMD.


Congratulations your server is now updated to the latest version!