LBussy
10-05-2003, 09:56 AM
Okay, I read the helpfile published here: Using VNC with Linux (http://www.justlinux.com/nhf/Networks/Using_VNC_with_Linux.html). I went through, got VNC installed and was able to bring up xterm through a VNC session. All good so far.
I get to the part where it shows setting up a graphical session. Nelson Pereira in the article says:
Now you need to edit the ~/.VNC/xstartup (you can use any text editor to do this). In this file uncomment (remove the # signs) from these lines:
#!/bin/sh
[ -r $HOME/.Xresources ]
&& xrdb $HOME/.Xresources
xsetroot -solid grey
exec GNOME-session &
So I edit the xstartup file (small formatting error there with a linebreak on the webpage where it doesn't belong, yes I fixed it) and I open VNCViewer. It logs in correctly but I am left with a plain X desktop, no windows manager. So, being the smart Windows user I am I look for a log. Here it is:
05/10/03 08:40:21 Xvnc version 3.3.7 - built Feb 28 2003 19:00:35
05/10/03 08:40:21 Copyright (C) 2002-2003 RealVNC Ltd.
05/10/03 08:40:21 Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
05/10/03 08:40:21 All Rights Reserved.
05/10/03 08:40:21 See http://www.realvnc.com for information on VNC
05/10/03 08:40:21 Desktop name 'X' (XXXXX:1)
05/10/03 08:40:21 Protocol version supported 3.3
05/10/03 08:40:21 Listening for VNC connections on TCP port 5901
05/10/03 08:40:21 Listening for HTTP connections on TCP port 5801
05/10/03 08:40:21 URL http://XXXXX:5801
/home/bussyl/.vnc/xstartup: line 10: exec: GNOME-session: not found
Being the intuitive person I am I figure I'm using KDE not GNOME so I change that blindly, not knowing if it's correct to:
#!/bin/sh
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
exec KDE-session &
The result is the same, no windows manager. Here's the log for that:
05/10/03 08:50:20 Got connection from client XXX.XXX.XXX.XXX
05/10/03 08:50:20 Protocol version 3.3
05/10/03 08:50:22 Pixel format for client XXX.XXX.XXX.XXX:
05/10/03 08:50:22 8 bpp, depth 8
05/10/03 08:50:22 true colour: max r 7 g 7 b 3, shift r 0 g 3 b 6
05/10/03 08:50:22 Using ZRLE encoding for client XXX.XXX.XXX.XXX
05/10/03 08:50:29 Client XXX.XXX.XXX.XXX gone
05/10/03 08:50:29 Statistics:
05/10/03 08:50:29 key events received 0, pointer events 151
05/10/03 08:50:29 framebuffer updates 152, rectangles 401, bytes 11303
05/10/03 08:50:29 ZRLE rectangles 401, bytes 11303
05/10/03 08:50:29 raw bytes equivalent 545045, compression ratio 48.221269
Now that seems to me to be a "good" log, no errors, seems like it connected but I didn't get my KDE environment. Anyone care to tell me where this noob is going wrong?
TIA for any help.
I get to the part where it shows setting up a graphical session. Nelson Pereira in the article says:
Now you need to edit the ~/.VNC/xstartup (you can use any text editor to do this). In this file uncomment (remove the # signs) from these lines:
#!/bin/sh
[ -r $HOME/.Xresources ]
&& xrdb $HOME/.Xresources
xsetroot -solid grey
exec GNOME-session &
So I edit the xstartup file (small formatting error there with a linebreak on the webpage where it doesn't belong, yes I fixed it) and I open VNCViewer. It logs in correctly but I am left with a plain X desktop, no windows manager. So, being the smart Windows user I am I look for a log. Here it is:
05/10/03 08:40:21 Xvnc version 3.3.7 - built Feb 28 2003 19:00:35
05/10/03 08:40:21 Copyright (C) 2002-2003 RealVNC Ltd.
05/10/03 08:40:21 Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
05/10/03 08:40:21 All Rights Reserved.
05/10/03 08:40:21 See http://www.realvnc.com for information on VNC
05/10/03 08:40:21 Desktop name 'X' (XXXXX:1)
05/10/03 08:40:21 Protocol version supported 3.3
05/10/03 08:40:21 Listening for VNC connections on TCP port 5901
05/10/03 08:40:21 Listening for HTTP connections on TCP port 5801
05/10/03 08:40:21 URL http://XXXXX:5801
/home/bussyl/.vnc/xstartup: line 10: exec: GNOME-session: not found
Being the intuitive person I am I figure I'm using KDE not GNOME so I change that blindly, not knowing if it's correct to:
#!/bin/sh
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
exec KDE-session &
The result is the same, no windows manager. Here's the log for that:
05/10/03 08:50:20 Got connection from client XXX.XXX.XXX.XXX
05/10/03 08:50:20 Protocol version 3.3
05/10/03 08:50:22 Pixel format for client XXX.XXX.XXX.XXX:
05/10/03 08:50:22 8 bpp, depth 8
05/10/03 08:50:22 true colour: max r 7 g 7 b 3, shift r 0 g 3 b 6
05/10/03 08:50:22 Using ZRLE encoding for client XXX.XXX.XXX.XXX
05/10/03 08:50:29 Client XXX.XXX.XXX.XXX gone
05/10/03 08:50:29 Statistics:
05/10/03 08:50:29 key events received 0, pointer events 151
05/10/03 08:50:29 framebuffer updates 152, rectangles 401, bytes 11303
05/10/03 08:50:29 ZRLE rectangles 401, bytes 11303
05/10/03 08:50:29 raw bytes equivalent 545045, compression ratio 48.221269
Now that seems to me to be a "good" log, no errors, seems like it connected but I didn't get my KDE environment. Anyone care to tell me where this noob is going wrong?
TIA for any help.