CentOS 8 And Xhost

Home » CentOS » CentOS 8 And Xhost
CentOS 4 Comments

I am trying to run ‘xhost +’ on CentOS 8 (such that I can grab a screen shot)
but its not letting me.

On boot of X I run the “xhost +”
then later with SSH into hte box – I run export DISPLAY=:0.0
gnome-screenshot -f jj.png and I get the cannot open display message.

This works on the older CentOS 7. What is the magic for C8?
Thanks,

Jerry

4 thoughts on - CentOS 8 And Xhost

  • CentOS 8 runs GNOME on Wayland by default. X forwarding cannot work in those circumstances. To change that, choose “GNOME on Xorg” after clicking on the gear icon on the login screen.

    I recommend running SSH with the -X or -Y flags when connecting to the remote box. It’s more secure than using ‘xhost +’.

  • Am 20.04.2020 um 04:10 schrieb Jerry Geis:

    Care to fix your system time? Actually your postings date from
    20.04.2020 while it is still 19.04.

    The post I am replying to has

    Date: Sun, 19 Apr 2020 19:10:47 -0700

    in the header.

    Alexander