Enemy Territory and Linux Ubuntu


(nUllSkillZ) #1

Sorry for doublepost.
Yesterday I tried to install W:ET on Ubuntu 6.06.
Strange thing:
After starting W:ET from menu a small part of the desktop is enlarged to the whole monitor view (I guess it’s 640480 or 800600).
But nothing else happens.
Thought it had something to do with the nvidia drivers (installed with the automatix script and not sure if it worked).
But today I see that W:ET is installed in “/usr/local/games/enemy-territory”.
And I haven’t got the rights to write files in this directory.

I used the links mentioned above (tried the german and also the english) for installation.
Is the directory correct?
If yes how can I set the rights to write files there (and is this “allowed”)?

Thank you in advance for your help.


(Black_Forky) #2

Yes, that is the correct directory, but all user files and maps are held in your home directory ( /home/<username>/.etwolf). As a user, you should only have permission to write in the /home/user directory.

As for the graphical problem, when you login do you see the nVidia splash screen? If not, your drivers may not be configured correctly.


(B0rsuk) #3

IMPORTANT: whenever something appears not to work, run it from console and tell us what messages do you get.

The quick and dirty way to check if OpenGL works is to try out an OpenGL screensaver. If it’s smooth in fullscreen, you’re ready to go. Or you could try to run another OpenGL game, for example Neverball, which you want installed anyway.

sudo apt-get install neverball
neverball

From what I hear, permission problems are a result of the installer giving root permissions to your .etwolf directory. Programs (especially installed system-wide) often create hidden (name starts with dot) files or directories in your home directory. This is to store your private settings without messing with somebody else’s.

To check permissions:


ls -la ~/.etwolf

If it looks anything like this:


bongobob@RaptorBandito:~$ ls -la ~/.etwolf 
total 16 
drwxr-xr-x 4 root root 4096 2006-08-15 23:12 . 
drwxr-xr-x 34 bongobob bongobob 4096 2006-08-16 13:31 .. 
drwxr-xr-x 2 root root 4096 2006-08-15 23:12 etmain 
drwxr-xr-x 2 root root 4096 2006-08-15 23:12 pb

(blech ! root)

Then it should be fixed. I suggest


sudo chown -R YOURUSERNAME.YOURUSERNAME .etwolf

To change ownership recursively, and


chmod -R 700 .etwolf

to allow write, execute, and read access only for yourself.

Just in case: the 640x480 thingy still exists for me when launching the game, but it’s soon disappears replaced by the game.


(nUllSkillZ) #4

Thnx for the answers.
There isn’t a “/home/<username>/.etwolf”-directory visible.
But with “ls -la ~/.etwolf” I get:


oliver@oliver-desktop:~$ ls -la ~/.etwolf
insgesamt 8
drwxr-xr-x  2 oliver oliver 4096 2006-08-29 14:45 .
drwxr-xr-x 24 oliver oliver 4096 2006-08-30 11:11 ..
oliver@oliver-desktop:~$

So I assume that is OK.
I will take a look at the graphics driver (no Nvidia splashscreen).
Thnx again for the help so far.


(B0rsuk) #5

That’s the point of hidden directories. You can still view them if you change your filebrowser’s settings etc.

So the next step would be installing nvidia-glx package via synaptic, Adept or something. Or nvidia-glx-legacy if you have an old card like my Geforce2 mx.
Pay attention to last line of package description, it tells you how to finish the driver installation.


(kamikazee) #6

glxgears works too, and glxinfo can give you some more info on OpenGL.


(nUllSkillZ) #7

It was the driver.
Because all packages are installed I’ve edited the “etc/X11/xorg.conf” (changed “nv” into “nvidia”).
Now W:ET is working (except for the sound, have to look into this issue tomorrow) but the PC don’t shut down.
After getting all to work I will re-install without the automatix script.


(HellToupee) #8

do you have 2 sound devices? eg onboard sound and a sound card, often mine onboard sound and card kept swapping between dsp1 and dsp till i stoped it loading the onboard sound driver. U can choose whichdsp it uses in your profile, snddevice, just open it and run find for dsp.

ALso it might just be ur sound card with the mmap error, think i encountered it when running quake 1 with onboard sound on a older mobo.


(nUllSkillZ) #9

Thanks for all the tips.
Graphic is working now.
After installing the driver I had to edit

  • [li]“etc/X11/xorg.conf”
    [/li]changing “nv” into “nvidia”
    [li]"/boot/grub/menu.lst"
    [/li]adding “vga=0x31a” behind the “splash” of the kernel (two lines to change)

This also fixed that during booting and shutting down a “small” VGA resolution was used.
Now on to the sound.

Edit:

Disabling the onboard sound fixed my problems.
I haven’t had sound at all in Ubuntu.
After disabling onboard sound I have sound in Ubuntu and W:ET.
:banana:
My soundcard is a Soundblaster Live! which has been recognized correct by Ubuntu.