Click to See Complete Forum and Search --> : Vnc


LoRdMaUL
11-17-2004, 12:47 PM
I have been pouring over threads all morning but I am not having any luck here....

I installed vncserver via apt-get and I would love to have KDE start when I connect to my linux box from a windows box via VNC. My xstartup file looks like this....

!/bin/sh

#xrdb $HOME/.Xresources
#xsetroot -solid grey
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP
#Desktop" &
#x-window-manager &
#exec kde
exec fluxbox

From what I have read, when I connect to my linux box from my windows box via VNC, I will be prompted for a password and then I should get a desktop running fluxbox. That is simply not the case here. All I get is the lovely grey screen. Same thing happens when I just had exec kde in there. Would starting the vncserver as root fix this problem?

Icarus
11-17-2004, 01:33 PM
NO!!! Whatever you do, DO NOT START VNC AS ROOT! :p

Not sure how much this will help but here's my xstartup that starts to fluxbox

#!/bin/sh

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
fluxbox &

From what I can tell is that you are running "exec fluxbox" instead of "fluxbox &"
Try fixing that and see what happens

LoRdMaUL
11-17-2004, 03:27 PM
welp...I commented out the stuff in my xstartup file and copied yours in there and still got the blank screen...now that I look at it...its not really grey...kinda looks like a grey threaded pattern or sorts...

gehidore
11-17-2004, 05:48 PM
Originally posted by LoRdMaUL
welp...I commented out the stuff in my xstartup file and copied yours in there and still got the blank screen...now that I look at it...its not really grey...kinda looks like a grey threaded pattern or sorts...
did you restart the vncserver?

LoRdMaUL
11-17-2004, 05:58 PM
yes I did...still the grey screen....

mrBen
11-17-2004, 06:39 PM
The xstartup file is in your ~/.vnc folder, yes?

Alex Cavnar, aka alc6379
11-17-2004, 06:41 PM
Originally posted by LoRdMaUL
yes I did...still the grey screen....

Did you get a mouse cursor you could interact with, at least? It sounds like there's not a Windowmanager specified to run in the new environment. I'm not entirely up on how to specify that (something similar .xinitrc or .xsession in your home directory, I'd suspect), but I'd look down that path.

I apologize for being vague, but it's been a while since I've run a VNC server under Linux-- I usually use my VNC client in a listen mode so servers can connect to me.

Alex Cavnar, aka alc6379
11-17-2004, 06:48 PM
Smack my wrist... I'm double posting. I just found this while doing some research on another VNC issue:

If you would like to change the default X Window Manager or Desktop Environment used on the remote machine, edit the ~/.vnc/xstartup file. You will want to comment out the default entry and add your own at the bottom. Here is mine:


#!/bin/sh

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

exec mwm



So, the file you'll want to mess with is right in that directory on the remote machine: ~/.vnc/xstartup. Try adding exec <path to your WM> in that file to load whatever WM you care to run.
:cool:

soulestream
11-17-2004, 08:03 PM
also make sure that you have your viewer set in window ser to the right resolution and to show background. if not you get icons set on a grey background..


soule