startX bad display name

X.Org on FreeBSD installation & configuration.

startX bad display name

Postby NAC » 28 Oct 2009, 02:40

after googled online, havent found any helpful clues.

whenever i run "startx", i need to wait about 1 min or use "ctrl_C" to abort following error for staring X-environment
Code: Select all
"Xauth:(argv): bad display name "localhost.local:0" in "list" command

I have tried to disable /etc/hosts lines or re-edit the content, but havent sorted it out.

i am wondering if someone could help with? thanks a lot
NAC
Junior Member
 
Posts: 34
Joined: 16 Oct 2009, 05:15

Postby vaclinux » 28 Oct 2009, 05:17

could you post your /etc/hosts ?
vaclinux
Junior Member
 
Posts: 61
Joined: 07 Jan 2009, 08:09
Location: Bali, Indonesia

Postby NAC » 28 Oct 2009, 06:14

thanks for your reply,
i am using the default at the moment
Code: Select all
::1         localhost localhost.my.domain
127.0.0.1      localhost localhost.my.domain


I am wondering the domain name can be anything or not?
NAC
Junior Member
 
Posts: 34
Joined: 16 Oct 2009, 05:15

Postby crsd » 28 Oct 2009, 06:23

You should put value of your `hostname` to /etc/hosts, like:
Code: Select all
::1  yourhostname yourhostname.yourdomain localhost
127.0.0.1  yourhostname yourhostname.yourdomain localhost
crsd
Member
 
Posts: 420
Joined: 24 Nov 2008, 02:15
Location: Russia, Krasnodar

Postby fronclynne » 28 Oct 2009, 06:33

NAC wrote:thanks for your reply,
i am using the default at the moment


I am wondering the domain name can be anything or not?

It shouldn't conflict with existing namespace, I believe. Put something with more than four letters to the right of the dot and you should be safe. I usually set my hostname to a single, longish name, like britomart, or belphoebe, or duessa.

The problem I suspect you are having is that your hostname is set to one thing in [file]/etc/rc.conf[/file] & that doesn't match your [file]/etc/hosts[/file].
[color="DimGray"]Quid habemus reliquum?
Nutrimentum anatum![/color]
[color="Teal"]Внимание: лифт вниз не поднимает[/color]
User avatar
fronclynne
Senior Member
 
Posts: 1297
Joined: 09 Feb 2009, 04:47
Location: Lunch Time

Postby NAC » 28 Oct 2009, 06:58

fronclynne wrote:It shouldn't conflict with existing namespace, I believe. Put something with more than four letters to the right of the dot and you should be safe. I usually set my hostname to a single, longish name, like britomart, or belphoebe, or duessa.

The problem I suspect you are having is that your hostname is set to one thing in [file]/etc/rc.conf[/file] & that doesn't match your [file]/etc/hosts[/file].


thank you, yes you are right, in rc.conf
hostname="locahost.local"

iam going to have a try
NAC
Junior Member
 
Posts: 34
Joined: 16 Oct 2009, 05:15

Postby SirDice » 28 Oct 2009, 07:02

Don't use .local as a TLD and don't use localhost as a hostname.
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16196
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby NAC » 28 Oct 2009, 07:47

i edited /etc/hosts
::1 freebsd.villa.org localhost
127.0.0.1 freebsd.villa.org localhost

and re-edited /etc/rc.conf
hostname="freebsd.villa.org"


just fixed it after rebooting, thanks a lot guys.
really appreciate it! :)
NAC
Junior Member
 
Posts: 34
Joined: 16 Oct 2009, 05:15

Postby DutchDaemon » 28 Oct 2009, 11:30

Use [code], not [quote] please!
User avatar
DutchDaemon
Old Fart
 
Posts: 10467
Joined: 16 Nov 2008, 20:17
Location: The Netherlands

Postby sprewell » 14 May 2010, 18:09

I just had this same problem where I had setup some local and remote FreeBSD jails but after changing the IPs, X forwarding stopped working with a similar xauth error. I had to make sure the correct domain and IP was properly placed in /etc/hosts inside the jails and X forwarding started working again. :)
sprewell
Junior Member
 
Posts: 35
Joined: 19 Aug 2009, 14:12
Location: Phoenix, AZ


Return to X.Org

Who is online

Users browsing this forum: No registered users and 0 guests