1

Topic: HOWTO: dedicated warsow server on linux

This thread won't be updated regularly from now on, please have a look at the Wiki article instead.

Requirements
You need a x86 computer running an up-to-date linux distribution, which you can access either directly or via SSH. (I will not explain how to connect to a linux console here, because this should be clear for everybody who runs such a computer.)
I also assume that you have your favourite editor set to $EDITOR and that you're quite familiar on how to edit text files (especially server configuration files). If you stick to my guide really closely, you will also need wget, tar (with gzip support) and screen. However, these tools should be available on every linux computer.

Installation
Firstly, fetch the current linux version of Warsow (the full version, not the update) from the official page.

wget http://ftp.club-internet.fr/pub/games/nofrag/warsow/warsow_0.2_linux.tar.gz

Secondly, extract the archive.

tar xfz warsow_0.2_linux.tar.gz

Now, you have a new folder called "warsow" which contains all media and the x86 linux executable. Although one could start the server right now using wsw_server, one should first edit the server's config file for one's needs.

cd warsow
$EDITOR basewsw/dedicated_autoexec.cfg

After having done so, one could simply run the server with

./wsw_server

Tricks
But what if the server crashes? You would have to fire it up again manually, which really sucks. wink
We can just put the server into a loop which constantly restarts the process if it quits. To do this, simply create a textfile with the name dedicated.sh with the following content.

#!/bin/sh
while true; do
./wsw_server
done

Now we need to make this file executable with

chmod u+x dedicated.sh

If you now run the file dedicated.sh, it starts the server over and over again, until you kill the loop. The bad thing about this is, that the process would run in the foreground and as soon as you close the console, your server would be gone. One could send the process into the background with adding an ampersand (&) after the command line which starts the server, but this would make you unable to access the server's console again.
Because of this, I use screen to call my Warsow server like this:

screen -A -m -d -S warsowtdm ./dedicated.sh

This launches my Warsow server in the background using a screen session named "warsowtdm" and I'm still able to re-attach it with:

screen -r warsowtdm

and detach it again pressing Ctrl+A, D.

Last edited by hangy (2006-09-15 14:21)

hangy.de!

<@metalmilitia> the code looks failproof smile
<@metalmilitia> but it's untested

2

Re: HOWTO: dedicated warsow server on linux

Jup. You see how easy it really is. Now I wanna see more servers :]

Re: HOWTO: dedicated warsow server on linux

Yea installed linux but I don't get it big_smile (9 Years of Windows contaminate your brain) I can do simple operations like mkdir, cp, rm, mv. But when it comes to installation of programs I kinda get stuck. I succeed to install Opera and XChat over the GUI but I don't know how to do it over the console. Any good sites to "learn" how linux works?

4

Re: HOWTO: dedicated warsow server on linux

In french : lea-linux.org.

5

Re: HOWTO: dedicated warsow server on linux

I guess goochie would like something in German like Die Linuxfibel. smile

hangy.de!

<@metalmilitia> the code looks failproof smile
<@metalmilitia> but it's untested

6

Re: HOWTO: dedicated warsow server on linux

Just kill Windows and force yourself to only use gnu/linux (without a graphical interface). That's the way I did it.
After some months you will know how everything works and can then install the X server.

Even tho I have been using an user interface for some years now I still don't use a file manager or a graphical icq client. Console is simply faster.

Re: HOWTO: dedicated warsow server on linux

Don't worry, there's no Windows on my harddrive smile

I'll just use Windows 2000 on my second desktop, for moviemaking and
stuff.

Edit: Which distribution do you use?

8

Re: HOWTO: dedicated warsow server on linux

Gentoo for me. Probably the one that gives you the best control except LFS ...
May be too difficult for a beginner though, you should try an easier one before. I'd say :

* Mepis or SuSE if you want something easy to install and graphical on a workstation.
* Slackware on a server, without an X server. That'll help you learn Linux. You can also try Debian.

9

Re: HOWTO: dedicated warsow server on linux

Gentoo is not very beginner friendly but you can't say that it's difficult since there is a very nice documentation with step by step howtos.

BTW I'm a gentoo user too

10

Re: HOWTO: dedicated warsow server on linux

