Howto: Battlefield 2142 and 2142CC on Linux
2142CC installation
This chapter covers the installation of the BF2CC Daemon. This chapter assumes that you have a virgin Battlefield 2142 server installation. If you have not, please read the previous chapters to find out how to get a virgin installation.
First, make sure that you are in the root directory of your Battlefield 2142 server installation. If you used the variables in this manual that will be /home/bf2142server/bf2142.
Download the latest version of the 2142CC Daemon for Linux. See the introduction of this guide to find out what the latest version is. Unzip the downloaded archive.
$ wget http://2142cc.com/downloads/2142cc_Daemon_2.1.2593.zip
$ unzip 2142cc_Daemon_2.1.2593.zip –d /home/bf2142server/bf21412
Extracting the ModManager scripts
When you have unzipped the whole thing, you can extract the admin scripts to the /admin folder. If it asks your permission to overwrite files, say ‘yes’.
$ cd /home/bf2142server/bf2142
$ unzip modmanager-v1.5-rc5.zip
Downloading and installing the Mono files
Now, to make the 2142CC Daemon able to run, we need to install the Mono files. Make sure you are in the root directory of your Battlefield 2142 server. If you used the variables in this manual that will be /home/bf2142server/bf2142.
Mono can be a pain to install sometimes. You might want to check if your operating system's packages manager has mono included. If you are running Debian, use apt-get to install mono. Redhat based systems can use yum
The current 2142CC works with mono 1.2.1. Grab the installation package for your distribution from the Mono website and follow the installation instructions. The official files can be found here:
http://go-mono.com/archive/1.2.1/download/
To check if Mono is installed properly run this command:
$ mono -V
If it outputs a version number, everything should be alright.
Starting the 2142CC Daemon
Now that we have installed everything, we are ready to start the 2142CC Daemon. Make sure that you are in the root directory of your Battlefield 2 server installation. If you used the variables in this manual that will be /home/bf2142server/bf2142.
You can now start the server:
$ mono bf2ccd.exe
When you start the Daemon for the first time you will need to do some initial configuration. The Daemon will ask you some questions.
Root game folder:
The root directory of your Battlefield 2142 server installation. If you followed this guide that will be /home/bf2142server/bf2142
Game executable:
The file to executed the start the server. Leave this to its default value (start.sh)
Game executable arguments:
Arguments to the start.sh execuatble. Leave this empty unless you know what you are doing
Daemon listen IP:
Enter the IP number of your server. If you don't know it, just press enter.
Daemon listen port:
Enter the port number for the Daemon. We recommend that you leave it to its default value (4712) unless you know what you are doing.
Admin password:
The admin password for the Daemon
Your BF2CC Daemon is now started. You can now use your BF2CC Client to connect to your server and manage it.
If everything works you probably want to run the Daemon in the background. Use this command to do so:
$ mono bf2ccd.exe >/dev/null 2>&1 &
Congratulations, you now have a working BF2142 server!
| << Battlefield 2142 dedicated server installation | Troubleshooting >> |


