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



I meant not to add the gnome-session at the end of the xstartup script.
In Fedora, the script I used was a little different:

#!/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" &
twm &

The first two lines are uncommented and the last line was replaced by twm
instead of gnome-session.
If I didn't put the gnome-session at the end of the script, only the X
Server is started, but no desktop available in VNC.

What should I do in Debian to have the desktop in VNC session?
Do I have to install the other window managers?

Thanks.


On 9/14/07, Mumia W.. <paduille.4061.mumia.w+nospam@xxxxxxxxxxxxx> wrote:

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: [kde] Kdm session manager
    ... Comment=GNOME 2.16.0 Desktop with D-BUS support ... $DESKTOP_SESSION is no valid session." ... you have two sets of GNOME libraries. ... this stuff in your "Xsession" script that you write a short script to ...
    (KDE)
  • Re: more Fedora Cookbook: VNC
    ... on a lot of versions of linux the "gnome-session" ... For maximum effect, do it from a KDE session, or start GNOME from a GNOME session. ...
    (Fedora)
  • Re: gnome-list Digest, Vol 25, Issue 15
    ... Have you tried not pluging in your monitor until after you destop ... Default character encoding in Gnome Terminal ... forgotten that you can set the language for each session at the login ... and manually start gnome-session with: ...
    (GNOME)
  • Re: environment beim Start setzen
    ... > Trag doch in die Session bei zusätzliche Programme ein Skript ... wirkungslos, weil die GNOME-Session die dort gesetzte Umgebung nicht erbt, ... oder GNOME startet gar nicht mehr, ... Next by Date: ...
    (de.comp.os.unix.apps.gnome)