Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EXAMPLE
- -------------------------------------
- IP Address: 188.166.163.79
- Username: root
- Password: 33a1e2f195f68c52
- 79656fed3cc8
- ------------------------------------
- apt-get install vsftpd
- apt-get install ufw
- sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.orig
- sudo ufw status
- sudo service ufw start //se non attivo
- sudo ufw enable //se non si attiva
- sudo ufw allow ssh
- sudo ufw allow 27015 (half life port)
- sudo ufw allow 22/tcp
- sudo ufw allow ftp-data
- sudo ufw allow ftp
- sudo ufw status
- vedi qui
- https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-for-anonymous-downloads-on-ubuntu-16-04
- ftp -p IP_DROPLET
- ftp
- ls
- cd pub
- get test.txt
- put test.txt upload.txt
- bye
- sudo mkdir -p /var/ftp/pub
- sudo chown nobody:nogroup /var/ftp/pub
- echo "vsftpd test file" | sudo tee /var/ftp/pub/test.txt
- sudo nano /etc/vsftpd.conf
- modificare
- anonymous_enable=YES
- local_enable=NO
- e aggiungere alla fine del file questo
- #
- # Point users at the directory we created earlier.
- anon_root=/var/ftp/
- #
- # Stop prompting for a password on the command line.
- no_anon_password=YES
- #
- # Show the user and group as ftp:ftp, regardless of the owner.
- hide_ids=YES
- #
- # Limit the range of ports that can be used for passive FTP
- pasv_min_port=40000
- pasv_max_port=50000
- ------------------
- systemd
- sudo systemctl restart vsftpd
- [sudo: systemctl: command not found]
- sudo systemd restart vsftpd
- [sudo: systemctl: command not found]
- apt-get install -y systemd-container
- [Unable to locate package systemd-container]
- se non funziona lasciar stare e riavviare e digitare di nuovo i comando
- sudo enable ufw
- se non si riesce ad accedere usare la console di digital ocean
- e poi aprire le porte 22 e ssh, vedi comandi sopra
- https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-for-anonymous-downloads-on-ubuntu-16-04
- Per accedere via ftp possiamo usare su filezilla
- host: 188.166.41.179
- nome utente: root
- password: 79656fed3cc8
- porta: 22
- Per installare su debian
- https://wiki.debian.org/vsftpd
- aptitude install vsftpd
- netstat -npl
- /etc/init.d/vsftpd stop (se non è installato il firewall che filtra queste porte)
- -------------
- mkdir -p /home/install/SteamCMD
- mkdir -p /home/server
- cd /home/install/SteamCMD
- wget http://media.steampowered.com/client/steamcmd_linux.tar.gz
- tar xvfz steamcmd_linux.tar.gz
- ./steamcmd.sh +login anonymous +force_install_dir /home/server "+app_update 90 -beta beta validate" +quit
- touch /home/startHL
- touch /home/startHL.inet
- echo '/home/startHL.inet >/dev/null 2>&1&' >> /home/startHL
- echo '#!/bin/sh' >> /home/startHL.inet
- echo 'cd /home/server' >> /home/startHL.inet
- echo './hlds_run +log on +maxplayers 16 +map crossfire +port 27015' >> /home/startHL.inet // you can change map or players number ok
- chmod +x /home/startHL
- chmod +x /home/startHL.inet
- cd /home/
- chown -R root /home/
- cd /home/server
- [INSTALL METAMOD]
- ./startHL.inet
- ----
- error : cuz we dont have permision for root let me fix it like that
- ----
- chown -R root /home/
- after fixin the error back to run server
- cd /home/
- ./startHL.inet
- da steam in console
- connect 188.166.41.179:27015
- [METAMOD]
- cd /home/server
- mkdir addons ; cd addons ; mkdir metamod ; cd metamod ; mkdir dlls ; cd dlls
- wget https://files.nscodes.com/cs16/metamod-p-1.21p37-linux_i686.tar.gz
- tar -zxvf metamod-p-1.21p37-linux_i686.tar.gz
- se il link da problemi
- copiare il file via ftp in
- /home/server/addons/metamod/dlls
- e poi ridare il comando
- tar -zxvf metamod-p-1.21p37-linux_i686.tar.gz
- mkdir addons ; cd addons ; mkdir metamod ; cd metamod ; mkdir dlls ; cd dlls
- sostituire il percorso
- /home/csserver/server/cstrike/
- con
- /home/server/
- cd /home/server/addons/metamod
- touch plugins.ini
- 4.4 If it done go back to “cstrike” folder:
- cd /home/server/
- 4.5 Edit liblist.gam:
- nano liblist.gam
- sostituire questa riga
- 4.6 Replace gamedll_linux “dlls/cs.so” line to: (and remove gamedll_osx and gamedll lines)
- gamedll_linux "addons/metamod/dlls/metamod.so"
- se ci sono problemi, scaricare il file .ini, modificarlo e rifare l'upload via ftp
- 5. Install AMMmodx
- 5.1 Download and extract amxmodx:
- wget https://files.nscodes.com/cs16/amxmodx-1.8.2-base-linux.tar.gz
- tar xzvf amxmodx-1.8.2-base-linux.tar.gz
- wget https://files.nscodes.com/cs16/amxmodx-1.8.2-cstrike-linux.tar.gz
- tar xzvf amxmodx-1.8.2-cstrike-linux.tar.gz
- se ci sono problemi usare il solito ftp
- in caso di problemi estrarre il contenuto di amxmodx base e fare l'upload della cartella
- 5.2 Tell metamod about amxmodx which is easily done by editing the plugins.ini file:
- cd /home/server/addons/metamod
- nano plugins.ini
- 5.3 Add the following line:
- linux addons/amxmodx/dlls/amxmodx_mm_i386.so
- [vedere il file]
- copiare i 3 files
- equipment.ini, sev.amxx e sev.sma nelle rispettive cartelle
- equipment.ini -> /home/server/addons/amxmodx/configs
- sev.amxx -> /home/server/addons/amxmodx/plugins
- sev.sma -> /home/server/addons/amxmodx/scripting
- alla fine tornare a questi comandi
- chown -R root /home/
- cd /home/
- ./startHL.inet
- da steam
- connect 188.166.41.179:27015
- INSTALL PROTO for 47-48 protocol
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement