Update 26/03/2012:
Step 3 is no longer required as the port as a specific dependency on linux-f10-xorg-libs.
Update 25/05/2012:
Ever since EvenBalance stopped supporting Enemy Territory step 5 should be ignored. Please refer to HowTo: Get etkey and Punbuster files on Enemy Territory.
________________________________________________________________________
Wolfenstein: Enemy Territory is a free multiplayer FPS that takes place in the World World II pitting two teams (Allies and Axis) against each other for victory.
The game was originally going to be a retail expansion pack for Return To Castle Wolfenstein but the project was canceled, Activision however decided to release it during 2003 for free.
In this post I'll detail the steps required to install and update Enemy Territory, the ET Pro mod, PunkBuster and XQF on FreeBSD.
1) Install and update Enemy Territory
Become the superuser:
And install the required port:
This will pull Enemy Territory's installer from the web. If any port options pop up stick with the defaults and choose OK to continue.
If you don't have the Linux Compatibility Environment proceed to step 2, otherwise jump to step 3.
2) Enable the Linux Compatibility Environment
Enemy Territory needs both FreeBSD's Linux kernel module and near-minimal installation of a Linux distribution. By default, FreeBSD 7.x uses Fedora Core Linux 4.
The games/linux-enemyterritory pulls in emulators/linux_base-fc4 so we just need to load the Linux kernel module at boot time. To do so run:
3) Fixing library issues
It was verified that at times library issue crop up upon starting the game.
To check if you have a library issue run:
If the output is:
You have library issues and need to install x11/linux-xorg-libs:
Re-run [cmd=]ldd[/cmd] and you should have the following output:
4) Install the ET Pro mod
Next let's install Enemy Territory's best mod: ET Pro.
Now ET Pro will show under the Mods options in the games' main menu.
5) Update PunkBuster
Now start the game, create a player profile and quit. By doing so a .etwolf directory will be created in your home directory which includes a folder containing PunkBuster.
Point to http://www.evenbalance.com/index.php?page=pbsetup.php scroll down and follow the Linux download to download PunkBuster update application.
Change directory to where you've downloaded the pbsetup.run and:
PunkBuster will ask to fetch updates and prompt for a License Agreement. Afterwards point to "Add a Game option", choose Enemy Territory and its installation path.
On the main PunkBuster window click on Enemy Territory to select it and press "Check for Updates". Quit PunkBuster after updating it.
6) Install XQF
One can use the in game browser to search for server. However I recommend installing and using the XQF Game Server Browser as it a lot more flexible and complete:
XQF should identify the installed Enemy Territory so select the game and press "Update" to have XQF pull an updated server list.
7) Fix sound issues
ET uses Linux's OSS sound infrastructure so you might come across issues. Here's how to enable sound on Enemy Territory under FreeBSD 7.x:
With the above commands sound will be enabled immediately and also at boot time.
And we're done!
(The above HOWTO is a copy of my blog post)
Step 3 is no longer required as the port as a specific dependency on linux-f10-xorg-libs.
Update 25/05/2012:
Ever since EvenBalance stopped supporting Enemy Territory step 5 should be ignored. Please refer to HowTo: Get etkey and Punbuster files on Enemy Territory.
________________________________________________________________________
Wolfenstein: Enemy Territory is a free multiplayer FPS that takes place in the World World II pitting two teams (Allies and Axis) against each other for victory.
The game was originally going to be a retail expansion pack for Return To Castle Wolfenstein but the project was canceled, Activision however decided to release it during 2003 for free.
In this post I'll detail the steps required to install and update Enemy Territory, the ET Pro mod, PunkBuster and XQF on FreeBSD.
1) Install and update Enemy Territory
Become the superuser:
Code:
% su
And install the required port:
Code:
# cd /usr/ports/games/linux-enemyterritory
# make install clean
This will pull Enemy Territory's installer from the web. If any port options pop up stick with the defaults and choose OK to continue.
If you don't have the Linux Compatibility Environment proceed to step 2, otherwise jump to step 3.
2) Enable the Linux Compatibility Environment
Enemy Territory needs both FreeBSD's Linux kernel module and near-minimal installation of a Linux distribution. By default, FreeBSD 7.x uses Fedora Core Linux 4.
The games/linux-enemyterritory pulls in emulators/linux_base-fc4 so we just need to load the Linux kernel module at boot time. To do so run:
Code:
# echo 'linux_enable="YES"' >> /etc/rc.conf
3) Fixing library issues
It was verified that at times library issue crop up upon starting the game.
To check if you have a library issue run:
Code:
# ldd /usr/local/lib/enemyterritory/et.x86
If the output is:
Code:
# ldd /usr/local/lib/enemyterritory/et.x86
/usr/local/lib/enemyterritory/et.x86:
libdl.so.2 => /lib/libdl.so.2 (0x281e4000)
libX11.so.6 => not found
libXext.so.6 => not found
libm.so.6 => /lib/obsolete/linuxthreads/libm.so.6 (0x281e9000)
libc.so.6 => /lib/obsolete/linuxthreads/libc.so.6 (0x2820f000)
/lib/ld-linux.so.2 (0x281c7000)
You have library issues and need to install x11/linux-xorg-libs:
Code:
# cd /usr/ports/x11/linux-xorg-libs ; make install clean
Re-run [cmd=]ldd[/cmd] and you should have the following output:
Code:
# ldd /usr/local/lib/enemyterritory/et.x86
/usr/local/lib/enemyterritory/et.x86:
libdl.so.2 => /lib/libdl.so.2 (0x281e6000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x281eb000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x282be000)
libm.so.6 => /lib/obsolete/linuxthreads/libm.so.6 (0x282cd000)
libc.so.6 => /lib/obsolete/linuxthreads/libc.so.6 (0x282f3000)
/lib/ld-linux.so.2 (0x281c7000)
4) Install the ET Pro mod
Next let's install Enemy Territory's best mod: ET Pro.
Code:
# cd /usr/ports/games/linux-enemyterritory-etpro
# make install clean
Now ET Pro will show under the Mods options in the games' main menu.
5) Update PunkBuster
Now start the game, create a player profile and quit. By doing so a .etwolf directory will be created in your home directory which includes a folder containing PunkBuster.
Point to http://www.evenbalance.com/index.php?page=pbsetup.php scroll down and follow the Linux download to download PunkBuster update application.
Change directory to where you've downloaded the pbsetup.run and:
Code:
# su
# chmod +x pbsetup.run
# exit
% cp pbsetup.run ~/.etwolf/pb
% ./pbsetup.run
PunkBuster will ask to fetch updates and prompt for a License Agreement. Afterwards point to "Add a Game option", choose Enemy Territory and its installation path.
On the main PunkBuster window click on Enemy Territory to select it and press "Check for Updates". Quit PunkBuster after updating it.
6) Install XQF
One can use the in game browser to search for server. However I recommend installing and using the XQF Game Server Browser as it a lot more flexible and complete:
Code:
# cd /usr/ports/games/xqf
# make install clean
XQF should identify the installed Enemy Territory so select the game and press "Update" to have XQF pull an updated server list.
7) Fix sound issues
ET uses Linux's OSS sound infrastructure so you might come across issues. Here's how to enable sound on Enemy Territory under FreeBSD 7.x:
Code:
% su
# sysctl hw.snd.compat_linux_mmap=1
# echo "hw.snd.compat_linux_mmap=1" >> /etc/sysctl.conf
# exit
With the above commands sound will be enabled immediately and also at boot time.
And we're done!
(The above HOWTO is a copy of my blog post)