{"id":458,"date":"2011-02-02T06:47:51","date_gmt":"2011-02-02T06:47:51","guid":{"rendered":"http:\/\/www.esds.co.in\/data-centers\/kb\/?p=458"},"modified":"2018-01-18T15:01:46","modified_gmt":"2018-01-18T15:01:46","slug":"how-to-install-linux-source-dedicated-server-srcds","status":"publish","type":"post","link":"https:\/\/www.esds.co.in\/kb\/how-to-install-linux-source-dedicated-server-srcds\/","title":{"rendered":"How to install Linux Source Dedicated Server (srcds) ?"},"content":{"rendered":"<p><!-- @page { margin: 0.79in } P { margin-bottom: 0.08in } -->In this article we will install the source dedicated server on the Linux platform with the help of HLDS- half life dedicated server. Half Life Dedicated Server basically is a software that powers many older steam games. Generally the Counter-Strike servers are the dedicated web servers running HDLS. We assume you have enough Linux knowledge to download, run files etc.<\/p>\n<p>&nbsp;<\/p>\n<h2>First step is to start with the HLDS Update tool<\/h2>\n<p>&nbsp;<\/p>\n<p>First of all download hldsupdatetool from the site. Make a dir called srcds_l, and save hldsupdatetool in that dir and run it. (Check the following code when you have an uncompress error. &#8211; To fix your ncompress option, you have 2 options. First, you can either install ncompress by getting a mandrake rpm for ncompress OR you and link it to gunzip<\/p>\n<p><strong>Code:<\/strong><\/p>\n<p>ln -s \/usr\/bin\/gunzip \/usr\/bin\/uncompress<br \/>\nNOTE: Your gunzip MIGHT be in \/bin\/gunzip )<\/p>\n<p><strong>Command(s):<\/strong><\/p>\n<p>mkdir srcds_l<br \/>\ncd srcds_l<br \/>\nwget http:\/\/www.steampowered.com\/download\/hldsupdatetool.bin<br \/>\nchmod +x hldsupdatetool.bin<br \/>\n.\/hldsupdatetool.bin<br \/>\n.\/steam<\/p>\n<p>The new version of HLDSUpdateTool will be downloaded now. You will be returned to the console after its done.<\/p>\n<p>After the first step we need to move ahead with the downloading the files, which can be done as follows:<\/p>\n<p>We can start downloading the files. This can take a few hours depending on the connection the server uses.<\/p>\n<p><strong>Command(s): <\/strong><\/p>\n<p>.\/steam -command update -game &#8220;Counter-Strike Source&#8221; -dir .<\/p>\n<p>If you want to install a Half-Life 2 Deathmatch server, use &#8220;hl2mp&#8221; for the game switch.<\/p>\n<p>Now its the time to start the scrds<\/p>\n<p>First edit (or create) srcds_l\/cstrike\/cfg\/server.cfg like you want it to be. Now we are ready to run the srcds.<br \/>\n.\/srcds_run -console -game cstrike +map de_dust -maxplayers 16 -autoupdate<br \/>\nand press enter. (-game hl2mp if it&#8217;s a HL2DM server ofcourse)<br \/>\nYour srcds is now up and running.<\/p>\n<p>To take the extra step you can do is Running srcds in background (re-attachable)<\/p>\n<p>We will make a script that will run the srcds in the background in a &#8220;screen&#8221;<br \/>\nyou will need to have screen installed for this. make a file called server.sh and put this in:<\/p>\n<p><strong>Command(s):<\/strong><\/p>\n<p>#!\/bin\/sh<br \/>\necho &#8220;Starting Cs:Source Server&#8221;<br \/>\nsleep 1<br \/>\nscreen -A -m -d -S css-server .\/srcds_run -console -game cstrike +map de_dust +maxplayers 16 -autoupdate<\/p>\n<p>&nbsp;<\/p>\n<p>Save the file, and chmod it to run<\/p>\n<p><strong>Command(s):<\/strong><\/p>\n<p>chmod +x server.sh<\/p>\n<p>If you want to start your server, simply run server.sh . It will start your srcd server in the background, to open it type:<\/p>\n<p><strong>Command(s):<\/strong><\/p>\n<p>screen -x css-server<\/p>\n<p>If you want to close it again press ctrl+a+d, and it will detach the screen and keep it running in the background.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article we will install the source dedicated server on the Linux platform with the help of HLDS- half life dedicated server. Half Life Dedicated Server basically is a software that powers many older steam games. Generally the Counter-Strike servers are the dedicated web servers running HDLS. We assume you have enough Linux knowledge&#8230; <\/p>\n<div class=\"clear\"><\/div>\n<p><a href=\"https:\/\/www.esds.co.in\/kb\/how-to-install-linux-source-dedicated-server-srcds\/\" class=\"gdlr-button small excerpt-read-more\">Read More<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[187,788,186],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.9.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux Dedicated web server | best dedicated server<\/title>\n<meta name=\"description\" content=\"This KB explains the whole procedure of how to install the Linux Source Dedicated Server on the linux platform with the help of HLDS.\" \/>\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.esds.co.in\/kb\/how-to-install-linux-source-dedicated-server-srcds\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux Dedicated web server | best dedicated server\" \/>\n<meta property=\"og:description\" content=\"This KB explains the whole procedure of how to install the Linux Source Dedicated Server on the linux platform with the help of HLDS.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.esds.co.in\/kb\/how-to-install-linux-source-dedicated-server-srcds\/\" \/>\n<meta property=\"og:site_name\" content=\"ESDS Official Knowledgebase\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ESDSdc\/\" \/>\n<meta property=\"article:published_time\" content=\"2011-02-02T06:47:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-01-18T15:01:46+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ESDSDataCenter\" \/>\n<meta name=\"twitter:site\" content=\"@ESDSDataCenter\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"2 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/#website\",\"url\":\"https:\/\/www.esds.co.in\/kb\/\",\"name\":\"ESDS Official Knowledgebase\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.esds.co.in\/kb\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/how-to-install-linux-source-dedicated-server-srcds\/#webpage\",\"url\":\"https:\/\/www.esds.co.in\/kb\/how-to-install-linux-source-dedicated-server-srcds\/\",\"name\":\"Linux Dedicated web server | best dedicated server\",\"isPartOf\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/#website\"},\"datePublished\":\"2011-02-02T06:47:51+00:00\",\"dateModified\":\"2018-01-18T15:01:46+00:00\",\"author\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/#\/schema\/person\/d951a1b6843822458f3c5f5ee02a74e8\"},\"description\":\"This KB explains the whole procedure of how to install the Linux Source Dedicated Server on the linux platform with the help of HLDS.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/how-to-install-linux-source-dedicated-server-srcds\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.esds.co.in\/kb\/how-to-install-linux-source-dedicated-server-srcds\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/how-to-install-linux-source-dedicated-server-srcds\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/\",\"url\":\"https:\/\/www.esds.co.in\/kb\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/how-to-install-linux-source-dedicated-server-srcds\/\",\"url\":\"https:\/\/www.esds.co.in\/kb\/how-to-install-linux-source-dedicated-server-srcds\/\",\"name\":\"How to install Linux Source Dedicated Server (srcds) ?\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/#\/schema\/person\/d951a1b6843822458f3c5f5ee02a74e8\",\"name\":\"ESDS ADMIN\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5618393df3c15e5b6b3b9ef917e83827?s=96&d=mm&r=g\",\"caption\":\"ESDS ADMIN\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts\/458"}],"collection":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/comments?post=458"}],"version-history":[{"count":8,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts\/458\/revisions"}],"predecessor-version":[{"id":3512,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts\/458\/revisions\/3512"}],"wp:attachment":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/media?parent=458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/categories?post=458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/tags?post=458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}