Archive for August, 2011

RHEL VNC Server Configuration

RHEL 6.1 TigerVNC Server Configuration

Current version included in RHEL 6.1:
tigervnc-1.0.90.0.15.20110314svn4359.e16.x86_64
Version 1.01 from tigerVNC.org, as I write this notes.

To update or Install tiger vnc server:
# yum install tigervnc*

Edit vncservers file:
# vi /etc/sysconfig/vncservers

Uncomment the two lines below and edit it with your own username:
VNCSERVERS=”2:myusername”
VNCSERVERARGS[2]=”-geometry 800×600 -nolisten tcp -nohttpd -localhost”

Example:
VNCSERVERS=”2:root”
VNCSERVERARGS[2]=”-geometry 1024×768″

Configuring Desktop Environment if needed:
/home/root/.vnc/xstartup

Set the password for vncserver user:
# vncpasswd
Password: myvncpassword
Verify: myvncpassword

Start the VNCServer:
# service vncserver start

Configure firewall for vnc users, to disable it:
# /etc/init.d/iptables save
# /etc/init.d/iptables stop

The default port number is 5900+1 for each user.
The second user will be 5902 (VNCSERVERS=”2:root”).

2 comments  Posted by Ferdy - August 4, 2011

Categories: Linux, RHEL   Tags: