<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blog by Andreas Glaser &#187; Awk</title>
	<atom:link href="http://www.andreas-glaser.com/tag/awk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.andreas-glaser.com</link>
	<description>Development, Technology and such...</description>
	<lastBuildDate>Wed, 18 May 2011 23:16:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>CounterStrike Source Linux Server Startscript</title>
		<link>http://www.andreas-glaser.com/2008/09/05/counterstrike-source-linux-server-startscript/</link>
		<comments>http://www.andreas-glaser.com/2008/09/05/counterstrike-source-linux-server-startscript/#comments</comments>
		<pubDate>Fri, 05 Sep 2008 17:01:10 +0000</pubDate>
		<dc:creator>Andreas Glaser</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Gaming]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Shell Script]]></category>
		<category><![CDATA[Operating system]]></category>
		<category><![CDATA[Awk]]></category>
		<category><![CDATA[CounterStrike]]></category>
		<category><![CDATA[Screen]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Source]]></category>
		<category><![CDATA[Start]]></category>

		<guid isPermaLink="false">http://www.andreas-glaser.com/?p=103</guid>
		<description><![CDATA[Here it is&#8230; a well commented and easy for rookies to understand CounterStrike Source Linux Server Startscript. It includes all basic start parameter as well as a good error display system. How to use: After you successfully installed a Counterstrike Source Server under Linux with the SRCDS tool you just have to download the startscript [...]]]></description>
			<content:encoded><![CDATA[<p>Here it is&#8230; a well commented and easy for rookies to understand CounterStrike Source Linux Server Startscript. It includes all basic start parameter as well as a good error display system.</p>
<p><strong>How to use:</strong></p>
<p>After you successfully installed a Counterstrike Source Server under Linux with the <a title="http://www.srcds.com/" href="http://www.srcds.com/" target="_blank">SRCDS</a> tool you just have to download the startscript at the bottom of this post.<br />
Save the &#8220;startscript&#8221; into the root directory of your CSS server and change the permission to &#8220;u + x&#8221; (chmod u+x startscript).</p>
<p>Now open the start script with your preferred editor (vim, joe, mono etc.) and customize the configuration variables to your system.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p103code2'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1032"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
</pre></td><td class="code" id="p103code2"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">############################*</span>
<span style="color: #666666; font-style: italic;"># Configuration (Required):</span>
<span style="color: #666666; font-style: italic;">#</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|</span>
<span style="color: #666666; font-style: italic;"># |~~ 1. SYSTEM PARAMETERS ~~~~~~~~~~|</span>
<span style="color: #666666; font-style: italic;"># |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Set the user who owns the CounterStrike Server (root is not recommended)</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: Existing user on your system</span>
<span style="color: #007800;">SYS_USER</span>=<span style="color: #ff0000;">&quot;root&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Path to the root directory of the server</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: System path</span>
<span style="color: #007800;">SYS_DIR</span>=<span style="color: #ff0000;">&quot;/path/to/your/server/&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Server daemon</span>
<span style="color: #666666; font-style: italic;"># ~~ Default Value: srcds_run</span>
<span style="color: #007800;">SYS_DAEMON</span>=<span style="color: #ff0000;">&quot;srcds_run&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Name of the server on your system</span>
<span style="color: #007800;">SYS_NAME</span>=<span style="color: #ff0000;">&quot;CSS001&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Description of the server</span>
<span style="color: #007800;">SYS_DESC</span>=<span style="color: #ff0000;">&quot;My first CSS Server&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|</span>
<span style="color: #666666; font-style: italic;"># |~~ 2. SERVER START PARAMETER ~~~~~|</span>
<span style="color: #666666; font-style: italic;"># |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: IPv4 Address of your server</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: XXX.XXX.XXX.XXX</span>
<span style="color: #007800;">START_PARAMS_IP</span>=<span style="color: #ff0000;">&quot;127.0.0.1&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Port of your server</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: Between 0 and 65535</span>
<span style="color: #666666; font-style: italic;"># ~~ Default Value: 27015</span>
<span style="color: #007800;">START_PARAMS_PORT</span>=<span style="color: #ff0000;">&quot;27016&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Defines the default maps</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: Every on the server installed map is possible</span>
<span style="color: #007800;">START_PARAMS_MAP</span>=<span style="color: #ff0000;">&quot;de_dust2&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Defines the amount of player slots</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: Between 1 and 32</span>
<span style="color: #007800;">START_PARAMS_MAXPLAYERS</span>=<span style="color: #ff0000;">&quot;24&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Defines wether VAC (Valve Anti Cheat) is activated</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: secure / insecure</span>
<span style="color: #666666; font-style: italic;"># ~~ Default Value: secure</span>
<span style="color: #007800;">START_PARAMS_SECURE</span>=<span style="color: #ff0000;">&quot;secure&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Pingboost</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: 0 / 1 / 2 / 3</span>
<span style="color: #666666; font-style: italic;"># ~~ Default Value: 0</span>
<span style="color: #007800;">START_PARAMS_PINGBOOST</span>=<span style="color: #ff0000;">&quot;0&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;"># ~~ Description: Defines the tickrate</span>
<span style="color: #666666; font-style: italic;"># ~~ Params: 33 / 66 / 100</span>
<span style="color: #666666; font-style: italic;"># ~~ Default Value: 33</span>
<span style="color: #007800;">START_PARAMS_TICKRATE</span>=<span style="color: #ff0000;">&quot;100&quot;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># CONFIGURATION END</span>
<span style="color: #666666; font-style: italic;">############################*</span></pre></td></tr></table></div>

<p>After this step just execute the start script (./startscript start).</p>
<p>Thats it!</p>
<p><strong>Required Linux packages</strong></p>
<ul>
<li><a title="http://www.google.com/linux?hl=en&amp;q=awk&amp;btnG=Search" href="http://www.google.com/linux?hl=en&amp;q=awk&amp;btnG=Search" target="_blank">awk</a></li>
<li><a title="http://www.google.com/linux?hl=en&amp;q=screen&amp;btnG=Search" href="http://www.google.com/linux?hl=en&amp;q=screen&amp;btnG=Search" target="_blank">screen</a></li>
</ul>
<p><strong>Download</strong></p>
Note: There is a file embedded within this post, please visit this post to download the file.
<p><strong>So long,<br />
Andreas Glaser (aka JaZz)</strong></p>
<fb:like href='http://www.andreas-glaser.com/2008/09/05/counterstrike-source-linux-server-startscript/' send='' layout='standard' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida+grande'></fb:like>]]></content:encoded>
			<wfw:commentRss>http://www.andreas-glaser.com/2008/09/05/counterstrike-source-linux-server-startscript/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

