mkogg.py: Fix 'self.get_mp4_metadata(self, source)'
[blog.git] / posts / Xephyr.mdwn
1 We run [Ubuntu][] on a lot of the department computers, and some
2 things are easier to configure via their appropriate GUI than they are
3 from the command line (sigh, :p).  I don't have to do this often, so
4 often I don't remember the interface, or even the name, of the app
5 required for the particular configuration I'm try adjust.  Ah, I think,
6 if I was only sitting in front of the computer in question rather than
7 logging in via [[SSH]], I could click on the *Preferences* dialog and
8 it would be right there.  Wait, why should it matter what computer I'm
9 sitting in front of?  Enter nested X servers such as [Xnest][] and its
10 successor [Xephyr][].
11
12 The problem with running a remote desktop or windows manager is that
13 when you fire up your local X server, you usually also fire up a
14 windows manager to manage it.  If you try to run a remote windows
15 manager, there will be two managers trying to manage one server, which
16 can be problematic.  Xephyr lets you start another X server nested
17 inside a window of your main X server, and you can then start the
18 remote windows manager in the Xephyr window.  Basic usage looks like
19 this:
20
21     home$ Xephyr :1 -ac -screen 800x600 2>/dev/null &
22     home$ export DISPLAY=:1
23     home$ ssh -YC hop1
24     hop1$ ssh -YC hop2
25     ...
26     hopN$ ssh -YC target
27     target$ gnome-session
28
29 Don't forget to kill the Xephyr process once you're done with it.
30
31 Of course, with all the X forwarding, it doesn't actually matter which
32 host Xephyr is running on.  However, it may be easier for you if you
33 only have to install it on your main computer.  See Igor Ljubuncic's
34 [Xephyr tutorial][post] for a more detailed explanation of the whole
35 process.
36
37 In order to install Xephyr on [Gentoo][], you'll need to (re-)emerge
38 `x11-base/xorg-server` with the `kdrive` `USE` flag enabled.
39
40 [[!tag tags/linux]]
41 [[!tag tags/tools]]
42
43 [Ubuntu]: http://www.ubuntu.com/
44 [Xnest]: http://packages.debian.org/lenny/xnest
45 [Xephyr]: http://www.freedesktop.org/wiki/Software/Xephyr
46 [post]: http://www.dedoimedo.com/computers/xephyr.html
47 [Gentoo]: http://www.gentoo.org/