Gebruikershulpmiddelen

Site-hulpmiddelen


installatie_handleidingen:7day_to_die_steam_server_on_ubuntu

Dit is een oude revisie van het document!


7days to Die stand alone server on Ubuntu

Start with a clone of the ubuntu clean image.

installation

user

Crete a user that will run the server proces:
useradd –comment “7days to die Server” -m 7days

change his shell:
chsh -s /bin/bash 7days

set his password:
passwd 7days

firewall

open the firewall for the ports of the server you decidet to run on:
firewall-cmd --permanent --add-port=26901/tcp
firewall-cmd --permanent --add-port=26901/udp
firewall-cmd --reload

software

Install prerequisites:
apt-get install wget
apt-get install screen
apt-get install lib32gcc1

get the Steam client:
cd /home/7days
wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz

unpack it and cleanup:
tar xvzf steamcmd_linux.tar.gz
rm steamcmd_linux.tar.gz

login to staem and get the 7days to die server software:
./steamcmd.sh

login yoursteamusername
password yoursteampassword
force_install_dir ./7daysded
app_update 294420 
quit

configuration

Now its time to configure the 7days to die server.

startscript

open the startscript:
cd 7daysded
vi startserver.sh

and change:

if [ "$(uname -m)" = "x86_64" ]; then
        ./7DaysToDieServer.x86_64 -logfile 7DaysToDieServer_Data/output_log_`date +%Y-%m-%d__%H-%M-%S`.txt -quit -batchmode -nographics -dedicated $PARAMS
else
        ./7DaysToDieServer.x86 -logfile 7DaysToDieServer_Data/output_log_`date +%Y-%m-%d__%H-%M-%S`.txt -quit -batchmode -nographics -dedicated $PARAMS
fi

to:

if [ "$(uname -m)" = "x86_64" ]; then
        ./7DaysToDieServer.x86_64 -configfile serverconfig.xml -logfile 7DaysToDieServer_Data/output_log_`date +%Y-%m-%d__%H-%M-%S`.txt -quit -batchmode -nographics -dedicated $PARAMS
else
        ./7DaysToDieServer.x86 -configfile serverconfig.xml -logfile 7DaysToDieServer_Data/output_log_`date +%Y-%m-%d__%H-%M-%S`.txt -quit -batchmode -nographics -dedicated $PARAMS
fi

config file

and adjust the config file:
vi serverconfig.xml

installatie_handleidingen/7day_to_die_steam_server_on_ubuntu.1543155903.txt.gz · Laatst gewijzigd: 2018/11/25 15:25 door abel