Re: vnc server



paul wrote:
Hi,
I'm having a problem with vncserver which I hope somebody might be able to
help me with.

When I log into the machine via SSH and start vncserver everything works
perfectly. When I connect to the VNC desktop with a vnc viewer I get a gnome
desktop. Great.
However, when i start vncserver from a console session, and then use
xnvcviewer to access the vnc desktop, there is no window manager present,
only a grey screen and mouse cursor.
I have the following in the ~.vnc/xstartup file:
#!/bin/sh
gnome-session &

I'm using real vncserver 3.3.7-7 on debian 3.1.
I can't see why it works when I start it via SSH but not when I start it
from the console. Any ideas what might be wrong.

Thanks
Paul




Paul,

How about the PATH variable?  Perhaps your path is changed when you use ssh?

You could try using the full path to gnome-session instead.

I'm assuming you're starting it as the same user in both cases too.

Scott R. Haven
Sr. Systems Engineer
Paisley Systems Inc.
managed services, consulting, and support
www.paisleysystems.com
.



Relevant Pages

  • Re: vnc server
    ... it is the same for both SSH and console login. ... > paul wrote: ... >> When I log into the machine via SSH and start vncserver everything works ...
    (comp.os.linux.networking)
  • vnc server
    ... I'm having a problem with vncserver which I hope somebody might be able to ... When I log into the machine via SSH and start vncserver everything works ... When I connect to the VNC desktop with a vnc viewer I get a gnome ... However, when i start vncserver from a console session, and then use ...
    (comp.os.linux.networking)
  • Re: vncserver problem - .vnc/xstartup: /bin/sh: bad interpreter: Permission denied
    ... In practise this is no problem as long as you stay in a LAN. ... > start vncserver via ssh with my own account and afterwards starting a ... > An advantage is that you can always break the session and reconnect later. ... and ssh is just another protection. ...
    (alt.os.linux.suse)
  • [SLE] VNC -- it is impressive -- A quick Guide
    ... administration via ssh. ... My server is named 'skyline'. ... make sure you have vncserver installed; ... kill the server and set the default display manager to kde or your preferred ...
    (SuSE)