Linux Dedicated Server Guide (CachyOS)

Project Zomboid8 views5 min readby Maxtraxv3View on Steam ↗

Setup!

Note im using CachyOS
this is not for non ARCH os's

First lets get the server files, by downloading the server file updater/downloader
Open Konsole.
check for updates, so the OS has the most uptodate program list
sudo pacman -Syu
type your password when prompted and Y to any updates and install paru (most likely preinstalled just double check)
sudo pacman -S paru

then install SteamCMD (this what will update your server and download your files)
paru -S steamcmd
Press Q and then Y when user agreement shows up
and Y to any other prompts (it will install any dependancys required) once install lets run it once, so it can download the rest of Steam CMD
steamcmd

now you want to make a new text file so open any text editor (Kate is the default program)
and type:
@NoPromptForPassword 1 force_install_dir /home/LOGINNAMEHERE/Zomboid login anonymous app_update 380870 -beta unstable validate quit
this is for beta 42 multiplayer change it to this line for 41 "stable"
app_update 380870 validate

replace "LOGINNAMEHERE" with your users account name
(the one you used to login with) save it as
update_zomboid.txt
in your home folder
(witch is /home/LOGINNAME) then back in konsole where going to type
steamcmd +runscript $HOME/update_zomboid.txt

it should make a folder in your home directory called Zomboid and start downloading the server files, you should run this command every time you need to update your server. now run the server once to generate the server setting files
cd $HOME/Zomboid
then
bash start-server.sh
it will ask you to add an admin password on first run.
you can log in as admin by using the account name " admin " and that password you just setup.
once it finished type
quit
to close it.

Server Config!

now that you have downloaded the server files its time to modify the config files!

if we navigate to "/home/LOGINUSERNAME/Zomboid" there should be file called "Server"
in that folder you will have to Edit "servertest.ini" and you should give "servertest_SandBoxVars.lua" a good look as well.

here we can change the default welcome message at this line
ServerWelcomeMessage=Welcome to Project Zomboid Multiplayer! <LINE> <LINE> To interact with the Chat panel: press Tab, T, or Enter. <LINE> <LINE> The Tab key will change the target stream of the message. <LINE> <LINE> Global Streams: /all <LINE> Local Streams: /say, /yell <LINE> Special Steams: /whisper, /safehouse, /faction. <LINE> <LINE> Press the Up arrow to cycle through your message history. Click the Gear icon to customise chat. <LINE> <LINE> Happy surviving!

and you must add a name to your server here at this line:
PublicName=

and a public description at this line right blow it;
PublicDescription=

set your servers port
DefaultPort=16261

and remember to set a password for your Rcon weather you use it or not
RCONPassword=

i very much recommend read and going threw the files in the server folder and setting them up the way you like. once your done, open terminal and type:
cd /home/LOGINUSERNAME/Zomboid

then type this:
bash start-server.sh
this will run the server. you can type
quit
to save and quit your server

Mods!

now to add mods to your server, remember to make sure there the right version before you add any mods, becuase you will have to delete them manualy.

https://steamcommunity.com/app/108600/workshop/
this is the workshop to find any mode for your server on steam

you need each mods "Mod ID" name and "Workshop ID" witch can found here.
Normaly found in the mod description

copy each number and add it to servertest.ini at the line

Workshop ID:
WorkshopItems=
after each mod id number, you have put a ";" like this:
WorkshopItems=324879;32423;432423;42354364
note the last one doesnt need the ";" Mod IDs add them the same way to servertest.ini at this line:
Mods=

Map mods are a little different form normal mods
after adding the Workshop ID and Mod ID to "servertest.ini" you also need to find the line and add the Map Folder ID to it
Map=Greenport;Muldraugh, KY
this like works a lot like the others, with one exception, you HAVE to put "Muldraugh, KY" as the last map, or it wont work.

(Optional) spawn location for modded maps (not necessary if do not plan on players spawning there)
this will require you to download the mod first, so run your server with the Workshop ID, Mod ID and Map Folder ID, run the server once to download the files
the "spawnpoints.lua" is not always in the same spot and not all map mods have one

in order for the server to see it as a spawn location we need to edit "servertest_spawnregions.lua"
/home/LOGINUSERNAME/Zomboid/Server

we can add line after
{ name = "Riverside, KY", file = "media/maps/Riverside, KY/spawnpoints.lua" },
by pressing return or enter you just need to find where the file name
spawnpoints.lua if the map mod has one here
/home/maxtrax/Zomboid/Workshop/content/108600/WORKSHOPNUMBER/mods/MODID
replace "WORKSHOPNUMBER" with the Workshop ID and MODID with Mod ID should look like this when we add the file path
file = "/home/maxtrax/Zomboid/Workshop/content/108600/3033014448/mods/Greenport/media/maps/Greenport/spawnpoints.lua"

using the "Mod ID" as the "name" it should look like this
function SpawnRegions() return { { name = "Muldraugh, KY", file = "media/maps/Muldraugh, KY/spawnpoints.lua" }, { name = "West Point, KY", file = "media/maps/West Point, KY/spawnpoints.lua" }, { name = "Rosewood, KY", file = "media/maps/Rosewood, KY/spawnpoints.lua" }, { name = "Riverside, KY", file = "media/maps/Riverside, KY/spawnpoints.lua" }, { name = "Greenport", file = "steamapps/workshop/content/108600/3033014448/mods/Greenport/media/maps/Greenport/spawnpoints.lua" }, -- Uncomment the line below to add a custom spawnpoint for this server. -- { name = "Twiggy's Bar", serverfile = "servertest_spawnpoints.lua" }, } end
once you have done that your all set to run your server with mods.

This guide was created by its original author on the Steam Community. Are you the author and want it removed? Request removal.