Hey all,
I am trying to use VNC to view my Solus Budgie desktop session, but I'm getting some errors. I'm trying both Tigervnc and Remmina. The problem is not setting up VNC (at least with tigervnc, I can't seem to get it to work with Remmina either), it is configuring the session properly because I can connect and I see a black screen. When I look at the errors in the log, then I see the following info about xterm and twm not being installed.
I can't for the life of me configure my xstartup file properly to work for the Budgie desktop settings. I tried the default from Tigervnc. I keep getting errors that I don't have twm or xterm installed from the xstartup defaults here:
Wed Mar 3 08:04:09 2021
vncext: VNC extension running!
vncext: Listening for VNC connections on all interface(s), port 5901
vncext: created VNC server for screen 0
The XKEYBOARD keymap compiler (xkbcomp) reports:
Warning: Unsupported high keycode 372 for name <I372> ignored
X11 cannot support keycodes above 255.
This warning only shows for the first high keycode.
Errors from xkbcomp are not fatal to the X server
/etc/X11/xinit/xinitrc: line 51: twm: command not found
/etc/X11/xinit/xinitrc: line 55: exec: xterm: not found
/etc/X11/xinit/xinitrc: line 53: xterm: command not found
/etc/X11/xinit/xinitrc: line 54: xterm: command not found
/etc/X11/xinit/xinitrc: line 52: xclock: command not found
default xstartup file:
#!/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" &
twm &
Again, I see errors from not having twm and xterm. I then tried a Gnome session configuration here:
#!/bin/bash
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
export XDG_CURRENT_DESKTOP=GNOME-Classic:GNOME
export GNOME_SHELL_SESSION_MODE=classic
vncconfig -iconic &
dbus-launch --exit-with-session gnome-session &
And that tells me that there is "Something Wrong" in a Gnome-ish GUI and I have to log out of the session.
Is there a xstartup file I can just copy from somewhere in my system to get it to properly set up a session for me to VNC into? How should I configure my Solus Budgie desktop as the VNC server in order to be able to view it via Remmina or TigerVNC?
After a few days of fighting this I'm getting a little frustrated.