Kamis, 09 Februari 2012

HOWTO: Run your Games in a new Xserver

When I play a game that runs full screen on Linux but still want to have things running in the background I'd like to check on here and there without closing my game I typically launch my game into a new Xserver instance. This fairly simple setup allows you to change between Xserver instances by using ctrl+alt+f7 and ctrl+alt+f8.

To launch your application into a new Xserver instance you simply need to launch the program as follows (I'll use Desura in my example):

xinit /home/honey/desura/desura %U -- :1

Once you run this your screen will flick once or twice as the new X instance is created and the program is automatically launched within it. This new X will be accessible via the keyboard shortcut ctrl+alt+f8, to get back to your previous X instance simply press ctrl+alt+f7.

Now, one other thing to note is that on some Linux distributions you may be greeted with the following message when you try to run xinit as a normal user:

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

Don't panic, the fix for this is also simple. In terminal run:

sudo nano /etc/X11/Xwrapper.config

This will open a file for editing - we only need to adjust one line. Make sure somewhere in this file is the line:
allowed_users=anybody

Save and close the file and the above xinit file should now work. Happy gaming folks!

~Jeff Hoogland

Tidak ada komentar:

Posting Komentar