Error: Can’t open display: localhost:10.0

ISSUE:

Server gives error while I try to execute the command xterm.

[root@quickfixlinux ~]# xclock
Error: Can’t open display: localhost:10.0


RESOLUTION:

a) Remove the loopback addressing in the host file entry.

b) Comment or remove the wrong localhost lines:

Open up the /etc/hosts file and comment out the line as below :

BEFORE:

[root@quickfixlinux ~]# cat /etc/hosts
#127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
#::1 localhost localhost.localdomain localhost6 localhost6.localdomain6


AFTER:

[root@quickfixlinux ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
#::1 localhost localhost.localdomain localhost6 localhost6.localdomain6      

You may also like...

Leave a Reply