On Tuesday 14 Jan 2003 3:35 pm, magnet wrote:
> On Monday 13 Jan 2003 12:00 pm, Derek Jennings wrote:
> > I'm coming into this thread a bit late so apologies if this has already
> > been suggested.
> >
> > VNC server will start the window manager declared in the ~/.vnc/xstartup
> > of the user the vncserver was started from. (You are editing the correct
> > xstartup file are you?)
> >
> > If the last line in the file is
> > /usr/bin/startkde &
> > then KDE will be the desktop used. Works for me anyway.
> >
> > derek
>
> Derek, can you paste your ~/.vnc/xstartup entry please. I have tried
> changing that file and have used the same last line as you suggested before
> without success. I have even tried commenting out other lines in there but
> didn't make any difference.
> I have downloaded the latest version from the VNC site and all machines
> have had the old files removed now and the /.vnc/ directories have been
> deleted for a fresh start on this with the new files.


I can guess your problem
~/.vnc/xstartup needs to be executable
~/.vnc/passwd need to have read permissions for user only.

Here is some other info that may be useful
---------------------------------------------------

1/ I use tightvnc-server and tightvnc from Mandrake 9.0 install CDs
Tightvnc is compatible with vnc but is more secure/bandwidth efficient.

2/ My ~/.vnc/xstartup looks like this : (Make it executable)
#!/bin/bash 
startkde &
#fluxbox &
(I normally use fluxbox over vnc. It is faster)

3/ Run vnspasswd to set the password. It is saved in ~/.vnc/passwd . Make it 
readable only to the user.

4/ Start vncserver with vncserver -depth 16 -geometry 800x600 :1 &
Setting geometry avoids having a window larger than the remote screen.
Setting colour depth limits bandwidth use. 16 bits uses twice as much 
bandwidth as 8 bits, and half as much as 32 bits.
The geometry and depth may also be set by the viewer. Whichever has the lowest 
requirement will get what they want.
Forcing the screen number makes it easier to know which screen to kill later 
on.

5/ Always close the vnc session before logging off or else files get left 
behind preventing it starting next time
vncserver -kill :1

6/ Starting vncserver as a service is preferable, because then it is tidied up 
properly when the server is shut down.
service vncserver start
You can use Mandrake Control Centre to do this if you wish.
The file /etc/sysconfig/vncservers defines which servers are started.
Edit the file /etc/init.d/vncserver if you want vncservice to start with 
parameters such as -geometry

HTH

derek
-- 
----------------------------------
www.jennings.homelinux.net

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to