Requirements:
You have UrT setup and working
You have the Expect program installed
http://expect.nist.gov/
In my home directory, I have a scripts folder to which I create desktop icons for my games. *somewhere* have a directory containing these files:
urbanterror.exp
#!/usr/bin/expect -f
set timeout -1
spawn /home/josh/scripts/quake/su
expect "Password: "
sleep 1
send "YOURPASSWORDr"
send "export __GL_FSAA_MODE=1r"
send "export __GL_SYNC_TO_VBLANK=1r"
send "/home/urbanterror/ut.shr"
expect "to shut down"
sleep 1
send "exitr"
expect eof
This script logs in as the user you want to play urbanterror as, and starts the scripts from its home directory. Edit it to your needs. In the same directory as this file, place:
su
#/bin/bash
su - urbanterror
Now, if you already have UrT setup, copy your .q3a arena folder from your home directory over to the /home/urbanterror/ directory so that your settings are the same. Inside the /home/urbanterror/ directory, place these files:
ut.sh
#!/bin/bash
connect="$1"
source /etc/profile
export __GL_FSAA_MODE=1
export __GL_SYNC_TO_VBLANK=1
export DISPLAY=:1
cat > ./urbanterror.sh << EOF
#!/bin/sh
export __GL_FSAA_MODE=1
export __GL_SYNC_TO_VBLANK=1
/usr/games/bin/quake3 +set fs_game q3ut3 $connect
EOF
startx -- :1
.xinitrc
In your .xinitrc file, make sure it is set to run this:
/home/urbanterror/urbanterror.sh
make sure all your scripts are executable. The $connect was me playing around trying to get XQF to send the server through these scripts. It's been a while and I don't know if I had it working or not, as I only used XQF when the in game browser wasn't working. Any questions, suggestions comments are appreciated.
-crache