I like Gentoo, too. smile My server runs on gentoo and I had gentoo on my old computer for a long time. (ATM I'm @ Win2k because of games ...)

hangy.de!

<@metalmilitia> the code looks failproof smile
<@metalmilitia> but it's untested

11

Re: HOWTO: dedicated warsow server on linux

Gentoo on an old computer ... woah how courageous !

I have a Pentium-M 1.3 and I launched emerge openoffice at 10:00 AM, ended just now (6:35 PM). I wonder how long it would've taken with a 600mhz CPU ...

12

Re: HOWTO: dedicated warsow server on linux

My old comp actually had 500MHz and 256MB SD RAM. :] I always used the binary versions of OpenOffice.Org, Firefox and similar programs because it would've taken ages to compile them. big_smile
I actually tried to use Gentoo on my new comp (when I bought it earlier this year), but I had several problems with 64bit ...

hangy.de!

<@metalmilitia> the code looks failproof smile
<@metalmilitia> but it's untested

13

Re: HOWTO: dedicated warsow server on linux

Naaah works fine with amd64

14

Re: HOWTO: dedicated warsow server on linux

Could anyone make a walkthrou for 0.1, i tried to use this but i keep getting errors sad

ztaale@kakebox&#58;~$ tar xfs warsow_0.1_linux.tar.gz                               tar&#58; This does not look like a tar archive
tar&#58; Skipping to next header
tar&#58; Archive contains obsolescent base-64 headers
tar&#58; Error exit delayed from previous errors

or have i done something wrong, im kinda noobish @ linux so if anyone have any pointers, let me know smile

15

Re: HOWTO: dedicated warsow server on linux

uhh, i got one of them letters wrong but i still get error's

ztaale@kakebox&#58;~$ tar xfz warsow_0.1_linux.tar.gz

gzip&#58; stdin&#58; unexpected end of file
tar&#58; Read 701 bytes from warsow_0.1_linux.tar.gz
tar&#58; Unexpected EOF in archive
tar&#58; Unexpected EOF in archive
tar&#58; Error is not recoverable&#58; exiting now

16

Re: HOWTO: dedicated warsow server on linux

I don't think you downloaded the complete correct file. smile Please try again with the (new) mirror mentioned in my tutorial above.

hangy.de!

<@metalmilitia> the code looks failproof smile
<@metalmilitia> but it's untested

17

Re: HOWTO: dedicated warsow server on linux

i deleted the other files i downloaded from other mirrors and tried the one u hooked me up with and i still get error's neutral


ztaale@kakebox&#58;~$ wget http&#58;//ftp.club-internet.fr/pub/games/nofrag/warsow/warsow_0.1_linux.tar.gz
--00&#58;03&#58;54--  http&#58;//ftp.club-internet.fr/pub/games/nofrag/warsow/warsow_0.1_linux.tar.gz
           => `warsow_0.1_linux.tar.gz'
Resolving ftp.club-internet.fr... 194.158.99.22
Connecting to ftp.club-internet.fr&#91;194.158.99.22&#93;&#58;80... connected.
HTTP request sent, awaiting response... 302 Found
Location&#58; http&#58;//mirrors-av.club-internet.fr/pub/games/nofrag/warsow/warsow_0.1_linux.tar.gz &#91;following&#93;
--00&#58;03&#58;54--  http&#58;//mirrors-av.club-internet.fr/pub/games/nofrag/warsow/warsow_0.1_linux.tar.gz
           => `warsow_0.1_linux.tar.gz'
Resolving mirrors-av.club-internet.fr... 194.158.97.180
Connecting to mirrors-av.club-internet.fr&#91;194.158.97.180&#93;&#58;80... connected.
HTTP request sent, awaiting response... 200 OK
Length&#58; 18,481,152 &#91;application/x-tar&#93;

100%&#91;==================================================================================================================>&#93; 18,481,152   416.46K/s    ETA 00&#58;00

00&#58;04&#58;39 &#40;400.74 KB/s&#41; - `warsow_0.1_linux.tar.gz' saved &#91;18481152/18481152&#93;

ztaale@kakebox&#58;~$ tar xfz warsow_0.1_linux.tar.gz

