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. 

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
-- 
www.jennings.homelinux.net
http://twiki.mdklinuxfaq.org

____________________________________________________
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