I'm trying to open GUI installation from shell without success so I tried first to open just xclock
but was unable as well. usually export to DISPLAY solved the problem. I have a haunch that it security related but I lack the right knowledge to debug it.
[grid@localhost grid122]$ export DISPLAY=:0
[grid@localhost grid122]$ xclock
No protocol specified
Error: Can't open display: :0
[grid@localhost grid122]$ export DISPLAY=localhost:0
[grid@localhost grid122]$ xclock
Error: Can't open display: localhost:0
Tried different addresses as well:
localhost:0.0
127.0.0.1:0
127.0.0.1:0.0
Also modify /etc/hosts.allow
didn't work.
I am using CentOS 7 with GNOME