Differences between revisions 6 and 7
Revision 6 as of 2011-03-15 14:37:17
Size: 1192
Editor: hackerj
Comment:
Revision 7 as of 2011-03-15 14:38:30
Size: 1195
Editor: hackerj
Comment:
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:
/!\ Warning!
Always choose a [[http://en.wikipedia.org/wiki/Password_strength|strong password]] when starting vncserver. Otherwise, you'll
make it trivial for intruders to hijack your account!
 /!\ Warning!
 Always choose a [[http://en.wikipedia.org/wiki/Password_strength|strong password]] when starting vncserver. Otherwise, you'll
 make it trivial for intruders to hijack your account!

How do I use VNC?

Start a vnc-server on the machine you want to control, with vncserver :1 (:1 means display 1). You will be asked to define a password for accessing your server and another one for just observing without interacting. After that, your server is up and running and you can connect to it with any available VNC-clients (e.g. TightVNC) by entering the hostname you want to connect to, like hostname:1.

VNC through SSH tunnel

  • Start VNC Server on remote host
    • vncserver :<display#> -localhost

    /!\ Warning! Always choose a strong password when starting vncserver. Otherwise, you'll make it trivial for intruders to hijack your account!

  • Start viewer on client
    • vncviewer -via <remotehost>.ee.ethz.ch localhost:<display#>

Troubleshooting

If you are using gnome as default desktop environment and are affected by completely wrong keyboard-layout after logon to gnome (http://bugs.debian.org/476727) use the following workaround:

Directly in the line before /etc/X11/Xsession of $HOME/.vnc/xstartup add the line

export XKL_XMODMAP_DISABLE=1