02.17
1. SRCDS Linux Startscript
This little shell script makes it easier for you to start a SRCDS under linux. It provides you with a set of parameters to start every kind of a SRCDS.
2. How to use:
After you successfully installed a Source Dedicated Server (SRCDS) under Linux you just have to download the startscript at the bottom of this post.
Save the “startscript.sh” into the root directory of your SRCDSÂ and change the permission to “u + x”.
1 | chmod u + x startscript.sh |
Now open the start script with your preferred editor (vim, joe, mono etc.) and customize the configuration variables to your system.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | ############################* # Configuration (Required): # # |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| # |~~ 1. SYSTEM PARAMETERS ~~~~~~~~~~| # |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| # ~~ Description: Set the user who owns the CounterStrike Server (root is not recommended) # ~~ Params: Existing user on your system SYS_USER="css-001"; # ~~ Description: Path to the root directory of your server # ~~ Params: System path SYS_DIR="/path/to/your/server/"; # ~~ Description: Server daemon # ~~ Params: srcds_run - srcds_amd - srcds_i486 - srcds_i686 # ~~ Default Value: srcds_run SYS_DAEMON="srcds_run"; # ~~ Descripton: Set the priority (niceness) of the server. Highest priority: -20 Lowest priority: 19 # ~~ Default Value: 0 SYS_NICE="0"; # ~~ Name: Name of your server SYS_NAME="CSS-001"; # ~~ Description: Description of the server SYS_DESC="My first SRCDS Server"; # |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| # |~~ 2. SERVER START PARAMETER ~~~~~| # |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| # ~~ Description: Define which kind of srcds game should be started # ~~ Params: Counter-Strike Source - ageofchicalry - diprip - dods - dystopia - esmod - garrysmod - hl2mp - insurgency # ~~ l4d_full - left4dead - synergy - tf - zps - cstrike - cstrike_beta - czero - dmc - dod - gearbox - ricochet # ~~ tfc - valve - darkmessiah - diprip - marenosturm - redorchestra - ship - sin - tshb # ~~ Default Value: Counter-Strike Source SYS_GAME="Counter-Strike Source"; # ~~ Description: IPv4 Address of your server # ~~ Params: XXX.XXX.XXX.XXX START_PARAMS_IP="127.0.0.1"; # ~~ Description: Port of your server # ~~ Params: Between 0 and 65535 # ~~ Default Value: 27015 START_PARAMS_PORT="27015"; # ~~ Description: Defines the default map # ~~ Params: Requires an installed map on your server START_PARAMS_MAP="de_dust2"; # ~~ Description: Defines the amount of player slots # ~~ Params: Between 1 and 32 START_PARAMS_MAXPLAYERS="32"; # ~~ Description: Defines whether VAC (Valve Anti Cheat) is activated # ~~ Params: secure / insecure # ~~ Default Value: secure START_PARAMS_SECURE="secure"; # ~~ Description: Pingboost # ~~ Params: 0 / 1 / 2 / 3 # ~~ Default Value: 0 START_PARAMS_PINGBOOST="0"; # ~~ Description: Defines the tickrate # ~~ Params: 33 / 66 / 100 # ~~ Default Value: 33 START_PARAMS_TICKRATE="33"; # # CONFIGURATION END ############################* |
After this step just execute the startscript.
1 | bash startscript.sh start |
Thats it!
Required Linux packages
Download
SCRDS Linux Startscript 1.2 (8.0 KiB, 173 hits)
So long,
Andreas Glaser aka JaZz
No Comment.
Add Your Comment