1. Pretermit

    Pretermit Plugin Developer

    Starting with a fresh Ubuntu 14.04 x86_64 installation:

    Code (Text):
    sudo apt-get update && sudo apt-get upgrade
    Code (Text):
    sudo apt-get -y install software-properties-common lib32gcc1 screen libc6-amd64
    Code (Text):
    sudo add-apt-repository -y ppa:ubuntu-wine/ppa && sudo apt-get update
    Code (Text):
    sudo apt-get -y install wine1.7 winetricks xvfb
    Code (Text):
    sudo useradd -m steam
    Code (Text):
    sudo usermod -aG sudo steam
    Code (Text):
    sudo passwd steam
    Code (Text):
    sudo su - steam
    Code (Text):
    mkdir ~/steamcmd
    Code (Text):
    cd ~/steamcmd
    Code (Text):
    wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
    Code (Text):
    tar -xvzf steamcmd_linux.tar.gz
    Code (Text):
    /home/steam/steamcmd/steamcmd.sh +\@sSteamCmdForcePlatformType windows +login anonymous +force_install_dir /home/steam/hurtworld +app_update 405100 validate +quit
    Code (Text):
    cd /home/steam/hurtworld
    *** IGNORE THIS PART IF YOU DO NOT WANT TO INSTALL OXIDE ***
    Code (Text):
    wget -O Oxide.zip https://github.com/OxideMod/Snapshots/blob/master/Oxide-Hurtworld.zip?raw=true
    Code (Text):
    unzip -o Oxide.zip
    *** END OF OXIDE PART ***

    Code (Text):
    rm -rf ~/.wine64
    Code (Text):
    wineboot --update
    Code (Text):
    vi start.sh
    Code (Text):
    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"
    *COPY PASTE THE ABOVE INTO start.sh , EDIT THE NECESSARY (name, admin steamid64)*
    *PRESS INSERT ON YOUR KEYBOARD BEFORE PASTING IN VI!!*
    *ONCE PASTED, PRESS [ESC], THEN TYPE
    Code (Text):
    :wq
    This will write/quit the file.
    Code (Text):
    chmod +x start.sh
    Code (Text):
    screen -S hurtworldserver
    Code (Text):
    ./start.sh
    *** FOR THOSE WITH stream failed ERROR: ****
    Stop server (CTRL+C) then add ports to iptable:
    Code (Text):
    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
    Now relaunch server (./start.sh)
    ************************************************

    *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:
    Code (Text):
    screen -r hurtworldserver
    *END*


    To kill the server while in screen just do CTRL+C, or when detached from screen just do
    Code (Text):
    screen -X -S hurtworldserver kill



    Credits go to scavenger2 as well as nogrod for the most foolproof method of doing this.
     
    Last edited: Dec 10, 2015
    MADisBACK likes this.
  2. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Please... use code tags and condense your script a bit.
     
  3. Pretermit

    Pretermit Plugin Developer

    I was not finished, as for condensing this is meant to be a retard-proof guide a robot could follow. You could condense it but then you'd get the inevitable 'how do I do this, what does this mean' and other questions. Feel free to do so if you want, but I will not be answering questions that arise.
     
  4. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    I didn't mean to strip it back when I said condense, just to clean it up a bit so it a full book. ;)

    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.
     
  5. Pretermit

    Pretermit Plugin Developer

    Code (Text):
    sudo apt-get install package package2 package3 package4
    Because if that's what you want, it will stop at the first package that doesn't install perfectly...unless you do

    Code (Text):
    sudo apt-get --ignore-missing install $list_of_packages
    Which I doubt is too advisable for anyone new to linux..
     
  6. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    It shouldn't, as it should install them in that order. It shouldn't be any different than using them individually.
     
  7. Pretermit

    Pretermit Plugin Developer

    True, done.
     
  8. HetLord

    HetLord Scavenger

    How u
    Code (Text):
    cd /home/steam/hurtworld
    if u do not did new folder ?
     
  9. Pretermit

    Pretermit Plugin Developer

    Steamcmd makes this folder when installing the server files in the step above.
     
  10. HetLord

    HetLord Scavenger

  11. Pretermit

    Pretermit Plugin Developer

    For the error /dev/pts/0, just do:

    Code (Text):
    script /dev/null
     
    HetLord likes this.
  12. HetLord

    HetLord Scavenger

    ty but new error %( Screenshot
     
  13. Pretermit

    Pretermit Plugin Developer

    That's normal, the server is running and you can ignore the errors. At this point just check if your server is in the server list.

    Just make sure the ports are forwarded then try again!
     
    Last edited: Dec 10, 2015
    HetLord likes this.
  14. HetLord

    HetLord Scavenger

    not connected, i cant ....
    --- Double Post Merged, Dec 10, 2015 ---
    in console it Screenshot
     
  15. Pretermit

    Pretermit Plugin Developer

    Did you start from a fresh install? That just shows wine cannot find Hurtworld.exe
     
  16. HetLord

    HetLord Scavenger

    yep, if u can install its for me, i already in your steam friend list, if u want i can give 1 $ via PayPal
     
  17. Pretermit

    Pretermit Plugin Developer

    Issue resolved, added port opening into the tutorial. :)
     
  18. DerRene

    DerRene Naked Wanderer

    I am running Debian 8 64 and i cant get it running. Any help?
     
  19. Pretermit

    Pretermit Plugin Developer

    What are the issues that arise?
     
  20. lool

    lool Naked Wanderer

    How to open oxide console?