msgbartop
A chronological documentation test project, nothing serious, really!
msgbarbottom

12 Mar 2015 Using xpra to run remote X applications

This post describes how you can run a X application on a host and view it on another.

Xpra is a tool which allows you to run X programs — usually on a remote host — and then direct their display to your local  machine, disconnect  from these programs, and reconnect from the same or another machine, all without losing any state. It differs from standard X forwarding in that it allows disconnection and reconnection without disrupting the forwarded application; it differs from  VNC and similar remote display technologies in that xpra is rootless: i.e., applications forwarded by xpra appear on your desktop as normal windows managed by your window manager, rather than being all “trapped in a box together”. Xpra also uses a custom protocol that is self-tuning and relatively latency-insensitive, and thus is usable over network connections that are too slow or unreliable for standard X forwarding. Xpra can also be used to shadow an existing X11 display.

Example to start a xpra X session and then start the X text editor gedit

$> xpra start :<DISPLAY NUMBER> && DISPLAY=:<DISPLAY NUMBER> gedit "

Example – Start geeqie

$> xpra start :100 && WINEDEBUG=-all DISPLAY=:100 geeqie &

Example using other video encoding, no audio, no clipboard

$> xpra --encoding=x264 --quality=80 --no-bell --no-speaker --no-pulseaudio --no-clipboard --no-notifications attach :100

If you combine using xpra and SSH client then you can connect to your X application from anywhere and continue you X application session.

Tags: , ,

Posted by

28 Nov 2011 Switching to a graphical login on RHEL6

This is a short post on how to install the necessary components to get X Server running on a bare bone RedHat 6 Enterprise Server (CentOS6) installation.
The following commands should be run from a console window as the root user.

Install barebone X support

# yum groupinstall "X Window System"

Install X and the Gnome Environment

# yum groupinstall "X Window System" "GNOME Desktop Environment"

Install X and the KDE Window System

# yum groupinstall "X Window System" KDE

Install the XFCE desktop environment

# yum groupinstall "X Window System" XFCE

When you have chosen your desired desktop environment, make the final change to make the Gnome Display Manager show you a logon screen.
Edit the file /etc/inittab and change the line
from

id:3:initdefault:

to

id:5:initdefault:

You will be greeted with a graphical logon screen the next time you have rebooted your server.

Tags: , , , ,

Posted by

07 Dec 2007 Run X programs through ssh

A easy way to run remote X programs (from another host) on your local linux installation is to connect to it via ssh using the -Y switch.

For instance if you would like to run up2date in graphical mode on a remote machine but the server doesn’t have X installed. Then this is a great way of doing it.

On your host

ssh -Y remote_machine_name.com

When you have successfully connected to the remote host you start the up2date command.
up2date

Soon after you will get the up2date windows on your local linux machine.

Your sshd server should have enabled the X11Forwarding directive. This is enabled in your local local machines ssh config /etc/ssh/sshd_config file

X11Forwarding yes

The command you run can be anything else, for instance xterm.

Tags: , , ,

Posted by