[CentOS] CentOS 8 vncserver

Thu Nov 12 14:12:42 UTC 2020
Jerry Geis <jerry.geis at gmail.com>

I am trying to get vncserver working on CentOS 8. Fully updated.

On the console - logged in as a normal user I run:
export DISPLAY=:0.0
xhost +
/usr/bin/x0vncserver -display :0 -rfbport 5901 -passwordfile

I get this error:
Invalid MIT-MAGIC-COOKIE-1 key/usr/bin/x0vncserver: unable to open display

Based on the error I changed the DISPLAY=:0 and tried again - but same

Am I doing something wrong?   I dont really need this to start as a service
was just trying to start by hand.