faq
search
add article
cool-stuff
how-to
main
tips
|
"Can't get own hostname. Your System is severely misconfigured." |
 |
 |
 |
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.
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.
|