ET under Linux

EDIT: Added "About ET & TS", "About ET & Vent" will follow!

This is my first tutorial, so constructive criticism is appreciated.
NOTE: Iam using ubuntu linux 7.04, so this tutorial should quite match to Debian, Kubuntu and the other ubuntu versions. About other linux distros i dont have a clue to be honest.

First of all, when i tired to get ET running under linux, i was far away from knowing everything about it.
Thats why i want to thank some people who helped me alot first:
Finland PetriP-TNT, Germany ng, Romania quad, Israel KAAZz, Finland BL0B, Sweden Avalanche and Germany t0b

So lets get started!
What are you going to learn in this tutorial?[/i]

1. General preparations under Windows (or any other O/S)
2. How to install ET properly
3. How to patch ET
4. How to install the punkbusterclient properly
5. Where to copy your config and how to get it running properly
6. How to configure your Mouse settings
7. About ET & TS
8. Additional links and information

1. General preparations under Windows (or any other O/S)[/i]

You should backup all your esential files (yarly!) such as your etconfig, your IRC Bouncer data, your teamspeak servers and so on.
Dont forget to backup also your etmain (maps & etkey) and etpro folders, so you dont have to download all the maps and etpro again after the linux installation.
The best way to store the data safely, is to just put it on an external device.

2. How to install ET properly

First of all download the ET installer: http://ftp.games.skynet.be/pub/wolfenstein/et-linux-2.60.x86.run
If the download is finished open a terminal and type in order:
Quotexhost +
su (enter your root password)
sh ./et-linux-2.60.x86.run

The ET installer should start now, just follow the installation routine.
Now ET with the version 2.60 is installed, so we can go on to the next step.

3. How to patch ET

Download the patch 2.60b:
http://88.198.24.75/filebase/ET/Patches/ET-2.60b-linux.zip
Extract the archive.
Copy the two files in the linux folder (et & eted) to the directory where the ET executable has been installed to, which is in my case:
Quote/usr/local/bin

If an error message pops up, that tells you, that you dont have the permission to copy the files there do this:
Open a terminal and type:
Quotesudo nautilus (you will have to enter your root password)

A window will open, actually you are running the filebrowser as root.
Head over to
Quote/usr/local
and edit the preferences of that folder, so that you have full permissions over that folder with your normal user account.
Do the same with the following folder, you will understand later:
Quote/home/your_username/.etwolf/

You will have to make hidden folders visible with ctrl + h

4. How to install the punkbusterclient properly

Open a terminal and type in order:
Quotecd ~
wget http://websec.evenbalance.com/downloads/linux/pbsetup.run
chmod +x pbsetup.run
./pbsetup.run

Follow the installation routine and your done.

5. Where to copy your config and how to get it running properly

All the important files used by ET are located in:
Quote/home/your_username/.etwolf/

As we already edited the preferences for that folder, we only need to copy our config into the etmain or the etpro folder.
Ive experienced problems with some settings like picmip and binds on additional Mouse buttons (more info later in the text)
The problem was, that the r_picmip setting was "latched" at 3, but was actually on 1. Theres an easy solution for that:
Just delete the command r_lastvalidrenderer from all your configs (autoexec.cfg, etconfig in etmain, etmain/profiles/profilename etpro/profiles/profilename)
The connect to a server, type /exec autoexec.cfg and do a /vid_restart.

6. How to configure your Mouse settings
This is somewhat more difficult then the things above, since there are no driver user interfaces for most of the mice.
But dont worry, you can do it! xD
NOTE: I have a razer mouse, but it should pretty much work with otehr mice also.
First of all, open a terminal and type:
Quotesudo nautilus (you will have to enter your root password)

Head over to the folder
Quote/etc/X11

Theres a file called xorg.conf, open it.
Search for the line Section "Inputdevice" (Attention, there are 2 sections like that, be sure that u have found the one related to your Mouse, you will see which one it is.)
The copy the following lines:
QuoteSection "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "ZAxisMapping" "6 7"
Option "Emulate3Buttons" "false"
EndSection"

Your whole xorg.conf file should look ~ like this now:

Quote# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf(5) manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
# path to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "vbe"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "ch"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "ZAxisMapping" "6 7"
Option "Emulate3Buttons" "false"
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "Device"
Identifier "ATI Technologies Inc RV350 AP [Radeon 9600]"
Driver "ati"
BusID "PCI:1:0:0"
EndSection

