-
Notifications
You must be signed in to change notification settings - Fork 7
jgp edited this page Jul 7, 2015
·
11 revisions
"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:
- 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...
- port install tightvnc
- i am using version 1.3.10_1
- apps/vnc/vncviewer -via [email protected] daint103:3
Connected to RFB server, using protocol version 3.7
Enabling TightVNC protocol extensions
Performing standard VNC authentication
Password:
Authentication successful
- ssh -f -L 5901:daint101.login.cscs.ch:5901 -C ela.cscs.ch -l $USER sleep 30
- vncviewer localhost:1
-
the (vncserver) server must be started on daint (see above)
-
Setup the tunnel (with plink)
- Download and install plink from: http://www.chiark.greenend.org.uk/~sgtatham/putty/mirrors.html
- Setup the tunnel
-
Setup the vnc client
- Download and install the vnc client from http://www.tightvnc.com/download.php
- Start vncviewer using 5900+vncport (in that case 5900+6=5906):
- debian/ubuntu:
- sudo apt-get install xtightvncviewer # for instance...