Discussion:
[VNC] Killing vncserver on exit
David Rock
2000-09-13 02:09:51 UTC
Permalink
I'm using vncserver an a RedHat Linux 6.2 system that I am starting
Gnome with. What I would like to know is how do you set up vnc to kill
the server when you log out of the window manager? What I have right now
just starts a gnome-session and then when I get out, I have to log out
of the gnome-session and then telnet in and run the vncserver -kill to
cleanly get rid of everything. If I don't do it this way, (e.g. if I
just vncserver -kill it) it leaves a bunch of garbage running out on the
system (leftover xterms, etc). Is there anything I can put in the
xstartup file or somewhere else to clean this up?

Thanks

--
David Rock
***@bigfoot.com

-----BEGIN GEEK CODE BLOCK-----
version 3.12
GIT>CS d-(?) s+:+>+: a- C++ UL++>++++ P+ L++(+++)>$ E()---
W(+)-- N++ o? K- w--() O+ M-@ V-- PS PE Y PGP- t++(+)
5++@ X- R(+++) tv(+) b+ DI++ D++ G e+(*) h--- r+++ y+++
-----END GEEK CODE BLOCK-----
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to ***@uk.research.att.com
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------
Dan Fulbright
2000-09-13 15:40:23 UTC
Permalink
Post by David Rock
I'm using vncserver an a RedHat Linux 6.2 system that I am starting
Gnome with. What I would like to know is how do you set up vnc to kill
the server when you log out of the window manager? What I have right now
just starts a gnome-session and then when I get out, I have to log out
of the gnome-session and then telnet in and run the vncserver -kill to
cleanly get rid of everything. If I don't do it this way, (e.g. if I
just vncserver -kill it) it leaves a bunch of garbage running out on the
system (leftover xterms, etc). Is there anything I can put in the
xstartup file or somewhere else to clean this up?
I do this with KDE and it works great. Here's my $HOME/.vnc/xstartup
file (you will have to change it do start GNOME instead of KDE):

#!/bin/sh

kcontrol -init
(sleep 1 && exec kfm) &
(sleep 1 && exec krootwm) &
(sleep 1 && exec kpanel) &
(sleep 3 && exec kbgndwm) &
# notice the lack of & at the end of the next line
sleep 2 ; kwm

/usr/local/bin/vncserver -kill :`echo $DISPLAY | cut -f2 -d:`
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to ***@uk.research.att.com
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------
tbatta .
2000-09-13 19:58:25 UTC
Permalink
Hi,

I have a problem wen running browser to open file in the StarOffice 5.1 with
vncviewer on windows 95 and vncserver on linux SuSE 6.3 kernel 2.2.9

Wen open a file in the browser of star office this abort and return the
prompt of operating system without message of error.

File log at startup server is /home/milan/.vnc/pegazo:3.log is:


12/09/00 14:10:52 Xvnc version 3.3.3r1
12/09/00 14:10:52 Copyright (C) AT&T Laboratories Cambridge.
12/09/00 14:10:52 All Rights Reserved.
12/09/00 14:10:52 See http://www.uk.research.att.com/vnc for information on
VNC
12/09/00 14:10:52 Desktop name 'X' (pegazo:3)
12/09/00 14:10:52 Protocol version supported 3.3
12/09/00 14:10:52 Listening for VNC connections on TCP port 5903
12/09/00 14:10:52 Listening for HTTP connections on TCP port 5803
12/09/00 14:10:52 URL http://pegazo:5803

12/09/00 14:11:11 Got connection from client 10.0.0.6
12/09/00 14:11:11 Protocol version 3.3
12/09/00 14:11:16 Pixel format for client 10.0.0.6:
12/09/00 14:11:16 8 bpp, depth 8
12/09/00 14:11:16 true colour: max r 7 g 7 b 3, shift r 0 g 3 b 6
12/09/00 14:11:16 no translation needed
12/09/00 14:11:16 Using hextile encoding for client 10.0.0.6
12/09/00 14:11:16 rfbProcessClientNormalMessage: ignoring unknown encoding
type 3
12/09/00 14:20:03 KbdAddEvent: unknown KeySym 0xffe5 - allocating KeyCode 89
12/09/00 14:20:10 KbdAddEvent: unknown KeySym 0xff63 - allocating KeyCode 90

File log at /home/milan/.vnc/xstartup is

#!/bin/sh

xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &

somebody can help me?

Thank.
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to ***@uk.research.att.com
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------
David Rock
2000-09-18 12:40:10 UTC
Permalink
Post by Dan Fulbright
Post by David Rock
I'm using vncserver an a RedHat Linux 6.2 system that I am starting
Gnome with. What I would like to know is how do you set up vnc to kill
the server when you log out of the window manager? What I have right now
just starts a gnome-session and then when I get out, I have to log out
of the gnome-session and then telnet in and run the vncserver -kill to
cleanly get rid of everything. If I don't do it this way, (e.g. if I
just vncserver -kill it) it leaves a bunch of garbage running out on the
system (leftover xterms, etc). Is there anything I can put in the
xstartup file or somewhere else to clean this up?
I do this with KDE and it works great. Here's my $HOME/.vnc/xstartup
#!/bin/sh
kcontrol -init
(sleep 1 && exec kfm) &
(sleep 1 && exec krootwm) &
(sleep 1 && exec kpanel) &
(sleep 3 && exec kbgndwm) &
# notice the lack of & at the end of the next line
sleep 2 ; kwm
/usr/local/bin/vncserver -kill :`echo $DISPLAY | cut -f2 -d:`
This was exactly what I needed. Thanks a lot.

--
David Rock
***@bigfoot.com

-----BEGIN GEEK CODE BLOCK-----
version 3.12
GIT>CS d-(?) s+:+>+: a- C++ UL++>++++ P+ L++(+++)>$ E()---
W(+)-- N++ o? K- w--() O+ M-@ V-- PS PE Y PGP- t++(+)
5++@ X- R(+++) tv(+) b+ DI++ D++ G e+(*) h--- r+++ y+++
-----END GEEK CODE BLOCK-----
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to ***@uk.research.att.com
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------
tbatta .
2000-09-13 21:00:26 UTC
Permalink
Hi
Probe the command nohup (or simililar).
With this command the process running including after logout.

----- Original Message -----
From: David Rock <***@bigfoot.com>
To: <vnc-***@uk.research.att.com>
Sent: Tuesday, September 12, 2000 8:07 PM
Subject: [VNC] Killing vncserver on exit
Post by David Rock
I'm using vncserver an a RedHat Linux 6.2 system that I am starting
Gnome with. What I would like to know is how do you set up vnc to kill
the server when you log out of the window manager? What I have right now
just starts a gnome-session and then when I get out, I have to log out
of the gnome-session and then telnet in and run the vncserver -kill to
cleanly get rid of everything. If I don't do it this way, (e.g. if I
just vncserver -kill it) it leaves a bunch of garbage running out on the
system (leftover xterms, etc). Is there anything I can put in the
xstartup file or somewhere else to clean this up?
Thanks
--
David Rock
-----BEGIN GEEK CODE BLOCK-----
version 3.12
GIT>CS d-(?) s+:+>+: a- C++ UL++>++++ P+ L++(+++)>$ E()---
-----END GEEK CODE BLOCK-----
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to ***@uk.research.att.com
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------
Loading...