5. Accessing VNC, SSH, using secured tunnel OPENVPN.
Download and Install openvpn client
Download required openvpn keys from your gateway server, where you can get it from your gateway page.
Open the openvpn profile using the openvpn client.
Accessing putty to start VNC server for first time on server.
Launch VNC Server on your computing pc.
Launch VNC viewer from your host/client pc.
Once you login to linux use vncserver command to launch VNC Server.
5.4 Launching VNC Server on Linux Server.
Type the below command to launch the vnc server in your login on linux server.
user1 [trishuli][~] $ vncserver -geometry 1220x720 -depth 16 -cc 4 -name "Trishuli - User-1" -geometry this you can set as per your requirement keep around 30px from your desktop resolution
‐geometry <widht x height>
‐depth 16/8 color depth
‐name <you can give your own naem>
Once the above command is executed you will display with a available display number on the screen.
For first time you will be asked to enter vnc password. This password is not linked with unix login.
In the above snap display no is allotted with 13. To access this session, you need to launch vnc viewer from your Windows / Linux client desktop end.
For first time login you will get twm session. To change this session to kde or gnome you need to edit the xstartup file,
which is located in your home folder ~/.vnc/ . To open this file you can use vi/vim editor.
[vasant][trishuli][.vnc]$ vim xstartup
#twm & → comment this line and kde session line.
Startkde & #for kde session
gnome-session & # for gnome session.
Note: You can use either one of the startkde or gnome-session. Now save the file and exit.
To re-start the session login through putty kill the vncsession.
$ vncserver ‐ kill :<your display no>
EX: Vasant [ trishuli ][~/.vnc ]$ vncserver ‐kill :13
Killing Xvnc process ID 20404
Vasant [ trishuli ][~/.vnc ]$
To start the vnc session do as shown in step 'i'.
Now you must able to open vnc session in twm/kde/gnome, which you have set in the xstartup file.