How to start a new X server with Quake wars to work as a minimizer for GNU/Linux

I’ve played Enemy territory since early 2006 in GNU/Linux and one of the things i missed from the beginning was the lack of a good minimiser. There was a ET minimiser ( ET Switch ) but it didn’t worked very well. So an alternate solution was the even more elegant solution of launching a new X server, i.e., a new graphical terminal. I’ve been using it for ages and it provides a great solution. It’s even more useful to those who want all the computer power dedicated to the game, so you can log out of your Desktop environment, and launch that X server with just the game. To start using this new X server, one must, first of all, set the right permissions to use the new x server.
$ xauth
xauth> list

and something like this will show:


(snip) MIT-MAGIC-COOKIE-1 7a40268bcb2[snip]5dd040e2b
[fe80::215:f2ff:fea9:6d1f]:0 MIT-MAGIC-COOKIE-1 7a40268bcb2[snip]5dd040e2b
cerval/unix:0 MIT-MAGIC-COOKIE-1 7a40268bcb2[snip]5dd040e2b

Notice the hexadecimal string ( the long word with both numbers and letters – from A to F)
Now add the authorization:
xauth> add :1.0 MIT-MAGIC-COOKIE-1 7a40268bcb2[...]5dd040e2b

From the man pages:
add displayname protocolname hexkey
An authorization entry for the indicated display using the given protocol and key data is added to the authorization file. The data is specified as an even-lengthed string of hexadecimal digits, each pair representing one octet. The first digit of each pair gives the most significant 4 bits of the octet, and the second digit of the pair gives the least significant 4 bits. For example, a 32 character hexkey would represent a 128-bit value. A protocol name consisting of just a single period is treated as an abbreviation

After that, exit the xauth:
xauth> exit

Then, create this file
$ touch x.qw

and add this to the its content (changing the path to etqw file):


xmodmap -display :1 -e “pointer = 1 2 3 4 5 8 9 6 7 10 11” &
setxkbmap -display :1 -layout pt &
xinit /path/to/quakewars//etqw $* — :1

echo “bye bye”

now copy it to a directory that is on the $PATH variable.

su -c "cp x.qw /usr/local/bin/x.qw"

In my case, i need to be root to have writing acess to that directory thus the su -c,
which will ask for the root password and run that command between the commas as root.

Or see in this post how to create a symlink so, everytime you change this file you don’t need to copy it to the correct place.

If you launch the game and need to return to the desktop press ctrl+alt+F7. To return to the game, press ctrl+alt+F8.

GL, GG and have fun!

I based my script from the ubuntu forum and the


2 thoughts on “How to start a new X server with Quake wars to work as a minimizer for GNU/Linux

  1. I tried this out with Ubuntu 8.04 Hardy Heron, but it didn’t work, the error message is:

    “xmodmap: unable to open display ‘:1’
    Cannot open display “:1″

    X: user not authorized to run the X server, aborting.”

    Whats is wrong?

    Best regards, Stefan

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s