Skip to content
Snippets Groups Projects
Select Git revision
  • 6a8bfbad6d84a64eb9b6e6c173cc74bfe40b882b
  • master default protected
  • DeepDock
  • gui0013-DeepDock-patch-62494
  • dice-patch
  • complimentary-complementary-systems
  • vnode-allocation
  • 20180621-revision
  • 20180621-before_revision
9 results

kvirtualization.md

Blame
  • Forked from SCS / docs.it4i.cz
    Source project has a limited visibility.
    vnc.md 9.09 KiB

    VNC

    The Virtual Network Computing (VNC) is a graphical desktop sharing system that uses the Remote Frame Buffer protocol (RFB) to remotely control another computer. It transmits the keyboard and mouse events from one computer to another, relaying the graphical screen updates back in the other direction, over a network.

    Vnc-based connections are usually faster (require less network bandwidth) then X11 applications forwarded directly through ssh.

    The recommended clients are TightVNC or TigerVNC (free, open source, available for almost any platform).

    In this chapter we show how to create an underlying ssh tunnel from your client machine to one of our login nodes. Then, how to start your own vnc server on our login node and finally how to connect to your vnc server via the encrypted ssh tunnel.

    Create VNC Password

    !!! note Local VNC password should be set before the first login. Do use a strong password.

    [username@login2 ~]$ vncpasswd
    Password:
    Verify:

    Start Vncserver

    !!! note To access VNC a local vncserver must be started first and also a tunnel using SSH port forwarding must be established.

    See below for the details on SSH tunnels.

    You should start by choosing your display number. To choose free one, you should check currently occupied display numbers - list them using command:

    [username@login2 ~]$ ps aux | grep Xvnc | sed -rn 's/(\s) .*Xvnc (\:[0-9]+) .*/\1 \2/p'
    username :79
    username :60
    .....

    As you can see above, displays ":79" and ":60" we had occupied already. Generally, you can choose display number freely except these occupied numbers. Also remember that display number should be less or equal 99. Based on this we have choosen display number 61 for us, so this number you can see in examples below.

    !!! note Your situation may be different so also choose of your number may be different. Please choose and use your own display number accordingly!

    Start your VNC server on choosen display number (61):

    [username@login2 ~]$ vncserver :61 -geometry 1600x900 -depth 16
    
    New 'login2:1 (username)' desktop is login2:1
    
    Starting applications specified in /home/username/.vnc/xstartup
    Log file is /home/username/.vnc/login2:1.log

    Check whether VNC server is running on choosen display number (61):

    [username@login2 .vnc]$ vncserver -list
    
    TigerVNC server sessions:
    
    X DISPLAY #     PROCESS ID
    :61              18437

    Another way to check it: