1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

startX bad display name

Discussion in 'X.Org' started by NAC, Oct 28, 2009.

  1. NAC

    NAC New Member

    Messages:
    34
    Thanks Received:
    1
    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:
    "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
     
  2. vaclinux

    vaclinux New Member

    Messages:
    61
    Thanks Received:
    1
    could you post your /etc/hosts ?
     
  3. NAC

    NAC New Member

    Messages:
    34
    Thanks Received:
    1
    thanks for your reply,
    i am using the default at the moment
    Code:
    ::1			localhost localhost.my.domain 
    127.0.0.1		localhost localhost.my.domain
    


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

    crsd New Member

    Messages:
    420
    Thanks Received:
    92
    You should put value of your `hostname` to /etc/hosts, like:
    Code:
    ::1  yourhostname yourhostname.yourdomain localhost
    127.0.0.1  yourhostname yourhostname.yourdomain localhost
     
  5. fronclynne

    fronclynne New Member

    Messages:
    1,297
    Thanks Received:
    168
    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 /etc/rc.conf & that doesn't match your /etc/hosts.
     
  6. NAC

    NAC New Member

    Messages:
    34
    Thanks Received:
    1
    thank you, yes you are right, in rc.conf
    hostname="locahost.local"

    iam going to have a try
     
  7. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,810
    Thanks Received:
    2,462
    Don't use .local as a TLD and don't use localhost as a hostname.
     
  8. NAC

    NAC New Member

    Messages:
    34
    Thanks Received:
    1
    i edited /etc/hosts
    and re-edited /etc/rc.conf
    just fixed it after rebooting, thanks a lot guys.
    really appreciate it! :)
     
  9. DutchDaemon

    DutchDaemon Administrator Staff Member Administrator Moderator

    Messages:
    10,793
    Thanks Received:
    1,901
    Use
    Code:
    , not 
    
    
    
     
  10. sprewell

    sprewell New Member

    Messages:
    35
    Thanks Received:
    7
    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. :)
     
  11. R0B R0D

    R0B R0D New Member

    Messages:
    1
    Thanks Received:
    0
    Helpful. After rebooting! :) Thanks. Newbie from Linux. 10.1 My first install.