Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #260887
| From | gene heskett <gheskett@shentel.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: setting up network with a hosts file, but your way |
| Date | 2023-08-12 22:50 +0200 |
| Message-ID | <H23IB-1nM5-7@gated-at.bofh.it> (permalink) |
| References | <H21Qu-1mFk-3@gated-at.bofh.it> <H22tb-1n78-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 8/12/23 15:27, Greg Wooledge wrote: > On Sat, Aug 12, 2023 at 02:49:25PM -0400, gene heskett wrote: >> I am bringing up a new bananapi-m5, an arm64 device. You don't like my way, >> and have made that boringly plain. > > Gene. Please stop saying things like this. The use of traditional static > addressing without DNS is a common and well-supported configuration. > > People do it ALL THE TIME. It's extremely simple. > >> Already edited the /etc/hostname > > Good. This is where your hostname goes. Your hostname can either be > "short" (no dots), or "long" (with dots). > >> and /etc/hosts files. > > Also good. Your hostname should resolve either to your static IP > address, or to 127.0.1.1. Either way is fine. > >> ipv6: >> There is no ipv6 service within 100 miles, so I should set a /proc command >> to kill ipv6, so whats the official syntax? for that. > > Do nothing. Do not touch anything with "ipv6" in its name at all. > >> ipv4: > > Step one: determine the NAME of your ethernet interface. > > Step two: edit /etc/network/interfaces to bring up this interface with > your desired IP address, netmask, and gateway. If there's a running > DHCP client daemon (because the installer set it up for DHCP instead > of static addressing), you may need to kill that daemon. Or, if you're > especially clever, you can bring the interface DOWN, BEFORE editing > the file, which will kill the daemon cleanly. Most people forget this > step, so they just end up killing the daemon later, with "kill" or > by rebooting. > > Step three: edit /etc/resolv.conf to set up DNS resolution for outside > hosts, if you intend to use the Internet. > > Here's a sample /etc/network/interfaces file: > > ==================================================== > source /etc/network/interfaces.d/* > > auto lo > iface lo inet loopback > > auto enp2s0 > iface enp2s0 inet static > address 10.0.0.7/24 > gateway 10.0.0.1 > ==================================================== > > Here's a sample /etc/resolv.conf file: > > ==================================================== > search coyote.den > nameserver 1.1.1.1 > ==================================================== > > Of course, if you're running a local recursive DNS nameserver, you would > put "nameserver 127.0.0.1". Or you might use your ISP's nameserver, or > a recursive nameserver elsewhere on your network. Use whatever's correct > for your setup. > > Finally, here's a sample /etc/hosts file: > > ==================================================== > 127.0.0.1 localhost > ::1 localhost ip6-localhost ip6-loopback > ff02::1 ip6-allnodes > ff02::2 ip6-allrouters > > 10.0.0.7 banana1.coyote.den banana1 > 10.0.0.8 printer.coyote.den printer > 10.0.0.19 raspberry1.coyote.den raspberry1 > ==================================================== > > Make sure the output of "hostname", which should match the contents of > your /etc/hostname file, matches one of the lines in this file. > > And that's the entire thing! Do not touch anything else. > Nvr mind, strange mini keyboard, fixed typu, works. Update of 92 pkgs in progress. need to shrink text screen about 1 row of chars. can't see bottom of text screen on cheap tv w/computer input.. Not worth fixing if the gui works. That is not the monitor it will be using when operational, a week or so hence. I am building a 3d printer from scratch, using an Ender 5 plus frame. Next is a gui, gnome will work, klipper doesn't care, haven't tried startx yet.. So sw is about 25% done. Now, other than killing ipv6 this is exactly what I'm been doing that I've been berated for. The only diff I've seen so far is that now I don't see the "#created by network mangler" in this /etc/resolv.conf. So we'll see if it survives a reboot. If resolv.conf does not survive a reboot, the magic chattr +i gets pulled out and used again. Thanks Greg. > . 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, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/>
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
setting up network with a hosts file, but your way gene heskett <gheskett@shentel.net> - 2023-08-12 20:50 +0200
Re: setting up network with a hosts file, but your way Greg Wooledge <greg@wooledge.org> - 2023-08-12 21:30 +0200
Re: setting up network with a hosts file, but your way gene heskett <gheskett@shentel.net> - 2023-08-12 22:10 +0200
Re: setting up network with a hosts file, but your way Greg Wooledge <greg@wooledge.org> - 2023-08-12 23:40 +0200
Was: setting up network q, now no x gene heskett <gheskett@shentel.net> - 2023-08-13 00:40 +0200
Re: Was: setting up network q, now no x Greg Wooledge <greg@wooledge.org> - 2023-08-13 01:10 +0200
Re: Was: setting up network q, now no x gene heskett <gheskett@shentel.net> - 2023-08-13 13:30 +0200
Kiauh - setting up an ARM based single board computer for 3d printing "Andrew M.A. Cater" <amacater@einval.com> - 2023-08-13 17:10 +0200
Re: Kiauh - setting up an ARM based single board computer for 3d printing gene heskett <gheskett@shentel.net> - 2023-08-13 20:30 +0200
Re: setting up network with a hosts file, but your way gene heskett <gheskett@shentel.net> - 2023-08-12 22:50 +0200
Re: setting up network with a hosts file, but your way zithro <slack@rabbit.lu> - 2023-08-14 18:10 +0200
Re: setting up network with a hosts file, but your way gene heskett <gheskett@shentel.net> - 2023-08-14 21:40 +0200
Re: setting up network with a hosts file, but your way Brian <ad44@cityscape.co.uk> - 2023-08-14 22:10 +0200
csiph-web