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.

Webmentions

  • Setup Commands Unturned on Linux Debian Server – Gusse 2018-04-05

    […] Log in as the user that running Unturned. (User created her.) […]