You are not logged in.
Hi community,
I use vnc to connect to my arch linux laptop remotely. However, for a few weeks, my vnc sessions lack a windows manager. For example, there is no top bar for dragging windows. Also, the vnc session has a message about unable to connect to DBUS. HEre are a couple of relevant lines from the vnc log file:
(I use xfce)
-----------
(xfce4-panel:1339): xfce4-panel-WARNING **: Failed to connect to the D-BUS session bus: Failed to connect to socket /tmp/dbus-Bdfflkdl: Connection refused
No window manager registered on screen 0. To start the xfdesktop without this check, run with --disable-wm-check.
-----------
Any ideas to get the vnc windowed session working?
Thanks,
Offline
Which VNC server and client are you using? Also post the relevant config files.
Offline
Hi,
I have tigervnc 1.7.0-1 installed currently.
Here is the config file in my .vnc directory:
-------
AdvancedOptions=0
Encryption=Server
EulaAccepted=####################
FullScreen=0
SaveToFile=1
-------
Here is my startup script:
(If I comment either unset SESSIO_MANAGER or DBUS_SESSION_BUS_ADDRESS, my vnc session is just black screen. There is no error message in log 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
export XKL_XMODMAP_DISABLE=1
if [ -x ~/.xinitrc ]; then
exec ~/.xinitrc
fi
if [ -f ~/.xinitrc ]; then
exec sh ~/.xinitrc
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 &
-------
Thanks,
Offline
Unsetting DBUS_SESSION_BUS_ADDRESS is wrong, and has caused this problem before. I think the black screen is a separate issue.
Offline
Wondering, if anyone has ideas to solve the vnc issue above.
Offline
Try this xstartup file:
#!/bin/sh
unset SESSION_MANAGER
export XKL_XMODMAP_DISABLE=1
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
startxfce4 &
Offline
Thanks for the suggestion.
I still get a black screen in VNC. The log file has an error message:
-------
/usr/bin/startxfce4: X server already running on display :1
xfce4-session: Another session manager is already running
-------
I disblaed $DISPLAY (unset DISPLAY) to avoid the above error, and there is a new error message:
-------
/usr/lib/xorg-server/Xorg.wrap: Only console users are allowed to run the X server
-------
Offline
What about a more simple ~/.vnc/xstartup
#!/bin/sh
exec startxfce4
I use that and have no such problems with lxqt.
Last edited by graysky (2016-11-15 20:51:59)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Thanks. Tried that and the error is:
-------
/usr/bin/startxfce4: X server already running on display :1
xfce4-session: Another session manager is already running
-------
Perhaps, some VNC/X configuration is messed up.
Offline
@karna - Reboot.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
@graysky, No luck with reboot
Offline