X Windows System (commonly X or X11)

Host Key Not Cached Putty

About

X11 means that the display of a remotely running program is authorized to be sent to your machine (localhost) via an X11 connection between a client (located on the remote server) and a server (running on your machine).

When you want to redirect the display (keyboard, mouse, screen, …) of a remote server on the local computer, you use the X window system.

It can be generally the case in a Linux installation (Database, …) when you are not installing the software on your local computer.

The X Window System (commonly X or X11) is a computer software system and network protocol that provides a graphical user interface (GUI) for networked computers known also as X emulation.

Running X applications over the network is quite bandwidth-intensive. If you are off campus or running highly-graphical applications, it may take a few moments for the screen to refresh.

How to show remote application on your local computer

You must do two things to achieve all this:

  1. Tell the local display (keyboard, mouse, screen, …) from the local X server to accept connections from the remote Linux server.
  2. Tell the remote application on the remote Linux server to direct its output to your local display via the DISPLAY environment variable

The two next section gives general details about this two steps and you can read a tutorial with the X Server CygwinX on this article: X11 - How to display remote clients (such as firefox, installation screen) with the X Server CygwinX ?

Telling the local X Server

The local X server will not accept connections from just anywhere. You don't want everyone to be able to display windows on your screen. Or read what you type because your keyboard is a part of the display.

Someone with access to your display can read and write your screens, read your keystrokes, and read your mouse actions.

Most X servers know two ways of authenticating connections to it:

  • the host list mechanism (xhost)
  • and the magic cookie mechanism (xauth)

Then there is ssh, the secure shell, that can forward X connections.

Telling the remote Client on the remote Linux Server

The client program (for instance, your graphics application) knows which display to connect to by inspecting the DISPLAY environment variable.

This setting can be overridden, though, by giving the client the command line argument -display hostname:0 when it's started.

The DISPLAY variable is automatically transported to the remote host with some client such as

  • some versions of telnet
  • the ssh client such as putty. With putty, DISPLAY is automatically set to point at display 10 or above when X-forwarding
[root@ebs121 ~]# echo $DISPLAY
localhost:10.0

To turn on X forwarding over ssh,

Host remote.host.name
ForwardX11 yes

  • Check the forwarding box in the putty X11 configuration settings.

Documentation / Reference





Discover More
Linux - (init.d|Initialization) Location

The (init.d|Initialization) directory contains start/stop scripts used during the OS initialization phase. Everything from acpid to x11-common is controlled from this directory. Location Os Tip /etc/rc.d/init.d/...
Linux - Remote Client

How to connect to a linux system in a remote mode ? In console mode, with the help of this network protocol : ssh telnet In graphic mode: the X Windows System Virtual Network Computing (VNC)...
Idea Bash
Sh - Idea (bashSupport) (IDE)

With: and Bash Support Plugin
Putty X Forwarding
What is the DISPLAY environment variable? X11

The magic word in the X window system is DISPLAY. The DISPLAY environment variable instructs an X client which X server it is to connect to by default. The X display server install itself normally...
Host Key Not Cached Putty
X11 - X Client

X clients ((or X11 based program) such as: xterm, xhost, xdpyinfo, , and xeyes. are client software of an x server.
Putty X Forwarding
X11 - How to display remote clients (such as firefox, installation screen) with the X Server CygwinX ?

The X Windows System permit to see on your local computer, software that run on a remote server. This software are known als: X Window System applications remote client This articles shows a step...
Host Key Not Cached Putty
X11 - X Server (X-Windows, X Display Server)

The X Server is also known as: X Display server (from DISPLAY) X-Windows server (if the X Server is a Windows application) and is an important part of the X Windows System. It's located on your...
Xclock
X11 - X11 and su: How to ?

After making a connection, you shows X windows by following for instance this article: . But when you change of user with the su command, you got . There is no display You then go back to the original...
Host Key Not Cached Putty
X11 - Xhost

xhost is an X client software which is a part of the X11 security. It manage the list of the remote server that can make a connection with the local x server You use it in a xterm terminal before you...



Share this page:
Follow us:
Task Runner