7 Days to Die

From Q
Revision as of 21:24, 7 December 2016 by Tgurr (talk | contribs) (Run the server)
Jump to navigation Jump to search

Create a user for running 7 Days to Die

# useradd -m -s /bin/bash sevendtd

Become the sevendtd user so that any file you download is owned by the correct user.

# su -l sevendtd

Install the Steam command line interface

$ mkdir ~/SteamCMD
$ cd ~/SteamCMD
$ wget http://media.steampowered.com/client/steamcmd_linux.tar.gz
$ tar -xf steamcmd_linux.tar.gz

Test Steam.

$ ./steamcmd.sh
$ Ctrl-c

Obtain and run the server binary

$ mkdir ~/server
$ cd ~/SteamCMD
File: ~/SteamCMD/update_sevendtd.sh
./steamcmd.sh +login anonymous +force_install_dir ~/server +app_update 294420 +exit
$ chmod +x update_sevendtd.sh
$ ./update_sevendtd.sh

Run the server

$ tmux new -s sevendtd
$ cd ~/server
$ ./7DaysToDieServer.x86_64 -logfile 7DaysToDieServer_Data/output_log.txt -quit -batchmode -nographics -dedicated -configfile=serverconfig.xml
$ Ctrl-c

Edit configuration (the file is created when starting the server for the first time).

File: ~/serverconfig.xml
{
  [...]
  TODO
  [...]
}

Stopping the server

# su -l sevendtd
$ tmux attach -t sevendtd

On the 7 Days to Die server command-line.

$ Ctrl-c