Derek Jennings wrote:
On Friday 25 March 2005 13:34, DAN WALKER wrote:

My vnc server now sort of works! I set the password,
edited hosts.allow and my pc side now asks me for a
password and presents me with a red screen. The
problem I have is that it looks as though it has
nothing to do when it opens the window. It sits there
with the X style (not kde or gnome) watch icon. This
is what is in '/root/.vnc/xstartup': (between the
***'s)

***
#!/bin/sh

# Mandrake Linux VNC session startup script
exec /etc/X11/xinit/xinitrc

***


You are allowing remote users to log in as root. As you know logging in as root is discouraged. It is a security risk.

Assuming you used the Mandrake tightvnc-server package then you have a set up file for your vnc server in /etc/sysconfig/vncservers
This file defines the servers to be started when you boot.
The line
VNCSERVERS="1:myusername"
will start a vnc server on screen one with the user name 'myusername'


chkconfig vncserver on && service vncserver start
will start the vnc service automatically at boot.


In your example you are starting the vnc server with 'exec /etc/X11/xinit/xinitrc' if you look in that file you will see it is going to start X without a Window Manager.


In my 10.1 setup, the last line of this file is:

exec /etc/X11/Xsession $*

This is the script that normaly starts X. If a desktop is not specified when calling the script, it will use the one in the user's home directory .desktop, if there is one, or the one specified in /etc/sysconfig/desktop.

To start in  KDE for example in your /home/myusername/.vnc/xstartup file put
startkde &

To start fluxbox put
fluxbox &

to start IceWm put
icewm &


HTH derek

With the problem he is having, I suspect that there may not be any window manager installed. For that matter, xterm and rxvt may not be installed.

Mikkel
--

  Do not meddle in the affairs of dragons,
for you are crunchy and taste good with Ketchup!

____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to