7 Days to Die: Difference between revisions

From Q
Jump to navigation Jump to search
Tgurr (talk | contribs)
Tgurr (talk | contribs)
Line 36: Line 36:
{{Command|tmux new -s sevendtd}}
{{Command|tmux new -s sevendtd}}
{{Command|cd ~/server}}
{{Command|cd ~/server}}
{{Command|<nowiki>./7DaysToDieServer.x86_64 -configfile=serverconfig.xml -logfile output_log.txt $@</nowiki>}}
{{Command|<nowiki>7DaysToDieServer.x86_64 -logfile 7DaysToDieServer_Data/output_log.txt -quit -batchmode -nographics -dedicated -configfile=serverconfig.xml</nowiki>}}
{{Command|Ctrl-c}}
{{Command|Ctrl-c}}



Revision as of 21:24, 7 December 2016

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