Re: Can not see my desktop in vnc session that is started up from local display.



On 09/13/2007 11:28 PM, Michael Yang wrote:
Hi guys:

I installed the tightvncserver on Debian Etch, and set it up as normal as I
did in my old system (fedora).

I opened the terminal from local gnome desktop, and executed the "vncserver
:1", the vncserver is started up, but I can't see the desktop in this
vncsession, only the X server is displayed.

However, I remotely login to the server, and from the terminal of this ssh
session, I executed the same command as above to start up the vnc service,
then I can see the desktop in the vncsession.

Is there any points I missed to correctly set it up?

Here is my xstartup script:

#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
#vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
gnome-session &

I dont see any differences or specials in the script, since it's simply
straightforward to understand.
Or is the method of starting up the vncserver from local display not
supported?
Any body have idea about this?

Thanks.
Michael.


Is your firewall blocking connections from the localhost?

After I set up the password using vncpasswd, I can start the server using 'vncserver :1' , and I can easily view the session with 'xtightvncviewer :1'

If connections from localhost are not blocked, this should work. However, I see you're starting a Gnome session; I hope that you're not doing that from within another Gnome session for the same user account.

Gnome is a complicated environment with many parts that must be in communication with one another. These parts probably communicate over sockets in /tmp. I'm in Gnome right now, and the sockets I see don't have any display numbers in their names. If two Gnome sessions are running for the same user, how can one session distinguish itself from another?

I don't think Gnome can handle two sessions for the same user at the same time. Use something simple like icewm-session, fvwm or fluxbox to manage windows in VNC.



--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Can not see my desktop in vnc session that is started up from local display.
    ... I opened the terminal from local gnome desktop, and executed the "vncserver:1", the vncserver is started up, but I can't see the desktop in this vncsession, only the X server is displayed. ... However, I remotely login to the server, and from the terminal of this ssh session, I executed the same command as above to start up the vnc service, then I can see the desktop in the vncsession. ... I meant not to add the gnome-session at the end of the xstartup script. ...
    (Debian-User)
  • Re: GNOME is f*cked seven ways from Sunday
    ... > the window managers. ... but I don't rant about the whole Gnome project because of it. ... - gconf management tools woefully undocumented (an improving ... > window managers should be aware of gnome session mangement sucks, ...
    (Debian-User)
  • Re: setssionetc and sessionexit ignored under gnome?
    ... I suppose you could copy the first phase gnome startup file ... but you would have to remember to undo that if&when Sun fixes that "bug", ... run when running a non-CDE session (not just GNOME, ... folks migrating from Windows!). ...
    (comp.unix.solaris)
  • Re: Gnome hangs
    ... That eliminates the mesa lib problem which was development related and the possibility gnome was locking due to an improper reference to localhost. ... While in runlevel 3, check the /var/log/Xorg.0.log log for any information on why you have the lockup condition. ... you might find information in /var/log/Xorg.0.log.old from the KDE GUI related to the bombed session. ...
    (Fedora)
  • 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)