Section "Monitor"
Identifier "CMC 17 AD"
Option "DPMS"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "ATI Technologies Inc RV350 AP [Radeon 9600]"
Monitor "CMC 17 AD"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
EndSection

Section "DRI"
Mode 0666
EndSection

NOTE: Dont edit your whole xorg.conf so it exactly looks like this! Just take a look if the structure is the same!

Then make a new file called Xmodmap (without any file extension) and add the following line to it:
Quotepointer = 1 2 3 8 9 4 5 7 6

Your Mouse should work properly now, maybe you have to bind some things new. In my case Mouse4 became Mouse5 e.g.

7. About ET & TS
Open your sound settings (double click on the icon next to the clock).
Then hit open Audio Control.
There you go for "File -> Change Device" Select ALSA mixer there.
Then open "Edit -> Preferences" and select everything.
Be sure the "Microphone" Amplifier in the "Playback" Tab is on the maximum and not muted.
Then head over to the "Recording" Tab and put the "Recording" Amplifier on the maximum and make sure theres nothing muted.
Go for the next tab, "Switch". Your configuration should look ~ like this:
http://img478.imageshack.us/my.php?image=bildschirmfotolautstrkeyg4.png
Important options are Mic capture and Mic boost
In the last tab, "options" make sure that at "Mic Select" Mic1 is selected.
Your Teamspeak Options (Settings -> Options) should look like this:
http://img510.imageshack.us/my.php?image=tssettingstr9.png
Now everyone should be able to hear you on TS.
And last but not least we need to fix the "No sound in ET while having TS running prob"
Open a terminal and type:
Quotesudo nautilus (you will have to enter your password)

Then head over to the /etc directory in your filesystem. Then find the file "rc.local".
Open it and add the following lines:
Quoteecho et.x86 0 0 direct' > /proc/asound/card0/pcm0p/oss
echo et.x86 0 0 disable' > /proc/asound/card0/pcm0c/oss

Make sure that the two lines are above the "exit 0" line.
Now you can play ET with TS running at the same time!

Avalanche]
http://rapidshare.com/files/61436505/et-sdl-sound.html
For some people BLOBs sulotion doesnt work (me included).
So what you can do is to download this script that will fix the sound (it also works for Q3 and RTCW)
How to use: Right click > Properties > Permissions > check "Allow executing file as program", then just double click the file and ET will start with sounds (hopefully) working.


8. Additional links and information
General info about ubuntu and everything related: http://ubuntuforums.org/index.php
Good site about linuxgames in general (german, though): http://www.holarse-linuxgaming.de/h2006/space/start
Minimizer for linux: http://hem.bredband.net/b400150/
About TS & Vent: www.google.com

I hope this tutorial was usefull for some people.
Any Questions? Pm me here on cf or in Quakenet.
Greetz GaRg
Comments
35
And what about zeh sound under linux?
i had no problems with sound in et, sound for ts & vent is another story.
Parent
So lets get startet!


started
isn't root disabled in ubuntu?

put "sudo" on front of all commands in terminal
it isent.
su <yourrootpw>
then all cmds u want without always typing sudo
Parent
sudo -s does the work for me ;-)
Parent
First u need this

sudo apt-get install libgtk1.2

then download game whit wget
wget -c ftp://ftp.peliplaneetta.net/pelidemot/3d-raiskinta-toiminta/et-linux-2.60.x86.run
then start install
sudo sh et-linux-2.60.x86.run (NOTE) if u are running 64bit distro u need linux32 and ia32-libs or something like that ;)

now get patches
wget -c ftp://ftp.ulyssis.org/games/et/download/lin/et2.60blinux.zip

sudo unzip -oj et2.60blinux.zip *.x86 -d
/usr/local/games/enemy-territory

maybe u need this sudo chown -R $USER:$USER ~/.etwolf

get sounds work
sudo sh -c "echo 'et.x86 0 0 direct' > /proc/asound/card0/pcm0p/oss"
sudo sh -c "echo 'et.x86 0 0 disable' > /proc/asound/card0/pcm0c/oss"

wget http://websec.evenbalance.com/downloads/linux/pbsetup.run

chmod a+x pbsetup.run && ./pbsetup.run

works debian and ubuntu !*!
get sounds work
sudo sh -c "echo 'et.x86 0 0 direct' > /proc/asound/card0/pcm0p/oss"
sudo sh -c "echo 'et.x86 0 0 disable' > /proc/asound/card0/pcm0c/oss"

Still go no sound in ET after that =(

I give you all the cookies in the world if you can help me <3
Parent
I figured I couldn't get no sound in ET if my startup sounds wasn't working.
After heaps of threads I had no luck.
I updated gstreamer and installed polypaudio and it worked o/
Parent
A friend already helped me before I read this, but you'll get a cookie anyway! <3

image: CHOCOLATE_CHIP_COOKIE
Parent
What method did you use to fix it? :))
Parent
Im on windows now, I got a little script for it, I reply you when I am back on Linux.
Parent
Check your alsamixer (sometimes sound is muted by default).
alsamixer, and check that main is not MM
Parent
gksudo echo "et.x86 0 0 direct" > /proc/asound/card0/pcm0p/oss
gksudo echo "et.x86 0 0 disable" > /proc/asound/card0/pcm0c/oss
killall esd
et
esd
exit 0

Complete script
OR

sudo -i
echo "et.x86 0 0 direct" > /proc/asound/card0/pcm0p/oss
echo "et.x86 0 0 disable" > /proc/asound/card0/pcm0c/oss
exit

for terminal (without running et, run manually :))
Parent
The first solution doesnt work for me , but the second one does, however it makes my sound in ET sound 'harsh'

Gonna google to fix it i think :o
do you have a good soundcard?
Parent
Yes , no problems under windows

No problems in TS or even playing music , so i wonder why ET sound is fucked up
Parent
i have no idea about how to solve your problem to be honest.
Parent
Also i was experiencing terrible lag when just standing in oasis spawn :S


Even worse than under vista

And mouse scrol is set to go back in IE and firefox now :/

Ill google some more ;)
Parent
About the mouse:
Did you follow the tutorial for that point?
If so ask PetriP-TNT on IRC, i think he has the same problem.
Parent
Nice, before reading this tutorial I knew nothing about that hidden folder. Everything seems to work now, THX :>
nice to see that my tutorial helped somebody.
:)
Parent
Ive bin looking for a turtorial liek this one...
Google on it but ive never found a complete "hot2do"
Thank you verry much now i can play with Ts and ET ;D
Ive bin playing scrims without ts for about 2 months
quite anoying...
what about graphic card ??
ubuntu/debian will install the drivers fitting for it automatically.
Parent
you should add :

et-linux-2.60.x86.run must be at /home/user_name/

otherwise u cant do: sh ./et-linux-2.60.x86.run

terminal error message: sh: Can't open ./et-linux-2.60.x86.run no such file or /dictory


:)
Parent
even if it should i'm having 1 fps : (((((
halp
Parent
sorry dude, iam not into linux at all anymore, better ask on irc or so cause i have no fucking idea =)
Parent
Some errors in the patching section;
1. Don't recommend people to run "sudo nautilus". Do
"sudo cp etded et /usr/local/bin".
However, at least on my system the "et" and "etded" in /usr/local/bin are just wrapper scripts for the REAL executables, and overwriting this would fuck up things pretty nicely.
Therefore, run "sudo cp etded et /usr/local/games/enemy-territory/" instead, that would be the correct way to do it, assuming you installed ET in "/usr/local/games/enemy-territory/".

Running nautilus as root just doesn't sound like a smart thing to do, ESPECIALLY not when you don't know what you're doing.

2. Just in case you installed the .etwolf-stuff as root, do a
"sudo chown -R `id -un`:`id -gn` $HOME/.etwolf".

3. When using sudo you don't have to enter the root password, but the USER password (at least on debian). Sudo is made as a tool to let the administrator give certain users allowance to run certain commands as root without telling them the password. "su" on the other hand requires the root password.
np :-)

nice tutorial!

i like the et-sdl solution.
Some other tips:

Changing USB refresh rate (simple way):
echo X > /sys/modules/usbhid/parameters/mousepoll
(not sure if it is correct, i'm not in linux at the moment, but the using tab for auto complete should do the job :))
X is mousepoll, integer 1, 2, 4, 8. Guess 1 is 1ms (1000hz) and so on.
After re-plug your mouse or rerun module usbhid (modprobe usbhid)

Also you need to mention this ET cvar: in_dgamouse 1 is accelerated, and 2 is not (in_dgamouse 2) accelerated input. Should fix the sensitivity ;)
in_dgamouse 1 FTW

In response to your reply I had, I use OSS4 now which fixes everything sound related {:
Parent
Nice one with OSS4 :)
Parent
"sudo nautilus"

lol
Back to top