Posted: . At: 1:55 PM. This was 2 years ago. Post ID: 16691
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.



Sponsored



How to use Xephyr to open a window manager in a window over SSH.


Using the useful Xephyr utility, it is possible to open a Linux desktop session in a window over SSH. This is a very nice Linux trick.

Use these commands to open the Fluxbox window manager session in a window over SSH. Just connect to the remote machine over SSH that has X11 forwarding enabled and then run these commands to open the WM in a window.

Xephyr :1 -terminate -screen 1280x1024 &
sleep 2
DISPLAY=:1 fluxbox

This could be very useful. Even Gnome Shell works this way but is slower in operation. It is better to use something simpler like Fluxbox or IceWM.

Fluxbox running in the Xephyr window.
Fluxbox running in the Xephyr window.

The screenshot above shows what this looks like. I can not imagine why you would not want to use such a useful tip on a Linux server.

To load Gnome Shell instead, use this sequence of commands.

Xephyr :1 -terminate -screen 1280x1024 &
sleep 2
DISPLAY=:1 gnome-shell
Running Gnome Shell in Xephyr over SSH.
Running Gnome Shell in Xephyr over SSH.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.