Error: Can’t open display: localhost:10.0

ISSUE:

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

[stextbox id=”Default” mode=”css” bwidth=”7″ color=”FFFFFF” ccolor=”000000″ bcolor=”1A52EA” bgcolor=”000000″ bgcolorto=”000000″   image=”null”]

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


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 :

[stextbox id=”Default” mode=”css” bwidth=”7″ color=”FFFFFF” ccolor=”000000″ bcolor=”1A52EA” bgcolor=”000000″ bgcolorto=”000000″   image=”null”]

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      [/stextbox]

You may also like...

Leave a Reply