1828490 Members
2306 Online
109978 Solutions
New Discussion

Re: vnc problem

 
SOLVED
Go to solution
Fadia Almarei
Super Advisor

vnc problem

Dear All
i have redhat Enterprise Linux As v.4 , i try to start vncviewer in it , the vncserver package is installed and i start the service then i start the vncserver on the server ,but when i open it from the vncviewer the screen appears as in the attachment.
BR
fadia.marei
9 REPLIES 9
Claudio Cilloni
Honored Contributor

Re: vnc problem

it seems to me that the vnc server is running but there is no window manager inside it.

do you run the vnc server as root?
the file /etc/sysconfig/vncservers defines the servers to run when you use vnc as service. could you show it?
Stuart Browne
Honored Contributor

Re: vnc problem

Yeap..

That'd be the VNC server's X server not having a windows manager running, thus only showing the VNC tools.

What does your '/etc/sysconfig/vncserver' file look like?

It should normally have a line simialr to:

VNCSERVERS="0:root"

Where '0' is the display number, and 'root' is the user the server is to run as.

If you are also running an X server on the console, the '0' would be at least '1' (as the console is always display '0').
One long-haired git at your service...
Fadia Almarei
Super Advisor

Re: vnc problem

the data on the file vncservers is

[root@ORA1 sysconfig]# more vncservers
# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the line below to start a VNC server on display :1
# as my 'myusername' (adjust this to your own). You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, see
# <>.

#VNCSERVERS="1:myusername"
#VNCSERVERARGS[1]="-geometry 800x600"


and i start vncserver as a root
fadia.marei
Claudio Cilloni
Honored Contributor

Re: vnc problem

could you show the file /root/.vnc/xstartup ? this is a script executed by the vncserver command to run the window manager
Gopi Sekar
Honored Contributor

Re: vnc problem


uncomment VNCSERVERS and set it as,

VNCSERVERS=1:root

and see whether it solves your problem

Gopi
Never Never Never Giveup
Fadia Almarei
Super Advisor

Re: vnc problem

the xstartup file
#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# 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 &

i try to put VNCSERVERS=1:root put also it does not work
fadia.marei
Gopi Sekar
Honored Contributor
Solution

Re: vnc problem


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

uncomment the above lines and comment rest of the lines in xstartup file. see whether it solves your problem

Regards,
Gopi
Never Never Never Giveup
Claudio Cilloni
Honored Contributor

Re: vnc problem

My suspect goes to twm.
Verify it is installed:

# which twm
/usr/X11R6/bin/twm

You can do another thing. You say you run vncserver from root, so I think you run command:

# vncserver :1

if you did so, try this in another shell

# export DISPLAY=:1
# twm

this should bring the twm window manager into the vnc display.

Fadia Almarei
Super Advisor

Re: vnc problem

thanks gopi ,thanks to all my problem solved
fadia.marei