Difference between revisions of "My 7 Days to Die notes"
(9 intermediate revisions by the same user not shown) | |||
Line 15: | Line 15: | ||
root@hammerhead:~# cd /home/steamy/ <--------------- switched to steamy home directory | root@hammerhead:~# cd /home/steamy/ <--------------- switched to steamy home directory | ||
root@hammerhead:/home/steamy# | root@hammerhead:/home/steamy# apt-get install steamcmd <--------------- install SteamCMD | ||
...Steam doing stuff... | ...Steam doing stuff... | ||
Line 37: | Line 37: | ||
Steam>force_install_dir /home/steamy/7d2d <--------------- setup 7 Days to Die dedicated server directory | 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>app_update 294420 <--------------- install 7 Days to Die dedicated server (latest stable - to do experimental use "app_update 294420 -beta latest_experimental" | ||
...Steam doing stuff... | ...Steam doing stuff... | ||
Line 47: | Line 47: | ||
A note about setting up 7 Days to Die dedicated server installation directory. I used full path: <code>Steam>force_install_dir /home/<username>/7days2die</code> 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. | A note about setting up 7 Days to Die dedicated server installation directory. I used full path: <code>Steam>force_install_dir /home/<username>/7days2die</code> 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 " | '''Note: Using SteamCDM "app_update" may overwrite configuration files so back them up before updating app.''' | ||
=== Setup Byobu === | === Setup Byobu === | ||
Line 68: | Line 68: | ||
<code>steamy@hammerhead:~/7d2d$ vi serverconfig.xml</code> | <code>steamy@hammerhead:~/7d2d$ vi serverconfig.xml</code> | ||
=== | === Valmod Overhaul setup === | ||
[https://7daystodie.com/forums/showthread.php?31730-Valmod-Pack Valmod Overhaul] mod. | |||
To download and install Valmod Overhaul mod: | To download and install Valmod Overhaul mod: | ||
Line 89: | Line 89: | ||
master.zip 100%[==================================================================================================>] 11.63M 28.0MB/s in 0.4s | master.zip 100%[==================================================================================================>] 11.63M 28.0MB/s in 0.4s | ||
2018-08-25 15:18:20 (28.0 MB/s) - ‘master.zip’ saved [12192045/12192045] | 2018-08-25 15:18:20 (28.0 MB/s) - ‘master.zip’ saved [12192045/12192045]</pre> | ||
steamy@hammerhead:~/7d2d$ unzip master.zip | |||
Unpack zip files | |||
<pre>steamy@hammerhead:~/7d2d$ unzip master.zip | |||
...stuff being unzipped...</pre> | ...stuff being unzipped...</pre> | ||
Line 129: | Line 132: | ||
<code>steamy@hammerhead:~/7d2d$ rm -r Valmod-Overhaul-master/</code> | <code>steamy@hammerhead:~/7d2d$ rm -r Valmod-Overhaul-master/</code> | ||
=== [https://7daystodie.com/forums/showthread.php?76822-Ravenhearst-Mod Ravenhearst] Mod === | |||
Install game on dedicated Ubuntu server | |||
<pre>$ steamcmd | |||
Steam>login anonymous | |||
Steam>force_install_dir /home/steamy/rh | |||
Steam>app_update 294420 | |||
Steam>quit</pre> | |||
Change to rh directory, download mod, and configure files | |||
<pre>$ cd rh | |||
$ wget https://gitlab.com/jaxteller718/rh_5_4_17_4_server/-/archive/master/rh_5_4_17_4_server-master.zip | |||
$ unzip rh_5_4_17_4_server-master.zip | |||
$ cp -r rh_5_4_17_4_server-master/* ./ | |||
$ ls -l | |||
total 2453608 | |||
drwxrwxr-x 6 steamy steamy 4096 Jul 4 15:16 7DaysToDieServer_Data | |||
-rwxrwxr-x 1 steamy steamy 25555564 Jul 4 15:14 7DaysToDieServer.x86 | |||
-rwxrwxr-x 1 steamy steamy 25622120 Jul 4 15:14 7DaysToDieServer.x86_64 | |||
drwxrwxr-x 8 steamy steamy 4096 Jul 4 15:16 Data | |||
-rwxrwxr-x 1 steamy steamy 922064 Jul 4 15:16 libstdc++.so.6 | |||
drwxrwxr-x 2 steamy steamy 4096 Jul 4 15:16 Licenses | |||
drwxrwxr-x 20 steamy steamy 4096 Jun 21 11:15 Mods | |||
drwxrwxr-x 4 steamy steamy 4096 Jul 4 15:22 rh_5_4_17_4_server-master | |||
-rw-rw-r-- 1 steamy steamy 2438362114 Jul 4 15:19 rh_5_4_17_4_server-master.zip | |||
-rwxrwxr-x 1 steamy steamy 12139 Jul 4 15:16 serverconfig.xml | |||
-rwxrwxr-x 1 steamy steamy 887 Jul 4 15:16 startserver.sh | |||
-rwxrwxr-x 1 steamy steamy 6 Jul 4 15:16 steam_appid.txt | |||
drwxrwxr-x 5 steamy steamy 4096 Jul 4 15:16 steamapps | |||
-rwxrwxr-x 1 steamy steamy 21967073 Jul 4 15:15 steamclient.so | |||
$ ls -l Mods/ | |||
total 72 | |||
drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 JaxTeller718_NightTerrorsHordes | |||
drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 JaxTeller718_PickupFurniture | |||
drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 QuestSkillPoints | |||
drwxrwxr-x 4 steamy steamy 4096 Jun 21 11:15 Ravenhearst | |||
drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 RELXIX_UI_CompassCenterHighlight | |||
drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 RELXIX_UI_CompassStats | |||
drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 RELXIX_UI_MenuStats | |||
drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 RELXIX_UI_MenuTime | |||
drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 RELXIX_UI_PlayerStats | |||
drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 RELXIX_UI_ToolbeltSlotNumbers | |||
drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 RELXIX_UI_ZDP2_ZombieKillsDeaths | |||
drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 RobelotoCustomZombiesV20 | |||
drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 SMXhudBBM | |||
drwxrwxr-x 5 steamy steamy 4096 Jun 21 11:15 SMXmenu | |||
drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 TheaterScreens | |||
drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 VehicleAdjustments | |||
drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 VideoPlayers | |||
drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 ZombieHitDetriments</pre> | |||
Copy serverconfig.xml to new XML file (I used ravenNoobs.xml and modify to your liking). | |||
'''Start dedicated server''' | |||
$ ./startserver.sh -configfile=ravenNoobs.xml</code> | |||
=== Starting dedicated server === | === Starting dedicated server === | ||
Line 134: | Line 199: | ||
Start dedicated server | Start dedicated server | ||
<code>steamy@hammerhead:~/7d2d$ ./startserver.sh</code> | <code>steamy@hammerhead:~/7d2d$ ./startserver.sh -configfile=<xml_file_name.xml></code> | ||
Now detach session and then logout of SSH using Byobu by pressing F6. Your terminals sessions are persistent on dedicated server. | Now detach session and then logout of SSH using Byobu by pressing F6. Your terminals sessions are persistent on dedicated server. | ||
Line 154: | Line 219: | ||
[https://steamcommunity.com/sharedfiles/filedetails/?id=360404397 7 Days to Die dedicated server Linux community setup page] | [https://steamcommunity.com/sharedfiles/filedetails/?id=360404397 7 Days to Die dedicated server Linux community setup page] | ||
[http://www.servermanager.ca/host-multiple-7-days-to-die-servers/ Host multiple 7 Days to Die servers] | |||
== Some file locations == | |||
Some file locations that 7 Days to Die uses | |||
* Character .ttp files in format of <steamid>.ttp | |||
* serveradmin.xml | |||
Root directory | |||
<pre>/home/<username>/.local/share/7DaysToDie/Saves/</pre> | |||
<center>[[Linux|To Linux]]</center> | <center>[[Linux|To Linux]]</center> |
Latest revision as of 13:30, 4 July 2019
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# 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 (latest stable - to do experimental use "app_update 294420 -beta latest_experimental" ...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_update" 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
Valmod Overhaul setup
Valmod Overhaul mod.
To download and install Valmod Overhaul mod:
steamy@hammerhead:~/7d2d$ wget https://github.com/7days2mod/Valmod-Overhaul/archive/master.zip --2018-08-25 15:18:19-- https://github.com/7days2mod/Valmod-Overhaul/archive/master.zip Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112 Connecting to github.com (github.com)|192.30.253.113|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://codeload.github.com/7days2mod/Valmod-Overhaul/zip/master [following] --2018-08-25 15:18:20-- https://codeload.github.com/7days2mod/Valmod-Overhaul/zip/master Resolving codeload.github.com (codeload.github.com)... 192.30.253.121, 192.30.253.120 Connecting to codeload.github.com (codeload.github.com)|192.30.253.121|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 12192045 (12M) [application/zip] Saving to: ‘master.zip’ master.zip 100%[==================================================================================================>] 11.63M 28.0MB/s in 0.4s 2018-08-25 15:18:20 (28.0 MB/s) - ‘master.zip’ saved [12192045/12192045]
Unpack zip files
steamy@hammerhead:~/7d2d$ unzip master.zip ...stuff being unzipped...
Now you should have this directory structure:
steamy@hammerhead:~/7d2d$ ls -l Valmod-Overhaul-master/ total 128 drwxrwxr-x 5 steamy steamy 4096 Aug 19 19:38 'Bigger Backpack Mod' drwxrwxr-x 4 steamy steamy 4096 Aug 19 19:38 Data -rw-rw-r-- 1 steamy steamy 506 Aug 19 19:38 'Install Instructions.txt' drwxrwxr-x 4 steamy steamy 4096 Aug 19 19:38 Mods -rw-rw-r-- 1 steamy steamy 111241 Aug 19 19:38 ValmodInstallPhoto.png steamy@hammerhead:~/7d2d$
Copy the Valmod-Overhaul-master/Data Valmod-Overhaul-master/Mods directories up one level into 7 Days to Die installation directory:
steamy@hammerhead:~/7d2d$ cp -r Valmod-Overhaul-master/Mods ./ steamy@hammerhead:~/7d2d$ cp -r Valmod-Overhaul-master/Data ./ steamy@hammerhead:~/7d2d$ ls -l total 61428 drwxrwxr-x 6 steamy steamy 4096 Aug 25 15:00 7DaysToDieServer_Data -rwxrwxr-x 1 steamy steamy 24731600 Aug 25 12:41 7DaysToDieServer.x86 -rwxrwxr-x 1 steamy steamy 25004592 Aug 25 12:41 7DaysToDieServer.x86_64 drwxrwxr-x 7 steamy steamy 4096 Aug 25 12:41 Data -rwxrwxr-x 1 steamy steamy 922064 Aug 25 12:41 libstdc++.so.6 -rw-rw-r-- 1 steamy steamy 12192045 Aug 25 15:18 master.zip drwxrwxr-x 4 steamy steamy 4096 Aug 25 15:23 Mods -rwxrwxr-x 1 steamy steamy 7763 Aug 25 14:52 serverconfig.xml -rwxrwxr-x 1 steamy steamy 163 Aug 25 14:59 startserver.sh -rwxrwxr-x 1 steamy steamy 887 Aug 25 14:14 startserver.sh.bak -rwxrwxr-x 1 steamy steamy 6 Aug 25 12:41 steam_appid.txt drwxrwxr-x 5 steamy steamy 4096 Aug 25 12:41 steamapps drwxrwxr-x 5 steamy steamy 4096 Aug 19 19:38 Valmod-Overhaul-master
Remove Valmod master zip and Valmod-Overhaul-master directory:
steamy@hammerhead:~/7d2d$ rm master.zip
steamy@hammerhead:~/7d2d$ rm -r Valmod-Overhaul-master/
Ravenhearst Mod
Install game on dedicated Ubuntu server
$ steamcmd Steam>login anonymous Steam>force_install_dir /home/steamy/rh Steam>app_update 294420 Steam>quit
Change to rh directory, download mod, and configure files
$ cd rh $ wget https://gitlab.com/jaxteller718/rh_5_4_17_4_server/-/archive/master/rh_5_4_17_4_server-master.zip $ unzip rh_5_4_17_4_server-master.zip $ cp -r rh_5_4_17_4_server-master/* ./ $ ls -l total 2453608 drwxrwxr-x 6 steamy steamy 4096 Jul 4 15:16 7DaysToDieServer_Data -rwxrwxr-x 1 steamy steamy 25555564 Jul 4 15:14 7DaysToDieServer.x86 -rwxrwxr-x 1 steamy steamy 25622120 Jul 4 15:14 7DaysToDieServer.x86_64 drwxrwxr-x 8 steamy steamy 4096 Jul 4 15:16 Data -rwxrwxr-x 1 steamy steamy 922064 Jul 4 15:16 libstdc++.so.6 drwxrwxr-x 2 steamy steamy 4096 Jul 4 15:16 Licenses drwxrwxr-x 20 steamy steamy 4096 Jun 21 11:15 Mods drwxrwxr-x 4 steamy steamy 4096 Jul 4 15:22 rh_5_4_17_4_server-master -rw-rw-r-- 1 steamy steamy 2438362114 Jul 4 15:19 rh_5_4_17_4_server-master.zip -rwxrwxr-x 1 steamy steamy 12139 Jul 4 15:16 serverconfig.xml -rwxrwxr-x 1 steamy steamy 887 Jul 4 15:16 startserver.sh -rwxrwxr-x 1 steamy steamy 6 Jul 4 15:16 steam_appid.txt drwxrwxr-x 5 steamy steamy 4096 Jul 4 15:16 steamapps -rwxrwxr-x 1 steamy steamy 21967073 Jul 4 15:15 steamclient.so $ ls -l Mods/ total 72 drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 JaxTeller718_NightTerrorsHordes drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 JaxTeller718_PickupFurniture drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 QuestSkillPoints drwxrwxr-x 4 steamy steamy 4096 Jun 21 11:15 Ravenhearst drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 RELXIX_UI_CompassCenterHighlight drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 RELXIX_UI_CompassStats drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 RELXIX_UI_MenuStats drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 RELXIX_UI_MenuTime drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 RELXIX_UI_PlayerStats drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 RELXIX_UI_ToolbeltSlotNumbers drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 RELXIX_UI_ZDP2_ZombieKillsDeaths drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 RobelotoCustomZombiesV20 drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 SMXhudBBM drwxrwxr-x 5 steamy steamy 4096 Jun 21 11:15 SMXmenu drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 TheaterScreens drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 VehicleAdjustments drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 VideoPlayers drwxrwxr-x 3 steamy steamy 4096 Jun 21 11:15 ZombieHitDetriments
Copy serverconfig.xml to new XML file (I used ravenNoobs.xml and modify to your liking).
Start dedicated server
$ ./startserver.sh -configfile=ravenNoobs.xml
Starting dedicated server
Start dedicated server
steamy@hammerhead:~/7d2d$ ./startserver.sh -configfile=<xml_file_name.xml>
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.
Default 7 Days to Die dedicated server save game directory
The default location is in ~/.local/share/7DaysToDie/
To view the contents:
steamy@hammerhead:~$ ls -l ~/.local/share/7DaysToDie/
Resources
7 Days to Die dedicated server Valve Software developer page
7 Days to Die dedicated server Linux community setup page
Host multiple 7 Days to Die servers
Some file locations
Some file locations that 7 Days to Die uses
- Character .ttp files in format of <steamid>.ttp
- serveradmin.xml
Root directory
/home/<username>/.local/share/7DaysToDie/Saves/