This document will outline common practices and procedures used to operate and maintain the PZ server that exists on a Vultr instance.
The instance is currently a basic type running an AMD processor. It has 16 Gb of memory, 80 Gb of disk space (SSD), 4 vCPUs, and is running Ubuntu 22.10. The software powering the server is the PZ dedicated server application that is downloaded directly from Steam. Steam is installed on the box. OpenSSH (Secure Shell) is installed. Firewall rules (UFW) restrict access to the box and only allow certain IP addresses to remotely access the server for either SSH or PZ connection. TMUX is used for terminal multiplexing to facilitate administration of the PZ server config.
The server can be accessed remotely using any lcoal SSH client. A private key is needed to access the server. This will be provided to whoever requires access. To access the server from a Windows instance, do the following:
- Download the Key file in this repository. Place it somewhere safe on your computer
- Open up Command Prompt via
Win+Rand typecmd - Type
ssh root@whiteforestinfosec.xyz -i <path_to_key_file> - Connection to the server is established
Once logged into the VPS, you should be greeted by the Ubuntu Welcome message. You will be logged in as root. In order to access the TMUX session setup for administration of the PZ server, do the following:
- Type
tmux attach -t 0(alternatively, you can hit theuparrow key two times) - You will enter the TMUX session which has two panes open. The pane on the top is for system monitoring, the middle pane is where the configuration files for the Zomboid game are. The pane on the bottom is the active PZ Server console which can be used to save, quit, execute events, or interact with the PZ game world in any number of ways.
- To switch between these windows, hit
CTRL+bsimultaenously and use either theupordownarrow key after hittingCTRL+b
To reboot the PZ server, do the following:
- Enter the PZ Server console
- Type
save - Type
quit - Hit the
uparrow key, or type./start-server.sh -servername two_frank - Hit enter
- The server will initiate the startup sequence
- Once you see
DISCORD DISABLEDand/orSERVER STARTEDthe server startup is complete
Most of the server settings can be found in the two_frank.ini file located at /home/pzuser/Zomboid/Server. You will need to open the file with a text editor and manually edit the values contained within. For a list of server options, see the PZ Wiki. To edit the settings and mods used by the server, do the following:
- If not already, switch to the middle window pane using
CTRL+band theup/downarrow key - Type
nano two_frank.iniand hitenteror hit theuparrow key a couple of times - You are now in the Nano text editor. Use the arrow keys to navigate. You can edit text like you normally would in Microsoft Word for example. Use
CTRL+up or down arrowto navigate faster. - For editing mods:
- Locate the
Mods=line - Append the MOD NAME to the end of the list, with a semi-colon
- Locate the
WorkshopItems=line - Append the WORKSHOP ID to the end of the list, with a semi-colon
- Once complete, hit
CTRL+xand hitYto save changes - Restart the server
- Locate the
- For Editing any other game settings:
- Locate the setting you want to change
- Change the value accordingly
- Hit
CTRL+xandYto save changes - Restart the server
To exit the server and close your remote session, do the following:
- Hit
CTRL+band thendto detach from the TMUX session - type
exit - You have closed connection to the server
Digital Ocean uses a loopback address on the network interface. For some reason, this causes a conflict with the PZ server networking setup, preventing players from succesfully establishing connection to the server. I have manually deleted the interface entry from the OS. However, in the event of a VPS restart, the interface will come back online and must be manually deleted again. To delete it, do the following:
- Type
ip a shto view and confirm presence of loopback (10.10.0.6/16) - Type
ip a delete 10.10.0.6/16 dev eth0 - Type
ip a shto confirm deletion