Enable VNC viewer for Proxmox 2.x/3.x with tightvnc

Configure Proxmox host for TLS connections: This configures the host to accept VNC connections.

aptitude install openbsd-inetd

Run this to get your KVM id’s :

qm list
root@homenet-home10 /etc # qm list
VMID NAME STATUS MEM(MB) BOOTDISK(GB) PID 
101 freenas stopped 1024 32.00 0 
102 debpbx running 512 0.00 573304 
105 winxp stopped 512 15.01 0 
7012 ltsp-ldap-openfire-KVM running 512 9.00 495870 
7016 fbc16-kvm running 512 8.00 462697 
7159 win7 stopped 2048 0.00 0 
27014 ltsp-term-KVM stopped 512 0.00 0

edit /etc/inetd.conf , put a port for each kvm you want to access using kvm

#port kvm
59055 stream tcp nowait root /usr/sbin/qm qm vncproxy 105
59058 stream tcp nowait root /usr/sbin/qm qm vncproxy 7159

restart openbsd-inetd Continue reading “Enable VNC viewer for Proxmox 2.x/3.x with tightvnc” »

Share

How to Encrypt VNC Traffic with Putty

By default, VNC is not secure protocol.VNC uses encryption during initial connection and login (passwords are not sent in plain-text). Once, we connected then all the VNC data is unencrypted and hacker could sniff our VNC session. It is better (safer) to start VNC server only on 127.0.0.1(localhost) and tunnel it over secure SSH tunnel (For this,there are options in Putty).

In this example, I am using CentOS 6.2 as VNC server and VNC Viewer & PuTTY as VNC client on Windows 7.

On CentOS, edit /etc/sysconfig/vncservers file:

sudo nano /etc/sysconfig/vncservers

Add the option “-localhost“: Continue reading “How to Encrypt VNC Traffic with Putty” »

Share

Install VNCServer on Centos 5

 

Install VNC Server to operate CentOS with GUI remotely from Windows client. VNC is already installed if you already build Desktop Environment. If it's not installed, Install by a command 'yum -y install vnc-server'.
[root@ns ~]# yum -y install vnc-server
[root@ns ~]# vi /etc/sysconfig/vncservers
# line 20: make valid and set as '(diplay number):(user name)' like follwing example
VNCSERVERS="1:cent"
# line 21: uncomment and remove '-localhost' like below
# And set any screen resolution you like
VNCSERVERARGS[1]="-geometry 1024×768 -nolisten tcp -nohttpd"
[root@ns ~]# su – cent
[cent@ns ~]$ vncpasswd# set VNC password Continue reading “Install VNCServer on Centos 5” »
Share

Install VNCServer on Centos 5

Install VNC Server to operate CentOS with GUI remotely from Windows client. VNC is already installed if you already build Desktop Environment. If it's not installed, Install by a command 'yum -y install vnc-server'.

[root@ns ~]# yum -y install vnc-server

[root@ns ~]# vi /etc/sysconfig/vncservers

# line 20: make valid and set as '(diplay number):(user name)' like follwing example
VNCSERVERS="1:cent"

# line 21: uncomment and remove '-localhost' like below
# And set any screen resolution you like
VNCSERVERARGS[1]="-geometry 1024×768 -nolisten tcp -nohttpd"

[root@ns ~]# su – cent
[cent@ns ~]$ vncpasswd# set VNC password
Password:# input
Verify:# verify
[cent@ns ~]$ su –
Password:
[root@ns ~]# /etc/rc.d/init.d/vncserver start
Starting VNC server: 1:cent
New 'ns.server-linux.info:1 (cent)' desktop is ns.server-linux.info:1

Creating default startup script /home/cent/.vnc/xstartup
Starting applications specified in /home/cent/.vnc/xstartup
Log file is /home/cent/.vnc/ns.server-linux.info:1.log
[ OK ]
[root@ns ~]# vi /home/cent/.vnc/xstartup

# at the bottom: make it comment
#twm &

# run Ghome
exec gnome-session &

[root@ns ~]# /etc/rc.d/init.d/vncserver restart
Shutting down VNC server: 1:cent[ OK ]
Starting VNC server: 1:cent
New 'ns.server-linux.info:1 (cent)' desktop is ns.server-linux.info:1

Starting applications specified in /home/cent/.vnc/xstartup
Log file is /home/cent/.vnc/ns.server-linux.info:1.log Continue reading “Install VNCServer on Centos 5” »

Share