Difference: RemoteLxplusConsoleHowTo (4 vs. 5)

Revision 52011-09-13 - MarcoClemencic

Line: 1 to 1
 
META TOPICPARENT name="LHCbComputing"
This page describes how to start a graphical session on the lxplus cluster via a slow network connection.
Line: 26 to 26
 
    • RealVNC (no need to fill in the details, just Proceed to Downloads)
    • TightVNC (both client and server with some nice features)
Changed:
<
<
TightVNC offers a cross-platform viewer in Java too, which comes as a single file that can be executed from any directory without special privileges.
>
>
TightVNC offers a cross-platform viewer in Java too, which comes as a single file that can be executed from any directory without special privileges.
  If for any reason you cannot install a VNC viewer on your machine, you can still access a remote VNC server if you can start Java applications from the web (you can test your Java installation on the Java web site.
Line: 100 to 100
  Start Putty, you will get the window:
Changed:
<
<
putty-main.png
Putty main window
>
>
putty-main.png
Putty main window
  Insert lxplus.cern.ch in the Host Name field, select the SSH connection type (if not already selected) and click on the Open button.
Changed:
<
<
putty-main-2.png
Putty connection details
>
>
putty-main-2.png
Putty connection details
  The window will change in a terminal window and it will ask for the user name and for the password (before that it may ask you to accept the key of the ssh server).
Line: 133 to 135
 Look for Connectioon->SSH->Tunnels in the menu on the left hand side. In the configuration that appears on the right hand side we can add the forwarding of the two ports 5807 and 5907. To do it, insert the number (5807) in the Source port field, then localhost: (localhost:5807 in the example) in the Destination field and click on the button Add, then do it for the other port.
Changed:
<
<
putty-tunnels.png
Configuration of the tunnels
>
>
putty-tunnels.png
Configuration of the tunnels
  Now you are ready to connect to the server.
Line: 184 to 187
 Again, this depends on the configuration of your box, but we can consider few basic cases.

Client that can be started from command line

Changed:
<
<
This includes all the Linux clients and the multi-platform TightVNC Java client.
>
>
This includes all the Linux clients and the multi-platform TightVNC Java client.
  When you can start the client from the command line, you just have to pass to it the string "localhost:". Few examples using the id 7 we already used before:
  • xvncviewer localhost:7
Line: 196 to 199
 IMPORTANT: you must start the viewer on your box and not on lxplus!

Client with graphical interface

Changed:
<
<
This includes some Linux (KDE, Gnome, GTK,..), Windows and Mac clients (including the multi-platform TightVNC Java client).
>
>
This includes most Linux (KDE, Gnome, GTK, ...), Windows and Mac clients (including the multi-platform TightVNC Java client).
 
Added:
>
>
In this case, just start the client and give it the server name (localhost:id) and the password. The way to do it may vary a lot depending on the client, but is it usually easy to understand.

For example with xvncviewer you get

xvncviewer-1.png
xvncviewer: server name
xvncviewer-2.png
xvncviewer: server name

and with TightVNC Java client

tightvncviewer-1.png
TightVNC Java client: server name
tightvncviewer-2.png
TightVNC Java client: server name

Java-enabled web browser

If you do not want to install a local client (I'd like to remind you that the TightVNC Java client is a just a single file), you can still use a Java-enabled browser and connect to the URL http://localhost:, where is the port 5800+id (in our example it becomes http://localhost:5807).

Working with the VNC session

Once the connection to the server has been established, you will see a window displaying the remote virtual display.

xvncviewer-3.png
xvncviewer: virtual display

Shut down the VNC server

Once you have finished with you session, you should go back to the terminal you left open (Putty or ssh) and call vncserver -kill passing it the display id with the ':' in front.

In our example with the display id 7, it becomes:

[lxplus403] ~ $ vncserver -kill :7
Killing Xvnc process ID 12345
[lxplus403] ~ $ exit
  -- MarcoClemencic - 12-Sep-2011

META FILEATTACHMENT attachment="putty-main.png" attr="h" comment="" date="1315852744" name="putty-main.png" path="putty-main.png" size="70152" stream="putty-main.png" tmpFilename="/usr/tmp/CGItemp17619" user="clemenci" version="1"
META FILEATTACHMENT attachment="putty-main-2.png" attr="h" comment="" date="1315852856" name="putty-main-2.png" path="putty-main-2.png" size="11831" stream="putty-main-2.png" tmpFilename="/usr/tmp/CGItemp17601" user="clemenci" version="1"
META FILEATTACHMENT attachment="putty-tunnels.png" attr="h" comment="" date="1315865792" name="putty-tunnels.png" path="putty-tunnels.png" size="65937" stream="putty-tunnels.png" tmpFilename="/usr/tmp/CGItemp17500" user="clemenci" version="1"
Added:
>
>
META FILEATTACHMENT attachment="xvncviewer-1.png" attr="h" comment="" date="1315909823" name="xvncviewer-1.png" path="xvncviewer-1.png" size="6245" stream="xvncviewer-1.png" tmpFilename="/usr/tmp/CGItemp20969" user="clemenci" version="1"
META FILEATTACHMENT attachment="xvncviewer-2.png" attr="h" comment="" date="1315910177" name="xvncviewer-2.png" path="xvncviewer-2.png" size="5766" stream="xvncviewer-2.png" tmpFilename="/usr/tmp/CGItemp21052" user="clemenci" version="1"
META FILEATTACHMENT attachment="xvncviewer-3.png" attr="h" comment="" date="1315910197" name="xvncviewer-3.png" path="xvncviewer-3.png" size="26928" stream="xvncviewer-3.png" tmpFilename="/usr/tmp/CGItemp21010" user="clemenci" version="1"
META FILEATTACHMENT attachment="tightvncviewer-1.png" attr="h" comment="" date="1315910208" name="tightvncviewer-1.png" path="tightvncviewer-1.png" size="9476" stream="tightvncviewer-1.png" tmpFilename="/usr/tmp/CGItemp21072" user="clemenci" version="1"
META FILEATTACHMENT attachment="tightvncviewer-2.png" attr="h" comment="" date="1315910258" name="tightvncviewer-2.png" path="tightvncviewer-2.png" size="8025" stream="tightvncviewer-2.png" tmpFilename="/usr/tmp/CGItemp21034" user="clemenci" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback