{"id":2511,"date":"2016-08-15T17:24:58","date_gmt":"2016-08-15T21:24:58","guid":{"rendered":"https:\/\/www.globo.tech\/learning-center\/?p=2511"},"modified":"2017-11-24T14:26:20","modified_gmt":"2017-11-24T19:26:20","slug":"install-counterstrike-go-ubuntu-16","status":"publish","type":"post","link":"https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-ubuntu-16\/","title":{"rendered":"How to install Counter-Strike: GO server on Ubuntu 16"},"content":{"rendered":"<h1>How to install Counter-Strike: GO server on Ubuntu 16<\/h1>\n<p><a rel=\"nofollow\" href=\"http:\/\/www.valvesoftware.com\/games\/csgo.html\" target=\"_blank\">Counter-Strike: Global Offensive<\/a> is a popular, multi-player FPS title. While there are many available providers for running your own server, it is fairly easy to install it yourself on a cloud or virtual server. It is also less expensive, as your Linux server can host multiple distinct games. This guide will get you up and running quickly on a custom server running the Counter-Strike: GO server.<\/p>\n<h2>Getting Started<\/h2>\n<p>Confirm that you have the following before you follow this guide:<br \/>\n\u2022 1 Node (<a href=\"https:\/\/www.globo.tech\/cloud-server-pricing\" target=\"_blank\"><b>Cloud Server<\/b><\/a> or <a href=\"http:\/\/www.globo.tech\/dedicated-server-hosting\" target=\"_blank\"><b>Dedicated Server<\/b><\/a>) running Ubuntu 16.<br \/>\n\u2022 Root access to the node.<br \/>\n\u2022 All system updates applied<br \/>\n\u2022 Tar, nano, and wget, which should be included in the base Ubuntu installation already<br \/>\n\u2022 lib32gcc1<\/p>\n<h2>Tutorial<\/h2>\n<p>We&#8217;ll start by running the following commands, to get the latest updates:<\/p>\n<p><code>apt-get update && apt-get upgrade -y<br \/>\napt-get install nano wget tar lib32gcc1 -y<\/code><\/p>\n<p>You&#8217;ll need a Steam user created to install the server and validate the license. Let&#8217;s make your account now.<\/p>\n<p><code>adduser --disabled-login --disabled-password steam<\/code><\/p>\n<p>You can leave the informational fields blank if you wish, but you must enter &#8220;y&#8221; at the end of this process to validate account creation.<\/p>\n<p>Now we install the game server itself.<\/p>\n<p><code>cd \/home\/steam\/<br \/>\nsu - steam<br \/>\nwget https:\/\/steamcdn-a.akamaihd.net\/client\/installer\/steamcmd_linux.tar.gz<br \/>\ntar xvf steamcmd_linux.tar.gz<br \/>\nrm steamcmd_linux.tar.gz<br \/>\n.\/steamcmd.sh<\/code><\/p>\n<p>You are in Steam&#8217;s command shell. Enter the following commands to continue with the installation.<\/p>\n<p><code>login anonymous<br \/>\nforce_install_dir .\/csgo<br \/>\napp_update 740 validate<\/code><\/p>\n<p>When you see this output, your server&#8217;s installation is complete.<\/p>\n<p><code class=\"gris\">Update state (0x61) downloading, progress: 100.00 (15789214502 \/ 15789238956)<br \/>\nSuccess! App '740' fully installed.<\/code><br \/>\nExit the steamcmd shell by typing &#8220;quit&#8221;.<\/p>\n<p>If you&#8217;d like to allow more than LAN connections, which is essential if you&#8217;re running the game server remotely, you&#8217;ll need to obtain a server token. Server tokens require that you own CS:GO and also have a Steam account. To learn more, please see this Wiki page.<\/p>\n<p>When you&#8217;ve got your token, visit this link, logging in with the Steam account that owns CS:GO.<\/p>\n<h2>Registering Game Server Login Token<\/h2>\n<p>CS:GO game servers and GOTV relays not logged in to a persistent game server account with a Game Server Login Token (GSLT) will only allow clients to connect from the same LAN RFC1918 addresses (10.0.0.0-10.255.255.255,172.16.0.0-172.31.255.255,192.168.0.0-192.168.255.255). If your server has a public routable IP address and clients need to connect from outside the server LAN then you need to get registered for GSLT.<\/p>\n<p>To create your GSLTs, visit the GSLT creation utility and follow the instructions here: http:\/\/steamcommunity.com\/dev\/managegameservers<\/p>\n<p>Each GSLT is restricted for use on one dedicated server instance only, and should be passed on command line with +sv_setsteamaccount THISGSLTHERE. You can also use command line setting -net_port_try 1 to avoid instances from reusing the same GSLT by accident.<\/p>\n<p>Every game server operating with your GSLT must comply with game server operation guidelines outlined here: http:\/\/blog.counter-strike.net\/index.php\/server_guidelines\/<\/p>\n<p>Use 730 as the app ID for token registration. Note that the app ID for this field is 730, not 740.<\/p>\n<p>Enter whatever you like into the memo field. It is optional, and only for your own records.<\/p>\n<p>After validating the form, you&#8217;ll receive the necessary token to set up your server.<\/p>\n<p><code class=\"gris\">Game\tAuthentification token (GSLT)\tLast connection\tMemo<br \/>\n730\t*********************************<\/code> <\/p>\n<p>Now we&#8217;ll need a server configuration file.<\/p>\n<p><code>nano \/home\/steam\/csgo\/csgo\/cfg\/server.cfg<\/code><\/p>\n<p>Add this content into the file you&#8217;ve just opened:<\/p>\n<p><code class=\"gris\">hostname \"SERVER-HOSTNAME\"<br \/>\nsv_password \"SERVER-PASSWORD\"<br \/>\nsv_timeout 60<br \/>\nrcon_password \"RCON-PASSWORD\"<br \/>\nmp_autoteambalance 1<br \/>\nmp_limitteams 1<br \/>\nwriteid<br \/>\nwriteip<\/code> <\/p>\n<p><code class=\"gris\">hostname \"SERVER-HOSTNAME\" #The name of your server<\/code> <\/p>\n<p><code class=\"gris\">sv_password \"SERVER-PASSWORD\" #Server password, leave blank for no password.<\/code> <\/p>\n<p><code class=\"gris\">rcon_password \"RCON-PASSWORD\" #Rcon server password, to administrate your server remotely via Rcon.<\/code> <\/p>\n<p>As the root user, you&#8217;ll now need to create a startup script so your server launches at boot.<\/p>\n<p><code>nano \/lib\/systemd\/system\/csgo.service<\/code><\/p>\n<p>Use this content for the script, replacing [YOUR_GSLT] with the game server token obtained previously:<\/p>\n<p><code>[Unit]<br \/>\nDescription=CSGO Server<br \/>\n[Service]<br \/>\nType=simple<br \/>\nUser=steam<br \/>\nGroup=steam<br \/>\nRestart=on-failure<br \/>\nRestartSec=5<br \/>\nStartLimitInterval=60s<br \/>\nStartLimitBurst=3<br \/>\nExecStart=\/home\/steam\/csgo\/srcds_run srcdds -game csgo -console -usercon +game_type 0 +game_mode 1 +mapgroup mg_active +map de_dust2 +sv_setsteamaccount [YOUR_GSLT] -net_port_try 1<br \/>\nExecStop=killall -TERM srcds_linux<br \/>\n[Install]<br \/>\nWantedBy=multi-user.target<\/code><\/p>\n<h2>Learn more about server startup options and game modes.<\/h2>\n<p>With the script in place, we must next tell Ubuntu to launch it automatically on server boot.<\/p>\n<p><code>systemctl --system daemon-reload<br \/>\nsystemctl start csgo.service<br \/>\nsystemctl enable csgo.service<\/code><\/p>\n<p>Check that your server is running with this command:<\/p>\n<p><code>systemctl status csgo.service<\/code><\/p>\n<p>If you&#8217;re using Ubuntu&#8217;s firewall, here are some iptables rules to ensure that your server is reachable on the WAN.<\/p>\n<p><code>iptables -A INPUT -p udp -m udp --sport 27000:27030 --dport 1025:65355 -j ACCEPT<br \/>\niptables -A INPUT -p udp -m udp --sport 4380 --dport 1025:65355 -j ACCEPT<\/code><\/p>\n<p>Here are the relevant CS:GO ports:<\/p>\n<p>27000 to 27015 inclusive : UDP Game client traffic<\/p>\n<p>4380 : UDP Steamworks P2P Networking and Steam Voice Chat<\/p>\n<p>If you&#8217;re maintaining your iptables rules with iptables-services, here is a configuration file that will set all of this up automatically:<\/p>\n<p><code>-A INPUT -p udp -m udp --sport 27000:27030 --dport 1025:65355 -j ACCEPT<br \/>\n-A INPUT -p udp -m udp --sport 4380 --dport 1025:65355 -j ACCEPT<\/code><\/p>\n<h2>Conclusion<\/h2>\n<p>Get ready to play Counter-Strike: GO on your newly launched server. Be sure to invite your friends, and to share this article with them if they&#8217;re interested in setting up their own server<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>How to install Counter-Strike: GO server on Ubuntu 16 Counter-Strike: Global Offensive is a popular, multi-player FPS title. While there are many available providers for running your own server, it is fairly easy to install it yourself on a cloud or virtual server. It is also less expensive, as your Linux server can host multiple<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[71],"tags":[],"class_list":["post-2511","post","type-post","status-publish","format-standard","hentry","category-applications"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to install Counter-Strike: GO server on Ubuntu 16 - Globo.Tech<\/title>\n<meta name=\"description\" content=\"This tutorial will show you how to install Counter-Strike: Go Server on your Ubuntu 16 server. Read now &amp; Start playing with your friends.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-ubuntu-16\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install Counter-Strike: GO server on Ubuntu 16 - Globo.Tech\" \/>\n<meta property=\"og:description\" content=\"This tutorial will show you how to install Counter-Strike: Go Server on your Ubuntu 16 server. Read now &amp; Start playing with your friends.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-ubuntu-16\/\" \/>\n<meta property=\"og:site_name\" content=\"Globo.Tech\" \/>\n<meta property=\"article:published_time\" content=\"2016-08-15T21:24:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-11-24T19:26:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/09\/GloboTech-Logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"963\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"GloboTech Communications\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"GloboTech Communications\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-ubuntu-16\/\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-ubuntu-16\/\",\"name\":\"How to install Counter-Strike: GO server on Ubuntu 16 - Globo.Tech\",\"isPartOf\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#website\"},\"datePublished\":\"2016-08-15T21:24:58+00:00\",\"dateModified\":\"2017-11-24T19:26:20+00:00\",\"author\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87\"},\"description\":\"This tutorial will show you how to install Counter-Strike: Go Server on your Ubuntu 16 server. Read now & Start playing with your friends.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-ubuntu-16\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-ubuntu-16\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-ubuntu-16\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.globo.tech\/learning-center\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install Counter-Strike: GO server on Ubuntu 16\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#website\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/\",\"name\":\"Globo.Tech\",\"description\":\"Welcome to the Official Globo.Tech Learning Center\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87\",\"name\":\"GloboTech Communications\",\"sameAs\":[\"http:\/\/www.gtcomm.net\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install Counter-Strike: GO server on Ubuntu 16 - Globo.Tech","description":"This tutorial will show you how to install Counter-Strike: Go Server on your Ubuntu 16 server. Read now & Start playing with your friends.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-ubuntu-16\/","og_locale":"en_US","og_type":"article","og_title":"How to install Counter-Strike: GO server on Ubuntu 16 - Globo.Tech","og_description":"This tutorial will show you how to install Counter-Strike: Go Server on your Ubuntu 16 server. Read now & Start playing with your friends.","og_url":"https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-ubuntu-16\/","og_site_name":"Globo.Tech","article_published_time":"2016-08-15T21:24:58+00:00","article_modified_time":"2017-11-24T19:26:20+00:00","og_image":[{"width":1920,"height":963,"url":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/09\/GloboTech-Logo.png","type":"image\/png"}],"author":"GloboTech Communications","twitter_misc":{"Written by":"GloboTech Communications","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-ubuntu-16\/","url":"https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-ubuntu-16\/","name":"How to install Counter-Strike: GO server on Ubuntu 16 - Globo.Tech","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/#website"},"datePublished":"2016-08-15T21:24:58+00:00","dateModified":"2017-11-24T19:26:20+00:00","author":{"@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"description":"This tutorial will show you how to install Counter-Strike: Go Server on your Ubuntu 16 server. Read now & Start playing with your friends.","breadcrumb":{"@id":"https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-ubuntu-16\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-ubuntu-16\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-ubuntu-16\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.globo.tech\/learning-center\/"},{"@type":"ListItem","position":2,"name":"How to install Counter-Strike: GO server on Ubuntu 16"}]},{"@type":"WebSite","@id":"https:\/\/www.globo.tech\/learning-center\/#website","url":"https:\/\/www.globo.tech\/learning-center\/","name":"Globo.Tech","description":"Welcome to the Official Globo.Tech Learning Center","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87","name":"GloboTech Communications","sameAs":["http:\/\/www.gtcomm.net"]}]}},"_links":{"self":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/comments?post=2511"}],"version-history":[{"count":9,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2511\/revisions"}],"predecessor-version":[{"id":3836,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2511\/revisions\/3836"}],"wp:attachment":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media?parent=2511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/categories?post=2511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/tags?post=2511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}