How to get XRDP+VNC session working ?

asked 2017-07-26 05:45:07 -0600

nicoulaj gravatar image

I am trying to setup XRDP+sesman+Xvnc. The XRDP+sesman parts works fine, but the VNC session crashes immediately.

It looks like the VNC session starts a GNOME session that conflicts with the main one (cinnamon on X). The VNC session is supposed to run XFCE, I tried various combinations of this ~/.vnc/xstartup:

#!/bin/sh
[ -r /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
export LANG
export SYSFONT
vncconfig -iconic &
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
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
startxfce4 &

This is my ~/.xsession-errors:

Failed to import environment: Process org.freedesktop.systemd1 exited with status 1

And (truncated) journalctl:

Jul 26 09:56:47 xrdp-sesman[5248]: (5248)(140050145921088)[INFO ] Xvnc :10 -auth .Xauthority -geometry 1920x1080 -depth 24 -rfbauth /home/nicoulaj/.vnc/sesman_nicoulaj_passwd:10 -bs -nolisten tcp 
Jul 26 09:56:47 xrdp-sesman[1343]: Xvnc TigerVNC 1.8.0 - built May 17 2017 05:47:28
Jul 26 09:56:47 xrdp-sesman[1343]: Copyright (C) 1999-2017 TigerVNC Team and many others (see README.txt)
Jul 26 09:56:47 xrdp-sesman[1343]: See http://www.tigervnc.org for information on TigerVNC.
Jul 26 09:56:47 xrdp-sesman[1343]: Underlying X server release 11903000, The X.Org Foundation
Jul 26 09:56:47 xrdp-sesman[1343]: Wed Jul 26 09:56:47 2017
Jul 26 09:56:47 xrdp-sesman[1343]:  vncext:      VNC extension running!
Jul 26 09:56:47 xrdp-sesman[1343]:  vncext:      Listening for VNC connections on all interface(s), port 5910
Jul 26 09:56:47 xrdp-sesman[1343]:  vncext:      created VNC server for screen 0
Jul 26 09:56:47 xrdp-sesman[5246]: (5246)(140050145921088)[CORE ] waiting for window manager (pid 5247) to exit
Jul 26 09:56:47 dbus-daemon[5335]: [session uid=10022 pid=5333] Activating service name='org.freedesktop.systemd1' requested by ':1.0' (uid=10022 pid=5349 comm="systemctl --user import-environment DIS
Jul 26 09:56:47 dbus-daemon[5335]: [session uid=10022 pid=5333] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
Jul 26 09:56:47 dbus-daemon[5335]: [session uid=10022 pid=5333] Activating service name='com.redhat.imsettings' requested by ':1.4' (uid=10022 pid=5420 comm="/usr/libexec/imsettings-check --check-modu
Jul 26 09:56:47 dbus-daemon[5335]: [session uid=10022 pid=5333] Activating service name='org.gtk.vfs.Daemon' requested by ':1.5' (uid=10022 pid=5424 comm="/usr/libexec/imsettings-daemon ")
Jul 26 09:56:47 dbus-daemon[5335]: [session uid=10022 pid=5333] Successfully activated service 'org.gtk.vfs.Daemon'
Jul 26 09:56:47 dbus-daemon[5335]: [session uid=10022 pid=5333] Successfully activated service 'com.redhat.imsettings'
Jul 26 09:56:47 com.redhat.imsettings[5335]: [ 1501055807.875890]: IMSettings-Daemon[5424]: INFO: Starting imsettings-daemon...
Jul 26 09:56:47 com ...
(more)
edit retag flag offensive close merge delete