Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
Dernière révisionLes deux révisions suivantes
en:documentation:tutorials:visualisation [2020/03/11 16:40] – [Visualization server] ltaulellen:documentation:tutorials:visualisation [2020/08/25 15:58] – modification externe 127.0.0.1
Ligne 13: Ligne 13:
  
  
-===== Prerequisites =====+===== 1. Prerequisites =====
  
-  - [[documentation:tutorials:ssh:accueil|Se connecter aux clusters]] +  - [[en:documentation:tutorials:ssh:accueil|Connect to clusters]] 
-  - [[documentation:tutorials:ssh:clef_agent_ssh|Utiliser des clefs SSH et un agent-ssh]] (ou [[documentation:tutorials:ssh:putty|PuTTY/KiTTY pour Windows]]) +  - [[en:documentation:tutorials:ssh:clef_agent_ssh|Use SSH keys and ssh-agent]] (**or** [[documentation:tutorials:ssh:putty|PuTTY/KiTTY for Windows]]) 
-  - [[documentation:tutorials:ssh:multihop_ssh|Faire des rebonds avec SSH]] +  - [[en:documentation:tutorials:ssh:multihop_ssh|Doing hops with SSH]] 
-  - Installer **x2go** (x2goclient) sur le poste utilisateur (Linux, Mac ou Windows => http://wiki.x2go.org/doku.php )+  - Install **x2go** (x2goclient) on user's workstation (Linux, Mac or Windows => http://wiki.x2go.org/)
  
-===== Configure the x2goclient =====+===== 2. Configure the x2goclient =====
  
   * New session   * New session
Ligne 129: Ligne 129:
  
  
-===== Connection =====+===== 3. Connection =====
  
 <WRAP group> <WRAP group>
Ligne 148: Ligne 148:
 {{ :documentation:tutorials:x2go-r730visu-07-xfce-desktop.png?direct |XFCE Desktop}} {{ :documentation:tutorials:x2go-r730visu-07-xfce-desktop.png?direct |XFCE Desktop}}
  
 +===== 3.1. Connection from outside (Linux, Mac) =====
 +
 +This paragraph concerns a connection to the visualization machine from outside the School, **from a Linux or Mac OSX client**. SSH bounces must be active, make sure you have read (understood and tested) the
 +[[documentation:tutorials:ssh:multihop_ssh|related documentation]].
 +
 +<WRAP group>
 +<WRAP half column>
 +
 +{{:documentation:tutorials:diagramme_ssh_externe.png?direct&300|}}
 +
 +</WRAP>
 +<WRAP half column>
 +
 +__Keys :__
 +  * **black** : physical connection
 +  * <wrap round notice>blue</wrap> : standard ssh connection
 +  * <wrap round danger>red</wrap> : virtual ssh connection (bounce)
 +  * <wrap round safety>green</wrap> : NFS link (/home)
 +
 +</WRAP>
 +</WRAP>
 +
 +  * Minimal modification to be made in your ''~/.ssh/config'' (on user station):
 +
 +<code bash>
 +Host allo-psmn-multihop
 +  User $USER
 +  ProxyCommand ssh -qt $USER@ssh.psmn.ens-lyon.fr tcpconnect allo-psmn.psmn.ens-lyon.fr %p
 +</code>
 +
 +<wrap important>Replace ''$USER'' by your PSMN login.</wrap>
 +
 +  * Modification x2go :
 +
 +In the tab ''Session'', block ''Proxy server'', box ''Host'', replace ''allo-psmn.psmn.ens-lyon.fr'' by the new configuration : ''allo-psmn-multihop''. You must get the same thing as in §3 at the login x2go.
 +
 +===== 4. Connection Windows/PuTTY, External access =====
 +
 +This part is about connection to visualization server from a network outside of ENS de Lyon (see {{documentation:tutorials:diagramme_ssh_externe.png?linkonly|illustration}}).
 +
 +
 +<WRAP group>
 +<WRAP half column>
 +
 +{{:documentation:tutorials:diagramme_ssh_externe.png?direct&300|}}
 +
 +</WRAP>
 +<WRAP half column>
 +
 +__Légende :__
 +  * **black** : physical link
 +  * <wrap round notice>blue</wrap> : ssh standard connection
 +  * <wrap round danger>red</wrap> : ssh virtual connection (hops)
 +  * <wrap round safety>green</wrap> : NFS mount (/home)
 +
 +</WRAP>
 +</WRAP>
 +
 +==== Creating an SSH tunnel ====
 +
 +<note important>**The following steps assume that you have already configured your SSH rebounds to allo-psmn (see [[documentation:tutorials:ssh:putty&#configurer_le_proxy_putty_plink|this documentation]])**</note>
 +
 +The first step is to create an SSH tunnel to the visualization machine. :
 +
 +  * Copy the gateway session (allo-psmn, Load, rename, save).
 +
 +Change the "Host Name" to that of the display machine (here, for the example, r740visu). So rename the session to **r740visu** (to follow the example) and save.
 +
 +<note important>Be sure to enter the full name in ''Host Name'' (here **r740visu.psmn.ens-lyon.fr)**</note>
 +
 +{{:documentation:tutorials:putty_conf_session_visu.png?direct&300|}}.
 +
 +  * In ''Connection->Proxy'', select ''Local''.
 +  * In ''Connection->Proxy'', set "Telnet command" as follows : <code>plink.exe -load allo-psmn -nc %host:%port</code>
 +
 +{{:documentation:tutorials:putty_conf_conn_proxy_x5770.png?direct&300|}}
 +
 +  * In ''Connection->SSH->Tunnels'', set ''Source port'' on port 2222 and ''Destination'' sur <code>r740visu.psmn.ens-lyon.fr:22</code>
 +
 +{{:documentation:tutorials:putty_conf_tunnel_visu.png?direct&300|}}
 +
 +  * Return to ''Session'', save, then click ''Open''. Your tunnel is now open.
 +
 +==== X2Go connection ====
 +
 +<WRAP group>
 +<WRAP half column>
 +<note important>**The SSH session from Putty to r740visu must remain open, do not close the login window.**</note>
 +</WRAP>
 +<WRAP half column>
 +{{:documentation:tutorials:putty-tunnel-cmd.png?direct&300|}}
 +</WRAP>
 +</WRAP>
 +
 +<WRAP group>
 +<WRAP half column>
 +{{:documentation:tutorials:x2go.png?direct&300|}}
 +</WRAP>
 +<WRAP half column>
 +The X2Go session settings are as follows:
 +
 +  * In ''Host'' enter ''localhost''.
 +  * In ''Username'' enter your login.
 +  * Set ''SSH Port'' to 2222.
 +  * Check the box ''Try automatic authentication''.
 +  * Set ''Session Type'' to ''XFCE''.
 +</WRAP>
 +</WRAP>
 +
 +
 +Confirm with OK, then double-click the session icon on the right side of the X2Go client. You are now connected to the graphical interface of the machine.
 +
 +{{:documentation:tutorials:x2go_desktop.png?direct&300|}}
  
 ===== Usage ===== ===== Usage =====
Ligne 153: Ligne 266:
 Every application installed in the PSMN environment can be used as is. Every application installed in the PSMN environment can be used as is.
  
-==== Numeric keyborad ==== +==== Numeric keyboard ==== 
-If your numeric keypad is not recognized, in a terminal, run the program '' numlockx ''.+ 
 +If your numeric keypad is not recognized, in a terminal, run the program ''numlockx''.
  
 ==== modulefiles ==== ==== modulefiles ====
Ligne 164: Ligne 278:
 <code bash>source /usr/share/lmod/lmod/init/bash</code> <code bash>source /usr/share/lmod/lmod/init/bash</code>
  
 +==== Mac users ====
 +
 +MacOS X users must have X11 Mac server installed and running prior to use x2go-client, see [[https://wiki.x2go.org/doku.php/doc:installation:x2goclient#os_x|x2goclient documentation]]
 ==== VirtualGL ==== ==== VirtualGL ====
  
-For every application requiring hardware acceleration (OpenGL / GLX / GLSL / ...), after loading the corresponding modulefile, you must prefix the call to the application by calling VirtualGL: '' vglrun MyApp ''+For every application requiring hardware acceleration (OpenGL / GLX / GLSL / ...), after loading the corresponding modulefile, you must prefix the call to the application by calling the VirtualGL wrapper: '' vglrun MyApp ''
  
 ===== Examples ===== ===== Examples =====