Difference between revisions of "My 7 Days to Die notes"

From Got Opinion Wiki
Jump to navigation Jump to search
Line 1: Line 1:
== My 7 Days to Die notes ==
== My 7 Days to Die dedicated server notes ==


Installation following Valve Software [https://developer.valvesoftware.com/wiki/SteamCMD#Linux.2FOS_X SteamCMD] wiki notes
Base system used for these notes is Ubuntu 18.04.1 LTS (Bionic Beaver) Desktop with minimum installation.


Start SteamCMD
=== Install SteamCMD on Linux for dedicated servers ===


<pre>cd ~
Installation steps taken from Valve Software [https://developer.valvesoftware.com/wiki/SteamCMD#Linux.2FOS_X SteamCMD] wiki notes
steamcmd</pre>


Login as anonymous user <code>login anonymous</code>
My steps using Valve's wiki as guide:


Set up app install directory <code>Steam>force_install_dir /home/<username>/7days2die</code>
<pre>$ sudo -i  <--------------- switched to root
root@hammerhead:~# adduser steamy  <--------------- added user steamy


'''Note: Using ~/7days2die or ./7days2die with SteamCMD force_install_dir did not put my app files in install directory that I specified. When I used full path /home/<username>/7days2die the install files went to directory I specified.'''
...follow the prompts...


Install (or update) using app_update command and Steam Application ID. Check [https://developer.valvesoftware.com/wiki/Dedicated_Servers_List dedicated server list].
root@hammerhead:~# cd /home/steamy/ <--------------- switched to steamy home directory
root@hammerhead:/home/steamy# sudo apt-get install steamcmd  <--------------- install SteamCMD


7 Days to Die with Steam Application ID <code>Steam>app_update 294420</code>.
...Steam doing stuff...


'''Note: Updating app may overwrite configuration files so back them up before updating app.'''
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</pre>
 
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 "app_updat" may overwrite configuration files so back them up before updating app.'''
 
=== Setup Byobu ===
 
See [[My Byobu notes]] for setting up [http://byobu.co/ 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:
 
<code>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</code>
 
Start dedicated server
 
<code>steamy@hammerhead:~/7d2d$ ./startserver.sh</code>
 
 
== Resources ==


[https://developer.valvesoftware.com/wiki/7_Days_to_Die_Dedicated_Server 7 Days to Die dedicated server Valve Software developer page]
[https://developer.valvesoftware.com/wiki/7_Days_to_Die_Dedicated_Server 7 Days to Die dedicated server Valve Software developer page]

Revision as of 12:03, 25 August 2018

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

Start dedicated server

steamy@hammerhead:~/7d2d$ ./startserver.sh


Resources

7 Days to Die dedicated server Valve Software developer page

7 Days to Die dedicated server Linux community setup page



To Linux