Advertisement
dropbox1349

test install half life

Jan 8th, 2017
509
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.13 KB | None | 0 0
  1. EXAMPLE
  2. -------------------------------------
  3. IP Address: 188.166.163.79
  4. Username: root
  5. Password: 33a1e2f195f68c52
  6.  
  7. 79656fed3cc8
  8.  
  9. ------------------------------------
  10. apt-get install vsftpd
  11. apt-get install ufw
  12. sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.orig
  13. sudo ufw status
  14. sudo service ufw start //se non attivo
  15. sudo ufw enable //se non si attiva
  16.  
  17. sudo ufw allow ssh
  18. sudo ufw allow 27015 (half life port)
  19. sudo ufw allow 22/tcp
  20. sudo ufw allow ftp-data
  21. sudo ufw allow ftp
  22. sudo ufw status
  23.  
  24. vedi qui
  25. https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-for-anonymous-downloads-on-ubuntu-16-04
  26.  
  27.  
  28. ftp -p IP_DROPLET
  29. ftp
  30. ls
  31. cd pub
  32. get test.txt
  33. put test.txt upload.txt
  34. bye
  35.  
  36.  
  37. sudo mkdir -p /var/ftp/pub
  38. sudo chown nobody:nogroup /var/ftp/pub
  39. echo "vsftpd test file" | sudo tee /var/ftp/pub/test.txt
  40.  
  41. sudo nano /etc/vsftpd.conf
  42.  
  43. modificare
  44.  
  45. anonymous_enable=YES
  46. local_enable=NO
  47.  
  48. e aggiungere alla fine del file questo
  49.  
  50. #
  51. # Point users at the directory we created earlier.
  52. anon_root=/var/ftp/
  53. #
  54. # Stop prompting for a password on the command line.
  55. no_anon_password=YES
  56. #
  57. # Show the user and group as ftp:ftp, regardless of the owner.
  58. hide_ids=YES
  59. #
  60. # Limit the range of ports that can be used for passive FTP
  61. pasv_min_port=40000
  62. pasv_max_port=50000
  63.  
  64. ------------------
  65.  
  66. systemd
  67.  
  68. sudo systemctl restart vsftpd
  69. [sudo: systemctl: command not found]
  70. sudo systemd restart vsftpd
  71. [sudo: systemctl: command not found]
  72.  
  73. apt-get install -y systemd-container
  74. [Unable to locate package systemd-container]
  75.  
  76. se non funziona lasciar stare e riavviare e digitare di nuovo i comando
  77.  
  78. sudo enable ufw
  79.  
  80. se non si riesce ad accedere usare la console di digital ocean
  81.  
  82. e poi aprire le porte 22 e ssh, vedi comandi sopra
  83.  
  84. https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-for-anonymous-downloads-on-ubuntu-16-04
  85.  
  86. Per accedere via ftp possiamo usare su filezilla
  87.  
  88.  
  89. host: 188.166.41.179
  90. nome utente: root
  91. password: 79656fed3cc8
  92. porta: 22
  93.  
  94. Per installare su debian
  95. https://wiki.debian.org/vsftpd
  96.  
  97. aptitude install vsftpd
  98. netstat -npl
  99. /etc/init.d/vsftpd stop (se non è installato il firewall che filtra queste porte)
  100. -------------
  101.  
  102.  
  103.  
  104. mkdir -p /home/install/SteamCMD
  105. mkdir -p /home/server
  106. cd /home/install/SteamCMD
  107. wget http://media.steampowered.com/client/steamcmd_linux.tar.gz
  108. tar xvfz steamcmd_linux.tar.gz
  109. ./steamcmd.sh +login anonymous +force_install_dir /home/server "+app_update 90 -beta beta validate" +quit
  110. touch /home/startHL
  111. touch /home/startHL.inet
  112. echo '/home/startHL.inet >/dev/null 2>&1&' >> /home/startHL
  113. echo '#!/bin/sh' >> /home/startHL.inet
  114. echo 'cd /home/server' >> /home/startHL.inet
  115. echo './hlds_run +log on +maxplayers 16 +map crossfire +port 27015' >> /home/startHL.inet // you can change map or players number ok
  116. chmod +x /home/startHL
  117. chmod +x /home/startHL.inet
  118. cd /home/
  119. chown -R root /home/
  120.  
  121. cd /home/server
  122. [INSTALL METAMOD]
  123.  
  124. ./startHL.inet
  125. ----
  126. error : cuz we dont have permision for root let me fix it like that
  127. ----
  128. chown -R root /home/
  129. after fixin the error back to run server
  130. cd /home/
  131. ./startHL.inet
  132.  
  133. da steam in console
  134.  
  135. connect 188.166.41.179:27015
  136.  
  137. [METAMOD]
  138.  
  139. cd /home/server
  140.  
  141. mkdir addons ; cd addons ; mkdir metamod ; cd metamod ; mkdir dlls ; cd dlls
  142. wget https://files.nscodes.com/cs16/metamod-p-1.21p37-linux_i686.tar.gz
  143. tar -zxvf metamod-p-1.21p37-linux_i686.tar.gz
  144.  
  145. se il link da problemi
  146.  
  147. copiare il file via ftp in
  148. /home/server/addons/metamod/dlls
  149.  
  150. e poi ridare il comando
  151. tar -zxvf metamod-p-1.21p37-linux_i686.tar.gz
  152.  
  153. mkdir addons ; cd addons ; mkdir metamod ; cd metamod ; mkdir dlls ; cd dlls
  154.  
  155. sostituire il percorso
  156. /home/csserver/server/cstrike/
  157. con
  158. /home/server/
  159.  
  160. cd /home/server/addons/metamod
  161. touch plugins.ini
  162. 4.4 If it done go back to “cstrike” folder:
  163. cd /home/server/
  164. 4.5 Edit liblist.gam:
  165. nano liblist.gam
  166.  
  167. sostituire questa riga
  168.  
  169. 4.6 Replace gamedll_linux “dlls/cs.so” line to: (and remove gamedll_osx and gamedll lines)
  170. gamedll_linux "addons/metamod/dlls/metamod.so"
  171.  
  172. se ci sono problemi, scaricare il file .ini, modificarlo e rifare l'upload via ftp
  173.  
  174. 5. Install AMMmodx
  175. 5.1 Download and extract amxmodx:
  176. wget https://files.nscodes.com/cs16/amxmodx-1.8.2-base-linux.tar.gz
  177. tar xzvf amxmodx-1.8.2-base-linux.tar.gz
  178. wget https://files.nscodes.com/cs16/amxmodx-1.8.2-cstrike-linux.tar.gz
  179. tar xzvf amxmodx-1.8.2-cstrike-linux.tar.gz
  180.  
  181. se ci sono problemi usare il solito ftp
  182. in caso di problemi estrarre il contenuto di amxmodx base e fare l'upload della cartella
  183.  
  184. 5.2 Tell metamod about amxmodx which is easily done by editing the plugins.ini file:
  185. cd /home/server/addons/metamod
  186. nano plugins.ini
  187. 5.3 Add the following line:
  188. linux addons/amxmodx/dlls/amxmodx_mm_i386.so
  189.  
  190. [vedere il file]
  191.  
  192. copiare i 3 files
  193. equipment.ini, sev.amxx e sev.sma nelle rispettive cartelle
  194.  
  195.  
  196. equipment.ini -> /home/server/addons/amxmodx/configs
  197. sev.amxx -> /home/server/addons/amxmodx/plugins
  198. sev.sma -> /home/server/addons/amxmodx/scripting
  199.  
  200. alla fine tornare a questi comandi
  201.  
  202. chown -R root /home/
  203. cd /home/
  204. ./startHL.inet
  205.  
  206.  
  207. da steam
  208.  
  209. connect 188.166.41.179:27015
  210.  
  211. INSTALL PROTO for 47-48 protocol
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement