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 [ 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 [ 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



docilyhiv wrote:
docilyhiv…
Sheila Levell…
Link | April 8th, 2010 at 6:25 am
enymedunoni wrote:
enymedunoni…
Kristen McMenamy…
Link | April 21st, 2010 at 5:06 am