geekvenue.net

Welcome to Chucktips Hardware HELP WITH DEAD OS 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.

Add Reply

Name
Email
Notify Notify me via email of responses to this message
Title
Comment
(Check those URLs! Don't forget the http://!)
Encoding
If none of the above mean anything to you, select 'Plain'!
Attachment
(You can attach a file to your reply which can then be retrieved by other readers.
Try to keep the file sizes below 500Kb in order to conserve network and server resources.)
Allowed HTML <B> <I> <P> <A> <LI> <OL> <UL> <EM> <BR> <TT> <HR> <STRONG> <BLOCKQUOTE> <DIV .*> <DIV> <P .*>
Important Stuff:
  • Note: Fields with bold titles are required.
  • Please try to keep posts on topic.
  • Try to reply to other people comments instead of starting new threads,
  • Read other people's messages before posting your own to avoid simply duplicating what has already been said.
  • Use a clear subject that describes what your message is about.
  • Please do not post offtopic, inflammatory, inappropriate, illegal, or offensive comments. Repeat offenders will be sanctioned.
  • "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 ]