box.matto.nl
[tux]

This page: Home » HowTo » Fun with Xnest HowTo

Fun with Xnest HowTo

Xnest is a great tool to simultaneously use multiple window managers

Xnest lets you start multiple (nested) X-sessions on the same box simultaneously. This provides great fun, and sometimes can even be very useful. Every Linux user should have tried it!

Xnest tutorial: Learn Xnest in just 5 minutes

This tutorial teaches you to use Xnest in just 5 minutes. Xnest is very useful and fun to play with!

Why use Xnest

Things you might want to do with Xnest:

Starting a Xnest session

Now you should see a X-screen without a background and a Xclock on it. If this works, you're in business :-)

The :1 in the example above, is the number of your Xsession. :0 is your "regular" Xsession. So if you want to simultaneously open several Xnests, you should change this number:

Xnest :1 -ac &
Xnest :2 -ac &
Xnest :3 -ac &
etc.

Starting a windowmanager in the Xnest-screen

Kill the xclock with <Ctrl-C>.
Next we are going the start a windowmanager. We start with twm (many distros install twm by default, if not then install it first) an ancient but still usable windowmanager:

twm -display :1
Perhaps you see nothing happening, but if you click with your left or right mouse-button in the Xnest screen, you should.

This way you can try many different windowmanagers to find out what your favorite could be.

Some problems you might run into:

Here you find a screenshot of a Xnest session with fvwm as windowmanager, opening a Xnest session with ratpoison as windowmanager, opening a Xnest session with afterstep as windowmanager.

Play around, experiment and have fun. It could be nice to work as several users different on your system, so that will be our next experiment:

Setting up an ratpoison session as a different user

xhost +
su - different_user
export DISPLAY=ipnumber:0
Xnest :4 -display :0 &
ratpoison -d :4

Explanation:

Which windowmanagers are there to play with?

Open source software always inspire people to develop more and more applications. There is a wide range of window managers available. Take a look at xwinman.org - windowmanagers for X and take your pick!

For this kind of experimenting you will find Debian most suited. Most applications are only an apt-get away ...

Walk through this site
← previous page next page →