Click to See Complete Forum and Search --> : VNC Server not executing X?


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.

Icarus
10-05-2003, 01:40 PM
/home/bussyl/.vnc/xstartup: line 10: exec: GNOME-session: not foundsorry to point out the obvious...GNOME-session is not found...

Change that to lowercase and see how it works ;)

DMR
10-05-2003, 02:19 PM
Originally posted by mahdi
Change that to lowercase and see how it works ;) Right- Linux is case-sensitive. Alternately, if you wanted to run KDE, use the following line instead:

exec kde

LBussy
10-05-2003, 04:38 PM
Originally posted by mahdi
sorry to point out the obvious...GNOME-session is not found...

Change that to lowercase and see how it works ;)
Nothing is obvious for a Windows Admin. :-)

I don't even have gnome installed however but if it should be lower-case then the help file here should be changed.

Originally posted by DMR
Right- Linux is case-sensitive. Alternately, if you wanted to run KDE, use the following line instead:

exec kde
That's the animal, thanks.

Now if I could get my VMWare networking woes figured out (played with that while I was waiting for an answer) I could test it.

Thank you both for taking the time to reply.

DMR
10-05-2003, 05:25 PM
Originally posted by LBussy
Nothing is obvious for a Windows Admin. :-) No sweat- all UNIX variants are case-sensitive; not something you'd be used to if you work in a Windows-only world. ;)

Originally posted by LBussy
...but if it should be lower-case then the help file here should be changed.Thanks for the heads-up; I'll email the Help File maintainer now and notify him of the error.


Originally posted by LBussy
That's the animal, thanks.You're welcome. :)

Originally posted by LBussy
Now if I could get my VMWare networking woes figured out ... Eek- I'll stay away from that one! :D

Originally posted by LBussy
Thank you both for taking the time to reply. Again- you're welcome- that's what we're here for.

bproffitt
10-06-2003, 10:59 AM
Thanks for finding this. I'll fix it in the help file!

Kudos to all of you and DMR for slapping me with a trout to get my attention on this thread!

Peace,
Brian Proffitt

DMR
10-07-2003, 07:11 AM
Originally posted by bproffitt
Kudos to all of you and DMR for slapping me with a trout to get my attention on this thread! Who me? Use a trout on a friend- never!

( http://www.stevewolfonline.com/Downloads/DMR/Visuals/fishwhack.gif )


;)

jhuey
12-11-2003, 09:07 PM
Ok... here's my xstartup, the commented stuff is the old setup through suse...

#!/bin/sh

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
exec gnome-session &

# xrdb $HOME/.Xresources
# xsetroot -solid grey
# xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
# twm &

and here is what i get when i run vncviewer...

VNC server supports protocol version 3.3 (viewer 3.3)
Password:
VNC authentication succeeded
Desktop name "huey's X desktop (linux:1)"
Connected to VNC server, using protocol version 3.3
VNC server default format:
16 bits per pixel.
Least significant byte first in each pixel.
True colour: max red 31 green 63 blue 31, shift red 11 green 5 blue 0
Warning: Cannot convert string "-*-helvetica-bold-r-*-*-16-*-*-*-*-*-*-*" to type FontStruct
Using default colormap which is TrueColor. Pixel format:
16 bits per pixel.
Least significant byte first in each pixel.
True colour: max red 31 green 63 blue 31, shift red 11 green 5 blue 0
Using shared memory PutImage
Same machine: preferring raw encoding
CleanupSignalHandler called
ShmCleanup called

when the new window opens all i see is a grey background and the crosshair for the mouse... i'm able to use the mouse to move around on the screen... it doesn't give me any gnome or anything and i can't figure out what's wrong... when i put xstartup back to the defaults it does the same thing except when i click on the background it gives me a tvm menu... but the tvm menu doesn't have anything special... just xterm (which might be what tvm is, a minimalist environment?) anyway... does anybody see what could be the problem? i'm running suse 9.0 and it looks like it has something to do with fonts but being a newb i have no idea what to change...

thanks,
huey =)