In this guide, you’ll be learning how to set up and install an Unturned server on Linux. Unturned is a popular survival game that is free to play.
The commands in this tutorial may vary slightly depending on your Linux distribution. It was originally tested against Ubuntu 16.04.
Before starting and running your server, there is compulsory software needed.
Download SteamCMD to the server.
wget http://media.steampowered.com/installer/steamcmd.zipNext, simply unzip the file you just downloaded:
unzip steamcmd.zipOnce the file has been unzipped, proceed to run SteamCMD:
wine steamcmd.exeNow that SteamCMD is running, log in to your secondary Steam account using the following code. Changing out username and password with your account details:
login username passwordYour account is now logged in. It’s time to define the install directory:
force_install_dir (Your servers file directory. Ex: /home/your/unix/folder)Download the game to the dedicated server using the following command:
app_update 304930You have now successfully installed SteamCMD and Unturned server files on your Linux server.
Logged in as root, add a user for Unturned.
adduser unt
adduser unt sudoNow that the user is added, switch accounts.
su untInstall Wine and Xinit:
sudo apt-get install wine xinitConfigure the server to allow any user to start it:
sudo dpkg-reconfigure x11-commonNow start it in headless mode.
tmux
startxThat’s done, now move to a new shell in TMUX using:
[CTRL]+[B], [C]Tell Wine to use the headless mode with:
export DISPLAY=:0.0Finally, start the Unturned server.
wine Unturned.exe -nographics (Add your command line options here) -svYour Unturned The server is now up and running.
The Unturned command line can be customized with the options below.
Map:
Arena
Pei
Gamemode:
-Bambi
-Normal
-Hardcore
-Gold
Sync Setting:
-Sync
-Nosync
PVP/PVE Setting:
-Pvp
-Pve
Misc:
-Pass: [PASSWORD]
-Port: [PORT NUMBER]
-Players: [PLAYER MAX]