geekvenue.net

Welcome to Chucktips HELP WITH DEAD OS Hardware Installing FreeBSD Miscellaneous
 faq
 search
 add article
 cool-stuff
 how-to
 main
 tips


"Can't get own hostname. Your System is severely misconfigured."
KDE Posted by Understudy on Thursday February 19, @02:01PM
from the bite my shinny metal ass dept.
KDE has been popping up this line when you startx.
"Can't get own host name. Your system is severely misconfigured,"
Well read on and you will see the simple solution on how to fix it.
KDE reads your hostname from your /etc/hosts file. So even if you have hostname="mycomputer.localdomain.com" <--(Example here people not literal)in your /etc/rc.conf it won't help you. But wait you have that in your /etc/hosts and you still get the error. Yes you will KDE reads one line in /etc/hosts:
127.0.0.1     localhost localhost.my.domain
and that line isn't what it wants.It wants:
127.0.0.1     localhost Bob.abc.homenet
Basically replace Bob with the name of your computer. Replace abc with the middle part of your hostname. Replace homenet with the last part of you hostname.

So mine looks like this:
::1     localhost localhost.my.domain
127.0.0.1     localhost Slacker.bjh.homenet
hostname="Slacker.bjh.homenet"
That's it error message goes away.
For the newbies:
Inorder to change this in the hosts file you will need to bring up an editorby typing this at the command prompt:
# ee /etc/hosts
That will bring up easy editor. and the file to be edited. For ex windoze users it is like note pad. For linux users it is very similar to Pico. Save your changes when you exit the editor. If it doesn't let you save the changes it is because you are not root. You must be root to edit your hosts file. Enjoy.

<  |  >

 

Related Links
  • Articles on KDE
  • Also by Understudy
  • Contact author
  • ThinkGeek

    Sponsors

    The Fine Print: The following comments are owned by whoever posted them.
    ( Add a Reply )

    "You never know how many friends you have until you own a Condo on the beach." -- Jason's Postulate

    Powered by Zope  Powered by Apache  Squishdot Powered
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©2001 Jason Neumann.
    [ main | post article | search ]