How to create and manage a dedicated Unturned server on Linux

In this tutorial we will install a dedicated Unturned server on Linux. In the examples we used an Ubuntu 14.04 64 bits server, but any Unix system should work. I recommend DigitalOcean for fast and simple VPS servers.

Requirements

1. Install dependencies.

Add interactive process viewer and unzip utility.

sudo apt-get install screen htop unzip wget

Add 32 bits architecture libraries.

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

Add Mono runtime.

sudo apt-get install libmono2.0-cil mono-runtime

Add Unity 3D libraries.

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

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

3. Create a clean working environment.

Create a new user, for example steam and log in.

adduser steam
su steam
cd ~/

Create a folder steamcmd and unturned.

mkdir ~/steamcmd && mkdir ~/unturned

4. Install SteamCMD and Unturned.

Download the SteamCMD Linux installer and extract the tar ball.

cd ~/steamcmd
wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
tar xvf steamcmd_linux.tar.gz

Allow the file steamcmd.sh to execute and install Unturned on your machine. Replace Your account ID and Password with your Steam server account.

chmod +x steamcmd.sh
./steamcmd.sh +@sSteamCmdForcePlatformBitness 32 +login "Your account ID" "Password" +force_install_dir ../unturned +app_update 304930 validate +exit

5. Install RocketMod.

Head over to the RocketMod download page and download the latest Rocket for Unturned (linux).

To upload RocketMod to your server, you’ll need some SFTP client. If you’re running Windows or MacOS (OSX) I recommend Cyberduck. Linux desktops have built-in SFTP clients in for example Nautilus.

Extract the downloaded zip on your local machine and then upload the folder’s contents to your server, in the home directory of the user you created, in our instance /home/steam.

Move the RocketLauncher executable to the unturned folder.

cd /home/steam
mv MyRocketFolder/RocketLauncher.exe unturned/

Move all *.dll files to unturned/Unturned_Headless_Data/Managed.

mv MyRocketFolder/*.dll unturned/Unturned_Headless_Data/Managed

Finally, copy the start.sh and update.sh scripts to /home/steam.

cd /home/steam
mv MyRocketFolder/Scripts/*.sh .

6. Running the server.

To start a new instance of an Unturned server just run the following command in the /home/steam. Replace <instance> with for example pvp.

./start.sh <instance>