Différences

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

Lien vers cette vue comparative

Prochaine révision
Révision précédente
Dernière révisionLes deux révisions suivantes
en:documentation:tutorials:visualisation [2018/05/28 15:03] – créée cpetiten:documentation:tutorials:visualisation [2020/08/25 15:58] – modification externe 127.0.0.1
Ligne 1: Ligne 1:
 ====== Visualization server ====== ====== Visualization server ======
  
-The **r730visu** server is dedicated to extensive visualization (OpenGL/Mesa/CUDA8) at PSMN.+The **r740visu** server is dedicated to extensive visualization (OpenGL/Mesa/CUDA8) at PSMN.
  
-It is identical to the machine belonging to the  [[documentation:clusters:hardware&#groupe_r730gpgpu|r730gpgpu group]].  +It is equipped with 2 Intel processors Xeon Gold 5122 @3.6GHz (16 logical cores) with 192 GiB of RAM
-It is accessible using **x2go** and has a hardware accelerator **NVidia Quadro4000©**.+It is accessible using **x2go** and has a hardware accelerator **NVidia Quadro P4000©**.
  
-Finally, and most importantly, the server has access to the ''/scratch/e5-2670-gfs-scratch'' (scratch system common to ''E5-*'' queues.+Finally, and most importantly, the server give access to the ''/scratch/E5N'' (scratch system common to ''E5-*'' queues.
  
-<WRAP round important>**r730visu is not a submission node.**</WRAP>+<WRAP round important>**r740visu is not a submission node.**</WRAP>
  
 <WRAP info>This machine was set up thanks to the preparatory work, recipes and integrations carried out on the CBP experimental platform.</WRAP> <WRAP info>This machine was set up thanks to the preparatory work, recipes and integrations carried out on the CBP experimental platform.</WRAP>
  
  
-===== 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 50: Ligne 50:
  
   - Name the session,   - Name the session,
-  - Host = **r730visu**,+  - Host = **r740visu**,
   - Try auto login -> Checked,   - Try auto login -> Checked,
   - Use proxy server -> Checked,   - Use proxy server -> Checked,
Ligne 81: Ligne 81:
 </WRAP> </WRAP>
  
-  * Parameters: Tap Input/Output+  * Parameters: Tab Input/Output
  
 <WRAP group> <WRAP group>
Ligne 129: Ligne 129:
  
  
-===== Connection =====+===== 3. Connection =====
  
 <WRAP group> <WRAP group>
Ligne 139: Ligne 139:
 <WRAP half column> <WRAP half column>
  
-Cliquez simplement sur la session de votre choix (flèche 3) pour lancer le processus de connexion.+Just click on the session of your choice (arrow 3) to start the connection process.
  
 </WRAP> </WRAP>
 </WRAP> </WRAP>
  
-Résultat attendu :+Expected result:
  
 {{ :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) =====
  
-===== Utilisation =====+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]].
  
-Chaque application installée dans l'environnement PSMN peut être utilisée telle quelle.+<WRAP group> 
 +<WRAP half column>
  
-==== Pavé numérique ====+{{:documentation:tutorials:diagramme_ssh_externe.png?direct&300|}}
  
-Si votre pavé numérique n'est pas reconnudans un terminal, executez le programme ''numlockx''.+</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 ===== 
 + 
 +Every application installed in the PSMN environment can be used as is. 
 + 
 +==== Numeric keyboard ==== 
 + 
 +If your numeric keypad is not recognizedin a terminal, run the program ''numlockx''.
  
 ==== modulefiles ==== ==== modulefiles ====
  
-Pour chaque application nécessitant le chargement d'un modulefile, il faut, depuis un terminal, loader le modulefile puis exécuter l'application.+For every application requiring the loading of a modulefile, it is necessary to first load from a terminal the modulefile then run the application. 
 + 
 +Sometimes, x2go sessions don't load the ''~/.profile''. You can force it, by hand, with ''source ~/.profile'', or add this line to your ''~/.bashrc''
 + 
 +<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 ====
  
-Pour chaque application nécessitant une accélération matérielle (OpenGL/GLX/GLSL/...), après le chargement du modulefile correspondantil faut préfixer l'appel à l'application par l'appel à 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 ''
  
-===== Exemples =====+===== Examples =====
  
   * VMD   * VMD
      
-Dans un terminal :+In a terminal run:
  
 <code> <code>
Ligne 181: Ligne 301:
   * molden/gmolden   * molden/gmolden
  
-Dans un terminal :+In a terminal run:
  
 <code> <code>
Ligne 193: Ligne 313:
   * ParaView   * ParaView
  
-Dans un terminal :+In a terminal run:
  
 <code> <code>
Ligne 207: Ligne 327:
   * Avogadro   * Avogadro
  
-Dans un terminal :+In a terminal run:
  
 <code> <code>