<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[First Strike Forums — Dedicated Server Step-by-step Howto Linux]]></title>
	<link rel="self" href="https://forums.fsmod.com/extern.php?action=feed&amp;tid=5634&amp;type=atom" />
	<updated>2009-03-04T10:18:55Z</updated>
	<generator version="1.4.5">PunBB</generator>
	<id>https://forums.fsmod.com/viewtopic.php?id=5634</id>
		<entry>
			<title type="html"><![CDATA[Re: Dedicated Server Step-by-step Howto Linux]]></title>
			<link rel="alternate" href="https://forums.fsmod.com/viewtopic.php?pid=122410#p122410" />
			<content type="html"><![CDATA[<p>Could do with a post 1.4 update for this as<strong> FS 1.4</strong> is problematic at best for <strong>Linux</strong> based servers.</p>]]></content>
			<author>
				<name><![CDATA[FSDev| TALON]]></name>
				<uri>https://forums.fsmod.com/profile.php?id=536</uri>
			</author>
			<updated>2009-03-04T10:18:55Z</updated>
			<id>https://forums.fsmod.com/viewtopic.php?pid=122410#p122410</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dedicated Server Step-by-step Howto Linux]]></title>
			<link rel="alternate" href="https://forums.fsmod.com/viewtopic.php?pid=101050#p101050" />
			<content type="html"><![CDATA[<p>Cheers, <strong>Imperial</strong>, that is helpful, we are looking into <strong>BF2142cc</strong> now actually, so maybe we&#039;ll find something useful there like you say.</p>]]></content>
			<author>
				<name><![CDATA[FSDev| TALON]]></name>
				<uri>https://forums.fsmod.com/profile.php?id=536</uri>
			</author>
			<updated>2008-03-25T19:50:40Z</updated>
			<id>https://forums.fsmod.com/viewtopic.php?pid=101050#p101050</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dedicated Server Step-by-step Howto Linux]]></title>
			<link rel="alternate" href="https://forums.fsmod.com/viewtopic.php?pid=101047#p101047" />
			<content type="html"><![CDATA[<p>This is controlled by a custom python script.&nbsp; Most windows servers do it because it is included with 2142cc, however it is not a default feature of 2142.&nbsp; If you look around I&#039;m sure there is a python script that is not modmanager dependent that you can use on your linux server.</p>]]></content>
			<author>
				<name><![CDATA[Imperial]]></name>
				<uri>https://forums.fsmod.com/profile.php?id=587</uri>
			</author>
			<updated>2008-03-25T19:25:23Z</updated>
			<id>https://forums.fsmod.com/viewtopic.php?pid=101047#p101047</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dedicated Server Step-by-step Howto Linux]]></title>
			<link rel="alternate" href="https://forums.fsmod.com/viewtopic.php?pid=101044#p101044" />
			<content type="html"><![CDATA[<p>Aye, I can get it. It seems there is no script to control the team swap after a round. It does this automatically on <strong>Windows OS</strong> run <strong>Dedicated Servers</strong>, and from within the game as if it is a default setting, but with <strong>Linux</strong> there is no line of code for it and by default it just leaves everyone on the same side when it rolls over to a second round on the same map. A tad annoying eh?</p><p>Had a look through the <strong>serversettings.con</strong> file from the standard remote server control panel and couldn&#039;t find a script to control it there either.</p>]]></content>
			<author>
				<name><![CDATA[FSDev| TALON]]></name>
				<uri>https://forums.fsmod.com/profile.php?id=536</uri>
			</author>
			<updated>2008-03-25T18:50:02Z</updated>
			<id>https://forums.fsmod.com/viewtopic.php?pid=101044#p101044</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dedicated Server Step-by-step Howto Linux]]></title>
			<link rel="alternate" href="https://forums.fsmod.com/viewtopic.php?pid=101042#p101042" />
			<content type="html"><![CDATA[<p>Can you copy and paste the “serversettings.con” from your server?</p>]]></content>
			<author>
				<name><![CDATA[Athlon]]></name>
				<uri>https://forums.fsmod.com/profile.php?id=2050</uri>
			</author>
			<updated>2008-03-25T17:38:30Z</updated>
			<id>https://forums.fsmod.com/viewtopic.php?pid=101042#p101042</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dedicated Server Step-by-step Howto Linux]]></title>
			<link rel="alternate" href="https://forums.fsmod.com/viewtopic.php?pid=101038#p101038" />
			<content type="html"><![CDATA[<p>How do you make the server switch players to the opposite side after a round? It seems to be a default setting in general, but for some reason our <strong>Linux</strong> run server has you remain on the same side when you play a second round on the same map. Both the server admin and myself have done quite a bit of research on this and come up with nothing. Any ideas?</p>]]></content>
			<author>
				<name><![CDATA[FSDev| TALON]]></name>
				<uri>https://forums.fsmod.com/profile.php?id=536</uri>
			</author>
			<updated>2008-03-25T14:01:48Z</updated>
			<id>https://forums.fsmod.com/viewtopic.php?pid=101038#p101038</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Dedicated Server Step-by-step Howto Linux]]></title>
			<link rel="alternate" href="https://forums.fsmod.com/viewtopic.php?pid=78208#p78208" />
			<content type="html"><![CDATA[<p>With this little howto I&#039;m trying to give new Linux administrators a better chance to successfully run a FirstStrike Dedicated Server.<br />I assume that you don&#039;t have a BF2142 Server installed yet.<br />I also assume that you don&#039;t have physical access to the machine and therefore use PuTTY or a similar&nbsp; program to access the terminal.</p><p>So here we go:</p><br /><p>0) SSH into your machine with your root account. If you don&#039;t have root access use the next best account and do all the stuff below in your home directory instead of the root file system.</p><p>1) Create a new directory in /opt called gameserver and change directory into it using this command:<br /><em>mkdir /opt/gameserver &amp;&amp; cd /opt/gameserver</em></p><p>2) Get the BF2142 dedicated server package from EA using this command:<br /><em>wget <a href="http://largedownloads.ea.com/pub/patches/BF2142/1.25/NonRankedStandAloneServer/bf2142-linuxded-1.08.21.0-installer.sh.zip">http://largedownloads.ea.com/pub/patche … ler.sh.zip</a></em><br />This will download the required BF2142 dedicated server version 1.25 and will take long, grab a coffee, beer or other liquid in your vicinity.</p><p>3) Once the download has finished, type:<br /><em>unzip bf2142-linuxded-1.08.21.0-installer.sh.zip</em><br />to unzip the file.</p><p>4) Type <br /><em>sh bf2142-linuxded-1.08.21.0-installer.sh</em> <br />wait for it to verify and press <em>return</em>, scroll down the license agreement, type accept, return, scroll-down, type yes, return.<br />Once it prompts you for the installation directory, type /opt/gameserver</p><p>5) Get the FirstStrike R1 dedicated server package: <br /><em>wget <a href="http://88.198.54.112/pub/fs_pub/firststrike_r1_dedicatedserver.zip">http://88.198.54.112/pub/fs_pub/firstst … server.zip</a></em></p><p>6) Unzip the FS dedicated server to /opt/gameserver/bf2142/mods<br /><em>unzip firststrike_r1_dedicatedserver.zip -d /opt/gameserver/bf2142/mods</em></p><p>7) Using your favorite editor, edit the serversettings.con:<br /><em>mcedit bf2142/mods/firststrike/settings/serversettings.con</em><br />Note: You can also use joe, emacs, vi(m) or nano instead of mcedit. Any editor you feel comfortable with.</p><p>8) Edit serversettings.con to match your needs.<br />It&#039;s very important that you change sv.internet to 1, sv.serverIP to your server&#039;s IP and sv.interfaceIP to your server&#039;s IP as well or it will not be visible online.</p><p>9) Save serversettings.con and close the editor.</p><p>10) Try out the server! :D <br />cd into bf2142 and type<br /><em>./start.sh +modPath mods/firststrike +maplist mods/firststrike/settings/maplist.con +gameMode gpm_cq +maxPlayers 32</em></p><p>If everything runs fine you can do some advanced stuff, for example make up a script that automatically restarts the server on crash and put the server into a screen so that it doesn&#039;t get closed if you close the PuTTY session and run the server on boot.</p><br /><p>Also, I recommend that you do not run the server as root, instead create a user for running the gameserver like so:<br /><em>useradd --home /opt/gameserver serveruser</em><br />You have to change the ownership of all the extracted server files afterwards so that they belong to the new user:<br /><em>chown -R serveruser:serveruser /opt/gameserver</em></p><br /><p><strong>For autorestarting the server on crash</strong> create a new file in /opt/gameserver using<br /><em>mcedit /opt/gameserver/bf2142_fs.sh</em><br />Note: Again, you can use any editor you like.</p><p>And copy this script:</p><div class="quotebox"><blockquote><p>#!/bin/bash<br /># Change the variable below to your bf2142 directory<br />GAMEPATH=/opt/gameserver/bf2142<br />USER=serveruser</p><p>while true<br />do<br />cd $GAMEPATH<br />sudo -u $USER ./start.sh +modPath mods/firststrike +maplist mods/firststrike/settings/maplist.con +gameMode gpm_cq +maxPlayers 32<br />echo &quot;Server crashed on &quot; &gt;&gt; $GAMEPATH/mods/firststrike/logs/crash.log<br />echo `date +%d.%m.%Y_%H:%M` &gt;&gt; $GAMEPATH/mods/firststrike/logs/crash.log<br />done</p></blockquote></div><p><strong>For making the server start on each boot up</strong> you can add a short script in /etc/init.d<br />called _gameserver.sh which puts your server in an accessible screen session on each boot.<br />You can then view your server session using <em>screen -r bf2142_fs</em> but you have to install the screen utility first.<br />Anyway, let&#039;s add the start-up script.<br /><em>mcedit /etc/init.d/_gameserver.sh</em><br />with these contents:</p><div class="quotebox"><blockquote><p>#!/bin/sh<br /># Start gameservers on boot-up</p><p>case &quot;$1&quot; in<br />&#039;start&#039;)<br />&nbsp; &nbsp; screen -dmS bf2142_fs /opt/gameserver/bf2142_fs.sh <br />&nbsp; &nbsp; ;;<br />&#039;stop&#039;)<br />&nbsp; &nbsp; ;;<br />*)<br />&nbsp; &nbsp; echo &quot;Usage: $0 { start | stop }&quot;<br />&nbsp; &nbsp; ;;<br />esac<br />exit 0</p></blockquote></div><p>Note: This is for Debian-based Distros only! I don&#039;t know where other distros have their start-up scripts.</p><br /><p>Hope this makes it a bit easier for you.</p><p>If you find any mistakes or have a question please just ask here :)</p>]]></content>
			<author>
				<name><![CDATA[FSDev| Svenstaro]]></name>
				<uri>https://forums.fsmod.com/profile.php?id=140</uri>
			</author>
			<updated>2007-09-28T14:39:10Z</updated>
			<id>https://forums.fsmod.com/viewtopic.php?pid=78208#p78208</id>
		</entry>
</feed>
