You are not logged in.

#1 2016-11-14 03:34:08

karna
Member
Registered: 2015-02-02
Posts: 25

No Windows Manager (& DBUS ) in VNC session

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

#2 2016-11-14 04:07:15

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: No Windows Manager (& DBUS ) in VNC session

Which VNC server and client are you using? Also post the relevant config files.

Offline

#3 2016-11-14 17:45:10

karna
Member
Registered: 2015-02-02
Posts: 25

Re: No Windows Manager (& DBUS ) in VNC session

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

#4 2016-11-14 17:46:40

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,541

Re: No Windows Manager (& DBUS ) in VNC session

Unsetting DBUS_SESSION_BUS_ADDRESS is wrong, and has caused this problem before. I think the black screen is a separate issue.

Offline

#5 2016-11-15 17:45:45

karna
Member
Registered: 2015-02-02
Posts: 25

Re: No Windows Manager (& DBUS ) in VNC session

Wondering, if anyone has ideas to solve the vnc issue above.

Offline

#6 2016-11-15 19:59:54

toz
Member
Registered: 2011-10-28
Posts: 497

Re: No Windows Manager (& DBUS ) in VNC session

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

#7 2016-11-15 20:46:43

karna
Member
Registered: 2015-02-02
Posts: 25

Re: No Windows Manager (& DBUS ) in VNC session

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

#8 2016-11-15 20:51:12

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: No Windows Manager (& DBUS ) in VNC session

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 packagesZsh and other configs

Offline

#9 2016-11-15 20:59:27

karna
Member
Registered: 2015-02-02
Posts: 25

Re: No Windows Manager (& DBUS ) in VNC session

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

#10 2016-11-15 21:05:47

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: No Windows Manager (& DBUS ) in VNC session

@karna - Reboot.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#11 2016-11-15 21:18:27

karna
Member
Registered: 2015-02-02
Posts: 25

Re: No Windows Manager (& DBUS ) in VNC session

@graysky, No luck with reboot hmm

Offline

Board footer

Powered by FluxBB