LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-21-2012, 10:28 AM   #16
linuxandtsm
Member
 
Registered: May 2011
Posts: 194

Original Poster
Rep: Reputation: Disabled

Hi eSelix,

I did not find "/etc/X11/default-display-manager" but looks like twm is the window manager here.
But anyway can i install any other window manager package like Gnome or Kde etc on this RHEL5 box and configure .vnc/xstartup file so that i can see the GUI ?

looks like there are some gnome packages installed already but not sure how to configure so that i can use it ?

Code:
]# rpm -qa |grep gnome
gnome-python2-gnomevfs-2.16.0-1.fc6
gnome-mime-data-2.4.2-3.1
gnome-keyring-0.6.0-1.fc6
gnome-doc-utils-0.8.0-2.fc6
gnome-vfs2-2.16.2-6.el5_5.1
libgnomeui-2.16.0-5.el5
gnome-python2-canvas-2.16.0-1.fc6
gnome-mount-0.5-3.el5
gnome-python2-gtkhtml2-2.14.2-7.el5
gnome-python2-bonobo-2.16.0-1.fc6
libgnomecanvas-2.14.0-4.1
libgnome-2.16.0-6.el5
gnome-python2-2.16.0-1.fc6
gnome-python2-gconf-2.16.0-1.fc6
rhn-setup-gnome-0.4.20-46.el5
gnome-python2-extras-2.14.2-7.el5
Thanks in advance!
 
Old 03-21-2012, 03:49 PM   #17
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,252

Rep: Reputation: 313Reputation: 313Reputation: 313Reputation: 313
Sorry, there was a display manager "kdm". A window manager I have as symlink in "/etc/alternatives/x-window-manager". You should be able to use another one. KDE window manager is called "kwin" and GNOME - I think "metacity".
 
Old 03-22-2012, 01:27 AM   #18
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
kill all the cureent running vncserver and restart the server with following changes

Code:
#vncserver -kill :2
Code:
#vi /etc/sysconfig/vncservers
 VNCSERVERS="2:root"
# VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost" <---donot uncomment this line
Code:
#vncpasswd
Code:
#service vncserver restart
Code:
#vi /root/.vnc/xstartup
#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER  <--------dont uncomment this line
 
exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &

Last edited by deep27ak; 03-22-2012 at 09:13 AM.
 
Old 03-22-2012, 11:17 AM   #19
linuxandtsm
Member
 
Registered: May 2011
Posts: 194

Original Poster
Rep: Reputation: Disabled
Hi deep27ak,

Followed but no change. Still endup with text based white console with xclock displayed on right on the vncviewer window.
 
Old 03-22-2012, 11:31 AM   #20
Les Windoze
LQ Newbie
 
Registered: Aug 2010
Location: Florida
Distribution: RHEL5, RHEL6, Solaris 10
Posts: 18

Rep: Reputation: 1
I use gnome-session rather than twm.
 
Old 03-22-2012, 11:55 AM   #21
linuxandtsm
Member
 
Registered: May 2011
Posts: 194

Original Poster
Rep: Reputation: Disabled
Hi Les Windoze,

could you tell me how to use gnome-session ?
If you mean just putting a "exec gnome-session" in .vnc/xstartup file, then i tried that.

And i am not sure how to check if gnome related packages are installed and how to use them.
Thanks!

Last edited by linuxandtsm; 03-22-2012 at 11:57 AM.
 
Old 03-26-2012, 04:09 AM   #22
J_U_D_E
LQ Newbie
 
Registered: Jan 2008
Posts: 29

Rep: Reputation: 0
It seems there has not been any resolution. I am having similar problem setting up a vnc session server on Redhat 5.


Please i created a vnc sersion between Redhat linux 5 and windows server 2003. Redhat linux is the vnc server while window server 2003 is the vnc viewer. I can not connect to Redhat despite starting Redhat. I have an error in windows.

VNC Viewer :Error
Unable to connect to host: Connection refused(10061)

There is network connection between both and their hostname can also be resolve.(hosts file contains ipaddress and hostname).

VNC viewer in Linux can access the windows(I installed both VNC server and viewer on windows). Redhat 5 has both VNC viewer and server installed when the OS is installed.

I started up vnc server from services and it is running.
The following below is the command to start and the error log message.

[root@idsl01 ~]# vncserver -geometry 1920x1200

New 'idsl01:3 (root)' desktop is idsl01:3

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/idsl01:3.log

[root@idsl01 ~]# more /root/.vnc/idsl01:3.log
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/idsl01:3
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

Xvnc Free Edition 4.1.2
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Underlying X server release 70101000, The X.Org Foundation


Sat Mar 24 15:16:01 2012
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5903
vncext: Listening for HTTP connections on port 5803
vncext: created VNC server for screen 0
[root@idsl01 ~]#

Regards,
Jude
 
Old 03-26-2012, 05:09 AM   #23
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by J_U_D_E View Post

VNC Viewer :Error
Unable to connect to host: Connection refused(10061)
you should have started a new thread as your problem seems to be different. Here OP is able to connect to vnc but not able to get proper display and you are not at all able to connect to vnc server
The possible reasons can be

# server firewall is blocking
# vncserver service is not running
# vncserver is not configured properly

Last edited by deep27ak; 03-26-2012 at 05:11 AM.
 
  


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
Vncviewer Filious Linux - Newbie 12 01-31-2013 01:24 PM
Vncviewer doesn't show the remoteaccess screen when trying to connect to vncserver viritha30 Linux - Newbie 1 12-13-2011 10:59 AM
vncserver works, vncviewer fails Yordan AIX 2 03-29-2007 04:54 AM
[root@localhost Desktop]# vncviewer 192.168.0.11:2 vncviewer not viewing kde display nickleus Linux - Software 13 10-27-2006 04:58 AM
Robust vncserver startup file (rc.vncserver) arobinson74 Slackware 4 05-14-2005 06:33 AM


All times are GMT -5. The time now is 01:02 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration