in Unturned

Create a dedicated Unturned linux server on Debian

Install dependencies.

As root

Interactive process

apt-get update && apt-get upgrade
apt-get install screen htop unzip wget dpkg

32 bits architecture

dpkg --add-architecture i386
apt-get update
apt-get install build-essential gcc-multilib rpm libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386

Mono runtime

apt-get install mono-reference-assemblies-2.0 mono-devel libmono-cil-dev mono-runtime

Unity 3D libraries

apt-get install libc6:i386 libgl1-mesa-glx:i386 libxcursor1:i386 libxrandr2:i386

Outside Linux box

Create a Steam Server Account.

In order to be able to run Unturned, Steam requires you to have a Steam account. You should create a new Steam account for this server, since you can’t use your personal Steam account simultaneously.

As root

clean working environment

adduser steam
su steam

As steam user

cd ~/
mkdir ~/steamcmd && mkdir ~/unturned

Install SteamCMD and Unturned.

cd ~/steamcmd
wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
tar xvf steamcmd_linux.tar.gz
chmod +x steamcmd.sh
./steamcmd.sh +@sSteamCmdForcePlatformBitness 32 +login "Your account ID" "Password" +force_install_dir ../unturned +app_update 304930 validate +exit

Install RocketMod for starting the server.

cd ..
wget https://ci.rocketmod.net/job/Rocket.Unturned/lastSuccessfulBuild/artifact/Rocket.Unturned/bin/Release/Rocket.zip
unzip Rocket.zip && rm -rf Rocket.zip
mv Scripts/Linux/RocketLauncher.exe unturned/
mv Scripts/Linux/*.sh .

If you want RocketMod on your server.

mv Modules/Rocket.Unturned/ unturned/Modules/ # DO NOT USE FOR VANILLA

Making server ready

nano update.sh

Here is where your Steam account that you created earlier is used. Put the username and password in there. If you want to keep your password private, keep the password string blank.

chmod +x update.sh
./update.sh # For updating server and downloading files
chmod +x start.sh
cp start.sh /home/steam/unturned/start.sh
cd unturned
./start.sh pvp # For running the server

As root

To start server on reboot

crontab -e

Insert this line

@reboot su steam -c "cd /home/steam/unturned && screen -dmS unturned ./start.sh pvp"

Leave a Reply to Bastian Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

11 Comments

  1. ./steamcmd.sh +@sSteamCmdForcePlatformBitness 32 +login “Your account ID” “Password” +force_install_dir ../unturned +app_update 304930 validate +exit What is the “Your account ID” ?

    My ID is 76561198870210736 But with my password it does not work

    • Account ID is your Steam64 ID. Your is a valid one. Not sure why you cant’t log in. Write is like: ./steamcmd.sh +@sSteamCmdForcePlatformBitness 32 +login 76561198870210736 YourPassword +force_install_dir ../unturned +app_update 304930 validate +exit . Change YourPassword with your steam passsword related to your account.

  2. When i start the server, it freezes on Loading Map Assets part. I don’t know what is happening, but i tried everything, changing VPS, reinstalling Unturned, changed Linux Distro, etc, etc. But it keeps crashing when Loading Map Assets. I am running the server on Amazon EC2.

    • The only solution I can help you with is to unsubscribing from Workshop items and try again. If you still get issues reply and I can take contact and try to help you.

      • Thanks for answering me. This was finally a RAM issue. I solved it ordering a bigger instance with more RAM in Google Cloud Platform. But anyway, again, thanks for answering me!

  3. When i want to start server on screen. the screen is terminating and i get error that there is not file of directory unturned. Please help

    • Not sure with so little information.
      Check that you are in correct directory. You should have a file called start.sh in the directory you try to start from. If still need help write what you have done and what commands you have been given.

      • I am in correct directory. When i want to satrat server on screen (screen -s unturned) i got a communicat that the screen is terminating and there is no directory unturned. when i write su steam -c “cd /home/steam/unturned && screen -dmS unturned ./start.sh pvp” the server starts but not on screen when i close putty servers close to

        • Can’t see any wrong in your commands. Make sure you run screen -s unturned as user steam and su steam -c “cd /home/steam/unturned && screen -dmS unturned ./start.sh pvp as root. If that don’t help try to reinstall screen and make sure you run unturned in i386 architecture.

  4. Hey! I’m running a server on RHEL 7, tool me some troubleshooting but is running in my VPS but there is an issue. As soon as I close the putty terminal the server process is kiled. I tried looking around but “To start server on reboot” is the closest to what I’m looking for. Any ideas to how execute the start script?

    • Try to put it in default init. On most systems it is systemd.
      There is no single way to do this. It depends on the particular Linux distribution and the service management daemon that comes with it.