Skip to content

xrdb: Can't open display #11

@lackovic

Description

@lackovic

Following wsl2-tutorial - using ArchLinux instead of Ubuntu - I get the following error when I try to run startxfce4:

$ startxfce4
/usr/sbin/startxfce4: X server already running on display 192.168.96.1:0
xrdb: Connection timed out
xrdb: Can't open display '192.168.96.1:0'
Failed to connect to bus: No such file or directory
dbus-update-activation-environment: error: unable to connect to D-Bus: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
Unable to init server: Could not connect: Connection refused
xfce4-session: Cannot open display: .
Type 'xfce4-session --help' for usage.

$ env | grep -i dbus returns an empty result.

So I run $ export $(dbus-launch) and then:

$ env | grep -i dbus
DBUS_SESSION_BUS_PID=6069
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-LGwJ05xky5,guid=5d62e22c1553514e0ab605f65ef24f39

With that I got rid of the unable to connect to D-Bus error, but then I got another one:

$ startxfce4
/usr/sbin/startxfce4: X server already running on display 192.168.96.1:0
xrdb: Connection timed out
xrdb: Can't open display '192.168.96.1:0'
Failed to import environment: Process org.freedesktop.systemd1 exited with status 1
Unable to init server: Could not connect: Connection refused
xfce4-session: Cannot open display: .
Type 'xfce4-session --help' for usage.

Some other info:

$ systemctl --user status
Failed to read server status: Process org.freedesktop.systemd1 exited with status 1

$ systemctl --user show-environment
Failed to get environment: Process org.freedesktop.systemd1 exited with status 1

$ systemctl status -l --no-pager user@$(id -u).service
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

Any idea where the problem could be and how I can fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions