Create a Dedicated Counter Strike CS:GO Server (Free Forever)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in today's tutorial you'll learn how to set up your own cs go server so this is a counter-strike server this is a completely free method of setting up a cs go server i just did this today so if you follow this method you'll get exactly the setup that i've created here now this method is free forever as well so if all this sounds interesting then keep watching [Music] okay now this tutorial is possible by using oracle cloud's free tier they actually give us access to some free virtual machines to use as our server so they give us up to two amd machines and four ampere machines as well so we're going to put the linux game server manager on here with the counter strike server and we're going to just run a few commands and install this and get it running so i'll make it as simple as possible to follow along you can head over to my blog on ideas.com i upload the link in the description all the commands that i use during the tutorial you can just copy and paste them in as you go and you'll get a free server running by the end of this tutorial so um good luck and have fun just head over to oracle.com cloud free click start for free sign up and then head over to your dashboard and we can go ahead and build this thing once we're all signed up and logged in you'll notice that we are on our dashboard under the get started tab here it says you are using a free tier account at the top with this purple banner so everything we do during this tutorial is going to be completely free as long as you've got that free tier account banner here you actually have to intentionally upgrade to a paid account to ever get a bill so you can be pretty well assured that everything is going to be free here all we have to do to get started on this tutorial is scroll down and we're going to create a vm instance here so the server we're going to be creating today is a counter-strike server but there's obviously lots of other things you can use your free server to do such as web development or even game development if you have the skills so now it's probably a great time to talk about our sponsor today skillshare skillshare is an online learning community with thousands of classes now i joined skillshare to improve my skills in web development and my skills in linux server administration one of the first classes i joined was one called complete linux training course to get your dream it job by imran absal now this has been great very useful in terms of learning linux server administration we're actually going to use some of the commands from this class today so crontab for example is what we're going to use to keep our counter-strike server automatically updated i really think joining skillshare is going to help me improve my web development projects and also create much better youtube videos to help you guys as well so i've actually got a link in the description so the first 1 000 people who use my link get a one month free trial at skillshare as well so check that out if you're interested but let's head over and get back to our counter-strike setup let's just name this one csgo tutorial and we're going to change our image and shape here so let's just click change image here and now for our operating system let's go with a minimal install of ubuntu so let's go with 2004 minimal here looks all good and we can leave this one as it is the amd standard micro always free eligible that gives us one gigabyte of memory and one core oracle cpu um next part we need to add an ssh key so i'm using windows here i'm going to paste a public key the one i like to use for ssh in windows is putty putty.org you can get that for free so just head over to putty.org download that one now party comes with all these apps the one we're going to use to generate our key is called puttygen so we're going to run that one click generate here and just wiggle the mouse in that gray area until it generates a key so this just generates random data for our ssh key so this ssh key looks like it's ready now we just want to save this key so i'll save the public one i'll just call that cs go pub and the private one you can actually add a password if you want but if it's a private computer you don't need to i'll just call it csgo there we go and then we want to copy this key so let's highlight all this i'm just going to highlight all that and copy it make sure you've highlighted all that key there correctly and paste it into that box there all right so that looks all good and now we can go ahead and click create so this is going to be orange it's going to say provisioning so we do need to wait a few minutes here before this turns green so just be patient there when it's ready our ip address is going to show up here as well so let's just wait and i'll skip ahead to that point all right so after about a minute that turns green it says running and we've got our public ip address here let's click copy so now we're going to connect to our server using putty so let's load up putty here we are going to put in our ip address under host name up here so paste in that ip address that was the one we just copied from there and we're going to put ubuntu as our user at the front here so ubuntu and then at the at symbol so ubuntu at our ip address i'm going to save this as cs go tutorial and just click save there and then we go to ssh and expand that one under auth is where we browse for the key that we created using putty earlier so that's our cs go private key there so that looks all good scroll back up to the top where it says session and we'll save that in so that's all saved we can go back to cs go tutorial and connect to this anytime we want now so let's hit open and hit accept there alright so i just increased the font size for this video but all we want to do is put in a few commands here so i'm going to type sudo su dash to change over to super user now don't worry if you've never used one of these terminals before i'm going to put all the commands that i use over on my blog so just check the description for a link to my ideaspot blog and you can just copy and paste everything i do today into your terminal so now we're operating as sudo so that looks all good what we want to do is install the dependencies for this service so if we head over to our linux server manager page here we want to do the dependencies so and the dependencies we're using for ubuntu 2004 are these ones here so we're going to copy that whole line here just hit copy there all good and back on our terminal we just right click to paste that in there and press enter and this will take a few minutes to install all these dependencies so just be patient while this stuff installs i'll come back when this is all done during the install of these you may get prompted to say yes or no so obviously we just say yes there press enter and just let it keep running and next you'll get hit with this license agreement here so all you have to do here is just press enter a few times as you scroll through that license agreement so and then you'll get to the point here at the bottom where it says uh decline or accept so make sure you press number two for i agree and enter and now it'll keep ticking along here and we'll just wait for that to hit 100. awesome so all those dependencies are installed there's a couple other little things i like to install as well at this point so i'm just a text editor and and and cron so i'm going to install nano and cron here so i'll just paste that command in again that's on my blog you can just paste that in with right click so nano is just a text editor and cron is um enabling us to install automatic updates because counter-strike the server updates itself very frequently and you want to make sure you're on the latest version of the server otherwise most people can't connect if your server is not up to date so that looks like it's all good now we want to allow the port that counter-strike uses so i'm going to paste in a couple of commands here to allow these on our ip tables so i'll just paste that one in there and another command for our ip tables i'm just going to paste that in i'm going to share these commands obviously so but the port 27015 is what counter-strike uses so that's all we're doing and putting that in there and then we're going to save that in with um net filter persistent save and press enter so that looks like it's all good all right so the next thing we're going to do is make a user called csgo server so i'm going to right click that in here add user cs go server that's what i just did and it's going to prompt us for a new password so put in a nice strong password here and repeat that password what i'm doing there is just right clicking from notepad and pasting it in and so we can fill in our details here or you can just skip through this there's no need to put any details in there that looks all good okay now i'm going to give sudo access to the cs go server with this command sudo user mod uh sudo cs go server so let's go and put that in there so again all i'm doing is just i've got all the commands on my blog or in my notepad in this case i'm just copying and then right click pasting the stuff in here and pressing enter so really straightforward process now let's change over to the cs go server user so we put that in there there we go cs go server here's our new user all right so now we have to do the installer so ah that's basically what i just did now we download the linux script to install the server cool so paste that one in press enter all right now we're ready to run the installer but before we do that we'll need a token for our server so a steam token so i'm going to head over to steam community dev manage game service here so then what we do is we will need to log into steam here so let's go ahead and do that all right so once we are logged in here so i'm logged in as alex but log into your own steam account obviously and uh we're gonna put 730 in here for cs go and we can just describe this as cs go tutorial but you can name this anything you want and then click create all right so that's going to give us a token we can go ahead and copy that one we're going to keep that safe we're going to use that one later but back on our terminal now we are ready to run this csgo in store so let's run that command there and press enter after a few seconds i got prompted with the server directory here we press enter for yes and let it keep ticking away this part here is a little bit frustrating because it does look like it's frozen but it actually hasn't so just be patient while this does its thing installing the cs go server this is probably the longest part of this process here all right so after about a minute we can see we've got some progress here uh it'll look something like this now this number here is actually a percentage so that means i'm one percent installed so this will take i don't know maybe 20 or 30 minutes to actually install so what we can do while we're waiting for this is actually go back to our instances on oracle we can set up our virtual cloud network so click your virtual cloud network there and um go through to the subnet and then click our default security list okay so our default security list it's going to look something like this we're going to add a couple of ports here for counter-strike so we're going to add ingress rule the port we're going to be using is 27015 for counter-strike we're going to do tcp and 0.0.0.0 0 and let's just call this cs go here and we press enter or add ingress rule and then we repeat the same thing add another ingress rule same same deal here 0.0.0 slash zero so four zeros with a slash zero we're going to do udp this time and our destination port 27015 again cs go and so add that on and we should have those two there so 27015 for tcp and udp described as csgo so that looks all good let's go back and check how our install is going all right so this is still on 33 so i'm just gonna go have a coffee and come back when this is all done all right so this looks like it's pretty much done here that did take about half an hour was the install successful uh enter for wire for yes there and i think this is wrapping up there we go now this is going to be where we use our steam token that we created earlier so let's grab that one and there we go that was the one we created in our steam server account management so i've just copied that one and i'm going to right click to paste that in press enter and i think this should wrap up hopefully wi-fi yes enter there and awesome install complete to start your server type cs go server start so it looks all good so now that we've set this up back on our linux game server manager details here we can look at the basic usage of our server here so you can start stop restart the server with those commands you can look at your server details with this one here which is what i'm going to do now so let's just paste that one in cs go server details this is going to tell us a few things about how this server works all right so if we scroll up we can see we've got the config file in this folder here we can edit that one and we can see we've got um the archon password is there you've got a random password generated i'll show you how to change that one in a minute we've got the game type in the game mode so you can do casual or death match or competitive mode i'll show you how to do that as well so let's just go and edit that config file so to do that we just type nano and then we put the link to that config file so that will use the nano text editor that we installed earlier now we can go down here we can change our icon password here so we can change that to whatever we like i could just change it says say i'll change mine to ideaspot csgo765 but you can put whatever you want in there obviously the other things we can put in here um the host name by default the name of our server is going to be linux gsm but i'll just call mine i'll call mine idea spot but again you can name your server anything you want there's a couple other things we can add in here we can add the game type and the game mode so i've just put those in game type 0 and game mode game underscore mode 0. so i'll show you how this works i think zero zero is classic casual mode so if you want to say death match you would change it to game type one game mode two so i'll just change that as such so game mode two game type one but that's basically all we can do here i mean there's lots of different commands you can use to customize a server but those are the basics to get you started so when you've finished we click control x to exit and then press y for yes and then press enter so that's going to save that config file with our new password new name and all that stuff and the last thing i want to do is add some auto updates here so we're going to use a command called crontab e and then we can actually put in our commands to keep our server automatically updated so we'll just scroll down to the bottom of this file here and i'm going to paste in our crontab commands so i'm going to copy and paste them in just with the right click there they'll look like that you can actually get these from that linux gsm server i'll show you where i got those but anyway control x press y for yes and enter and that will save it there install the new cron tab so that looks all good so these just come from our linux game server manager docs here and these are the recommended tasks so basically every five minutes it monitors the server every 30 minutes checks for updates and it keeps the linux game server manager updated as well so that's how those work and those are the recommended ones so i'll just put those in to chron now we should be all good to actually start the server now so csgo server start let's press enter and this should start up our counter strike server there we go that all looks like it's okay it looks something like this but i think we're pretty much good to go now if we check add server details again we should see that we've started the server there we go status is started and we can actually scroll up and it'll show us how we connect here so the internet ip is this one this is how we're going to connect in our actual counter-strike game all right so in the game itself we go to our settings what we want to do first is just make sure that your developer console is enabled set that to yes i think that's it to know by default so make sure that's set we're going to use that later also when we go to play we can actually add our server so community server browser is what we go to here we can click ok and we click add a server we can paste in our ip address on colon port 27015 and we can add this to our favorites so there we go i've got my idea spot server there that looks all good and we can go ahead and click connect now sometimes there's a bit of a glitch where that one stays black it doesn't let you connect so you might want to just flip from tab to tab i think that sometimes fixes it you can see it's black there if i highlight it it should be white and then you click connect i don't know why that's just a bit glitchy sometimes but whatever we are connecting to our server so exciting this is our own server that we're connecting to so i'll just wait for that here we go awesome awesome so this looks like it's working just fine if we press tab we can see i've got my death match that i selected earlier the actual server is called ideaspot so that looks all good and my ping is not great that's because i'm in australia and my server is actually over in the west coast of united states so my ping is a bit higher but if i was in the west coast of the united states i'd have a quite a good ping so this looks like it's all running just fine now we can press the tilt key we can bring up our developer console there so that um it's hard to describe if i press escape and i can show you again that's the button on the keyboard it's usually in the top left corner of your keyboard you can press that and that will bring up your console this is where you can enter commands so let's get back to our game and i'll show you how that works okay so in our console we can put the icon password in like icon underscore password and then put the password in mine's ideas.csgo765 but whatever you chose in yours pop that in and then you can run other icon commands like for example if you want to restart the game we go icon mp underscore restart gaming 3 and that'll restart the game in three seconds um so that we can see the game will restart so that's how you do the commands there's obviously lots of commands you can use when you're running a server but those are the main ones you need just basically restart the game and then the ones we put in the config to set up whether it's deathmatch or competitive or casual whatever style you like so you've got the basics to run it i'm not going to cover every command in counter-strike obviously but i think you can run your own server pretty easily now okay so that's how you set up a public server now if you want to actually password protect this and have it as a private server i'll show you how to do that as well so we want to go to nano and enter that csgo server config location again back to our config what we want to do here we've got one called server password for private servers here so you can just add a password in here for example if um i want to make one idea spot i'll just share that with my friends who i want to share the server with and they have to use ideas but when they connect to the server but if you just leave it blank with the two quotation marks like that that's going to be blank and anyone can join your server so up to you if you want to run a public or private um i'll leave that up to you but that's how you do that part of it and then again control x y for yes and enter to save the config so that's basically all we need to do so that pretty much wraps it up so i've never done anything gaming related on the channel before so this is the first time let me know what you think in the comments about this tutorial now i obviously chose counter-strike source global offensive for this tutorial but this will actually work for a variety of other games you can run lots of different servers using linux game server manager um it's really more about which which ones you can run on one gigabyte of ram so i'm not really sure i think a lot of the older games will run just fine on one gigabyte and counter strike's obviously not too resource intensive so that works okay but there's actually 126 games supported on here so this method can be used on other servers with other games just make sure you've got enough memory and processing power to run whichever game you want to run but the same process is basically follow the instructions in here so let's let's just look at call of duty 2 for example again it's exactly the same thing you just install the dependencies run the install scripts and check out what the basic usage is to start stop and look at the server details so you can run many different kinds of game servers with this method so i think csgo is just a popular example so feel free to try this with other ideas as well but let me know if you'd like me to cover anything else or if you have any questions let me know in the comments but thanks for watching i'll see you next time
Info
Channel: IdeaSpot
Views: 37,219
Rating: undefined out of 5
Keywords:
Id: vpNXT1ylttw
Channel Id: undefined
Length: 21min 12sec (1272 seconds)
Published: Thu Aug 04 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.