problem with hostname

Karl F. Larsen klarsen1 at gmail.com
Thu Jul 9 19:32:01 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Siggy Brentrup wrote:
> On Thu, Jul 09, 2009 at 11:50:02AM +0000, pkaplan1 at comcast.net wrote:
> 
> [snip]
> 
>> So, still, I'm stumped. My hostname is not being read following
>> reboot, so I have to manually define it after each boot.
> 
>
	You have been given very bad information on this list. I just decided
to change my hostname to hardy on this Hardy computer. It was at the
time karl-hardy.

Step one. first cd to the /etc/ directory.

Step two. Open a Terminal Window and write this: $ cat /etc/hostname and
you should see your old hostname.

Step three. In a Terminal Window write this: $ sudo gedit /etc/hostname
and replace the existing with the correct hostname you want. Save the
new file.

Step four. Now do this: $ sudo /etc/hosts and you will see an old
hostname listed with other things. Replace the old with the same
hostname you put into /etc/hostname. Save the new file.

	Now your new hostname will keep working for as long as you please.


73 Karl




- --

	Karl F. Larsen, AKA K5DI
	Linux User
	#450462   http://counter.li.org.
        Key ID = 3951B48D

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD4DBQFKVkWxNuSIOjlRtI0RAvmMAJ0T5j/vkfXEz7e7pGQSLI2ve4ceJACYlmO9
d1vqljIR9AwA2ny4AUHDlg==
=KkuM
-----END PGP SIGNATURE-----




More information about the ubuntu-users mailing list