Hurtworld Linux Server

I finally got a dedicated Hurtworld server to run on Debian Jessie:

1. Create a new user named “hwserver” and login:
adduser hwserver
su hwserver

2. Grab the install script I created:
wget http://from-beyond.com/downloads/hurtworld/hurtworldserver.tar.gz

3. Unpack the script and make it executable:
tarĀ -xvzf hurtworldserver.tar.gz
chmod +x ./install.sh

4. If your user name is “hwserver” as specified above, you can run the script now to install the dedicated server via SteamCMD:
./install.sh
IMPORTANT: If your user name is different from “hwserver” you need to edit the script accordingly before you run it. The default installation directory for the server is “serverfiles”. You can change it in the script if you want to (Do not use a trailing slash!):
nano ./install.sh

5. The script downloads and extracts SteamCMD, logs in anonymously, grabs the server files and finally links two files (steamclient.so and steam_appid.txt) to the positions where they seem to be expected.

6. Once everything is finished, you can start the server with “Hurtworld.x86” (I also tried “Hurtworld.x86_64” but it didn’t seem to work) in the installation directory. Add the desired parameters for server name, query port, player limit etc. as outlined here. Example:
/home/YOUR USER NAME/YOUR INSTALL DIR/Hurtworld.x86 -batchmode -nographics -exec "host 12871;queryport 12881;maxplayers 20;servername Linux Test Server" -logfile "gamelog.txt"
IMPORTANT: Don’t forget to open the specified ports in your firewall (in the example above 12871 TCP/UDP and 12881 UDP).

7. If you want to create a script to start the server, it could look something like this (using tmux):
#!/bin/bash
tmux new-session -d -s hurtworld '/home/YOUR USER NAME/YOUR INSTALL DIR/Hurtworld.x86 -batchmode -nographics -exec "host 12871;queryport 12881;maxplayers 20;servername Linux Test Server" -logfile "gamelog.txt"'
exit 0

Good luck with your server!