Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #231989 > unrolled thread
| Started by | Gene Heskett <gheskett@shentel.net> |
|---|---|
| First post | 2021-02-23 19:00 +0100 |
| Last post | 2021-02-24 12:30 +0100 |
| Articles | 11 on this page of 31 — 14 participants |
Back to article view | Back to linux.debian.user
Got a machine name problem Gene Heskett <gheskett@shentel.net> - 2021-02-23 19:00 +0100
Re: Got a machine name problem Dan Ritter <dsr@randomstring.org> - 2021-02-23 19:10 +0100
Re: Got a machine name problem Tom Browder <tom.browder@gmail.com> - 2021-02-23 20:30 +0100
Re: Got a machine name problem "James B" <portoteacher80@fastmail.com> - 2021-02-24 01:30 +0100
Re: Got a machine name problem "James B" <portoteacher80@fastmail.com> - 2021-02-24 01:30 +0100
Re: Got a machine name problem Gene Heskett <gheskett@shentel.net> - 2021-02-24 02:30 +0100
Re: Got a machine name problem <tomas@tuxteam.de> - 2021-02-24 09:40 +0100
Re: Got a machine name problem <tomas@tuxteam.de> - 2021-02-24 12:20 +0100
Re: Got a machine name problem Stefan Monnier <monnier@iro.umontreal.ca> - 2021-02-24 16:20 +0100
Re: Got a machine name problem Gene Heskett <gheskett@shentel.net> - 2021-02-24 12:20 +0100
Re: Got a machine name problem Greg Wooledge <greg@wooledge.org> - 2021-02-24 14:50 +0100
Re: Got a machine name problem Tom Browder <tom.browder@gmail.com> - 2021-02-24 15:00 +0100
Re: Got a machine name problem Greg Wooledge <greg@wooledge.org> - 2021-02-24 15:20 +0100
Re: Got a machine name problem Tom Browder <tom.browder@gmail.com> - 2021-02-24 15:30 +0100
Re: Got a machine name problem Gene Heskett <gheskett@shentel.net> - 2021-02-24 18:30 +0100
Re: Got a machine name problem Greg Wooledge <greg@wooledge.org> - 2021-02-24 19:00 +0100
Re: Got a machine name problem IL Ka <kazakevichilya@gmail.com> - 2021-02-24 19:20 +0100
Re: Got a machine name problem Celejar <celejar@gmail.com> - 2021-02-24 19:00 +0100
Re: Got a machine name problem Gene Heskett <gheskett@shentel.net> - 2021-02-24 02:10 +0100
Re: Got a machine name problem David Wright <deblis@lionunicorn.co.uk> - 2021-02-24 02:40 +0100
Re: Got a machine name problem Tom Browder <tom.browder@gmail.com> - 2021-02-24 03:30 +0100
Re: Got a machine name problem Gene Heskett <gheskett@shentel.net> - 2021-02-24 04:30 +0100
Re: Got a machine name problem Stefan Monnier <monnier@iro.umontreal.ca> - 2021-02-24 06:00 +0100
Re: Got a machine name problem Gene Heskett <gheskett@shentel.net> - 2021-02-24 06:10 +0100
OT: Spicy stuff in sensitive areas (was Re: Got a machine name problem) The Wanderer <wanderer@fastmail.fm> - 2021-02-24 12:20 +0100
Re: Got a machine name problem Brian <ad44@cityscape.co.uk> - 2021-02-24 15:20 +0100
Re: Got a machine name problem Brian <ad44@cityscape.co.uk> - 2021-02-24 21:20 +0100
Re: Got a machine name problem David Christensen <dpchrist@holgerdanske.com> - 2021-02-24 03:00 +0100
Re: Got a machine name problem David Wright <deblis@lionunicorn.co.uk> - 2021-02-24 06:00 +0100
Re: Got a machine name problem "Andrew M.A. Cater" <amacater@einval.com> - 2021-02-24 12:20 +0100
Re: Got a machine name problem Gene Heskett <gheskett@shentel.net> - 2021-02-24 12:30 +0100
Page 2 of 2 — ← Prev page 1 [2]
| From | Tom Browder <tom.browder@gmail.com> |
|---|---|
| Date | 2021-02-24 03:30 +0100 |
| Message-ID | <BLS66-si-1@gated-at.bofh.it> |
| In reply to | #232003 |
[Multipart message — attachments visible in raw view] — view raw
On Tue, Feb 23, 2021 at 19:36 David Wright <deblis@lionunicorn.co.uk> wrote: > On Tue 23 Feb 2021 at 20:05:11 (-0500), Gene Heskett wrote: > > On Tuesday 23 February 2021 14:29:01 Tom Browder wrote: ... > > > 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 David, you got me. I put those lines in years ago (on some person's recommendation), while I was still running pre-Debian 4 (probably Redhat in the box days). It works and that's all I can say. Best, -Tom
[toc] | [prev] | [next] | [standalone]
| From | Gene Heskett <gheskett@shentel.net> |
|---|---|
| Date | 2021-02-24 04:30 +0100 |
| Message-ID | <BLT2a-166-3@gated-at.bofh.it> |
| In reply to | #232003 |
On Tuesday 23 February 2021 20:35:54 David Wright wrote: > On Tue 23 Feb 2021 at 20:05:11 (-0500), Gene Heskett wrote: > > On Tuesday 23 February 2021 14:29:01 Tom Browder wrote: > > > On Tue, Feb 23, 2021 at 11:59 AM Gene Heskett 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? > > If some software wants to know the IP address of TLM before the > network is up, there's no point in handing it 192.168.M.N, > so you use a loopback address to itself. > > However, putting TLM on the first line can apparently make > localhost.localdomain into the canonical name of the system, > which is probably not what you want. > > BTW I don't know where your .com came from in the first line. > Not my first line, thats from someone elses reply. Actually, the domain name here is sick bird out on the net, but to linux its just a unique text string. I have known some of the smarter animals we share this planet with, and have witnessed horses that had been to school, and watching one of them work one Sunday morning certainly was an education. He knew what his job was with or without a saddle warmer on board, and he understood his job was easier as a 900 lb quarterhorse without 235 lbs of Bobby in the saddle, so the rest of the morning all Bobby had to do was look at a calf that needed branded and vaccinated (my job was running the black leg sringe) and that horse would go get that calf and run it into Bobby's waiting loop for the takedown. And I've met a sorta tame coyote that was easily the smartest looks like a dog, critter ever. Lady was picky who she was friends with, but she could also do simple math by barking the number of the answer times. So my local domainname is coyote.den. Sometimes its unreal how you remember such details 40+ years later. Lets just say its been quite a ride the last 80 some years. > Cheers, > David. 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>
[toc] | [prev] | [next] | [standalone]
| From | Stefan Monnier <monnier@iro.umontreal.ca> |
|---|---|
| Date | 2021-02-24 06:00 +0100 |
| Message-ID | <BLUrh-1Ou-7@gated-at.bofh.it> |
| In reply to | #232000 |
>> Then reboot and cross your fingers.
> Arthritis at 86 is beginning to make that painful. :(
I don't believe in crossing fingers either FWIW, I pick my nose
instead, and I think it works just as well (but be careful not to do
that right after chopping some habanero),
Stefan
[toc] | [prev] | [next] | [standalone]
| From | Gene Heskett <gheskett@shentel.net> |
|---|---|
| Date | 2021-02-24 06:10 +0100 |
| Message-ID | <BLUAV-27h-1@gated-at.bofh.it> |
| In reply to | #232009 |
On Tuesday 23 February 2021 23:54:03 Stefan Monnier wrote: > >> Then reboot and cross your fingers. > > > > Arthritis at 86 is beginning to make that painful. :( > > I don't believe in crossing fingers either FWIW, I pick my nose > instead, and I think it works just as well (but be careful not to do > that right after chopping some habanero), > > > Stefan And that rather sounds like the voice of experience :( 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>
[toc] | [prev] | [next] | [standalone]
| From | The Wanderer <wanderer@fastmail.fm> |
|---|---|
| Date | 2021-02-24 12:20 +0100 |
| Subject | OT: Spicy stuff in sensitive areas (was Re: Got a machine name problem) |
| Message-ID | <BM0n0-5BF-11@gated-at.bofh.it> |
| In reply to | #232010 |
[Multipart message — attachments visible in raw view] — view raw
On 2021-02-24 at 00:05, Gene Heskett wrote: > On Tuesday 23 February 2021 23:54:03 Stefan Monnier wrote: > >>>> Then reboot and cross your fingers. >>> >>> Arthritis at 86 is beginning to make that painful. :( >> >> I don't believe in crossing fingers either FWIW, I pick my nose >> instead, and I think it works just as well (but be careful not to >> do that right after chopping some habanero), > > And that rather sounds like the voice of experience :( Puts me in mind of an anecdote one of my uncles told me, regarding himself. We're all probably familiar with the little crusty bits that sometimes have to be wiped out of the eyes after waking up in the morning. (From what I can tell, these seem to happen more frequently after increased consumption of sodium or the like.) An uncle of mine once told me that he used to have to do that on a regular basis, but then at some point in his life he put a drop of *hot sauce* into each eye as one does with eyedrops (from what I gather, apparently intentionally) - and although that was astoundingly painful, he's never had those little crusty bits again. I have never dared, nor even seriously had the impulse, to try that experiment for myself. As to whether it has any basis in empirical fact, your guess is as good as mine. -- The Wanderer The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. -- George Bernard Shaw
[toc] | [prev] | [next] | [standalone]
| From | Brian <ad44@cityscape.co.uk> |
|---|---|
| Date | 2021-02-24 15:20 +0100 |
| Message-ID | <BM3bb-7i3-1@gated-at.bofh.it> |
| In reply to | #232000 |
On Tue 23 Feb 2021 at 20:05:11 -0500, Gene Heskett wrote: > On Tuesday 23 February 2021 14:29:01 Tom Browder wrote: > > > 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. It may be your "standard", but it isn't what the installer gave you. Is there a good reason for changing it? > Why should it have the 2nd one? Your machine hasn't any static external IP address. The system hostname has to resolve to something and is assigned 127.0.1.1. -- Brian.
[toc] | [prev] | [next] | [standalone]
| From | Brian <ad44@cityscape.co.uk> |
|---|---|
| Date | 2021-02-24 21:20 +0100 |
| Message-ID | <BM8Nz-2lY-5@gated-at.bofh.it> |
| In reply to | #232028 |
On Wed 24 Feb 2021 at 14:11:35 +0000, Brian wrote: > On Tue 23 Feb 2021 at 20:05:11 -0500, Gene Heskett wrote: > > > On Tuesday 23 February 2021 14:29:01 Tom Browder wrote: [...] > > > 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. > > It may be your "standard", but it isn't what the installer gave you. > Is there a good reason for changing it? No good reason advanced. For those users who read this far: ignore this advice; it is something the OP is programmed to do without putting any thought or investigation into the matter and isn't of any use. Stick with what the installer gives you. -- Brian.
[toc] | [prev] | [next] | [standalone]
| From | David Christensen <dpchrist@holgerdanske.com> |
|---|---|
| Date | 2021-02-24 03:00 +0100 |
| Message-ID | <BLRD4-8vb-3@gated-at.bofh.it> |
| In reply to | #231989 |
On 2021-02-23 09:58, Gene Heskett wrote: > Greetings all; > > I have been working on a lower priority project, replacing some atom > powered machines with i5 powered Dells. Installing buster but something > is overriding my efforts to rename the machine after the install because > I'd like to replace "lathe" with "TLM" for The Little Monster. > > 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 > which I don't have after the last reboot, probably because of the > current volatility of interface names. Changing the hostname on a Debian system is a good way to gain an appreciation for DRY: https://en.wikipedia.org/wiki/Don't_repeat_yourself I see that several readers have already respond with pieces of the following. You might want to check the whole shopping list: https://wiki.debian.org/Hostname If and when you get tired of looking for needles in the haystack, and/or you find them inside binary files that you dare not edit, you may realize that your best bet is to backup, wipe, reinstall with the new hostname, and restore. Or, you could just do that first and forget about searching the haystack. David
[toc] | [prev] | [next] | [standalone]
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Date | 2021-02-24 06:00 +0100 |
| Message-ID | <BLUrg-1Ou-3@gated-at.bofh.it> |
| In reply to | #232004 |
On Tue 23 Feb 2021 at 20:21:41 (-0600), Tom Browder wrote: > On Tue, Feb 23, 2021 at 19:36 David Wright wrote: > > On Tue 23 Feb 2021 at 20:05:11 (-0500), Gene Heskett wrote: > > > On Tuesday 23 February 2021 14:29:01 Tom Browder wrote: > > ... > > > > > 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 > > > David, you got me. I put those lines in years ago (on some person's > recommendation), while I was still running pre-Debian 4 (probably Redhat in > the box days). > > It works and that's all I can say. Sorry, I didn't spot it was part of your quote because of gene in the second line. Using RedHat might explain the localhost.localdomain, but not the addition of .com. AIUI RedHat's addition of localhost.localdomain was the main reason that Debian inserted it, only to remove it again. I think localhost, on its own, has been recommended for years. RFC 1912 dates from 1996. Following the addition, there was a discussion on devel, which I understood to conclude with the sentiments in https://lists.debian.org/debian-devel/2005/10/msg00572.html and its removal. On Tue 23 Feb 2021 at 17:55:40 (-0800), David Christensen wrote: > > Changing the hostname on a Debian system is a good way to gain an > appreciation for DRY: > > https://en.wikipedia.org/wiki/Don't_repeat_yourself > > I see that several readers have already respond with pieces of the > following. You might want to check the whole shopping list: > > https://wiki.debian.org/Hostname > > If and when you get tired of looking for needles in the haystack, > and/or you find them inside binary files that you dare not edit, you > may realize that your best bet is to backup, wipe, reinstall with the > new hostname, and restore. Or, you could just do that first and > forget about searching the haystack. A little OTT, but if that's the case, then all the more reason to read RFC 1178 *before* you name the machine at all, and never change it. Of course, you can always rotate that to 8117 if you're intensely private. Cheers, David.
[toc] | [prev] | [next] | [standalone]
| From | "Andrew M.A. Cater" <amacater@einval.com> |
|---|---|
| Date | 2021-02-24 12:20 +0100 |
| Message-ID | <BM0n0-5BF-13@gated-at.bofh.it> |
| In reply to | #231989 |
On Tue, Feb 23, 2021 at 12:58:33PM -0500, Gene Heskett wrote: > Greetings all; > > I have been working on a lower priority project, replacing some atom > powered machines with i5 powered Dells. Installing buster but something > is overriding my efforts to rename the machine after the install because > I'd like to replace "lathe" with "TLM" for The Little Monster. > > 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 > which I don't have after the last reboot, probably because of the > current volatility of interface names. > hostnamectl should do it - and it will be permanent hostnamectl set-hostname [whatever_you_want_goes_here] All best, Andy C. > Thanks. > > 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> >
[toc] | [prev] | [next] | [standalone]
| From | Gene Heskett <gheskett@shentel.net> |
|---|---|
| Date | 2021-02-24 12:30 +0100 |
| Message-ID | <BM0wG-5EK-3@gated-at.bofh.it> |
| In reply to | #232018 |
On Wednesday 24 February 2021 06:13:16 Andrew M.A. Cater wrote: > On Tue, Feb 23, 2021 at 12:58:33PM -0500, Gene Heskett wrote: > > Greetings all; > > > > I have been working on a lower priority project, replacing some atom > > powered machines with i5 powered Dells. Installing buster but > > something is overriding my efforts to rename the machine after the > > install because I'd like to replace "lathe" with "TLM" for The > > Little Monster. > > > > 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 which I don't have after the last reboot, probably > > because of the current volatility of interface names. > hostnamectl should do it - and it will be permanent > > hostnamectl set-hostname [whatever_you_want_goes_here] > But sudo that doesn't give it a domainname even if you rename it fqdn style, so I put it back. > All best, Thanks Andy C. 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>
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | linux.debian.user
csiph-web