Quote |
#!/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 /home/dsl/cod2 mkdir /home/dsl/cod2/main mkdir /home/dsl/cod2/cdrom ####Downloads of needed files cd /home/dsl/cod2 wget http://download.softpedia.com/linux....tar.bz2 wait echo "Server file downloaded." tar -jxf /home/dsl/cod2/cod2-lnxded-1.0a-11072005.tar.bz2 wait echo "Server file has been decompressed in the /home/dsl/cod2 directory." wget http://icculus.org/updates/cod/gcc3-libs.tar.bz2 wait echo "GCC files downloaded." tar -jxf /home/dsl/cod2/gcc3-libs.tar.bz2 wait LD_LIBRARY_PATH=$/home/dsl/cod2 echo "GCC has been decompressed in the /home/dsl/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/ /home/dsl/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" >>/home/dsl/cod2/main/server01.cfg echo "//Host Name and Min. config" >>/home/dsl/cod2/main/server01.cfg echo "set sv_hostname "DSL Linux Serv."" >>/home/dsl/cod2/main/server01.cfg echo "//Message of the day" >>/home/dsl/cod2/main/server01.cfg echo "set scr_motd "Play Nice or Go Away!"" >>/home/dsl/cod2/main/server01.cfg echo "set sv_maxping "250"" >>/home/dsl/cod2/main/server01.cfg echo "set sv_minping "0"" >>/home/dsl/cod2/main/server01.cfg echo "// Types include bel, dm, re, sd, tdm" >>/home/dsl/cod2/main/server01.cfg echo "set g_gametype "tdm"" >>/home/dsl/cod2/main/server01.cfg echo "//put something good for a password" >>/home/dsl/cod2/main/server01.cfg echo "set rcon_password $paswordf" >>/home/dsl/cod2/main/server01.cfg echo "set sv_maxclients "10"" >>/home/dsl/cod2/main/server01.cfg echo "set sv_maxrate "15000"" >>/home/dsl/cod2/main/server01.cfg echo "set sv_pure "1"" >>/home/dsl/cod2/main/server01.cfg echo "set sv_gamespy "1"" >>/home/dsl/cod2/main/server01.cfg echo "DO NOT ALLOW VOTING ON A DSL BOX...REDHAT/FEDORA THIS WORKS" >>/home/dsl/cod2/main/server01.cfg echo "set scr_allow_vote "0"" >>/home/dsl/cod2/main/server01.cfg echo "set g_allowvote "0"" >>/home/dsl/cod2/main/server01.cfg echo "set sv_maprotation "gametype tdm map mp_brecourt gametype dm map mp_carentan gametype dm map mp_burgandy"" >>/home/dsl/cod2/main/server01.cfg echo "set sv_mapRotationCurrent "gametype tdm map mp_brecourt gametype dm map mp_carentan gametype dm map mp_burgandy"" >>/home/dsl/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 " ./home/dsl/cod2_lnxded +exec server01.cfg +map_rotate |