gzip&#58; stdin&#58; unexpected end of file
tar&#58; Read 701 bytes from warsow_0.1_linux.tar.gz
tar&#58; Unexpected EOF in archive
tar&#58; Unexpected EOF in archive
tar&#58; Error is not recoverable&#58; exiting now

If it helps to know im using Debian ...

18

Re: HOWTO: dedicated warsow server on linux

Wow that mirrored file is way too small. Sorry, I guess I should have checked that before editing my post. Seems like the mirror is still not up-to-date. sad

Could you try to download the file with

ftp&#58;//ukftp.multiplay.co.uk/pub/games/fps/warsow/game/linux/warsow_0.1_linux.tar.gz

smile

hangy.de!

<@metalmilitia> the code looks failproof smile
<@metalmilitia> but it's untested

19

Re: HOWTO: dedicated warsow server on linux

Ahh cool man, it's working just fine now smile


now i just have to config my server the way i want it smile


Edit; is this server guide for setup in a graphic enviorment such as gnome or kde, cus i dont think i have any editior's to set as $editor , my system is a base system from a debian netinstal disc..

If so it would be great if the threadstarter could make a guide for us base system user's, right now there's nothing else on my box than ssh and the warsow instalation, it would be great to have a way of making the server always run on my box whenever it's up and runing, and also i would like to be able to edit my server settings, i hope this isn't to much trouble..

bare with me im a noob at this  roll

20

Re: HOWTO: dedicated warsow server on linux

I do not know if $EDITOR is set by default on debian as i set it in .bashrc but any editor you like will do smile
My tip for the config is to create a file server.cfg in warsow/basewsw/ and change the dedicated.sh to say
./wsw_server +exec server.cfg

You can then add all your config settings to that file. I did not yet setup a server for warsow but typical commands for quake-engine-based games would include:

maxplayers "8"
set "port" "26000"
set "sv_public" "1"
set "hostname" "YOUR SERVERNAME"
set "sv_motd" "Don't drink and frag"
set "sv_maxrate" "10000"

I guess the warsow docu tells your more nice settings wink

i support free software: http://www.fsfe.org/en/fellows/esteel
a great free and opensource FPS game: http://nexuiz.com

21

Re: HOWTO: dedicated warsow server on linux

Well, this guide is definately not made for an installation in a graphical environment but from console.
On my system, Gentoo Linux, $EDITOR is set by default and as I wrote in the introduction, you can just use your favourite editor. smile

warsow@gamer-convention ~ $ echo $EDITOR
/bin/nano
warsow@gamer-convention ~ $

I don't think it's the best way to create yet another config file, but to use seperate directories if you want to host several dedicated Warsow servers. They really don't take away a lot of space on your hdd and it's more clean with diff. directories and just editing the basewsw/dedicated_autoexec.cfg which is launched at every server start anyways. smile

hangy.de!

<@metalmilitia> the code looks failproof smile
<@metalmilitia> but it's untested

22

Re: HOWTO: dedicated warsow server on linux

I don't think it's the best way to create yet another config file, but to use seperate directories if you want to host several dedicated Warsow servers. They really don't take away a lot of space on your hdd and it's more clean with diff. directories and just editing the basewsw/dedicated_autoexec.cfg which is launched at every server start anyways. smile

Depends on ones personal taste.. I really dislike to have multiple directories, they just waste space (not much but they do) and make it hard to keep in sync if you add maps or other stuff. So i think each server should exec his own config file. But you are right your way also does work smile.

i support free software: http://www.fsfe.org/en/fellows/esteel
a great free and opensource FPS game: http://nexuiz.com

23

Re: HOWTO: dedicated warsow server on linux

Yeah okay, let's agree on the fact that it's a matter of taste. big_smile
But you have to take care of dedicated.cfg and dedicated_autoexec.cfg when executing different config-files for different servers in one Warsow working directory.

hangy.de!

<@metalmilitia> the code looks failproof smile
<@metalmilitia> but it's untested

24

Re: HOWTO: dedicated warsow server on linux

Ahh, now im starting to get it, since it was a base system there wasnt any editor innstalled so i innstalled "jed" and thinks was starting to happen, i still got error's when i tried to use screen, again since it wasnt innstalled so i innstalled it and now everything works as a dream smile

Re: HOWTO: dedicated warsow server on linux

How do I get my server to appear on the server list? it only appears on lan!