LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 12-22-2008, 02:25 AM   #1
naw_deepak
Member
 
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, 04:38 AM   #2
quangtin3
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:

#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
<...>

The file will look like this:
#!/bin/sh

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
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, 07:12 AM   #3
naw_deepak
Member
 
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:

#!/bin/sh

OSNAME=`/bin/uname -s`
if [ ${OSNAME} = Linux ]
then
exec /etc/X11/xinit/xinitrc
vncconfig -nowin &
else
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
fi

Thanks
Deepak Tiwari
 
  


Reply


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 06:05 AM
VNC connection to SUSE Linux 10 from a Windows XP VNC Viewer determin2excel Linux - Software 13 10-03-2007 09:38 AM
windows vnc client and linux vnc server problem tungaw2001 Linux - Software 8 06-17-2006 12:06 AM
VNC problem ashin83 Linux - Networking 1 01-03-2006 10:13 PM
VNC Problem RySk8er30 Mandriva 2 09-05-2005 05:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:14 PM.

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