Score:0

Running X Server for a TeamCity build agent

us flag

I'm trying to configure a TeamCity build agent on Ubuntu 20.04 so that it can run automated GUI tests. Originally I was getting errors like:

Caused by: java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it.

but after installing ubuntu-desktop I'm getting:

Caused by: java.awt.AWTError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)

It's been a long time since I've set up X, and never quite in this scenario. What should I check from here to ensure my buildagent user can access an X11 display? (I don't care whether normal users logging into the vm can access a desktop or not.)

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.