HOWTO: BF1942/DesertCombat Dedicated Gentoo Linux Server

Last updated: 12/13/2004

Introduction:

In this guide you'll learn how to setup your own Battlefield 1.61 server complete with DesertCombat .8 (DC_Final) with punkbuster and Blag Bag Ops BFSM support.

How to use this guide:

Commands are in bold, notes are not. Links will take you to my config files or examples of them. // indictates my comments, not something for you to type. Let's start!

1. Downloading required files
This site has all the files you'll need, or use the commands below.
http://bf1942.lightcubed.com/forum/dist.php

This site is what my guide was based on, I just got right down to the commands. It has useful information such as how to us PuTTY.
http://www.planetbattlefield.com/dcfaq/DCHowTo-1.html

Before you download the files, find somewhere to download them. I used a second 9GB harddrive. cd /mnt/bf1942dc

 

2a. Configuring Apache
vim /etc/apache2/conf/apache2.conf

[code from apache2.conf]
ServerName 127.0.0.1 //change the ip to your domain name

#parse php in html
#add this line to the bottom of the conf file
AddType application/x-httpd-php .php .html .htm

#for directory views, directory access and vhosts see the example above.
[/code]

/etc/init.d/apache2 start //start apache2
rc-update add apache2 default //start apache2 on boot

 

2b. Configuring MYSQL
/etc/init.d/mysql start
you will get a specific error message telling you to run a mysqladmin command. do it.
rc-update add mysql default

php 4.0 has no configuration requirements.

 

3. Testing your LAMP setup
browse to http://localhost/ and you'll see apache's test page
the default webroot is /var/www/localhost/htdocs

installation is complete.