Personal tools

Server/Getting started/Linux Server

From JC2-MP Documentation

< Server
Revision as of 23:52, 16 December 2013 by RedCat (Talk | contribs)

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.

64-bit servers

SteamCMD and their libraries are currently 32-bit only, so our server is limited to 32-bit. You can still run it on a 64-bit server by installing the required packages shown below.

Debian, Ubuntu, Mint

dpkg --add-architecture i386
apt-get update
apt-get install libc6-i386 lib32gcc1 lib32stdc++6

CentOS, RHEL, Fedora

yum install glibc.i686 libstdc++.i686

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 until it finishes.

Then it's time to login with an anonymous Steam account to get access to the server

login anonymous

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.

To stop the server and kill the screen type:

screen -S jcmp -X quit

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!