PDA

View Full Version : xauth: bad display name


alie
March 6th, 2009, 18:36
hi,

i got serious problem with my X.

every time i exit from my X it will display:
xauth: (argv):1: bad display name "aliefreebsd:0" in "remove" command

and it takes 2+ mins to launch startx

i already put hostname in my /etc/rc.conf
and here's my /etc/hosts
1:: localhost localhost.localdomain aliefreebsd.localdomain
127.0.0.1 localhost localhost.localdomain aliefreebsd.localdomain

ale
March 6th, 2009, 21:04
What adding also just aliefreebsd in /etc/hosts ?

alie
March 7th, 2009, 08:31
only those 2 lines... and my xauth list:
aliefreebsd/unix:0 MIT-MAGIC-COOKIE-1 mykeyhere
hit-nxdomain.opendns.com:0 MIT-MAGIC-COOKIE-1 mykeyhere

kiela
March 14th, 2009, 21:10
i have the same problem and i haven't found solution yet, putting my hostname in /etc/hosts changed nothing, any one can help?

trev
March 15th, 2009, 09:14
The delay is invariably caused by DNS lookups. What's your system's hostname and what's in /etc/hosts ? (The OP's entries don't match if the OP is still reading...)

ale
March 15th, 2009, 13:07
Also, what is the output of ifconfig lo0 ?

alie
March 15th, 2009, 13:35
@ale: thanks, i've managed to fix it. what i need only restart my FreeBSD box.

kiela
March 16th, 2009, 23:26
$ hostname
freebsd.domain.com
$ cat /etc/hosts
::1 localhost localhost.domain.com lo0
127.0.0.1 localhost localhost.domain.com lo0
192.168.144.250 freebsd.domain.com
$ ifconfig lo0
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
$

i focused that when hostname is set "freebsd" and in file /etc/hosts is line: "192.168.144.250 freebsd" the warning message from X disappears, but how can i do it with full hostname which is freebsd.domain.com?

ale
March 16th, 2009, 23:55
$ hostname
freebsd.domain.com
$ cat /etc/hosts
::1 localhost localhost.domain.com lo0
127.0.0.1 localhost localhost.domain.com lo0
192.168.144.250 freebsd.domain.com
i focused that when hostname is set "freebsd" and in file /etc/hosts is line: "192.168.144.250 freebsd" the warning message from X disappears, but how can i do it with full hostname which is freebsd.domain.com?
192.168.144.250 freebsd freebsd.domain.com

kiela
March 18th, 2009, 17:30
no, it does not work for me.. any other ideas?