7 Days to Die: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Create a user for running 7 Days to Die == {{Root|useradd -m -s /bin/bash sevendtd}} Become the sevendtd user so that any file you download is owned by the correct user...." |
|||
| Line 36: | Line 36: | ||
{{Command|tmux new -s sevendtd}} | {{Command|tmux new -s sevendtd}} | ||
{{Command|cd ~/server}} | {{Command|cd ~/server}} | ||
{{Command|./7DaysToDie.x86 -configfile=serverconfig.xml -logfile 7DaysToDie_Data/output_log.txt $@}} | {{Command|<nowiki>./7DaysToDie.x86 -configfile=serverconfig.xml -logfile 7DaysToDie_Data/output_log.txt $@</nowiki>}} | ||
{{Command|Ctrl-c}} | {{Command|Ctrl-c}} | ||
Revision as of 14:19, 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
$ 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
$ ./7DaysToDie.x86 -configfile=serverconfig.xml -logfile 7DaysToDie_Data/output_log.txt $@
$ 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