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

2007-09-14 Thread Mumia W..

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 [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




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

2007-09-14 Thread Michael Yang
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.. [EMAIL PROTECTED] 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 [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact
 [EMAIL PROTECTED]




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

2007-09-14 Thread Liam O'Toole
On Fri, 14 Sep 2007 16:04:53 +0800
Michael Yang [EMAIL PROTECTED] wrote:

 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.

Is the file /etc/X11/xinit/xinitrc executable? If not, change the line

exec /etc/X11/xinit/xinitrc

to

exec sh /etc/X11/xinit/xinitrc

-- 

Liam


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



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

2007-09-14 Thread Mumia W..

On 09/14/2007 03:04 AM, Michael Yang wrote:

On 9/14/07, Mumia W.. [EMAIL PROTECTED] 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.


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.




Yes, install an alternate window manager sometime soon, but right now, 
you should be able to run with an xstartup script like this:


#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
nautilus --no-desktop 
xterm -geometry 80x24+10+10 -ls -title $VNCDESKTOP Desktop 
metacity

It that works, you can start experimenting with adding parts of Gnome 
such as the nautilus desktop, the gnome-settings-daemon and the 
gnome-panel. However, I would advise just using and alternate window 
manager for vnc.






--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




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

2007-09-14 Thread H.S.
Mumia W.. wrote:

 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.

Interesting. I have noticed that if I open a vnc session on a machine
from a remote machine while I am logged in on the machine locally, my
keyboard map is screwed up in the vnc session! I am not sure exactly
what is going wrong, but then I haven't even tried to investigate yet.
But your comment above may explain that. I will try to logout or kill
the local gnome session and see if the problem is solved. Or I may just
start a different manager in the vnc session as you suggest.

thanks,
-HS


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



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

2007-09-14 Thread H.S.
H.S. wrote:
 Mumia W.. wrote:
 
 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.
 
 Interesting. I have noticed that if I open a vnc session on a machine
 from a remote machine while I am logged in on the machine locally, my
 keyboard map is screwed up in the vnc session! I am not sure exactly
 what is going wrong, but then I haven't even tried to investigate yet.
 But your comment above may explain that. I will try to logout or kill
 the local gnome session and see if the problem is solved. Or I may just
 start a different manager in the vnc session as you suggest.
 
 thanks,
 -HS
 
 

I rebooted that machine (runs Ubuntu) and then started a vnc session
again and tried to open a VNC session from a remote machine (runs
Lenny). Same weird keyboard mapping problem. So no, killing the users
and rebooting the machine (there were some upgrades needing rebooting)
did not resolve the problem. Sorry about the noise.

-HS


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



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

2007-09-14 Thread H.S.
H.S. wrote:
 H.S. wrote:
 Mumia W.. wrote:

 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.
 Interesting. I have noticed that if I open a vnc session on a machine
 from a remote machine while I am logged in on the machine locally, my
 keyboard map is screwed up in the vnc session! I am not sure exactly
 what is going wrong, but then I haven't even tried to investigate yet.
 But your comment above may explain that. I will try to logout or kill
 the local gnome session and see if the problem is solved. Or I may just
 start a different manager in the vnc session as you suggest.

 thanks,
 -HS


 
 I rebooted that machine (runs Ubuntu) and then started a vnc session
 again and tried to open a VNC session from a remote machine (runs
 Lenny). Same weird keyboard mapping problem. So no, killing the users
 and rebooting the machine (there were some upgrades needing rebooting)
 did not resolve the problem. Sorry about the noise.
 
 -HS


What solved the problem was to not use gnome! Previously, I was using
this in ~/.vnc/xstartup:

$ cat .vnc/xstartup
#!/bin/sh

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

exec dbus-launch --auto-syntax --exit-with-session gnome-session


changed it to the following and not I get a 'failsafe' session and an
xterm and no gnome but a good keyboard:

$ cat .vnc/xstartup
#!/bin/sh

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

#exec dbus-launch --auto-syntax --exit-with-session gnome-session


I better stop now, I have already hijacked the thread :)

-HS




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



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

2007-09-13 Thread Michael Yang
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.