[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
/home/silentm/.vnc/passwd

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

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

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

Thanks

Jerry