Skip to content
jgp edited this page Jul 7, 2015 · 11 revisions

Description

"VNC (Virtual Network Computing) allows users to display a remote desktop. It transmits the keyboard and mouse events from one computer to another, relaying the graphical screen updates back in the other direction, over the network" => an easy way to use graphical applications over a slow network. There are a number of variants of VNC, most of them will work as follows:

Server side (= PizDaint)

  • start the vnc server on daint:
    • myusername@daint103:~ $ /usr/bin/vncserver
You will require a password to access your desktops.
Password: xxxxx
Verify: xxxxx
Would you like to enter a view-only password (y/n)? n

Warning: daint103:1 is taken because of /tmp/.X11-unix/X1
Warning: daint103:2 is taken because of /tmp/.X11-unix/X2

New 'X' desktop is daint103:3
Starting applications specified in /users/piccinal/.vnc/xstartup
Log file is /users/piccinal/.vnc/daint103:3.log
  • => your vnc session is daint103:3 (:1 and :2 were already taken by other users),
  • => change the default window manager:
    • vim .vnc/xstartup
#!/bin/sh
icewm-session &
xterm -r -fs 16 -fa "Monospace" -fg black -bg white &
  • and try to connect with the client now...

Client side (= you !)

Mac

TightVNC Viewer

  • port install tightvnc
Connected to RFB server, using protocol version 3.7
Enabling TightVNC protocol extensions
Performing standard VNC authentication
Password:
Authentication successful

Other viewers

  • ssh -f -L 5901:daint101.login.cscs.ch:5901 -C ela.cscs.ch -l $USER sleep 30
  • vncviewer localhost:1

Windows

windows/8.1 (64bits)

Linux

  • debian/ubuntu:
    • sudo apt-get install xtightvncviewer # for instance...