Find the answer to your Linux question:
Results 1 to 4 of 4
I have just installed X and when I type startx it takes me to a simple twm screen just as I intended. However, despite starting X and twm properly errors ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,414

    startx works but with errors. 'bad display name "linux:0" in "list" command


    I have just installed X and when I type startx it takes me to a simple twm screen just as I intended. However, despite starting X and twm properly errors are reported at the bash prompt.
    Code:
    xauth:(argv):1:bad display name "linux:0" in "list" command
    It reports this error for two other commands, including the "remove" command when it shuts down X.

    I've googled around about this and it seems to be related to the /etc/hosts file
    Code:
    # Begin /etc/hosts
    
    # ::1 localhost localhost.localdomain linux.localdomain
    127.0.0.1 linux
    
    # End /etc/hosts
    I've tried to edit this a few different ways, including uncommenting the ::1 line, and changing the "127.0.0.1 linux" to "127.0.0.1 localhost localhost.localdomain linux.localdomain", but with no success.

    I've also tried
    Code:
    DISPLAY=localhost:0.0; export DISPLAY
    startx
    (found on a BSD forum) but this had the same result.

    Can anyone point me in the right direction?? Many thanks!
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

  2. #2
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,414
    Does anyone have any ideas about this?? Is the syntax of the /etc/hosts file right??
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

  3. #3
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,414
    *bump*

    Does anyone have any suggestions for things I should be looking at to fix this?? Even a vague nudge in the right direction would be really appreciated! Can anyone comment on the syntax I used in the /etc/hosts file (above)??
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

  4. #4
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,414
    I seem to have everyone stumped!! It's not really a problem for me since I can still start and stop X, but I just don't like getting mysterious error messages like that. An unhappy machine is normally not an optimised, smooth running, machine.

    All help is greatly appreciated!
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •