Starting with a fresh Ubuntu 14.04 x86_64 installation:
Code:sudo apt-get update && sudo apt-get upgradeCode:sudo apt-get -y install software-properties-common lib32gcc1 screen libc6-amd64Code:sudo add-apt-repository -y ppa:ubuntu-wine/ppa && sudo apt-get updateCode:sudo apt-get -y install wine1.7 winetricks xvfbCode:sudo useradd -m steamCode:sudo usermod -aG sudo steamCode:sudo passwd steamCode:sudo su - steamCode:mkdir ~/steamcmdCode:cd ~/steamcmdCode:wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gzCode:tar -xvzf steamcmd_linux.tar.gzCode:/home/steam/steamcmd/steamcmd.sh +\@sSteamCmdForcePlatformType windows +login anonymous +force_install_dir /home/steam/hurtworld +app_update 405100 validate +quit*** IGNORE THIS PART IF YOU DO NOT WANT TO INSTALL OXIDE ***Code:cd /home/steam/hurtworld
Code:wget -O Oxide.zip https://github.com/OxideMod/Snapshots/blob/master/Oxide-Hurtworld.zip?raw=true*** END OF OXIDE PART ***Code:unzip -o Oxide.zip
Code:rm -rf ~/.wine64Code:wineboot --updateCode:vi start.sh*COPY PASTE THE ABOVE INTO start.sh , EDIT THE NECESSARY (name, admin steamid64)*Code:WINEARCH=win64 WINEPREFIX=~/.wine64 /usr/bin/xvfb-run --auto-servernum --server-args='-screen 0 640x480x24:32' /usr/bin/wine Hurtworld.exe -batchmode -nographics -exec "host 12871;queryport 12881;servername Pretermit;addadmin 76561198131650131;maxplayers 50" -logfile "gamelog.txt"
*PRESS INSERT ON YOUR KEYBOARD BEFORE PASTING IN VI!!*
*ONCE PASTED, PRESS [ESC], THEN TYPE
This will write/quit the file.Code::wq
Code:chmod +x start.shCode:screen -S hurtworldserver*** FOR THOSE WITH stream failed ERROR: ****Code:./start.sh
Stop server (CTRL+C) then add ports to iptable:
Now relaunch server (./start.sh)Code:iptables -A INPUT -p tcp --dport 12881 -j ACCEPT iptables -A INPUT -p udp --dport 12881 -j ACCEPT iptables -A INPUT -p tcp --dport 12871 -j ACCEPT iptables -A INPUT -p udp --dport 12871 -j ACCEPT
************************************************
*PRESS [CTRL]+[A]* (together)
*PRESS [D]* (after letting go of Ctrl+a)
This returns you to main screen.
To return to the server just type:
*END*Code:screen -r hurtworldserver
To kill the server while in screen just do CTRL+C, or when detached from screen just do
Code:screen -X -S hurtworldserver kill
Credits go to scavenger2 as well as nogrod for the most foolproof method of doing this.
Setting up a Hurtworld Server on Wine
Discussion in 'Guides and Tips' started by Pretermit, Dec 10, 2015.
-
Wulf Community Admin
Please... use code tags and condense your script a bit.
-
-
Wulf Community Admin
All of the apt-get steps can be combined into a single command/line for instance. If the target as you suggest, then they'll most likely be copy/pasting too, so the less steps the less confusion. -
Code:
sudo apt-get install package package2 package3 package4
Code:sudo apt-get --ignore-missing install $list_of_packages
-
Wulf Community Admin
-
-
How u
Code:cd /home/steam/hurtworld
-
-
Have this error help. Screenshot
-
For the error /dev/pts/0, just do:
Code:script /dev/null
-
-
Just make sure the ports are forwarded then try again!Last edited by a moderator: Dec 10, 2015 -
[DOUBLEPOST=1449781848][/DOUBLEPOST] -
-
-
-
I am running Debian 8 64 and i cant get it running. Any help?
-
-
How to open oxide console?