Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-22-2008, 03:25 AM   #1
Registered: Aug 2008
Posts: 35

Rep: Reputation: 15
Problem with VNC

Hi all,

I have a RHEL 5.0 vnc server. It is running on runlevel 5. When I try to connect with vnc client on Windows machine, it connects with no graphics. A terminal comes look like runlevel 3. When I check the run level on the terminal, it shows 5. I have both desktop (Gnome & KDE) installed on that server. Any suggestion?

Thanks in advance!
Old 12-22-2008, 05:38 AM   #2
LQ Newbie
Registered: Dec 2008
Posts: 8

Rep: Reputation: 0
Do you edit your ~/.vnc/xstartup file yet? Just remove comment before the 4th and 5th lines of this file:
Initially looks like:


# Uncomment the following two lines for normal desktop:
# exec /etc/X11/xinit/xinitrc

The file will look like this:

# Uncomment the following two lines for normal desktop:
exec /etc/X11/xinit/xinitrc

Open other terminal (by SSH) and kill your current vncserver session by:
$vncserver -kill <Computer>:<ID>
vncserver print <Computer>:<ID> when you start vncserver, or you can create new vncserver session.

Reconnect to check if it's work or not?
Old 12-24-2008, 08:12 AM   #3
Registered: Aug 2008
Posts: 35

Original Poster
Rep: Reputation: 15
I worked on your suggestion and finally able to connect with full X feature. Thanks a ton for all your support.

I modified the file $home/.vnc/xstartup looks like below:


OSNAME=`/bin/uname -s`
if [ ${OSNAME} = Linux ]
exec /etc/X11/xinit/xinitrc
vncconfig -nowin &
xrdb $HOME/.Xdefaults
xrdb $HOME/.Xresources
echo 'dtsession*wmStartupCommand: /usr/dt/bin/dtwm' | xrdb -merge
exec /usr/dt/bin/Xsession &
vncconfig -nowin &
exec xset fp= tcp/localhost:7100

Deepak Tiwari


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
rhel4 vnc problem, where to configure GUI vnc server? hocheetiong Linux - Newbie 1 10-24-2007 07:05 AM
VNC connection to SUSE Linux 10 from a Windows XP VNC Viewer determin2excel Linux - Software 13 10-03-2007 10:38 AM
windows vnc client and linux vnc server problem tungaw2001 Linux - Software 8 06-17-2006 01:06 AM
VNC problem ashin83 Linux - Networking 1 01-03-2006 11:13 PM
VNC Problem RySk8er30 Mandriva 2 09-05-2005 06:57 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration