NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

RE: tiger vncserver continues running after exiting desktop



--‐------------------

Don't kill vncserver.  Instead stop it with:

# /etc/rc.d/vncserver stop

Provided you copied the file "vncserver" from the path:
/usr/pkg/share/examples/tightvnc

Note that Tigervnc may use a different name  in the above noted examples directory than "tightvnc". 

to this path:
/etc/rc.d directory.

Also do this once:
# chmod /etc/rc.conf/vncserver 0755
 
Finally ascertain that you have "vncserver=YES" added to your /etc/rc.conf file.

You can also "restart" the server with:
# /etc/rc.d/vncserver restart

And "start" it if it's not running.

See the man page for "afterboot"

I hope you find this helpful.

73 from Mike sienicki


-------- Original message --------
From: Ramiro Aceves <ea1abz%gmail.com@localhost>
Date: 4/1/25 08:30 (GMT-05:00)
To: PkgSrc Users Discussion List <pkgsrc-users%netbsd.org@localhost>
Cc: netbsd-users <netbsd-users%netbsd.org@localhost>
Subject: tiger vncserver continues running after exiting desktop

Hello.

I have been strugling with this for some time and I am not able to fix
it. I have Tiger VNC server running on my NetBSD raspberrypi4. This is
the xstartup file:


netbsd-raspa4$ cat .config/tigervnc/xstartup
#!/bin/sh

unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`
if [ $OS = 'Linux' ]; then
   case "$WINDOWMANAGER" in
     *gnome*)
       if [ -e /etc/SuSE-release ]; then
         PATH=$PATH:/opt/gnome/bin
         export PATH
       fi
       ;;
   esac
fi
#if [ -x /etc/X11/xinit/xinitrc ]; then
#  exec /etc/X11/xinit/xinitrc
#fi
#if [ -f /etc/X11/xinit/xinitrc ]; then
#  exec sh /etc/X11/xinit/xinitrc
#fi
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#ctwm &
/usr/pkg/bin/startxfce4 &
netbsd-raspa4$


I enter in the raspberrypi4 server machine from the client machine
using ssh and I start the server normally with $vncserver command. Then
I connect to the machine using tigervncviewer, XFCE4 session or CTWM
session, result is the same. When I exit XFCE4 or CTWM desktop,
vncserver  session continues running and I must kill it with

$vncserver -kill :1

I have vncserver also in a Debian GNU/Linux machine and when I exit
desktop vncserver is automatically terminated. I do not understand why I
get different behaviour in NetBSD. It is not a big problem but a bit
annoying having to kill vncserver session.

Any clues will be appreciated.

Thanks.
Ramiro







Home | Main Index | Thread Index | Old Index