Score:0

Faking a display on a VM

in flag

Can I fake a display with some X11 magic somehow on a headless VM? I had this old machine that was about to croak so I am moving all its code into a VM. It is going well but some small snippet of code tries to use python and tkinter which gives an error:

_tkinter.TclError: no display name and no $DISPLAY environment variable

Since that old machine sure enough has a vga out that goes to an old KVM switch on it, the users don't care about this anymore but the code cannot be redone, so wasn't sure if I could even though it is a VM with no monitor attached 'fake' a display so that this error goes away?

Esther avatar
cn flag
https://techoverflow.net/2019/02/23/how-to-run-x-server-using-xserver-xorg-video-dummy-driver-on-ubuntu/ apparently there is a dummy display driver called `xorg-vido-dummy` that seems to do exactly this
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.