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

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

  1. 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.

  2. 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.