Project Zomboid Server Setup Tutorial | Linux Guide

Поділитися
Вставка
  • Опубліковано 20 січ 2025

КОМЕНТАРІ • 102

  • @dtondo
    @dtondo Рік тому +2

    missed the part to configure a service

  • @xCalimocho
    @xCalimocho Рік тому +1

    When I close the cmd terminal, my server shoutdown. How can I fix it?

    • @luciandev
      @luciandev  Рік тому +1

      use screen, like how I do in the video. then when you detach from the screen it will stay running.

    • @xCalimocho
      @xCalimocho Рік тому

      Ok, thanks! Other cuestion. When I restart the server, the loot on the boxes dissapear. Any solution?

  • @h0stcr0w
    @h0stcr0w 6 місяців тому

    Hola, cuando agrego mods me da error de java, sin mods el server funciona perfecto, como puedo solucionar eso?

  • @Mr__pablo
    @Mr__pablo 5 місяців тому +1

    Hey man i wanna know if i have a cracked version of the game can i join the server ? Like Minecraft when you turn of the online mode

    • @luciandev
      @luciandev  5 місяців тому

      I'm sorry I don't know, I have a paid copy.

    • @plastikmind
      @plastikmind 3 місяці тому

      You need to change server settings to allow non-steam players, and then in the game client you need to run Project Zomboid with added -nosteam perimeter in launch options. Hope that helps!

  • @ZeusBlack71
    @ZeusBlack71 Рік тому +1

    Thanks for this!

  • @jacketsMusic
    @jacketsMusic Рік тому +1

    where can I find the IP that I can give to people out side of LAN

    • @luciandev
      @luciandev  Рік тому

      just type in what is my ip in google search and it will tell you, your public IP.

  • @renzukun1194
    @renzukun1194 2 роки тому +5

    Really nice tutorial. It was simple and clear. I do have a question. How do you change the name of the server from servertest? (Not talking about the public name that can be changed in the script using nano)

    • @luciandev
      @luciandev  2 роки тому

      Unfortunately, I'm not sure how you would change this. I've looked around some of the files to see where it's coded to create those files but I couldn't find anything. I did a google search that kind says you can rename them afterwards but that's one Windows and the startup script on Windows is different then the startup script for Linux.

    • @renzukun1194
      @renzukun1194 2 роки тому

      @@luciandev I see. Thanks for replying. I followed everything in your video and when it was time to connect to the server in game, it told me the server was not responding. Do you think it has something to do with the router setup that you mentioned in the video because I am using a rented VPS. I have not found any tutorial on how to make a PZ Server using a rented server so maybe everyone just assumes most tutorial are using rented servers.

    • @luciandev
      @luciandev  2 роки тому

      @@renzukun1194 If you are renting a VPS, then they more then likely already have all these ports open that's what they usually do at least. You just need to get the VPS's public facing IP and use that to connect.

    • @renzukun1194
      @renzukun1194 2 роки тому

      @@luciandev When I launch the server, it tells me in the log that "no upnp-enabled internet gateway found." I'm really new to this kind of stuff. This is even my first time using a terminal/console typing in commands. DO you think you know what may be the problem?

    • @luciandev
      @luciandev  2 роки тому

      @@renzukun1194 upnp has to do with the modem/router what service provider are you using to host your machine?

  • @benoitripoche4482
    @benoitripoche4482 Рік тому

    Hi, thanks for this video!
    I have a problem when I run the command "./start-server.sh". At one point I get the following message: "No UPnP-enabled Internet gateway found, you must configure port forwarding on your gateway manually in order to make your server accessible from the Internet" then the script gets stuck at the "LOADING ASSETS: START" step.
    Do you think this is related to the message about port forwarding configuration? I don't know much about server administration (it's a VPS I'm renting). Can you help me solve this problem? Thanks in advance.

    • @RTOmega
      @RTOmega Рік тому

      same thing is happenning to me rn.

    • @aiden713
      @aiden713 7 місяців тому

      Did anyone ever get a solution? When I type "./start-server.sh" it says " no such file or directory"

    • @jessejohnson529
      @jessejohnson529 Місяць тому

      you can safely disable UPnP. I have never needed to use that to connect to a game. you might need it if NATting but I doubt it.

  • @Legomaniac359
    @Legomaniac359 7 місяців тому +1

    Great tutorial thanks

  • @tanner1662
    @tanner1662 Рік тому

    Hey thanks for the vid, i do have a slight problem despite following to a T. my server is up and ive done the ufw and also forwarded my ports on my router but the server says its not responding. Ive been looking for about 4 hours for a fix, would you by chance have an idea?

    • @luciandev
      @luciandev  Рік тому

      Are you hosting on the same machine you are playing?

    • @tanner1662
      @tanner1662 Рік тому

      @@luciandev no i actually figured it out, just had to restart my modem to get the ports to actually take effect. I am having a problem with trying to allocate more ram though. everything i find is for windows

  • @Tefz.
    @Tefz. 11 місяців тому +1

    great tutorial, i do have a question, i want to reset the pz server world, how do you do that

    • @jessejohnson529
      @jessejohnson529 Місяць тому

      I believe you would edit the servertest.ini World name, as you would for other games. Minecraft is like this. There should be a corresponding World file in the Saves folder?

  • @sokoloft3
    @sokoloft3 Рік тому

    I've setup servers before. I don't understand why I cant connect to the pz server. I don't have ufw.

    • @sokoloft3
      @sokoloft3 Рік тому

      apparently ufw isn't a command unless you run sudo which iirc has gotten me in the past so I thought it wasn't installed... I'm going to alias it in my bashrc to use sudo...

  • @primerovski6008
    @primerovski6008 Місяць тому

    How do i allocate more Ram to the server?

    • @luciandev
      @luciandev  Місяць тому +1

      You should be able to edit your startup script to give it more ram. JAVA_OPTS="-Xmx4G -Xms4G" replace the 4 with however many gb's you want.

    • @primerovski6008
      @primerovski6008 Місяць тому

      @@luciandev Ty, I have been experiencing problems with black boxes and safety cones on the road when driving with friends, could it be due to lack of ram or some mod?

  • @m4dburguezza
    @m4dburguezza Рік тому

    Hello and thanks for your tutorial! I'm having an error when launching steamcmd, it tries to install the update but I get a fatal error with no more details. Do you know what could be causing it?

    • @m4dburguezza
      @m4dburguezza Рік тому

      Oh by the way, I'm using CentOS 7 not Ubuntu

    • @luciandev
      @luciandev  Рік тому +1

      Make sure that the required libraries are installed on your CentOS system. SteamCMD may rely on certain 32-bit libraries.
      sudo yum install glibc libstdc++.i686
      If you have SELinux enabled, it might be blocking SteamCMD. Temporarily disable SELinux or configure it to allow SteamCMD
      sudo setenforce 0
      Make sure your system packages are up to date by running
      sudo yum update
      PS: Since CentOS is no longer being worked on (Switched to RHEL). I'd recommend switching if you don't want to use Ubuntu you can you Debian as well. But CentOS should still work by all means just stating that for updates & security.

    • @m4dburguezza
      @m4dburguezza Рік тому

      ​@@luciandevThanks for your quick response! And it was SELinux, I disabled it and could finish the installation of the updates! I can continue with the tutorial now. Thanks a lot!

    • @m4dburguezza
      @m4dburguezza Рік тому

      @@luciandev Nevermind, I was so sick I saved up all the important stuff I had in my VPS and wiped CentOS 7 out of existence.
      I installed Debian 12 and now everything worked flawlessly, I could finally join the server and play :) thanks!

  • @EthanX1ao
    @EthanX1ao Рік тому +2

    Great video! I always have a question that what is the advantage of hosting PZ server on Linux instead of Windows? Do Linux servers have better optimization or being easier to manage?

    • @luciandev
      @luciandev  Рік тому +3

      Stability and Reliability: Linux is known for its stability and reliability.
      Performance: Linux is generally considered to be more lightweight and resource-efficient compared to Windows.
      Security: Linux is known for its strong security features. It benefits from a more secure design, frequent security updates, and a wide range of security tools and practices.
      Cost-effectiveness: Linux is an open-source operating system, meaning it is generally available for free.
      Flexibility and Customization: Linux offers a high degree of flexibility and customization.

    • @kila3477
      @kila3477 4 місяці тому +1

      @@luciandev chat gpt ass response 😭

  • @Ross_C
    @Ross_C Рік тому

    Thanks for this! Very helpful

  • @Patrone-Gaming
    @Patrone-Gaming 5 місяців тому

    why after use screen failed connected steam

    • @luciandev
      @luciandev  5 місяців тому

      I'm not sure so you trying to use steamcmd after you go into screen?

  • @nicholasfigueroa4478
    @nicholasfigueroa4478 Рік тому

    Hello! Awesome tutorial. Just a couple questions. How can you stop and restart the server? I'd like to be able to stop it to modify config files and stuff without having to basically turn off the whole instance and restart it. Thanks!!

    • @luciandev
      @luciandev  Рік тому +1

      There isn't a UI, really only thing you can do is close the cmd window make your changes and then run the startup.bat again to start the server backup.

  • @BionicProgram
    @BionicProgram Рік тому

    Thank you very much for the tutorial!

  • @jarotjarotthej6958
    @jarotjarotthej6958 10 місяців тому +1

    Omg, so helpfull thx

  • @mario.bomfim
    @mario.bomfim Рік тому

    Do you know a way to do the same in OS X ? I facing some issues with installation. Great video btw!

  • @모닝두유
    @모닝두유 2 роки тому

    I want to set high memory in linux ProjectZomboid64 file. Do you know how to do it?

    • @luciandev
      @luciandev  2 роки тому

      What exactly do you mean? You trying to set a memory limit of the program?

  • @mrjbalisong3589
    @mrjbalisong3589 Рік тому

    hi do you had tutorial for windows also ?

    • @luciandev
      @luciandev  Рік тому

      Yes I do ua-cam.com/video/sgLky2H-zO8/v-deo.html

  • @jonayamaha3215
    @jonayamaha3215 Рік тому

    stoobid question, i just bought a server computer (hp proliant) just for the lulz of it, my brother plays this game, i would like to make (deploy is the correct term?) a server on linux, but my brother and their friends uses windows computers, can they join the server anyways? i know this is basic computer knowledge but i cant find the answer online, greetings from Argentina, thanks for the video.

    • @luciandev
      @luciandev  Рік тому +1

      Simple & Short answer is yes.

    • @jonayamaha3215
      @jonayamaha3215 Рік тому

      @@luciandev all i needed, now let me cook boss *puts hacker hoodie*. No seriously man thanks a lot, i undestood the wiki tutorial, but your video is better for a noob like me.

    • @luciandev
      @luciandev  Рік тому

      @@jonayamaha3215 No problem, some people understand better when they visually see it happen rather then reading it.

  • @420BongHit
    @420BongHit Рік тому

    What did i wrong if permission denied ? I have a partition (mounted as /zomboid with files from old server, i want to see it it's possible to fire up old world.

    • @luciandev
      @luciandev  Рік тому

      You should just be able to port the save over. As far as perms denied i'm not sure. Where are you getting that error at exactly?

  • @chadmitchell4634
    @chadmitchell4634 11 місяців тому

    Hello sir, I have a question if you are still monitoring your videos

    • @luciandev
      @luciandev  11 місяців тому +1

      I do still monitor all my videos, I'll try to help you best I can.

    • @chadmitchell4634
      @chadmitchell4634 11 місяців тому

      @luciandev sorry I meant no offense. Just assuming there are console commands to shutdown the server?

  • @paulklimes5199
    @paulklimes5199 8 місяців тому +2

    worked amazing! my question is can i run different game servers simultaneously on the same machine?

    • @luciandev
      @luciandev  8 місяців тому +2

      As long as they are using different ports then yes.

  • @kaisoku202
    @kaisoku202 10 місяців тому

    how can I join the server?

    • @luciandev
      @luciandev  10 місяців тому

      You should be able to type in the IP Address of the server and join that way.

  • @Camillo_1
    @Camillo_1 2 роки тому

    what if the architecture is ARM?

    • @luciandev
      @luciandev  2 роки тому +1

      That I don't know, I haven't built anything using ARM. I would have to do research myself to find out.

  • @intervjaurenh4060
    @intervjaurenh4060 2 роки тому

    Is there a way to use systemctl for this?

    • @luciandev
      @luciandev  2 роки тому +1

      Yes you could, you have to create a service by typing
      sudo nano /etc/systemd/system/pzserver.service
      after that you would need a script that I don't have on hand to give you. After the script though close it and save it.
      once that is done you can enable the service to start & stop with the machine by doing
      sudo systemctl enable pzserver.service
      and to start the game for the first time you do
      sudo systemctl start pzserver.service

    • @intervjaurenh4060
      @intervjaurenh4060 2 роки тому

      @@luciandev Thanks so much!

    • @luciandev
      @luciandev  2 роки тому

      @@intervjaurenh4060 You're welcome. I don't usually cover this type of stuff in my videos because I try to make them as user friendly as possible. Mainly for people who haven't used linux before and adding in steps like might seem overwhelming to some people so I like to keep is simple in my videos. I might do something like this in the future as a totally separate video because you can do this with any server really.

  • @Niki-kd6qr
    @Niki-kd6qr Рік тому

    can the terminal be closed?

    • @luciandev
      @luciandev  Рік тому

      Yea, as long as you put it inside the a screen

    • @Niki-kd6qr
      @Niki-kd6qr Рік тому

      @@luciandev Thank you for answering but I think it is not possible to create a server with ionos vps, already and trying with many tutorials

    • @luciandev
      @luciandev  Рік тому

      @@Niki-kd6qr I've never heard of that company, so I'm not sure. But I ran my server on Linux so I know it works just fine on linux.

    • @Niki-kd6qr
      @Niki-kd6qr Рік тому

      @@luciandev Where did you hire your server?

    • @luciandev
      @luciandev  Рік тому

      @@Niki-kd6qr I own my servers.

  • @adrien2373
    @adrien2373 Рік тому

    Hey! Thanks for you video! I'm running a few other game servers on my servers as well. How can I give the zomboid server a small amount of RAM? I don't want it to use up all the ram I have! 😁

    • @luciandev
      @luciandev  Рік тому +1

      edit your start-server.sh & ProjectZomboid64.json and modify lines containing -Xms2048m to the amount of memory you desire it to use. save the file and start the server.

    • @adrien2373
      @adrien2373 Рік тому

      @@luciandev thanks a lot! 👍🏻 I'll try that tomorrow

    • @adrien2373
      @adrien2373 Рік тому

      I set the public-setting in the server-start file to true. There's a password as well and in the log it says "no upnp enabled, enable in order to make your server accessible from the internet". I'm able to connect to the server with the password when i put the IP and the port in the search bar on the right in-game. How can I make it public and easy to find without any password needed?

    • @luciandev
      @luciandev  Рік тому

      @@adrien2373 In the Zomboid folder you need to edit the settings to remove any kind of "Server Password" as far us upnp goes that has to do with your firewall so make sure your ports are open and you should be good to go.

    • @adrien2373
      @adrien2373 Рік тому

      @@luciandev so letting the server password empty should do the trick? I opened the 4 ports as shown in your video already

  • @intervjaurenh4060
    @intervjaurenh4060 2 роки тому

    How do I update my server?

    • @luciandev
      @luciandev  2 роки тому

      You could make a script, or you can go back into steamcmd and redo that process force_install_dir - > Login anonymous - > app_update

  • @davidhiguera3078
    @davidhiguera3078 Рік тому

    Hi, awesome tutorial, one question, how do I access the server to do /save /quit if i want to restart it if I shutdown the pc where I ssh from? I'd like to keep my server running 24/7.

    • @luciandev
      @luciandev  Рік тому +2

      If those are commands (/save) you would type those in the console. Which would been in the screen that you created during the tutorial. As far as SSH goes, you can ssh into your server with Command Prompt (CMD) or you can download a third party software such as PuTTy.
      If your linux is own it's own dedicated machine then yes you could run it 24/7 even if you shutdown your personal machine. As long as the server's machine is still running.

  • @555-l6g
    @555-l6g Рік тому +1

    Hell YEAHHHH~~

  • @duchyofducklings
    @duchyofducklings Рік тому

    hi cant login to anonymous

    • @luciandev
      @luciandev  Рік тому

      Does it give you some type of error, it doesn't require a password or anything. You should be able to login to it without any issues.

    • @duchyofducklings
      @duchyofducklings Рік тому

      @@luciandev Waiting for user info...FAILED (Timed out)

  • @matteobalsotti
    @matteobalsotti Рік тому

    Good Tutorial, but sembra che tu c'abbia voglia di morì dalla voce

  • @zinkafeina
    @zinkafeina Рік тому +1

    hey, how can i make my server appear on the server list?