Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apt-get update
- apt-get install unzip -y
- apt-get install expect -y
- sudo dpkg --add-architecture i386
- sudo apt-get update
- sudo apt-get install lib32gcc1
- # Counter strike
- mkdir server ; mkdir steamcmd ; cd steamcmd
- wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz
- tar -xvzf steamcmd_linux.tar.gz
- expect -c 'set timeout 9999; \
- spawn ~/steamcmd/steamcmd.sh; \
- expect "Steam>" { send "login anonymous\r" }; \
- expect "Steam>" { send "force_install_dir ../hlds\r" }; \
- expect "Steam>" { send "app_update 90 validate\r" }; \
- expect "Steam>" { send "app_update 90 validate\r" }; \
- expect "Steam>" { send "exit" }'
- # Metamod
- cd ~/hlds/cstrike
- wget https://www.amxmodx.org/release/metamod-1.21.1-am.zip
- unzip metamod-1.21.1-am.zip
- touch ~/hlds/cstrike/addons/metamod/plugins.ini
- cd ~/hlds/cstrike
- echo 'gamedll_linux "addons/metamod/dlls/metamod.so"' >> liblist.gam
- # AMMmodx
- wget https://www.amxmodx.org/release/amxmodx-1.8.2-base-linux.tar.gz
- tar xzvf amxmodx-1.8.2-base-linux.tar.gz
- wget http://www.amxmodx.org/amxxdrop/1.10/amxmodx-1.10.0-git5217-cstrike-linux.tar.gz
- tar xzvf amxmodx-1.10.0-git5217-cstrike-linux.tar.gz
- echo "linux addons/amxmodx/dlls/amxmodx_mm_i386.so" >> ~/hlds/cstrike/addons/metamod/plugins.ini
- # dProto
- cd ~/hlds/cstrike/addons/
- mkdir dproto ; cd dproto
- wget http://www.amxmodx.lt/installer_files/dproto_i386.so
- cd ~/hlds/cstrike/addons/
- wget http://www.amxmodx.lt/installer_files/dproto.cfg
- echo "linux addons/dproto/dproto_i386.so" >> ~/hlds/cstrike/addons/metamod/plugins.ini
- # Setup play script
- cd ~/hlds
- ./hlds_run -game cstrike +ip 0.0.0.0 +maxplayers 12 +map de_dust2
- ./hlds_run -nomaster -game cstrike -port 26756 +ip 0.0.0.0 -insecure
- echo -e "cd /root/server && ./hlds_run -console -game cstrike -ip 0.0.0.0 -port 29015 +maxplayers 32 +map \${1-de_dust2}" > ~/play.sh
- chmod +x ~/play.sh
- # Helpers
- ln -s /root/server/cstrike/maps /maps
- # Start game to overcome THE BUG
- timeout 5 ~/play.sh
- echo -e "\n----------------------------\nStart by running `~/play.sh [map]`\n----------------------------\n"
- --
- рабочий способ
- https://hub.docker.com/r/ggoulart/cs1.6-server-more-maps
Add Comment
Please, Sign In to add comment