{"id":2605,"date":"2016-08-31T12:45:48","date_gmt":"2016-08-31T16:45:48","guid":{"rendered":"https:\/\/www.globo.tech\/learning-center\/?p=2605"},"modified":"2017-12-12T16:06:14","modified_gmt":"2017-12-12T21:06:14","slug":"install-counterstrike-go-server-ubuntu-14","status":"publish","type":"post","link":"https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-server-ubuntu-14\/","title":{"rendered":"How to install Counter-Strike: GO server on Ubuntu 14"},"content":{"rendered":"<h1>How to install Counter-Strike: GO server on Ubuntu 14<\/h1>\n<p>The fourth installment of the popular franchise Counter-Strike, called Counter-Strike: Global Offensive, is one of the few first person shooters available to Linux users. Accordingly, your Linux box is an excellent candidate to host a server for Counter-Strike: GO. With our guide, you can make installation a painless, error free process.<\/p>\n<h2>Getting started<\/h2>\n<p>Before proceeding with the steps in this guide, make sure you have the following:<br \/>\n\u2022 1 Node (<a href=\"https:\/\/www.globo.tech\/cloud-server-pricing\" target=\"_blank\">Cloud Server<\/a> or <a href=\"http:\/\/www.globo.tech\/dedicated-server-hosting\" target=\"_blank\">Dedicated Server<\/a>) running Ubuntu 14.<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>Your first step is to make sure that your system is up to date.<br \/>\n<code>apt-get update && apt-get upgrade -y<\/code><\/p>\n<p>We&#8217;ve prepared the following commands for you to run on your Ubuntu 14.04 LTS server.<br \/>\n<code>apt-get install nano wget tar lib32gcc1 -y<\/code><\/p>\n<p>You will need to create a user for Steam.<br \/>\n<code>adduser --disabled-login --disabled-password steam<\/code><\/p>\n<p>Feel free to leave the info fields empty, as they aren&#8217;t necessary. At the end of the process, validate the information by pressing Y or Enter.<\/p>\n<p>Next, we&#8217;ll proceed with the steps for installation. Enter the Steam command shell:<\/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>Once you&#8217;re in the shell, issue this command:<\/p>\n<p><code>login anonymous<br \/>\nforce_install_dir .\/csgo<br \/>\napp_update 740 validate<\/code><\/p>\n<p>Now wait for the server software to download and be installed. You should see this message when everything&#8217;s done.<\/p>\n<p><code class=\"gris\">Update state (0x61) downloading, progress: 100.00 (15789214502 \/ 15789238956)<br \/>\nSuccess! App '740' fully installed.<\/code><\/p>\n<p>All that remains is to type quit to exit the shell.<\/p>\n<p>For WAN connections, Counter-Strike: GO will require a server token. (If you&#8217;re just running over LAN, this won&#8217;t be necessary.) Naturally, you&#8217;ll need to have a Steam account and own a copy of Counter-Strike:GO.<\/p>\n<p>For more information on the Game Server Login Token, be sure to consult Valve\u2019s Counter Strike: GO wiki. Here&#8217;s an extract of the pertinent information:<\/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>Follow this link: http:\/\/steamcommunity.com\/dev\/managegameservers and log in with the Steam account that has access to your copy of Counter Strike: GO.<\/p>\n<p>You&#8217;ll see a form to fill in. Here&#8217;s the information that you&#8217;ll need to supply:<br \/>\nApp ID: 730 (Be sure to type 730 here, and not 740 as you did in the Steam command line earlier!)<br \/>\nMemo: This is an optional description that you can use for your own purposes.<\/p>\n<p>After validation, you&#8217;ll recieve your token.<\/p>\n<p><code class=\"gris\">Game Authentification token (GSLT) Last connection Memo<br \/>\n730 *********************************\t<\/code><\/p>\n<p>Let&#8217;s move on to server configuration and your startup script. You will need to first create the server configuration file.<br \/>\n<code>nano \/home\/steam\/csgo\/csgo\/cfg\/server.cfg<\/code><\/p>\n<p>Open the file and add this content to it.<\/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\" #This is the name of your server<\/code><br \/>\n<code class=\"gris\">sv_password \"SERVER-PASSWORD\" #This is your server password. You can leave it blank for no password.<\/code><br \/>\n<code class=\"gris\">rcon_password \"RCON-PASSWORD\" #This is your Rcon server password, if you'd like to administrate your server remotely via Rcon.<\/code><\/p>\n<p>You&#8217;ll need to enter the following commands as your root user. Create a startup script that will automatically start Counter-Strike: GO if the server reboots. The script will be stored in this file:<\/p>\n<p><code>nano \/etc\/init.d\/csgo<\/code><\/p>\n<p>Add the below content to the file, being sure to replace [YOUR_GSLT] in the script with your actual game server token.<br \/>\n<code class=\"gris\">!\/bin\/sh -e<br \/>\nDAEMON=\"\/home\/steam\/csgo\/srcds_run\"<br \/>\ndaemon_OPT=\"-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 \/>\nDAEMONUSER=\"steam\"<br \/>\ndaemon_NAME=\"srcds_run\"<br \/>\nPATH=\"\/sbin:\/bin:\/usr\/sbin:\/usr\/bin\"<br \/>\ntest -x $DAEMON || exit 0<br \/>\n. \/lib\/lsb\/init-functions<br \/>\nd_start () {<br \/>\n        log_daemon_msg \"Starting system $daemon_NAME Daemon\"<br \/>\n\tstart-stop-daemon --background --name $daemon_NAME --start --quiet --chuid $DAEMONUSER --exec $DAEMON -- $daemon_OPT<br \/>\n        log_end_msg $?<br \/>\n}<br \/>\nd_stop () {<br \/>\n        log_daemon_msg \"Stopping system $daemon_NAME Daemon\"<br \/>\n        start-stop-daemon --name $daemon_NAME --stop --retry 5 --quiet --name $daemon_NAME<br \/>\n\tlog_end_msg $?<br \/>\n}<br \/>\ncase \"$1\" in<br \/>\n        start|stop)<br \/>\n                d_${1}<br \/>\n                ;;<br \/>\n        restart|reload|force-reload)<br \/>\n                        d_stop<br \/>\n                        d_start<br \/>\n                ;;<br \/>\n        force-stop)<br \/>\n               d_stop<br \/>\n                killall -q $daemon_NAME || true<br \/>\n                sleep 2<br \/>\n                killall -q -9 $daemon_NAME || true<br \/>\n                ;;<br \/>\n        *)<br \/>\n                echo \"Usage: \/etc\/init.d\/$daemon_NAME {start|stop|force-stop|restart|reload|force-reload|status}\"<br \/>\n                exit 1<br \/>\n                ;;<br \/>\nesac<br \/>\nexit 0<\/code><\/p>\n<p>If you&#8217;re looking for more information about game mode and game settings, check out Valve&#8217;s wiki page on starting the server.<\/p>\n<p>We\u2019ll need to make the script executable.<br \/>\n<code>chmod +x \/etc\/init.d\/csgo<\/code><\/p>\n<p>Then, enable your Counter-Strike: GO Server to start on boot.<br \/>\n<code>update-rc.d csgo defaults<\/code><\/p>\n<p>Start up the server.<br \/>\n<code>\/etc\/init.d\/csgo start<\/code><\/p>\n<p>The final step is to edit your firewall so Counter-Strike: GO traffic can flow to and from your server. If you are using Ubuntu&#8217;s default firewall service, iptables, here is how to open your ports both for Steam services &#038; the Counter-Strike: GO server.<br \/>\n<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>The ports that you&#8217;re allowing will carry this traffic:<br \/>\n\u2022\t27000 to 27015 inclusive: UDP Game client traffic<br \/>\n\u2022\t27015 to 27030 inclusive: UDP Typically Matchmaking and HLTV<br \/>\n\u2022\t4380 : UDP Steamworks P2P Networking and Steam Voice Chat<\/p>\n<p>And if you&#8217;re using the iptables-services package, make sure to add this set of rules to your iptables file.<br \/>\n<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\u2019re 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 14 The fourth installment of the popular franchise Counter-Strike, called Counter-Strike: Global Offensive, is one of the few first person shooters available to Linux users. Accordingly, your Linux box is an excellent candidate to host a server for Counter-Strike: GO. With our guide, you can make installation<!-- 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-2605","post","type-post","status-publish","format-standard","hentry","category-applications","operating_system-ubuntu-14-04"],"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 14 - Globo.Tech<\/title>\n<meta name=\"description\" content=\"This tutorial will show you how to install Counter-Strike: Go server on your Ubuntu 14 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-server-ubuntu-14\/\" \/>\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 14 - Globo.Tech\" \/>\n<meta property=\"og:description\" content=\"This tutorial will show you how to install Counter-Strike: Go server on your Ubuntu 14 server. Read now &amp; Start playing with your friends.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-server-ubuntu-14\/\" \/>\n<meta property=\"og:site_name\" content=\"Globo.Tech\" \/>\n<meta property=\"article:published_time\" content=\"2016-08-31T16:45:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-12-12T21:06:14+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=\"6 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-server-ubuntu-14\/\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-server-ubuntu-14\/\",\"name\":\"How to install Counter-Strike: GO server on Ubuntu 14 - Globo.Tech\",\"isPartOf\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#website\"},\"datePublished\":\"2016-08-31T16:45:48+00:00\",\"dateModified\":\"2017-12-12T21:06:14+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 14 server. Read now & Start playing with your friends.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-server-ubuntu-14\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-server-ubuntu-14\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-server-ubuntu-14\/#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 14\"}]},{\"@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 14 - Globo.Tech","description":"This tutorial will show you how to install Counter-Strike: Go server on your Ubuntu 14 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-server-ubuntu-14\/","og_locale":"en_US","og_type":"article","og_title":"How to install Counter-Strike: GO server on Ubuntu 14 - Globo.Tech","og_description":"This tutorial will show you how to install Counter-Strike: Go server on your Ubuntu 14 server. Read now & Start playing with your friends.","og_url":"https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-server-ubuntu-14\/","og_site_name":"Globo.Tech","article_published_time":"2016-08-31T16:45:48+00:00","article_modified_time":"2017-12-12T21:06:14+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":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-server-ubuntu-14\/","url":"https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-server-ubuntu-14\/","name":"How to install Counter-Strike: GO server on Ubuntu 14 - Globo.Tech","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/#website"},"datePublished":"2016-08-31T16:45:48+00:00","dateModified":"2017-12-12T21:06:14+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 14 server. Read now & Start playing with your friends.","breadcrumb":{"@id":"https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-server-ubuntu-14\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-server-ubuntu-14\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.globo.tech\/learning-center\/install-counterstrike-go-server-ubuntu-14\/#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 14"}]},{"@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\/2605","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=2605"}],"version-history":[{"count":6,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2605\/revisions"}],"predecessor-version":[{"id":4016,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2605\/revisions\/4016"}],"wp:attachment":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media?parent=2605"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/categories?post=2605"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/tags?post=2605"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}