In this tutorial, I'll be explaining how to to setup a 7 Days to Die server on CentOS 7.
You need to own this game on your Steam account.
Let's make sure the system is fully updated before we start. Then we'll be creating a new user for the server. Make sure to use a tough password.
yum update yum upgrade -y adduser 7d2d passwd 7d2d
Let us also open the necessary firewall ports.
firewall-cmd --zone=public --add-port=26900/tcp --permanent firewall-cmd --zone=public --add-port=26900/udp --permanent firewall-cmd --reload
Install the required libs to run SteamCMD.
yum install glibc.i686 libstdc++.i686 -y
Now, let's switch to the user that we have just created.
su 7d2d cd ~
Time to download SteamCMD.
wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz tar xf steamcmd_linux.tar.gz
Now we have to run SteamCMD and install the server files. Please note, if you have Steam Guard enabled, you have to check your email for the code to login.
./steamcmd.sh login YourAccount *enter your password and steam guard code if necessary* force_install_dir ./7d2d app_update 294420 validate
The server software is now installed.
Want to customize the name, description and perhaps the slots of the server?
To change the name of your server, edit the file
Only change the value inside the
My Game Hostto whatever you want.
8to the amount of slots you want. Max slots is
A 7 Days to Die serverto the description of your choice.
Need to update due to Steam Updates? Don't worry! With this simple script, you can update your server in just one command.
Let's create the file
Then, paste the following:
login YourUser YourPassword force_install_dir ./7d2d app_update 294420 quit
And now to update your server, all you have to do is run the following command:
cd ~ ./steamcmd.sh +runscript update_7d2d.txt
Navigate to the following folder and run your server.
cd /home/7d2d/7d2d/ screen -dmS 7d2d ./startserver.sh -configfile=serverconfig.xml
The server is now running in the background. To shut down the server, run the following command:
Enjoy your new 7D2D server!