• Arrgh!! systemd strikes again!

    From The Natural Philosopher@3:770/3 to All on Wednesday, October 18, 2023 15:26:27
    Trying to configure headless PI4B.

    No files exist to set up static IP!

    Its all change since the last setup only a month ago

    When will these fuckers stop tinkering and decide for once and for ll
    how things are to be done!

    Help!

    --
    All political activity makes complete sense once the proposition that
    all government is basically a self-legalising protection racket, is
    fully understood.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From John@3:770/3 to The Natural Philosopher on Wednesday, October 18, 2023 15:54:11
    The Natural Philosopher <tnp@invalid.invalid> writes:

    Trying to configure headless PI4B.

    No files exist to set up static IP!

    Its all change since the last setup only a month ago

    When will these fuckers stop tinkering and decide for once and for ll
    how things are to be done!

    Help!

    Uninstall network-manager package.

    Populate /etc/network/interfaces the same way as always.

    Reboot for good measure, to make sure all relics of networkmanager have
    been purged.

    I did this yesterday because networkmanager is written by idiots
    (Redhat) and was constantly making my headless Pi drop off the
    network. It's been fine since then.

    john

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Jean-Pierre Kuypers@3:770/3 to Philosopher on Wednesday, October 18, 2023 18:18:52
    In article (Dans l'article) <ugopuj$3mnhe$1@dont-email.me>, The Natural Philosopher <tnp@invalid.invalid> wrote (écrivait) :

    No files exist to set up static IP!

    Do you see /etc/dhcpcd.conf?

    --
    Jean-Pierre Kuypers

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From scott@alfter.diespammersdie.us@3:770/3 to The Natural Philosopher on Wednesday, October 18, 2023 17:34:07
    The Natural Philosopher <tnp@invalid.invalid> wrote:
    Trying to configure headless PI4B.

    No files exist to set up static IP!

    Its all change since the last setup only a month ago

    When will these fuckers stop tinkering and decide for once and for ll
    how things are to be done!

    You could set up your router to hand out the same IP address for your Pi's
    MAC address. With that, you can just leave DHCP enabled on the host and
    it'll always Just Work, regardless of what happens to the software on the
    host. As a bonus, if you configure a hostname, that should be picked up by
    the router and made available through internal DNS to other hosts, so you
    don't have to fool around with IP addresses at all.

    --
    _/_
    / v \ Scott Alfter (remove the obvious to send mail)
    (IIGS( https://alfter.us/ Top-posting!
    \_^_/ >What's the most annoying thing on Usenet?

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From John@3:770/3 to scott@alfter.diespammersdie.us on Wednesday, October 18, 2023 17:51:41
    scott@alfter.diespammersdie.us writes:

    The Natural Philosopher <tnp@invalid.invalid> wrote:
    Trying to configure headless PI4B.

    No files exist to set up static IP!

    Its all change since the last setup only a month ago

    When will these fuckers stop tinkering and decide for once and for ll
    how things are to be done!

    You could set up your router to hand out the same IP address for your Pi's MAC address. With that, you can just leave DHCP enabled on the host and it'll always Just Work, regardless of what happens to the software on the host. As a bonus, if you configure a hostname, that should be picked up by the router and made available through internal DNS to other hosts, so you don't have to fool around with IP addresses at all.

    As I mentioned in my post, I was having a problem where my Pi was
    getting a DHCP address but then eventually dropping off the network
    regardless. Removing Network Manager and just setting up /etc/network/interfaces to do DHCP instead seems to have solved the
    issue.

    john

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Natural Philosopher@3:770/3 to Jean-Pierre Kuypers on Wednesday, October 18, 2023 19:20:34
    On 18/10/2023 17:18, Jean-Pierre Kuypers wrote:
    In article (Dans l'article) <ugopuj$3mnhe$1@dont-email.me>, The Natural Philosopher <tnp@invalid.invalid> wrote (écrivait) :

    No files exist to set up static IP!

    Do you see /etc/dhcpcd.conf?

    No.
    It no longer exists

    --
    Ideas are more powerful than guns. We would not let our enemies have
    guns, why should we let them have ideas?

    Josef Stalin

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Natural Philosopher@3:770/3 to John on Wednesday, October 18, 2023 19:21:18
    On 18/10/2023 16:54, John wrote:
    The Natural Philosopher <tnp@invalid.invalid> writes:

    Trying to configure headless PI4B.

    No files exist to set up static IP!

    Its all change since the last setup only a month ago

    When will these fuckers stop tinkering and decide for once and for ll
    how things are to be done!

    Help!

    Uninstall network-manager package.

    Populate /etc/network/interfaces the same way as always.

    I did that and it worked

    Reboot for good measure, to make sure all relics of networkmanager have
    been purged.

    I did this yesterday because networkmanager is written by idiots
    (Redhat) and was constantly making my headless Pi drop off the
    network. It's been fine since then.

    john

    --
    Ideas are more powerful than guns. We would not let our enemies have
    guns, why should we let them have ideas?

    Josef Stalin

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Bob Latham@3:770/3 to John on Wednesday, October 18, 2023 20:13:31
    In article <86jzrkrknw.fsf@building-m.net>,
    John <john@building-m.simplistic-anti-spam-measure.net> wrote:
    The Natural Philosopher <tnp@invalid.invalid> writes:

    Trying to configure headless PI4B.

    No files exist to set up static IP!

    Its all change since the last setup only a month ago

    When will these fuckers stop tinkering and decide for once and
    for ll how things are to be done!

    Help!

    Uninstall network-manager package.

    Populate /etc/network/interfaces the same way as always.

    Could put some flesh on the bone please?

    What do you mean by "populate"?
    Is this an install process or just copying files and directories from
    a bullseye build?

    What do you do about the missing '/etc/dhcpcd.conf' which is where
    I've always set statics in the past?

    Thanks.

    Bob.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Ahem A Rivet's Shot@3:770/3 to John on Wednesday, October 18, 2023 19:19:33
    On Wed, 18 Oct 2023 15:54:11 +0000
    John <john@building-m.simplistic-anti-spam-measure.net> wrote:

    Uninstall network-manager package.

    s/ag//gl/

    --
    Steve O'Hara-Smith
    Odds and Ends at http://www.sohara.org/
    Host: Beautiful Theory meet Inconvenient Fact
    Obit: Beautiful Theory died today of factual inconsistency

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Natural Philosopher@3:770/3 to Bob Latham on Wednesday, October 18, 2023 21:06:55
    On 18/10/2023 20:13, Bob Latham wrote:
    In article <86jzrkrknw.fsf@building-m.net>,
    John <john@building-m.simplistic-anti-spam-measure.net> wrote:
    The Natural Philosopher <tnp@invalid.invalid> writes:

    Trying to configure headless PI4B.

    No files exist to set up static IP!

    Its all change since the last setup only a month ago

    When will these fuckers stop tinkering and decide for once and
    for ll how things are to be done!

    Help!

    Uninstall network-manager package.

    Populate /etc/network/interfaces the same way as always.

    Could put some flesh on the bone please?

    What do you mean by "populate"?
    Is this an install process or just copying files and directories from
    a bullseye build?

    What do you do about the missing '/etc/dhcpcd.conf' which is where
    I've always set statics in the past?

    Bob. What eventually worked for me was to
    1. Ignore missing '/etc/dhcpcd.conf'
    2. CREATE /etc/network/interfaces

    But on boot it seems to vanish, but I have a static address

    Ah. something has created this
    /etc/network/interfaces.d/eth0

    allow-hotplug eth0
    iface eth0 inet static
    address 192.168.0.101
    network 192.168.0.0
    netmask 255.255.255.0
    gateway 192.168.0.254

    That is what is doing it


    Thanks.

    Bob.


    --
    For every complex problem there is an answer that is clear, simple, and
    wrong.

    H.L.Mencken

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Jean-Pierre Kuypers@3:770/3 to Philosopher on Thursday, October 19, 2023 10:59:09
    In article (Dans l'article) <ugp7li$3pssb$1@dont-email.me>, The Natural Philosopher <tnp@invalid.invalid> wrote (écrivait) :

    On 18/10/2023 17:18, Jean-Pierre Kuypers wrote:
    In article (Dans l'article) <ugopuj$3mnhe$1@dont-email.me>, The Natural Philosopher <tnp@invalid.invalid> wrote (écrivait) :

    No files exist to set up static IP!

    Do you see /etc/dhcpcd.conf?

    No.
    It no longer exists

    Hmm! it seems that the method varies depending on the Debian version on
    which the Pi OS version is based: 12 (bookworm), 11 (bullseye), etc.

    --
    Jean-Pierre Kuypers

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Bob Latham@3:770/3 to Bob Latham on Thursday, October 19, 2023 10:59:26
    In article <5af5b94fa0bob@sick-of-spam.invalid>,
    Bob Latham <bob@sick-of-spam.invalid> wrote:
    In article <ugpdsv$3r2oj$2@dont-email.me>,
    The Natural Philosopher <tnp@invalid.invalid> wrote:

    [Snip]

    Bob. What eventually worked for me was to
    1. Ignore missing '/etc/dhcpcd.conf'

    I understand that. :-)

    2. CREATE /etc/network/interfaces

    I don't understand that!
    That *file* already exists in bookworm and it's exactly the same as
    in bullseye ???

    But on boot it seems to vanish, but I have a static address

    Ah. something has created this
    /etc/network/interfaces.d/eth0

    allow-hotplug eth0
    iface eth0 inet static
    address 192.168.0.101
    network 192.168.0.0
    netmask 255.255.255.0
    gateway 192.168.0.254

    I've done some googling and been successful for once !!!

    https://www.abelectronics.co.uk/kb/article/31/set-a-static-ip-address-on-raspberry-pi-os-bookworm

    It says create a file /etc/network/interfaces.d/eth0 put all the data
    above in there yourself. I did that and only that. It worked.

    I don't know how yours created the file for you.

    Bob.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Natural Philosopher@3:770/3 to Jean-Pierre Kuypers on Thursday, October 19, 2023 11:15:59
    On 19/10/2023 09:59, Jean-Pierre Kuypers wrote:
    In article (Dans l'article) <ugp7li$3pssb$1@dont-email.me>, The Natural Philosopher <tnp@invalid.invalid> wrote (écrivait) :

    On 18/10/2023 17:18, Jean-Pierre Kuypers wrote:
    In article (Dans l'article) <ugopuj$3mnhe$1@dont-email.me>, The Natural
    Philosopher <tnp@invalid.invalid> wrote (écrivait) :

    No files exist to set up static IP!

    Do you see /etc/dhcpcd.conf?

    No.
    It no longer exists

    Hmm! it seems that the method varies depending on the Debian version on
    which the Pi OS version is based: 12 (bookworm), 11 (bullseye), etc.

    Well the discussion was about the 'latest and greatest' - i.e. Bookworm.
    I am sorry if I didnt make that clear.

    Its a pain in the rectum: at one fell swoop, new versions obsolete *all*
    the online documentation.


    PS Bookworm is a lousy name for a version. Why couldn't they have called
    it 'Desdemona'
    .
    --
    It is the folly of too many to mistake the echo of a London coffee-house
    for the voice of the kingdom.

    Jonathan Swift

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Bob Latham@3:770/3 to The Natural Philosopher on Thursday, October 19, 2023 10:23:12
    In article <ugpdsv$3r2oj$2@dont-email.me>,
    The Natural Philosopher <tnp@invalid.invalid> wrote:
    On 18/10/2023 20:13, Bob Latham wrote:
    In article <86jzrkrknw.fsf@building-m.net>,
    John <john@building-m.simplistic-anti-spam-measure.net> wrote:


    Uninstall network-manager package.

    Populate /etc/network/interfaces the same way as always.

    Could put some flesh on the bone please?

    What do you mean by "populate"? Is this an install process or
    just copying files and directories from a bullseye build?

    What do you do about the missing '/etc/dhcpcd.conf' which is
    where I've always set statics in the past?

    Bob. What eventually worked for me was to
    1. Ignore missing '/etc/dhcpcd.conf'

    I understand that. :-)

    2. CREATE /etc/network/interfaces

    I don't understand that!
    That *file* already exists in bookworm and it's exactly the same as
    in bullseye ???

    But on boot it seems to vanish, but I have a static address

    Ah. something has created this
    /etc/network/interfaces.d/eth0

    allow-hotplug eth0
    iface eth0 inet static
    address 192.168.0.101
    network 192.168.0.0
    netmask 255.255.255.0
    gateway 192.168.0.254

    There must be more to it than that, there has to be. Where did your
    pi learn what static address you wanted to put in the that file???

    I suspect I'm not understanding (in this context) words like
    'populate' and 'create'. I cannot create something that already
    exists.

    Sorry to be so thick.

    Bob.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Natural Philosopher@3:770/3 to Bob Latham on Thursday, October 19, 2023 11:30:54
    On 19/10/2023 10:23, Bob Latham wrote:
    In article <ugpdsv$3r2oj$2@dont-email.me>,
    The Natural Philosopher <tnp@invalid.invalid> wrote:
    On 18/10/2023 20:13, Bob Latham wrote:
    In article <86jzrkrknw.fsf@building-m.net>,
    John <john@building-m.simplistic-anti-spam-measure.net> wrote:


    Uninstall network-manager package.

    Populate /etc/network/interfaces the same way as always.

    Could put some flesh on the bone please?

    What do you mean by "populate"? Is this an install process or
    just copying files and directories from a bullseye build?

    What do you do about the missing '/etc/dhcpcd.conf' which is
    where I've always set statics in the past?

    Bob. What eventually worked for me was to
    1. Ignore missing '/etc/dhcpcd.conf'

    I understand that. :-)

    2. CREATE /etc/network/interfaces

    I don't understand that!
    That *file* already exists in bookworm and it's exactly the same as
    in bullseye ???

    It didn't exist in my installation.

    Did you use a GUI tool - i.e. Network manager - to set up networking?
    It is possible that that would have created it.
    I am running with no monitor and keyboard at all.




    But on boot it seems to vanish, but I have a static address

    Ah. something has created this
    /etc/network/interfaces.d/eth0

    allow-hotplug eth0
    iface eth0 inet static
    address 192.168.0.101
    network 192.168.0.0
    netmask 255.255.255.0
    gateway 192.168.0.254

    There must be more to it than that, there has to be. Where did your
    pi learn what static address you wanted to put in the that file???

    I suspect I'm not understanding (in this context) words like
    'populate' and 'create'. I cannot create something that already
    exists.

    No, but if it does not...

    e.g, my current setup is this

    /etc/network $ ls -la
    total 36
    drwxr-xr-x 7 root root 4096 Oct 10 04:41 .
    drwxr-xr-x 92 root root 4096 Oct 18 22:17 ..
    drwxr-xr-x 2 root root 4096 Oct 10 04:41 if-down.d
    drwxr-xr-x 2 root root 4096 Oct 10 04:41 if-post-down.d
    drwxr-xr-x 2 root root 4096 Oct 10 04:41 if-pre-up.d
    drwxr-xr-x 2 root root 4096 Oct 10 04:41 if-up.d
    -rw-r--r-- 1 root root 134 Oct 10 04:37 interfaces
    drwxr-xr-x 2 root root 4096 Oct 18 15:30 interfaces.d
    -rw-r--r-- 1 root root 271 Oct 10 04:41 interfaces.new

    So there is now an interfaces, but there *wasn't*.
    But what's inside it is...

    /etc/network $ more interfaces

    # interfaces(5) file used by ifup(8) and ifdown(8)
    # Include files from /etc/network/interfaces.d:
    source /etc/network/interfaces.d/*

    So it actually just says 'look elsewhere'

    and in ..interfaces.d there now exists a file called eth0 which I
    certainly never created

    /etc/network $ ls -la interfaces.d
    total 12
    drwxr-xr-x 2 root root 4096 Oct 18 15:30 .
    drwxr-xr-x 7 root root 4096 Oct 10 04:41 ..
    -rw-r--r-- 1 root root 128 Oct 18 15:30 eth0

    And in THAT file is what I had originally put in
    /etc/network/interfaces...i.e.

    $ more interfaces.d/eth0

    allow-hotplug eth0
    iface eth0 inet static
    address 192.168.0.101
    network 192.168.0.0
    netmask 255.255.255.0
    gateway 192.168.0.254


    SO the 'bookworm way' seems to be that until and unless you fiddle with networks via network manager, and its GUI, there is no interfaces or
    eth0 file (or it's set up for DHCP) and if you edit it, at some point on
    boot, the OS reads that file, decides that its inappropriate for adults,
    pops it in interfaces.d/eth0 and then rewrites interfaces to point to it.



    Sorry to be so thick.

    Not thick. Once again the Poetterings of this world have stuck their
    sticky fingers in 'how things work' to create more work for everybody

    ...'twas on a Monday morning that the Programmer came to call...

    (For Left Pondians try this link:
    https://www.youtube.com/watch?v=v1dvAxA9ib0 )

    Bob.


    --
    Climate is what you expect but weather is what you get.
    Mark Twain

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Natural Philosopher@3:770/3 to Bob Latham on Thursday, October 19, 2023 12:23:25
    On 19/10/2023 10:59, Bob Latham wrote:
    In article <5af5b94fa0bob@sick-of-spam.invalid>,
    Bob Latham <bob@sick-of-spam.invalid> wrote:
    In article <ugpdsv$3r2oj$2@dont-email.me>,
    The Natural Philosopher <tnp@invalid.invalid> wrote:

    [Snip]

    Bob. What eventually worked for me was to
    1. Ignore missing '/etc/dhcpcd.conf'

    I understand that. :-)

    2. CREATE /etc/network/interfaces

    I don't understand that!
    That *file* already exists in bookworm and it's exactly the same as
    in bullseye ???

    But on boot it seems to vanish, but I have a static address

    Ah. something has created this
    /etc/network/interfaces.d/eth0

    allow-hotplug eth0
    iface eth0 inet static
    address 192.168.0.101
    network 192.168.0.0
    netmask 255.255.255.0
    gateway 192.168.0.254

    I've done some googling and been successful for once !!!

    https://www.abelectronics.co.uk/kb/article/31/set-a-static-ip-address-on-raspberry-pi-os-bookworm

    It says create a file /etc/network/interfaces.d/eth0 put all the data
    above in there yourself. I did that and only that. It worked.

    I don't know how yours created the file for you.

    Nor the **** do i


    Bob.


    --
    “The fundamental cause of the trouble in the modern world today is that
    the stupid are cocksure while the intelligent are full of doubt."

    - Bertrand Russell

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Bob Latham@3:770/3 to The Natural Philosopher on Thursday, October 19, 2023 14:04:51
    In article <ugr0gv$9qj1$1@dont-email.me>,
    The Natural Philosopher <tnp@invalid.invalid> wrote:
    On 19/10/2023 10:23, Bob Latham wrote:

    Bob. What eventually worked for me was to
    1. Ignore missing '/etc/dhcpcd.conf'

    I understand that. :-)

    2. CREATE /etc/network/interfaces

    I don't understand that!

    That *file* already exists in bookworm and it's exactly the same
    as in bullseye ???

    It didn't exist in my installation.

    I think something deleted your file.

    I've just used a downloaded image of "lite" no gui at all.
    unpacked it and burnt it.

    Then added SSH empty file and then added userconf.txt.

    Transferred the sd card to the pi and booted.

    SSH and logged in.

    Then

    pi@raspberrypi:~ $ cd /etc/network
    pi@raspberrypi:/etc/network $ ls -l
    total 28
    drwxr-xr-x 2 root root 4096 Oct 10 01:10 if-down.d
    drwxr-xr-x 2 root root 4096 Oct 10 01:10 if-post-down.d
    drwxr-xr-x 2 root root 4096 Oct 10 01:10 if-pre-up.d
    drwxr-xr-x 2 root root 4096 Oct 10 01:10 if-up.d
    -rw-r--r-- 1 root root 134 Oct 10 01:04 interfaces
    drwxr-xr-x 2 root root 4096 Jan 24 2023 interfaces.d
    -rw-r--r-- 1 root root 271 Oct 10 01:10 interfaces.new pi@raspberrypi:/etc/network $

    It existed for me from scratch.


    Did you use a GUI tool - i.e. Network manager - to set up
    networking?

    I did not.

    It is possible that that would have created it.
    I am running with no monitor and keyboard at all.

    So am I.

    Cheers,

    Bob.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Jean-Pierre Kuypers@3:770/3 to Philosopher on Thursday, October 19, 2023 15:29:22
    In article (Dans l'article) <ugqvkv$9h41$2@dont-email.me>, The Natural Philosopher <tnp@invalid.invalid> wrote (écrivait) :

    Well the discussion was about the 'latest and greatest' - i.e. Bookworm.
    I am sorry if I didnt make that clear.

    No problem.

    It's interesting to see the differences with Bullseye.
    This will definitely help me during my upgrade.

    For my part I still use Bullseye:

    $ cat /etc/debian_version
    11.7

    There is nothing in the "interfaces" file:

    $ cat /etc/network/interfaces
    # interfaces(5) file used by ifup(8) and ifdown(8)
    # Include files from /etc/network/interfaces.d:
    source /etc/network/interfaces.d/*

    But this directory is empty:

    $ ls -al /etc/network/interfaces.d/
    total 8
    drwxr-xr-x 2 root root 4096 4 nov 2020 .
    drwxr-xr-x 7 root root 4096 3 mai 02:09 ..

    --
    Jean-Pierre Kuypers

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Natural Philosopher@3:770/3 to Jean-Pierre Kuypers on Thursday, October 19, 2023 16:18:08
    On 19/10/2023 14:29, Jean-Pierre Kuypers wrote:
    In article (Dans l'article) <ugqvkv$9h41$2@dont-email.me>, The Natural Philosopher <tnp@invalid.invalid> wrote (écrivait) :

    Well the discussion was about the 'latest and greatest' - i.e. Bookworm.
    I am sorry if I didnt make that clear.

    No problem.

    It's interesting to see the differences with Bullseye.
    This will definitely help me during my upgrade.

    For my part I still use Bullseye:

    $ cat /etc/debian_version
    11.7

    There is nothing in the "interfaces" file:

    $ cat /etc/network/interfaces
    # interfaces(5) file used by ifup(8) and ifdown(8)
    # Include files from /etc/network/interfaces.d:
    source /etc/network/interfaces.d/*

    But this directory is empty:

    $ ls -al /etc/network/interfaces.d/
    total 8
    drwxr-xr-x 2 root root 4096 4 nov 2020 .
    drwxr-xr-x 7 root root 4096 3 mai 02:09 ..


    Perhaps I misremembered and created *eth0* in *there* myself. .

    I was busy trying to get it working and just plagiarised some online instructions, and it 'just worked'.

    Linux to me is not an end in itself. Its a system building block, and I
    am not THAT interested in its internals. ;-)

    I really ought not to have been playing with a Pi4 at all, as I have
    many other projects on the go, but a shiny new piece of hardware was
    somewhat irresistible...

    --
    “It is dangerous to be right in matters on which the established
    authorities are wrong.”

    ― Voltaire, The Age of Louis XIV

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From mm0fmf@3:770/3 to The Natural Philosopher on Thursday, October 19, 2023 19:23:02
    On 18/10/2023 19:21, The Natural Philosopher wrote:
    On 18/10/2023 16:54, John wrote:
    The Natural Philosopher <tnp@invalid.invalid> writes:

    Trying to configure headless PI4B.

    No files exist to set up static IP!

    Its all change since the last setup only a month ago

    When will these fuckers stop tinkering and decide for once and for ll
    how things are to be done!

    Help!

    Uninstall network-manager package.

    Populate /etc/network/interfaces the same way as always.

    I did that and it worked

    Reboot for good measure, to make sure all relics of networkmanager have
    been purged.

    I did this yesterday because networkmanager is written by idiots
    (Redhat) and was constantly making my headless Pi drop off the
    network. It's been fine since then.

    john


    I'm reading this now and something today borked and blew up an
    update/upgrade cycle.

    I have a PiZeroW that runs headless and auto connects to the Wifi here.
    It was running Raspbian/Debian 11 and I updated it in-situ following the
    how to upgrade Debian 11 to 12 and whilst slow, everything just worked.
    I've done update/upgrades before but today there was one for
    network-manager (aka network-mangler).

    I saw some symlink of files used by network-manager on the terminal and
    then there was no more Wifi networking. I left the Pi running for 30mins
    to make sure the upgrade had finished and rebooted. No Wifi :-(

    At this point I pulled out the boot problem solver: an old Pi A+ with an
    RS-232 cable attached and a USB to Ethernet dongle. The SDcard from
    PiZeroW went into the A+ and it booted fine on the console and
    networking was fine on the Ethernet dongle. Looking there was no /etc/network/interfaces.d/wlan0 file. Whatever was specifying wlan0
    before as the PiZeroW had been running bookworm since August 29th was
    gubbed. A quick Google and the right contents placed into the missing
    file, the permission etc. checked and A+ rebooted and checked to be
    still booting. SDcard back into the PiZeroW and once booted, Wifi was
    working again.

    Absolute pain in the arse that took about 45mins to resolve.

    I would suggest that having an RS-232 console connection and USB to
    Ethernet dongle does make solving a lot of the PiZeroW issues much
    easier. My RS-232 cable is soldered to the A+ I can't be bothered moving
    it to the PiZeroW hence the use of the A+. I use dhcp to get the IP
    address but have the router always provide the same IP address based on
    the MAC of the PiZeroW.

    Grr.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Computer Nerd Kev@3:770/3 to none@invalid.com on Friday, October 20, 2023 06:51:37
    mm0fmf <none@invalid.com> wrote:
    I would suggest that having an RS-232 console connection and USB to
    Ethernet dongle does make solving a lot of the PiZeroW issues much
    easier. My RS-232 cable is soldered to the A+ I can't be bothered moving
    it to the PiZeroW hence the use of the A+. I use dhcp to get the IP
    address but have the router always provide the same IP address based on
    the MAC of the PiZeroW.

    The serial terminal is easily stuffed up in boot configuration, or
    by running code that uses the GPIO and doesn't account for serial
    when setting the peripheral configuration registers. There may also
    be different steps to enable it in other Linux distros (I still
    haven't figured out how to make it work in PiCore, but at least
    that distro doesn't insist on Network Manager, Systemd, or any of
    that similar junk).

    My fall-back is always the HDMI/Composite desktop and a USB
    wireless keyboard/mouse. It seems to be really hard to break that
    accidentally, and any Linux distro should be set up to give you a
    terminal there by default.

    --
    __ __
    #_ < |\| |< _# | Note: I won't see posts made from Google Groups |

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Andy Burns@3:770/3 to The Natural Philosopher on Saturday, October 21, 2023 12:57:23
    The Natural Philosopher wrote:

    Bookworm is a lousy name for a version. Why couldn't they have called it 'Desdemona'

    Because Disney didn't exist in ℂ17 ?

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Natural Philosopher@3:770/3 to Andy Burns on Sunday, October 22, 2023 09:40:43
    On 21/10/2023 12:57, Andy Burns wrote:
    The Natural Philosopher wrote:

    Bookworm is a lousy name for a version. Why couldn't they have called
    it 'Desdemona'

    Because Disney didn't exist in ℂ17 ?


    ?Huh?

    --
    "Women actually are capable of being far more than the feminists will
    let them."

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Andy Burns@3:770/3 to The Natural Philosopher on Sunday, October 22, 2023 10:54:04
    The Natural Philosopher wrote:

    Andy Burns wrote:

    The Natural Philosopher wrote:

    Bookworm is a lousy name for a version. Why couldn't they have called
    it 'Desdemona'

    Because Disney didn't exist in ℂ17 ?

    ?Huh?

    Debian release names are characters from the Toy Story films, not from Shakespeare plays ...

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Natural Philosopher@3:770/3 to Andy Burns on Sunday, October 22, 2023 11:52:21
    On 22/10/2023 10:54, Andy Burns wrote:
    The Natural Philosopher wrote:

    Andy Burns wrote:

    The Natural Philosopher wrote:

    Bookworm is a lousy name for a version. Why couldn't they have
    called it 'Desdemona'

    Because Disney didn't exist in ℂ17 ?

    ?Huh?

    Debian release names are characters from the Toy Story films, not from Shakespeare plays ...


    One of the better reasons for avoiding Debian

    "Desdemona, a feminine name of Greek origin that means "ill-fated" or "unlucky." "

    Not necessarily to do with Shakespeare...

    --
    “Those who can make you believe absurdities, can make you commit atrocities.”

    ― Voltaire, Questions sur les Miracles à M. Claparede, Professeur de Théologie à Genève, par un Proposant: Ou Extrait de Diverses Lettres de
    M. de Voltaire

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Ahem A Rivet's Shot@3:770/3 to Andy Burns on Sunday, October 22, 2023 12:19:29
    On Sun, 22 Oct 2023 10:54:04 +0100
    Andy Burns <usenet@andyburns.uk> wrote:

    Debian release names are characters from the Toy Story films, not from Shakespeare plays ...

    Reminds me of a PPOE (I wonder if anyone will recognise it) where
    the machine names were all gemstones. It must have been easy at first,
    diamond, ruby, emerald ... by the time I turned up for a contract they were down to Gabbro for my workstation and the network admin's bookshelf
    contained a thick reference book listing precious and semi-precious stones.

    That place convinced me that themed naming schemes were a bad idea, functional and serial number based naming schemes may be boring but they
    don't run out of steam and they're never confusing.

    --
    Steve O'Hara-Smith
    Odds and Ends at http://www.sohara.org/
    Host: Beautiful Theory meet Inconvenient Fact
    Obit: Beautiful Theory died today of factual inconsistency

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Natural Philosopher@3:770/3 to Ahem A Rivet's Shot on Sunday, October 22, 2023 12:44:49
    On 22/10/2023 12:19, Ahem A Rivet's Shot wrote:
    On Sun, 22 Oct 2023 10:54:04 +0100
    Andy Burns <usenet@andyburns.uk> wrote:

    Debian release names are characters from the Toy Story films, not from
    Shakespeare plays ...

    Reminds me of a PPOE (I wonder if anyone will recognise it) where
    the machine names were all gemstones. It must have been easy at first, diamond, ruby, emerald ... by the time I turned up for a contract they were down to Gabbro for my workstation and the network admin's bookshelf
    contained a thick reference book listing precious and semi-precious stones.


    That admin might have (originally) been me. I remember 'mud' being used.

    That place convinced me that themed naming schemes were a bad idea, functional and serial number based naming schemes may be boring but they don't run out of steam and they're never confusing.


    A later department started an array of Sparcs with 'Ariel' being the
    first one...shakespeare themed

    however that sysadmin went on holiday so when the next three
    workstations arrived they were promptly named 'Surf' 'Bold' and 'Tide' -
    these being, with Ariel, UK soap powders from the 1960s and 70s

    --
    Religion is regarded by the common people as true, by the wise as
    foolish, and by the rulers as useful.

    (Seneca the Younger, 65 AD)

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Ahem A Rivet's Shot@3:770/3 to The Natural Philosopher on Sunday, October 22, 2023 13:28:17
    On Sun, 22 Oct 2023 12:44:49 +0100
    The Natural Philosopher <tnp@invalid.invalid> wrote:

    That admin might have (originally) been me. I remember 'mud' being used.

    BT early 90s ?

    --
    Steve O'Hara-Smith
    Odds and Ends at http://www.sohara.org/
    Host: Beautiful Theory meet Inconvenient Fact
    Obit: Beautiful Theory died today of factual inconsistency

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Natural Philosopher@3:770/3 to Ahem A Rivet's Shot on Sunday, October 22, 2023 14:29:28
    On 22/10/2023 13:28, Ahem A Rivet's Shot wrote:
    On Sun, 22 Oct 2023 12:44:49 +0100
    The Natural Philosopher <tnp@invalid.invalid> wrote:

    That admin might have (originally) been me. I remember 'mud' being used.

    BT early 90s ?

    No.

    --
    "It is an established fact to 97% confidence limits that left wing
    conspirators see right wing conspiracies everywhere"

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)