Advertisement
jakobmol71

Untitled

Nov 23rd, 2019
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. # Instalacja serwera Hurtworld
  2.  
  3. apt-get update && apt-get upgrade -y
  4. dpkg --add-architecture i386; apt update; apt install lib32gcc1 libstdc++6 libstdc++6:i386 lib32z1 -y
  5.  
  6. adduser hwserver
  7.  
  8. su - hwserver
  9.  
  10. # SteamCMD
  11.  
  12. mkdir -p /home/hwserver/steamcmd
  13. cd /home/hwserver/steamcmd
  14.  
  15. wget http://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz -O steamcmd.tar.gz
  16. tar -xvzf steamcmd.tar.gz
  17.  
  18. # Instalacja serwera
  19.  
  20. /home/hwserver/steamcmd/./steamcmd.sh +login anonymous +force_install_dir /home/hwserver +app_update 405100 validate +quit
  21. rm -r /home/hwserver/Steam/
  22. # Fix SteamClient
  23.  
  24. mkdir -pv "/home/hwserver/.steam/sdk32"
  25. cp -v "/home/hwserver/steamcmd/linux32/steamclient.so" "/home/hwserver/.steam/sdk32/steamclient.so"
  26. cp -v "/home/hwserver/steamcmd/linux32/steamclient.so" "/home/hwserver/Hurtworld_Data/Plugins/x86/steamclient.so"
  27.  
  28.  
  29. # Uruchomienie (vanilla)
  30.  
  31. chmod +x /home/hwserver/host.sh
  32. cd /home/hwserver/
  33.  
  34. screen -AmdS hwserver "/home/hwserver/./host.sh"
  35.  
  36. # Przejscie do okna serwera:
  37.  
  38. script /dev/null
  39. screen -r hwserver
  40.  
  41.  
  42. # Instalacja uMod
  43.  
  44. su - hwserver
  45.  
  46. wget https://umod.org/games/hurtworld/download -O uMod.Hurtworld.zip
  47. unzip -o uMod.Hurtworld.zip
  48.  
  49. wget https://raw.githubusercontent.com/theumod/umod.hurtworld/develop/resources/_start-example.sh
  50.  
  51. mv _start-example.sh _start.sh
  52. chmod +x /home/hwserver/_start.sh
  53.  
  54. # Uruchomienie w screen
  55.  
  56. screen -AmdS hwserver "./_start.sh"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement