time to time run into by accident ground applications completely unaware its existence, raising my curiosity to know what it does and what it does.
Some time ago I met with Xephyr, a part of X.Org Server tool style Xnest with the difference, as reported by the manual, the latter was limited by the capabilities of the X server host, while The first is a real X server on the host. In short, we could say that Xephyr acts as a wrapper to launch X applications in parallel to our server running X .
could say, well, it would be like a second screen independent, within a window of your desktop . Thus, one might infer its importance for developers, for example, design on a desktop without exiting or rebooting each time your workspace.
However, we could find a more home . Personally, I am hesitant to organize my desk , I tend to change every now and then. The problem is having to devote much time starting and closing session. This is where Xephyr comes in handy: we can run inside your window environment to test with just indicate in advance the value of DISPLAY (which we will see in a moment). Taking the example just described, I will explain how to run fvwm (reason reminded me of the application in question) within Xephyr:
First, we install it. In most cases enough with apt-get install , aptitude install , yum install , pacman-S and others. The package in question contains the word Xephyr, therefore, not be very difficult to find . However, I do except for Gentoo as it is not so handy. To install you need to add to x11-base/xorg-server kdrive USE label and recompile.
Once installed, it remains for us to start Xephyr. Basically, takes a couple of parameters to achieve this function . For example:
Xephyr: 1-screen 1024x768
Where:
Note that the
X
Xephyr running next to the terminal
Now
we will send our program . For this there are different ways but very similar. Suppose we want to send fvwm from terminal Xephyr. We should first give the DISPLAY value, otherwise we would receive an error because we have another window manager running. Therefore, we run it as follows:
DISPLAY =: 1 fvwm
also may have given the previously DISPLAY value, but that this would lead to the terminal in use, all applications are aimed at: 1 instead of our X session . Otherwise the only affect that line and return to its previous value. If in doubt, you can run echo $ DISPLAY to know what its current value.
Of course, we could go further and log XFCE or KDE for example, the mechanics are the same. However, it could get heavier depending on the computer implementation. Simply change fvwm by startxfce4 or startkde . However, in the case of KDE, take some more odd jobs, in my case, starts in Xephyr and your applications run out.
Finally
would be used in conjunction with ssh
DISPLAY =: 1 ssh-c blowfish-XFC user @ server
Conclusion :
Xephyr is a very useful tool that allows us to have two desktop environments running in parallel fairly quickly and easily. It is highly desirable to avoid entering and exiting the session, in addition to spending time, also uncomfortable having to switch to an environment that is not our day to day. On the other hand, can serve for sending in applications through ssh and avoid confusion with local applications. Outside of that, is curious and interesting tool that can be useful at any time .
No related posts.