chaostic
Group: Members
Posts: 328
Joined: Mar. 2005 |
|
Posted: June 06 2008,03:34 |
|
Quote (csaunier @ June 05 2008,22:26) | I'm not having any luck changing my hostname. I've read all of the posts I can find on this subject, read the wiki and changed every "box" I can find to "my new name". Now my computer seems to be called (none) and while booting I noticed a line that said "sudo unable to lookup (none) via gethostbyname" (without the quotes). I'm running a frugal install. What have I done? |
I'm assuming that this is a HD install, or remaster, because the hostname would be set before any dsl-restore things will happen. I will go back to my hd install and check all the places I made the changes. The most obvious ones are using the hostname command, setting the HOSTNAME variable, and the one to fix your SUDO problem, add your hostname to /etc/hosts, on the 127.0.0.1 line: 127.0.0.1 *hostname* localhost Currently it would be: 127.0.0.1 (none) localhost
The default, without a hostname= bootcode would be 127.0.0.1 box localhost
Mine, on my thinclient, is 127.0.0.1 thinclient box localhost just incase I forget to set the hostname bootcode, then manually change the hostname, so sudo won't give any errors.
Edit: Didn't see that you were running frugal. Bootcode is best bet, followed by adding the various commands to bootlocal.sh. Even then, your router might latch on to the default "box" hostname before the commands run, so bootcode "hostname="
|