Re: Got a machine name problem
On Tuesday 23 February 2021 14:29:01 Tom Browder wrote:
> On Tue, Feb 23, 2021 at 11:59 AM Gene Heskett <gheskett@shentel.net>
> wrote: ...
>
> > Nothing I do survives a reboot, so what do I do to actually rename
> > the machine and make it stick? Hopefully without losiing the
> > networking
>
> Hey, Gene. I usually have to fiddle around a little, but I've always
> had success on Debian this way (as root):
>
> # hostname TLM
>
> edit /etc/hostname and set the desired name to TLM if it's not
> already changed
>
> I also edit /etc/hosts and make the first couple of lines look like
> this:
>
> 127.0.0.1 localhost.localdomain.com localhost
> 127.0.1.1 TLM.geneslinuxbox.net TLM
The first line is std here.
Why should it have the 2nd one?
> Then reboot and cross your fingers.
Arthritis at 86 is beginning to make that painful. :(
>
> Blessings,
>
> -Tom
>
> P.S. Keep your powder dry!
Absolutely. I may yet live to see the last box opened.
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
Reply to: