Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:ssh_deport_d_affichage_avec_le_protocole_x11 [2016/12/16 10:16] (current)
Line 1: Line 1:
 +Last modified: Aug 16, 2016 by Calvat\\
 +\\
 +
 +====== SSH: X11 display forwarding ======
 +
 +\\
 +\\
 +
 +=====  Interactive means  =====
 +
 +In order to access at the computer center resources, an interactive cluster is available to the remote users. This cluster is made with unix workstations. From it, the user have a means at its disposal and a technical environment where he can:
 +  * Develop its codes.
 +  * Manage its data.
 +  * Run its applications.
 +
 +If you are using a graphical application on a center'​s workstation from a remote host, you need to have a X11 server installed on your local workstation. This local X11 sever allows you to forward the display from the center with a graphical interface to your workstation.
 +=====  X11 working ​ =====
 +
 +X Window System, also called **X11** or **X** , allows you to manage the interaction man-computer with a graphical screen. X11 is the system which manage these interaction in an unix environment,​ BSD like (Berkeley Software Distribution). X11 is working in a client-server mode:
 +  * The X server is running on the workstation having a screen.
 +  * The X client connect to the X server and send its display requests using the X protocol through the Xlib library.
 +
 +**Be carefull :**
 +  * The X server is launched on the user workstation.
 +  * The X client is running on the center interactive workstations.
 +
 +=====  How to use X11 through an SSH connection ​ =====
 +
 +To connect to the center interactive workstations,​ the user should do it through an SSH connection (see [[:​ssh_se_connecter_au_centre_de_calcul|"​How to connect at Computing Center"​]] document). For security reasons, the X11 protocol should go through this SSH connection to communicate with the X11 server. To allow the X11 display through this SSH connection, you should use the option -X of SSH.
 +<​code>​
 +> ssh -X <​YourLogin>​@cca.in2p3.fr
 +</​code>​
 +=====  X11 availability according to the operating system ​ =====
 +
 +
 +====  Linux  ====
 +
 +The X11 server is available by default in the LINUX environment. It is the hearth of the display system on LINUX. If you make a connection to the center from your LINUX workstation,​ you have nothing to do because the X11 server is launched by default. ​
 +====  Mac OS X  ====
 +
 +X11 is available under Mac OS X. But the X11 server is not launched by default. If you make a connection to the center from a MAC workstation,​ you should launch the X11 server before like below:
 + Got to the **Applications** menu using the "​Finder"​.
 + ​Choose **Utilities** .
 + ​Launch the **X11** server.
 +
 +
 +====  Windows ​ ====
 +
 +X11 is not available under Windows. In order to have an X11 display under Windows, you should find a software (freeware or commercial) which allows you to launch an X11 server on your Windows workstation. Be aware that some graphical applications running under Linux use OpenGL. You should take care that your X11 server is compatible with OpenGL. For example, you can install [[http://​x.cygwin.com/​|Cygwin/​X]] on your Windows workstation. Procedure to launch the X11 server under Windows:
 +
 +Install Cygwin/X.
 +Install an SSH client (for example Putty).
 +Launch a Cygwin window.
 +Type the command: **XWin** in the Cygwin window:
 +<​code>​
 +> XWin
 +</​code>​
 +  *Connect to the Computer Center with an SSH client an the -X option.
 +
 +
  
  • en/ssh_deport_d_affichage_avec_le_protocole_x11.txt
  • Last modified: 2016/12/16 10:16
  • (external edit)