Monday, 29 October 2018

centos - Xserver doesn't work unless DISPLAY=0.0


Using CentOS. I cannot connect remotely and I believe it is related to fact I can only connect locally if DISPLAY is set to :0.0. Something is misconfigured but I can't figure out what.


>xhost +

access control disabled, clients can connect from any host

>emacs -d :0.0

#works

>emacs -d 127.0.0.1:0.0

Cannot connect to X server 127.0.0.1:0.0.

>emacs -d localhost:0.0

emacs: Cannot connect to X server localhost:0.0.

Answer



This is because Xserver is refusing TCP connections


run gdmsetup as root and uncheck "Deny TCP connections to Xserver"


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...