vncserver configuration in redhat

January 19, 2010

VNC server configuration is pretty straight forward in redhat. Here are the steps that you should complete in order to run a functional VNC server in a few minutes.

Our test user is : mert

1) Adjust /etc/sysconfig/vncservers config file as below:

VNCSERVERS=”2:mert”

2) Login to mert account and set vncpassword

[root@rh54-3 sysconfig]# su – mert
[mert@rh54-3 ~]$ vncpasswd
Password:
Verify:
[mert@rh54-3 ~]$

3) Start vnc service and add it into the startup.

[root@rh54-3 sysconfig]# /etc/init.d/vncserver start
Starting VNC server: 2:mert xauth:  creating new authority file /home/mert/.Xauthority

New ‘rh54-3.penguen.com:2 (mert)’ desktop is rh54-3.penguen.com:2

Creating default startup script /home/mert/.vnc/xstartup
Starting applications specified in /home/mert/.vnc/xstartup
Log file is /home/mert/.vnc/rh54-3.penguen.com:2.log

[  OK  ]

[root@rh54-3 .vnc]# chkconfig vncserver on

However if you connect via VNC client now, you won’t see default GNOME but twm instead.

Open the file /home/mert/.vnc/xstartup and uncomment the following lines (remove the hash in front)

#unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc

Restart VNC server to have the new changes affected.

[root@rh54-3 .vnc]# /etc/init.d/vncserver restart
Shutting down VNC server: 2:mert                           [  OK  ]
Starting VNC server: 2:mert
New ‘rh54-3.penguen.com:2 (mert)’ desktop is rh54-3.penguen.com:2

Starting applications specified in /home/mert/.vnc/xstartup
Log file is /home/mert/.vnc/rh54-3.penguen.com:2.log

[  OK  ]


4) Below is a step by step login into VNC server from my windows OS

a) connection screen

b) Password screen

c) GNOME screen

tags:
posted in networking by admin

Follow comments via the RSS Feed | Leave a comment | Trackback URL

2 Comments to "vncserver configuration in redhat"

  1. docilyhiv wrote:

    docilyhiv…

    Sheila Levell

  2. enymedunoni wrote:

    enymedunoni…

    Kristen McMenamy

Leave Your Comment

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org