Hello Everyone!
On this guide i will explain you how you gonna install cs:go dedicated server on amazon web services. I wont go detail with the parts i see no-need-to-explain so if you got questions about those parts feel free to ask via comments.
Okey, here we go lets create an instance first on EC2 service. On your AWS management console click on instances and click on Launch Instance button. Usually here i would choose to a linux distro but for this guide we will choose windows server 2012 r2 base
Well it will let you create a key pair name and some other stuff. Just create it as soon as you can. Then at instance panel press connect and download your RDP file, this will let you remotly connect your server, it may ask your password first so you can also get it via connect button, selecting your key pair file and decrypting on same menu. If you got this password you can also try to connect via a tool like mremoteng.
Once you connected, keep it there and lets arrange your firewall!
We got areas to setup
1st – AWS security group settings
2nd – Windows firewall
Lets arrange aws first, at your instance window you will see a header named Security Group:
Well click on that link and move to security group page.
At this page click on inbound first, then edit and add two rules for your CS:GO server, custom udp and custom tcp, their range should be 27000-27300 and source should be anywhere. Click on save button after you finish adding rules. Then do same thing for outbound and save it. You should see something like this at the end:
Well gratz you finished adjusting your security group.
Now go back to your machine’s RDP. At management dashboard you can see tools option at right corner, click on it select and firewall. Samething here, click on inbound, add new rule, select port, give its range and allow connect. Both for UDP and TCP and again it should 27000-27300. And do same rule setting for outbound also.
Now you got your firewall setup too. Nice! Lets install steamcmd now. First create two folder under your C: drive. steamcmd and csgo_ds . Download steamcmd windows version from here:
http://media.steampowered.com/installer/steamcmd.zip
Unzip it under steamcmd folder. Run the exe file, you will see a command prompt. Okey so here we will go with few commands, excating right?
First type this force_install_dir c:csgo_ds
This will let you arrange csgo installation dir. Not like our good setup files 🙂
Then do this:
login anonymous
This will let you login… well anonymous.
Then do this:
app_update 740 validate
this will install app with id 740 which luckly our cs:go game.
It will take some time to install it since its little big at the end we are installing a game server.
After installation complete close the tool.
Create new txt file under csgo_cs folder. Open it then type one of this according your wish:
For classicial casual:
srcds -game csgo -console -usercon +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2
Classical competitive:
srcds -game csgo -console -usercon +game_type 0 +game_mode 1 +mapgroup mg_active +map de_dust2
You can get full list from here: https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Dedicated_Servers
Once you type this string, save file as start.bat, not a txt file.
You are not done! Now lets go inside the csgo folder. You need to create two files gamemodes_server.txt.example from this one create gamemodes_server.txt and from gamerulescvars.txt.example this one create gamerulescvars.txt you can edit those two for your settings but you should read some guides before that. Also go inside the C:csgo_dscsgocfg folder and create a file serve.cfg with same method of notepad. Inside of it you can put some settings lines like this:
hostname “Counter-Strike: GO Devador”
rcon_password “raconblablapassword”
sv_password “” //Only set this if you intend to have a private server!
mp_freezetime 5 //The amount of time players are frozen to buy items
mp_join_grace_time 15 //The amount of time players can join teams after a round has started
mp_match_end_restart 0 // Defines whether a map should be restarted after a game has ended
sv_cheats 0 //This should always be set, so you know it’s not on
sv_lan 0 //This should always be set, so you know it’s not on
//**The bot commands below are mostly default with the exception of
bot_difficulty 1
bot_chatter “off”
bot_join_after_player 1
bot_quota 10
bot_quota_mode “fill”
And save it, after all done run your start.bat file. You will see some texts running 🙂 if any error appears it will also warn you here. Anyway now try to login your game and join a community server option then add fav. server and type your servers ip + port. You can see your public ip at your instances panel.
Default port is 27015 so you should write something like this:
54.93.45.219:27015
Have fun.