Score:0

"Error: Can't open display: wayland-0" on 22.04/gdm3

ng flag

I am building a new workstation environment on Ubuntu Server 22.04 and manually installing just the minimal desktop components necessary to manage a half dozen libvirt/QEMU/KVM virtual machines (where I do all the real work).

I am having difficulty getting some of my tools (notably imagemagick) to run on the host desktop getting "Error: Can't open display: wayland-0". I get the same running test programs like glxgears and xeyes.

If I disable wayland in /etc/gdm3/custom.conf

[daemon]
# Uncomment the line below to force the login screen to use Xorg
WaylandEnable=false

these apps all work (but create other problems for me that I won't go into here).

UPDATE: I decided to come at this from the reverse side: I built Ubuntu Desktop 22.04 instead and stripped out all the "productivity" software. This works fine so there must be some package (some part of xWayland, maybe?) I was missing in the Server build but don't have time to identify it.

cc flag
You may answer your own question helping others with this issue and gaining some rep in the process.
Frobozz avatar
ng flag
@ubfan1, doesn't feel like an answer to me. I am still hoping someone can identify what I missed in the Server build so I can use it next time I build a workstation.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.