My 7 Days to Die notes
My 7 Days to Die dedicated server notes
Base system used for these notes is Ubuntu 18.04.1 LTS (Bionic Beaver) Desktop with minimum installation.
Install SteamCMD on Linux for dedicated servers
Installation steps taken from Valve Software SteamCMD wiki notes
My steps using Valve's wiki as guide:
$ sudo -i <--------------- switched to root root@hammerhead:~# adduser steamy <--------------- added user steamy ...follow the prompts... root@hammerhead:~# cd /home/steamy/ <--------------- switched to steamy home directory root@hammerhead:/home/steamy# sudo apt-get install steamcmd <--------------- install SteamCMD ...Steam doing stuff... root@hammerhead:/home/steamy# ln -s /usr/games/steamcmd steamcmd <--------------- link to SteamCMD executable root@hammerhead:/home/steamy# su - steamy <--------------- switched to user steamy steamy@hammerhead:~$ steamcmd <--------------- launch SteamCMD ...Steam doing stuff...you want to see these next messages... [----] Verifying installation... Steam Console Client (c) Valve Corporation -- type 'quit' to exit -- Loading Steam API...OK. <--------------- Good message! Steam>login anonymous <--------------- Login as anonymous user Connecting anonymously to Steam Public...Logged in OK Waiting for user info...OK Steam>force_install_dir /home/steamy/7d2d <--------------- setup 7 Days to Die dedicated server directory Steam>app_update 294420 <--------------- install 7 Days to Die dedicated server ...Steam doing stuff... Success! App '294420' fully installed. Steam>quit <--------------- exist SteamCMD
A note about setting up 7 Days to Die dedicated server installation directory. I used full path: Steam>force_install_dir /home/<username>/7days2die
because using relative paths ~/7d2d or ./7d2d with SteamCMD force_install_dir did not put my app files in default directory (not /home/steamy/7d2d). When I used full path /home/steamy/7d2d the install files went to /home/steamy/7d2d.
Note: Using SteamCDM "app_updat" may overwrite configuration files so back them up before updating app.
Setup Byobu
See My Byobu notes for setting up Byobu for dedicated Steam user.
I configured Byobu to automatically launch at login since my dedicated server is headless and I want persistent terminals.
Create startup script
Create startup script for x86 64-bit installs:
echo "./7DaysToDieServer.x86_64 -configfile=serverconfig.xml -logfile 7DaysToDieServer_Data/output_log__`date +%Y-%m-%d__%H-%M-%S`.txt -quit -batchmode -nographics -dedicated" > startserver.sh
Modify serverconfig.xml file
Edit server configuration
steamy@hammerhead:~/7d2d$ vi serverconfig.xml
Start dedicated server
steamy@hammerhead:~/7d2d$ ./startserver.sh
Now detach session and then logout of SSH using Byobu by pressing F6. Your terminals sessions are persistent on dedicated server.
Connect to your server.
Resources
7 Days to Die dedicated server Valve Software developer page
7 Days to Die dedicated server Linux community setup page