Jump to content

Setting up a Project Zomboid server on Linux (Update 34)


Askat

Recommended Posts

Hey Folks,

 

i tried the last hours to set up a linux server for Project Zomboid and it was very difficult to find some usefull informations, because all of it was very old.

So i want to share my short solution of setting up the server successfull at the end.

The instruction is for users with basic to advanced knowledge about linux.

1. Open the ports of you Router for UDP/TCP:
                16261 bis 162XX (XX = 61+<number of players>)
                8766 bis 8767
                27015 (TCP should be enough)

2. install steamcmd and login (for login: "login <username> <password>")
                Follow this instructions: https://developer.valvesoftware.com/wiki/SteamCMD#Linux

3. after login insert: "app_update 380870 validate"

4. go to the PZ folder in Steam/steamapps/common/... or where you forced the installation to.

5. "./start-server.sh" (give it some time, the process is not ready in a few seconds)

6. insert and confirm an admin password and wait until the process shows "Server Started" (or something like this)

7. shut it down and go to the folder: /home/<user>/Zomboid/Server/

8. edit servertest.ini (more or less important stats: MaxPlayers / RCONPassword / Password / server_browser_announced_ip; If you want to host a public Server, you need to edit the PUBLIC stats)

9. start the server with "./start-server.sh" again. You should be able to connect now

10. optional: start/stop Script

to start the server, create a new file with a name like "startZomboid.sh" and insert (Maybe you need to create the "output" folder in you user-space first):
#!/bin/bash
nohup ./start-server.sh &>/home/<user>/output/zomboid &
disown

 

and to stop the server create "startZomboid.sh" and insert:
#!/bin/bash
TEST=`ps -e | grep ProjectZomboid6 2>&1`
kill $TEST | cut -d' ' -f1

 

If you have any questions, hints or improvements, tell me ;)

Edited by Askat
PZ in title advertised
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...