Difference between revisions of "Server Setup"

(World Files)
(Terraria)
Line 60: Line 60:
  
 
== Terraria ==
 
== Terraria ==
 +
Terraria doesn't get updates via SteamCMD, but from Terraria's website. Below details how to update the server and how to manage worlds.
 +
 +
=== Updating Server Software ===
 +
*Shutdown the Terraria server software
 +
*<code>screen -x terraria</code>
 +
*<code>exit</code>
 +
*Server software will shutdown and save the world.
 +
*Go to [https://terraria.org/ Terraria's] website
 +
*Scroll to the bottom of the page and locate PC Dedicated Server
 +
*Download the ZIP.
 +
*Upload the contents of the ZIP to <code>~/terraria</code>, replacing anything prompted.
 +
*Start the server again by running <code>sh start.sh</code>
 +
 
== Minecraft ==
 
== Minecraft ==

Revision as of 00:51, 1 June 2021

Quick guide to setting up the MC server for Admins to follow and to manage the DoI, Terraria and Valheim servers. While the information here is specific to this server, it can be adapted for pretty much any other use case as well.

This guide assumes you have some basic Linux/BASH knowledge.

Getting Started

First, tools needed to get the job done.

Required:

Recommended:

While you can manage it all just in the Terminal, these tools make things significantly easier and more organized.

Starting Software

Hopefully you will not need to do this, but if there is a power failure or a full system reboot for some reason these steps are important.

  • Login to the server. You will see the Welcome Screen.

Welcome Screen

  • Run sh startserver.sh and you will see the below:

StartServer.png

  • All servers listed will start up in their own screen with the associated name. If you cannot remember the name of a screen just issues screen -ls
  • To exit a screen issue Ctrl+A, D

All servers are located or synlinked from the home directory.

HomeDirectory.png

Day of Infamy

Day of Infamy is the easiest server to start. It should just be running with the initial start script from before.

Restart Server Software:

  • screen -x doi
  • Ctrl+C to close the server.
  • sh start.sh to start the server.

Valheim

Valheim is a bit more complicated. It is still getting updates and requires SteamCMD to update. Below are the steps to update the server and change some details, like port number, World, etc.

Updating Server Software:

  • screen -x valheim
  • Ctrl+C to stop the server.
  • steamcmd to open the SteamCMD client.
  • login anonymous to login without an account.

SteamCMD.png

  • app_update 896660 to update the game. Wait for it to download/install.
  • exit to exit SteamCMD.

UpdateSteamCMD.png

  • sh start.sh to start the server again.
  • Ctrl+A, D to exit Valheim's screen.

World Files

Located at ~/valheim is the start_server.sh that controls some options and starts the server. Most importantly it allows you to change the world and set the server's password. Also ~/valheim has the worlds directory. Either delete the old world from the directory or change the name in start up script to have a new world.

ValheimDirectory.png

ValWorlds.png

ValheimStart.png

Terraria

Terraria doesn't get updates via SteamCMD, but from Terraria's website. Below details how to update the server and how to manage worlds.

Updating Server Software

  • Shutdown the Terraria server software
  • screen -x terraria
  • exit
  • Server software will shutdown and save the world.
  • Go to Terraria's website
  • Scroll to the bottom of the page and locate PC Dedicated Server
  • Download the ZIP.
  • Upload the contents of the ZIP to ~/terraria, replacing anything prompted.
  • Start the server again by running sh start.sh

Minecraft