Hi Mike,
Thank you so much for your suggestions, I really appreciate them!
However, in my case, I prefer not to use a system-wide TigerVNC server
installation.
I was able to solve the issue by adding the following line at the end of
my .config/tigervnc/xstartup file to terminate Xvnc after XFCE exits:
netbsd-raspa4$ cat .config/tigervnc/xstartup
..
...
....
/usr/pkg/bin/startxfce4
pkill Xvnc
I’m not sure if this is too drastic of a solution, but it seems to work
fine.
Best regards,
Ramiro.
El 1/4/25 a las 20:47, wb9ypa escribió:
I made an error in my reply to you on one line. Please change the
following line:
# chmod 0755 /etc/rc.conf/vncserver
to:
# chmod 0755 /etc/rc.d/vncserver
73 de mike sienicki
-------- Original message --------
From: Ramiro Aceves <ea1...@gmail.com>
Date: 4/1/25 08:30 (GMT-05:00)
To: PkgSrc Users Discussion List <pkgsrc-us...@netbsd.org>
Cc: netbsd-users <netbsd-users@netbsd.org>
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