EC2 Ubuntu Server NICE DCV "Error: unable to open display :0"

275 views Asked by At

I'm trying to set up a GUI on my EC2 instance following this tutorial.

When I try to run the command

sudo DISPLAY=:0 XAUTHORITY=$(ps aux | grep "X.*\-auth" | grep -v grep | sed -n 's/.*-auth \([^ ]\+\).*/\1/p') glxinfo | grep -i "opengl.*version"

I get an error saying that

Error: unable to open display :0

I'm running a G4 instance with Nvidia's Omniverse AMI if that helps. I'm pretty new to this so if there's a better way to set up a GUI that also would work.

0

There are 0 answers