Can not start unity in multipass vm : Error: unable to open display
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unity (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I am trying running unity under a multipass vm running on remote dedicated root server (24 core/64GB) on linode running 22.04
According to this guide a full dektop can be used: https:/
Multipass vm also initiated with 22.04. Nginx forwarding *:3389 to <multipass-
Then from inside vm,
1. sudo adduser xrdpuser (#default ubuntu doesn't have passwd )
2. sudo usermod -aG sudo xrdpuser && sudo usermod -aG tty xrdpuser && sudo usermod -aG video xrdpuser
3. sudo apt install ubuntu-
4. sudo apt install xrdp; sudo usermod -aG ssl-certs xrdp
Unity install unity binary under /usr/share/
5. Edit /etc/xrdp/
#test -x /etc/X11/Xsession && exec /etc/X11/Xsession
#exec /bin/sh /etc/X11/Xsession
#xfce4-session
/usr/libexec/
6. sudo systemctl restart xrdp && sudo systemctl restart xrdp-sesman.service
7. Now when connecting from remmina I get following errors:
Full Log: https:/
Interesting parts
/bin/sh: 1: initctl: not found which I think is this bug: https:/
Then We get errors like
unity-settings-
compiz-
(Compix uses unity-lowgfx and tries to start but still fails due missing display.)
Xrdp however succesfully connecting display 10 as per above log.
Jun 22 14:52:15 jammy-vm xrdp-sesman[4316]: [INFO ] Found X server running at /tmp/.X11-unix/X10
Jun 22 14:52:15 jammy-vm xrdp-sesman[4326]: [INFO ] Found X server running at /tmp/.X11-unix/X10
Jun 22 14:52:15 jammy-vm xrdp-sesman[4326]: [INFO ] Found X server running at /tmp/.X11-unix/X10
Jun 22 14:52:15 jammy-vm xrdp-sesman[4316]: [INFO ] Session started successfully for user xrdpuser on display 10
Jun 22 14:52:15 jammy-vm xrdp-sesman[4338]: [INFO ] Starting the xrdp channel server for display 10
Jun 22 14:52:15 jammy-vm xrdp-sesman[4326]: [INFO ] Starting the default window manager on display 10: /etc/xrdp/
Jun 22 14:52:15 jammy-vm xrdp-sesman[4316]: [INFO ] Session in progress on display 10, waiting until the window manager (pid 4326) exits to end the session
What could be issue here ? xfce4 session works perfectly fine with same configuration.
summary: |
- Can not start unit in multipass vm : Error: unable to open display + Can not start unity in multipass vm : Error: unable to open display |
description: | updated |
description: | updated |
description: | updated |
affects: | compiz (Ubuntu) → unity (Ubuntu) |
It seems gnome session requires GNOME_SETUP_DISPLAY instead DISPLAY. Setting that along with XDG_CURRENT_DESKTOP in .xsession works. /etc/xrdp/ startwm. sh modification not required.
Also jammy has old version of xrdp. Newer version recoomends settings DESKTOP_SESSION in /etc/xrdp/ sesman. ini under [Sessions] and it will pick up EXEC parameter from unity.desktop. Though it doesn't say anything about setting the display. https:/ /github. com/neutrinolab s/xrdp/ blob/devel/ sesman/ startwm. sh
In short, ~/.xsession DISPLAY= :10 DIRS=/etc/ xdg/xdg- unity:/ etc/xdg DESKTOP= unity DESKTOP= Unity:Unity7: ubuntu run-systemd- session unity-session. target
export GNOME_SETUP_
export XDG_CONFIG_
export XDG_SESSION_
export XDG_CURRENT_
/usr/libexec/
And it will work. Polkit agent somereason not auto-starting. But manually running it works.