'Run RDP to make GUI available without logging into RDP
I am building a CI that requires a GUI interface to compile an application. To do this, I've setup XRDP on Ubuntu 20.04 on an Azure VM and setup a playbook that I can run once the machine is available.
I have everything working by sending a Run command to the machine with the following:
export DISPLAY=":10.0"
xhost +
ansible-playbook my_playbook.yaml
This process works perfectly, but the problem is that if I want to stop or restart the machine, it requires someone to log in with RDP to make the GUI available, otherwise xhost just throws the error xhost: unable to open display
I wanted to see if there were anyways to start rdp remotely or through some kind of commands to make the GUI available so I can shut off the VM when not in use.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
