(Second) Server Setup
I highly recommend using "screen" Linux application.
apt-get install screen
- ctrl + A then press D to keep server running in background
- ctrl + A then press ESC to scroll up or down or page up or page down while in screen ... press ESC twice to exit scrolling
- ctrl + c to exit screen and shutdown server, but it's recommended you type quit in the server first, what for it to say in 10 seconds it'll restart server, then press ctrl + c
- if you want to resume a session in screen type screen -r
- if you have more than one screen running, type screen -ls to see a list
- if you want to go to a specific screen type screen -r
Make sure you get and change the +sv_setsteamaccount for your own account! The numbers I gave you are fake. Also change your +ip and directories for your server. These are examples scripts that I used to get the server going.
remember chmod ? it will help make your scripts executable or was it chown? oh well.
chmod +x startCSS.sh
if you need a log file from screen: -Logfile screen.txt -mSL
startCSS.sh:
#!/bin/sh
screen -mS css /home/steamgameserver/hlserver/css/srcds_run -game cstrike -secure -console -usercon +map de_dust +ip 197.141.121.10 +port 27015 -autoupdate +sv_consistency 0 +sv_pure 0 +map de_dust2 +maxplayers 32 +exec server.cfg +sv_setsteamaccount A666704C6D66613A4666C666066F666C -steam_dir /home/steamgameserver/hlserver -steamcmd_script /home/steamgameserver/hlserver/steamcmd/CSSupdate
CSSupdate:
force_install_dir /home/steamgameserver/hlserver/css
login anonymous
app_update 232330
validate
quit
startCSGO.sh:
#!/bin/sh
screen -mS csgo /home/steamgameserver/hlserver/csgo/srcds_run -game csgo -console -usercon +game_type 0 +game_mode 0 +mapgroup mg_active +ip 197.141.121.10 +port 27015 -autoupdate +sv_consistency 0 +sv_pure 0 +map de_dust2 +maxplayers 32 +exec server.cfg +sv_setsteamaccount A666704C6D66613A4666C666066F666C -steam_dir /home/steamgameserver/hlserver -steamcmd_script /home/steamgameserver/hlserver/steamcmd/CSGOupdate
CSGOupdate:
force_install_dir /home/steamgameserver/hlserver/csgo
login anonymous
app_update 740
validate
quit
startTF2.sh:
#!/bin/sh
screen -mS teamfortress2 /home/steamgameserver/hlserver/tf2/srcds_run +ip 197.141.121.10 +port 27015 -autoupdate +sv_pure 0 +map koth_nucleus +maxplayers 32 +exec server.cfg +sv_setsteamaccount A666704C6D66613A4666C666066F666C -steam_dir /home/steamgameserver/hlserver -steamcmd_script /home/steamgameserver/hlserver/steamcmd/update
update:
force_install_dir /home/steamgameserver/hlserver/tf2
login anonymous
app_update 232250
validate
quit
startFOF.sh:
#!/bin/sh
screen -mS FOF /home/steamgameserver/hlserver/fof/srcds_run +ip 197.141.121.10 +port 27015 -console -game fof -autoupdate +sv_pure 0 +map fof_robertlee_12 +maxplayers 24 +exec server.cfg +sv_setsteamaccount A666704C6D66613A4666C666066F666C -steam_dir /home/steamgameserver/hlserver -steamcmd_script /home/steamgameserver/hlserver/steamcmd/updateFOF
updateFOF:
force_install_dir /home/steamgameserver/hlserver/fof
login anonymous
app_update 295230
validate
quit
Steps in Order:
- MetaMod Stable Latest: https://www.metamodsource.net/downloads.php?branch=stable
- SourceMod Stable Latest: https://www.sourcemod.net/downloads.php?branch=stable
- Download Plugin for your server: https://forums.alliedmods.net/showpost.php?p=2430764&postcount=1
EXAMPLE DIRECTORY /home/steamgameserver/hlserver/fof/fof
make sure your in a directory that contains these 3 directories:
- bin
- cfg
- maps
Steps in Order:
- wget https://mms.alliedmods.net/mmsdrop/1.11/mmsource-1.11.0-git1148-linux.tar.gz
- tar xvf mmsource-1.11.0-git1148-linux.tar.gz
- wget https://sm.alliedmods.net/smdrop/1.11/sourcemod-1.11.0-git6928-linux.tar.gz
- tar xvf sourcemod-1.11.0-git6928-linux.tar.gz
- wget "https://forums.alliedmods.net/attachment.php?attachmentid=199419&d=1675454483" -O war3source-evo.zip
- unzip -o war3source-evo.zip
For War3Source-EVO:
You can find a compressed zip here: https://forums.alliedmods.net/showpost.php?p=2430764&postcount=1 at the very bottom.
Do NOT extract inside the addons folder.
In the directory that you extract the plugins should have these sub directories (and other directories depending on game):
- addons
- bin
- cfg
- maps
- use my version of war3source.ini and war3sourceMVM.ini in the configs section.
- use war3source_tf2.cfg for TF2 and war3source_csgo.cfg for CSGO in the cfg section.
- use only my version of the translation files.
- install from my version of the gamedata
- use and modify my version of the war3source configuration (cfg) files
- download and install steamtools extension: https://forums.alliedmods.net/showthread.php?t=236206
NOTE: steamtools extension is included in the War3Source-EVO Github and should be included in any future download of the plugins.
see https://github.com/War3Evo/War3Source-EVO/wiki/TF2-File-Directory-(addons-folder) for an idea of possible files you might be missing. Not all the files in there are required, but gives you a basic idea where things go.
Basic commands:
To resume a screen:
- screen -r
To exit a screen while keeping it in background:
- CTRL + A, then D
To scroll back:
- CTRL + A, then ESC
- Then use Page up or Page down or Arrow Up or Arrow Down
To kill a screen (while using screen)
- CTRL + C
To install screen
- sudo apt-get install screen
Changes you need to make:
- sv_setsteamaccount
- ip
- port
- map
- maxplayers
- steamcmd_script
startFOF.sh
- #!/bin/sh
- screen -dmS fof /home/steamgameserver/hlserver/fof/srcds_run +ip 1.2.3.4 +port 27015 -autoupdate +sv_pure 0 +map fof_nest.bsp +maxplayers 24 +exec server.cfg +sv_setsteamaccount B834BA92JD9AK9RF392JRF9FVJ392KRF -steam_dir /home/steamgameserver/hlserver -steamcmd_script /home/steamgameserver/hlserver/steamcmd/updateFOF
/home/steamgameserver/hlserver/steamcmd/updateFOF is a text file that contains server update information
example script:
- force_install_dir /home/steamgameserver/hlserver/fof
- login anonymous
- app_update 295230
- validate
- quit