DSL As A Game ServerForum: Games Topic: DSL As A Game Server started by: 300c_pilot Posted by 300c_pilot on Jan. 02 2006,15:51
Something new, I know DSL was not intended to be a server platform, but I couldn't resist... DSL is now running a Call of Duty 2 server. If you play, it can be reached as CRD-DSL Linux Ser. in the server list (DM). It does very well for running on a P3-700 w/256 megs ram and 20 gig HD. This machine was running a min. install of Redhat 9.0 at over 400 megs and could only support 4-6 players, now on the lan we have tested 9 players & operates fine. The cable modem it is on will only support 3-4 users currently, though. Whole new market for DSL, Gamers...I have also tested America's Army, Call of duty & CODUO, which operate well with minor package changes. (Libc, gcc, iptables need added or changed) Posted by 300c_pilot on Jan. 03 2006,01:00
It appears that this runs well until you allow voting... Kills the server. ???Tag_error_log full error. No idea what that is. Will play with it later and post outcome here.
Posted by AwPhuch on Jan. 03 2006,23:25
WOW!!!!!!!!!!!111oneoneone Outfreeking standing!!!!!!!!Would you mind whipping out a HOWTO or walkthru on setting up those game servers?!? Perhaps a "insert.game.server.name".dsl would be good to (as long as it doesnt mess with any licensing rules)! Brian AwPhuch Posted by 300c_pilot on Jan. 04 2006,05:13
The total install is almost 4 gigs so a DVD iso is more likely. (Havn't tried a DVD iso yet, maybe next) I do not have the bandwidth to offer an iso of that size, plus Activision would be madd if I included my copy of the games. So I will post a small how to for COD2, It's the latest so maybe more people would want it. I would be happy to upload a single iso with "INSERT GAME FILES HERE POINTER", if someone else would dish it out. This is also based on the RC2 iso that I down loaded 8-10 days ago, so any changes since then may need to looked at.Keep in mind that DSL is not a perfect solution, however it did work for a small lan party. And it is on the air currently via cable modem. It is in the COD2 Server list, Three rotating maps and gametypes, however I will be replacing it tomorrow with a more powerful computer and placing it on a 4meg inet connection. I will also increase the number of players to 20 and see if it holds up. How to, too follow...Soon Posted by 300c_pilot on Jan. 04 2006,17:08
Short Version:The DSL COD2 Server, follow these steps at your own risk. This ASSUMES you know the basics of LINUX. Please do not post spelling errors...I know my spelling sucks. Items needed: DSL2.0RC2.0 or (DSL2.0RC2.1 have not tested, should work) on cd. COD2 Game CD's or DVD PC with at least PII 500mhz/256meg ram/10gig hd (Faster the Better, 10gig is for COD2 only) Full Duplex NIC 10/100, no wireless Internet connection min 200k upload speed / 800k download (Big as possible) Getting Started: 1. Do a quick look at the hardrive and make sure nothing is on it you want. 2. Use a Linux version of fdisk and make a ext2 partition on your hardrive atleast 9 gigs in size. Do not format it. Leave at least 500 megs free. I used a redhat boot disk, I could not get DSL to see the drive without a ext2 partition already on it. 3. Boot DSL from a cd to ram. 4. Do a Hd Install. During install Choose Multi-logon. And format the drive for ext3 (not a typo). This allows your machine to survive being suddenly turned off better. 5. Set your root & DSL user passwords. 6. reboot 7. Logon as root. People will tell you different, this just makes it easier. 8. Create the Directory /cod2 on the root of the drive, not where the terminal opens for you, under a user's directory. 9. Download the following files: cod2_lnxded (version 1.0a)file from: < http://linux.softpedia.com/progDow....38.html > Unzip it and put it in the /cod2 directory. Then download: gcc3-libs file from: < http://icculus.org/updates/cod/gcc3-libs.tar.bz2 > Unzip it into the /lib directory, if it wants to overwrite files, you may want to put them in the /cod2 directory. (I let it overwrite mine, not the best choice if you are going to do anything else with this box.) If they are put in the /cod directory run the command, "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. ./cod2_lnxded" within the /cod2 directory. 10. Mount the COD2 #1 cd/dvd, then from within the setup directory copy everything to /cod2 directory. When it is done you will have several files under /cod2 (Localization.txt is the important one) and directories /cod2/main is the place where the game is stored. If you have the dvd you are done, cd version mount the next 4 cd's and copy the contents of the /setup/main dir to /cod2/main directory on the harddrive. 11. Now go to www.clanmansoftware.com and get there list of server configs. And sample server commands. If there are additional commands you want your server to startup with, include them in the server.cfg file below. Under the /cod2/main directory make a text file called server.cfg In that file put at least the Min. following lines: //This is Damn Small Linux COD2 Server //Host Name and Min. config set sv_hostname "DSL Linux Serv." //Message of the day set scr_motd "Play Nice or Go Away!" set sv_maxping "250" set sv_minping "0" // Types include bel, dm, re, sd, tdm set g_gametype "tdm" //put something good for a password set rcon_password "secret_password_here" set sv_maxclients "10" set sv_maxrate "15000" set sv_pure "1" set sv_gamespy "1" set scr_allow_vote "0" set g_allowvote "0" set sv_maprotation "gametype tdm map mp_brecourt gametype dm map mp_carentan gametype dm map mp_burgandy" 12. Reboot & login as dsl user. Open a terminal window, then cd to the /cod2 directory now at the prompt type the following command. ./cod2_lnxded +exec server.cfg +map_rotate waite about a minute or until it is done scrolling... Type "status" at the blank line and hit enter, if it says server is stopped, see what step was skipped, if it shows names, adress, guid etc... you are done. Additional Pitfalls: Firewall will need to be set so the DSL box is your DMZ host, If you use nat to forward the ports to the DSL box, your Windows PC will not see any COD2 servers. Unless you use a port command in your server config file, this has not worked well for me. DHCP make sure your lease time is at least 3 days or set the DSL box to a static IP. If you go into the game and it allows people to vote (even though we disabled it in the config) then download the freeware Rcon4cod2, to manage the server from a windows PC. From there add the check to allow vote & then remove the check mark then send to server. You can also change weapons or whatever you want from rcon. But if the server is rebooted it will revert to the config settings. Happy hunting.... Posted by AwPhuch on Jan. 04 2006,20:42
Kick A$$ man!So this is running from a HD install correct? I bet the map cycle time would be unGodly unbearable if running from a LiveDVD FYI-Formatting ext3 does no good...DSL wont mount or use the journaling (ext3 is just ext2 with journaling) so on a reboot it wont support the error correction of the journal...just a fyi (if you could format using reiserfs 3.0 (4.0 is buggy) it will use journaling built in with the rieserfs) Have you attempted to "rebuild" your HD install as a LiveDVD using MakeMyDSL script? (or will it work once you do a HD install) I wonder if you could do a frugal install and install the game in a persistant "/home /opt" partition?!? Man oh man oh man...way to go... Also is there a server remote progy/webconfiguration tool for COD2? Ooh ooh ooh..what about a webpage stats page using < XAMPP > Ill do some research! Brian AwPhuch Posted by AwPhuch on Jan. 04 2006,21:25
K found this< http://browse.files.filefront.com/MP_Serv....es.html > <---multiple progys...including a stand alone server control progy that has been tested on XP < http://www.mnprojects.com/dreamstats/index.php > <---php server statistics script Brian AwPhuch Posted by 300c_pilot on Jan. 05 2006,02:53
It is a HD install, and I wondered if the EXT3 made any difference, app. not.I would be scared to start a DVD version. The Server has been removed from the COD2 server list, however if you hit the ` key and enter connect 24.117.24.101 and it will connect you up. It will only be running until 8 am tomorrow. I am currently implimenting a new machine with more ram, dual cpu's and maybe an I-ram card with 4 gigs of mem. I will include your suggestions for stats page, not sure about the "/home/opt" partition. Thanks AwPhuch:) Posted by 300c_pilot on Jan. 05 2006,06:32
Forgot to mention, for a beefy machine you can run several server's on the same machine.Say a public & a passworded private server... Copy the cod2 directory to say a cod2-, cod2-b, etc. directory, open two terminal windows and execute the server start command in the directories of each. I have started a COD1, CODUO & COD2 servers on the same pc, at the same time. It was slower than tar, but it works...Happy hunting. Posted by 300c_pilot on Jan. 06 2006,04:50
Need to revise step 10 of the how todo.10. Mount the COD2 #1 cd/dvd, then from within the setup directory copy everything to /cod2 directory. When it is done you will have several files under /cod2 (Localization.txt is the important one) and directories /cod2/main is the place where the game is stored. If you have the dvd you are done, cd version mount the next 4 cd's and copy the contents of the /setup/main dir to /cod2/main directory on the harddrive. On the DVD there is a /setup/data/ directory, not the /setup/main directory. The contents of this directory is what you need on the harddrive under the /cod2 directory. Posted by AwPhuch on Jan. 06 2006,17:36
FYI
If you cfdisk and then write the partition tables to the drive you have to reboot to make the partitions active...then you can format the drive as ext2 with
You cant format a harddrive with a freshly changed partition table until you reboot Brian AwPhuch Posted by AwPhuch on Jan. 06 2006,17:45
Could you also get the gcc++.dsl package?< http://distro.ibiblio.org/pub....cc1.dsl > Why not do a "frugal" install instead of a full-bore harddive install, only thing is I dont know how to make the packages stick after you change/update using apt-get on a frugal Brian AwPhuch Posted by 300c_pilot on Jan. 07 2006,08:24
I have not tried the frugal instal yet, I thought that maybe if the changes were made, create an image, burn to cd and then proceed with the frugal, you could keep the changes?To run the server, the older gcc is required. They tell me that the newer versions are broken. I did not try the latest version, just in case it worked? Thanks for the info on the partitioning, I have been spoiled, with auto partitioning in installation programs. I just went with what I could get to work with the tools at hand. I am sure it was one of the worst ways to get to a final install. I have burned more cd's after finding this, then in the past 2 years. Posted by AwPhuch on Jan. 08 2006,09:24
Yah..but its worth it...Get a CD-RW man...cant go wrong with one of those...plus it saves you the heartache of trying to figure out which dsl you have..heh Anyone else out there of the guru type willing to put in thier $0.02?? Brian AwPhuch Posted by 300c_pilot on Jan. 09 2006,06:25
I am sure that everyone is going to think I'm stupid for this one but, I have been unable to get a RW disk to work. I have tried it on three different machines, it goes through the motions, ejects, says everything is OK. Reboot and it says there is nothing on the disk. Boot back into windows, go to read the cd and it is not formated, then it wont read the disk at all. Have to throw them away then. Linux doesn't do any better, have Fedora 4 on a AMD64-3500 w/ a lightscribe, ruins them too.
Posted by 300c_pilot on Jan. 09 2006,08:21
Forgot, I will make an image if anyone wants it, and post, if someone can tell me where. I do not have the bandwidth here. The iso (HD install only) will not include any game files but it will include the server programs & config files for COD/CODUO/COD2/PunkBuster. I have been working on a script file that will mount your COD cd's (DVD for COD2 Only) & copy the files to the correct location. Desktop icons for server config & Server starting. The files add approx 4 megs to the DSL iso. I will not be taking things out to make it under 50mb, so please forgive.:)
Posted by Red04Bull on Jan. 09 2006,23:24
how big is the iso going to be
Posted by Red04Bull on Jan. 09 2006,23:31
sorry i just read the post again and ifs its only 54 megs or so i can probably do a torrent and an ftp for iti would just need to get the iso from you Posted by AwPhuch on Jan. 10 2006,00:26
I can host..but I only have 384K outBrian AwPhuch Posted by Red04Bull on Jan. 11 2006,19:53
so can u get it to one of us 300c_pilot
Posted by 300c_pilot on Jan. 12 2006,06:39
#################################################################################Sorry for the delay instead of a iso, I have made a script file that will download and configure a DSLinux-COD2 server. This way we do not have to eat up our bandwidth, dishing out a 54meg iso, and that of the original creators get there just praise for creating such wonderful things (Linux COD Server Files). It is not pretty and I am sure anyone else could have done a better job. ANYONE wanting this script can email me, you will need to give me an address where you can get a 3-4k attachment. The email script is polished, well more thought into polishing it anyway. The script assumes the following: YOU WILL NOT GET MAD IF IT TOASTS YOUR CURRENT INSTALL OF DSL, BREAKS YOUR MACHINE OR WHATEVER. You HAVE INSTALLED to a NON-Frugal install to a harddrive of at least 9 gigs in size. You have a configured connection to the internet. And that you have the dvd version of COD2. Your machine is at least a P2 550mhz w/512 megs of ram. (faster the better) What it does is... Download the files needed from the internet. unpacks them into the cod2 directory. Sets paths. Copys the DVD to the /cod2/main directory. Builds a basic server config file. Starts the server. ######################To edit config files###################### /cod2/main/server01.cfg open in a text file editor to change startup rules. To start the server after it has been shutdown, cd to the /cod2 directory and then type: "./cod2_lnxded +exec server01.cfg +map_rotate" and it will start up To manage your server from a Windows machine google for "rcon4cod2" download & install it. ####################################### You can also copy the following text into beaver as a bash script and then save to your local drive. You need to run it as root. #!/bin/bash #COD2 install Script by 300c@crd-dwc.com, distrubuted under "USE AT YOUR OWN RISK" License terms. Make no mistake, I am not responsible #for anything resulting from the use of this, period. By running this script you agree to be bound by not only this agreement but the user #agreements for the software downloaded by this script. Proceed with caution. # http://download.softpedia.com/linux/games/cod2-lnxded-1.0a-11072005.tar.bz2 # http://icculus.org/updates/cod/gcc3-libs.tar.bz2 mkdir /cod2 mkdir /cod2/main mkdir /cod2/cdrom ####Downloads of needed files cd /cod2 wget < http://download.softpedia.com/linux....tar.bz2 > wait echo "Server file downloaded." tar -jxf /cod2/cod2-lnxded-1.0a-11072005.tar.bz2 wait echo "Server file has been decompressed in the /cod2 directory." wget < http://icculus.org/updates/cod/gcc3-libs.tar.bz2 > wait echo "GCC files downloaded." tar -jxf /cod2/gcc3-libs.tar.bz2 wait LD_LIBRARY_PATH=$/cod2 echo "GCC has been decompressed in the /cod2 dir." #########Load files from DVD############ echo "Need to insert the COD2 DVD now!, Hit enter when it is in." read cdromf echo "Mounting... $cdromf may take a minute" mount /dev/cdrom /cod2/cdrom wait sleep 10 clear echo "Coping files now... Get a beer this will take a long time!" wait cp -r /cod2/cdrom/Setup/Data/main/ /cod2/ wait echo "Coping of files is done" umount /dev/cdrom ############Server config################### clear echo "Type in the RCON_Password that you want, and hit enter" read paswordf echo "Making Server config file" echo "//This is Damn Small Linux COD2 Server" >>/cod2/main/server01.cfg echo "//Host Name and Min. config" >>/cod2/main/server01.cfg echo "set sv_hostname "DSL Linux Serv."" >>/cod2/main/server01.cfg echo "//Message of the day" >>/cod2/main/server01.cfg echo "set scr_motd "Play Nice or Go Away!"" >>/cod2/main/server01.cfg echo "set sv_maxping "250"" >>/cod2/main/server01.cfg echo "set sv_minping "0"" >>/cod2/main/server01.cfg echo "// Types include bel, dm, re, sd, tdm" >>/cod2/main/server01.cfg echo "set g_gametype "tdm"" >>/cod2/main/server01.cfg echo "//put something good for a password" >>/cod2/main/server01.cfg echo "set rcon_password $paswordf" >>/cod2/main/server01.cfg echo "set sv_maxclients "10"" >>/cod2/main/server01.cfg echo "set sv_maxrate "15000"" >>/cod2/main/server01.cfg echo "set sv_pure "1"" >>/cod2/main/server01.cfg echo "set sv_gamespy "1"" >>/cod2/main/server01.cfg echo "DO NOT ALLOW VOTING ON A DSL BOX...REDHAT/FEDORA THIS WORKS" >>/cod2/main/server01.cfg echo "set scr_allow_vote "0"" >>/cod2/main/server01.cfg echo "set g_allowvote "0"" >>/cod2/main/server01.cfg echo "set sv_maprotation "gametype tdm map mp_brecourt gametype dm map mp_carentan gametype dm map mp_burgandy"" >>/cod2/main/server01.cfg echo "set sv_mapRotationCurrent "gametype tdm map mp_brecourt gametype dm map mp_carentan gametype dm map mp_burgandy"" >>/cod2/main/server01.cfg clear echo "Server files are configured...Hit enter and see if it will run?" read enterf echo "Here we go... $enterf " ./cod2_lnxded +exec server01.cfg +map_rotate Posted by 300c_pilot on Jan. 12 2006,06:46
If people still want an iso then let me know.
Posted by 300c_pilot on Jan. 13 2006,08:58
Has anyone else made this work? It is also possible to run the Cod2 server without installing from a DVD. And running it all from a large amount of memory about 150 megs on this machine (550mhz/512megs ram) Posted by Red04Bull on Jan. 13 2006,16:32
i still wouldnt mind the iso (for i wouldnt be able to set up the computer right away) and i could host on ftp also
Posted by AwPhuch on Jan. 14 2006,03:48
You soooo freeking rock man....I gotta question...if the gcc files are already ready to go...you "COULD" run this from a frugal install man! what I'm saying is that it needs those pre-compiled binaries, and it gets them for you... So in effect you could with say a 10-20 gig HD do a frugal...let me explain: 1. /hda1 = 60 Meg partition for frugal image 2. /hda2 = 128Meg or whatever size swapfile (you will still need one 3. /hda3 = The rest of the drive formatted either in ext2 or reiserfs with a persistant (/home /opt) directory built there Then just modify the script to point to /home/dsl/cod2 instead of just a /cod2 directory
This would allow for a static install..without having to do a full bore complete HD install, and the install itself would be a bit more resiliant in the case of a power fail as the "DSL" os is still in its unmodified image format (and it saves you about 100-150Megs of HD space) or is that taking it too far?? Brian AwPhuch Posted by 300c_pilot on Jan. 14 2006,08:03
Yes, I believe it will work... The GCC that is in the current.iso works with the cod2 server. I have left the GCC3 in the scripts incase someone has the versions that did not support the server. This also allows for voting to work.A frugal solves the headache I have with the COD2 servers, Activision has just told everyone the next patch will include PunkBuster to stop the cheating. There are several hacks out there that will kill your server. So keeping the OS safe is a priority. I wrote an additional script that allows you to run it directly from a DVD. If you have cd's put all of the files under the /Setup/Data/main on a dvd, under the same directory structure. You can run the script, and then the server will start. Runs on the current.iso of DSL. All of my scripts and some other peoples cod files can be downloaded form < http://www.crd-dwc.com/download > It is a slow connection, but the files are small. If I could get an iso made it will be there also. I would also like to say that making a ISO is harder then I thought. I can not get anything other then a checksum error when I boot it, any ideas? Happy hunting... Posted by 300c_pilot on Jan. 15 2006,06:29
OK, I now have a frugal install complete with desktop icons for the Installing and running the COD2 DVD/Server version to run from a DVD. The problem is making the iso has proved impossible. Goes through the motions, but iso boots with a check sum error. Any Idea's?
Posted by AwPhuch on Jan. 16 2006,04:09
Perhaps one of the "gurus" can assist you in a DSL re-mastering lesson Anyone wish to assist!! Perhaps even help tweaking scripts and whatnot? Brian AwPhuch Posted by Airfixer on Jan. 19 2006,22:22
Pentium III - 256Mb RAM - 20Gb HDDDSL 2rc1 - Frugal install COD & CODUO servers working fine!!!! Thanks a million guys Posted by AwPhuch on Jan. 20 2006,01:43
Give us some more info bud! How hard was it to get it working? Give us a sitrep on how the system is holding up..how many users..yadda yadda man... Good job by the way! Brian AwPhuch Posted by 300c_pilot on Jan. 20 2006,07:23
Glad to see others are using this. A COD2 server from dvd in a dual cdrom/dvd machine can be turned on to server running in under 10 minutes, with the script I wrote. COD & CODUO would take about an 1/2 to 1 hour depending on machine speed in copying both disks for each to the hard drive.I am usally in the Dread CODUO server & I play under 300c_pilot. Hope to see you around, if you post the IP of your server I will check it out for you. Smooth Flights...:) Posted by Airfixer on Jan. 22 2006,23:11
Relatively easy. Clean frugal install. then used winSCP to ssh a folder to the server, which I had prepared previously with all the .pk3 files, localization.txt (all from the CDs) , dedicated.cfg (I wrote) and the CODLinux server.(G@@gled it) Only tested it with 3 players so far and it worked fine (We could vote map changes and gametype changes without any probs) Posted by botbotdingzip on Feb. 01 2006,12:00
Apparently Tribes 2 use to run on linux with a bit of whining (wine). Has anyone here had any success with it? I love that game to bits, and yes with a good kick up the arse and some hand holding I'll try and run it from DSL.
Posted by AwPhuch on Feb. 02 2006,00:03
Minimum System Requirements - Game Client Kernel Linux 2.2.x or 2.4.x Processor 300 MHz Pentium processor or faster (500 MHz recommended) Video XFree86 3.3.5 or newer, supported 3D accelerator card (OpenGL) with at least 4 MB memory RAM 64 MB required (128 MB recommended) Storage 8x or faster CD-ROM drive, 500 MB free hard disk space Sound 16-bit OSS compatible sound card Minimum System Requirements - Dedicated Server Kernel Linux 2.2.x or 2.4.x Processor 300 MHz Pentium processor or faster (500 MHz recommended) Storage 8x or faster CD-ROM drive, 500 MB free hard disk space < http://www.linux-gamers.net/modules....&lid=92 > < http://www.vugames.com/downloa....id=5780 >
This apprears to be a stand alone server...thus you dont need to wine it...give it a whirl and let us know how it goes for ya... Maybe that will help ya Brian AwPhuch Posted by 300c_pilot on Feb. 03 2006,05:57
So far there has been over 400 downloads of my little scripts, wish I had made them prettier. I also wish people would send some feed back on the scripts.???
Posted by AwPhuch on Feb. 04 2006,00:00
Yah...this is a problem..people use the scripts and dont provide any feedback...that one guy reported it worked good..but I wonder how many people are actually using it... Its a good script..but more feedback would be great! Brian AwPhuch Posted by 300c_pilot on Feb. 08 2006,05:49
Rcon4cod2 can be installed & run under wine to manage your cod2 server...
Posted by Airfixer on Feb. 09 2006,20:43
Well I spent hours trying to make the scripts work and failed.Then read thru the script and did it all manually in minutes. BTW Now using my DSL box successfully as a ded server for COD, COD:UO & (it struggles with) COD2 Ran it with 6 players, custom maps, downloads on and voting on & working! Very pleased with it, thanx all Posted by 300c_pilot on Feb. 23 2006,06:34
The downloads are just over 800 now and I have also got two emails from people that have some basic needs that will be better answered here, for everyone that will wonder in the future. It also appears that people are finding this via a google search. Dynamic IP's make it difficult to figure out where the internet see's you so these commands will help you out a little. From a Windows Client box if it is on the same lan as your Linux COD server. For your external/public ip address : ping -r 1 -n 1 www.google.com On your Linux or Windows box you can use the following commands. For the ports that are accepting connections : netstat -l For your internal ip address on Linux : ifconfig -a For your internal ip address on Windows: ipconfig Posted by 300c_pilot on Mar. 17 2006,05:37
Screen shots of COD2 Server running with teamspeak also...All under VMware Server Beta2Happy hunting. Posted by 300c_pilot on May 08 2006,04:21
Thought I would add that version 1.2c of the lnxded_cod2 program is actually faster then the earlier versions.:)
|