• Re: How to get rid of annoying "Wi-Fi is currently blocked by rfkill" m

    From A. Dumas@3:770/3 to Chris Green on Sat Sep 19 15:09:25 2020
    Chris Green <cl@isbd.net> wrote:
    I have a fairly new Pi 4 which I'm setting up headless to use as a
    NAS. I have done 'touch .hushlogin' to get rid of most of the
    messages which appear at login but I still get:-

    Wi-Fi is currently blocked by rfkill.
    Use raspi-config to set the country before use.

    How do I get rid of this? I don't want WiFi enabled, I just want
    peace and quiet when I log in. :-)

    I don't know rfkill but my suggestion would be to not use that, instead put "dtoverlay=disable-wifi" in /boot/config.txt which actually disables the
    chip, so it also saves energy (except that bluetooth on the same chip would still be on, so disable that too: "dtoverlay=disable-bt"). I have never
    seen your login message.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Chris Green@3:770/3 to A. Dumas on Sun Sep 20 10:07:16 2020
    A. Dumas <alexandre@dumas.fr.invalid> wrote:
    Chris Green <cl@isbd.net> wrote:
    I have a fairly new Pi 4 which I'm setting up headless to use as a
    NAS. I have done 'touch .hushlogin' to get rid of most of the
    messages which appear at login but I still get:-

    Wi-Fi is currently blocked by rfkill.
    Use raspi-config to set the country before use.

    How do I get rid of this? I don't want WiFi enabled, I just want
    peace and quiet when I log in. :-)

    I don't know rfkill but my suggestion would be to not use that, instead put "dtoverlay=disable-wifi" in /boot/config.txt which actually disables the chip, so it also saves energy (except that bluetooth on the same chip would still be on, so disable that too: "dtoverlay=disable-bt"). I have never
    seen your login message.

    Yes, that seems to have sorted it, thank you.

    --
    Chris Green
    ·

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From =?UTF-8?Q?Bj=c3=b6rn_Lundin?=@3:770/3 to All on Mon Sep 21 12:09:18 2020
    Den 2020-09-19 kl. 17:09, skrev A. Dumas:
    Chris Green <cl@isbd.net> wrote:
    I have a fairly new Pi 4 which I'm setting up headless to use as a
    NAS. I have done 'touch .hushlogin' to get rid of most of the
    messages which appear at login but I still get:-

    Wi-Fi is currently blocked by rfkill.
    Use raspi-config to set the country before use.

    How do I get rid of this? I don't want WiFi enabled, I just want
    peace and quiet when I log in. :-)

    I don't know rfkill but my suggestion would be to not use that, instead put "dtoverlay=disable-wifi" in /boot/config.txt which actually disables the chip, so it also saves energy (except that bluetooth on the same chip would still be on, so disable that too: "dtoverlay=disable-bt"). I have never
    seen your login message.





    I get

    Wi-Fi is disabled because the country is not set.
    Use raspi-config to set the country before use.

    upon login on my pi3

    and I do have
    dtoverlay=pi3-disable-bt
    dtoverlay=pi3-disable-wifi
    dtoverlay=disable-wifi
    dtoverlay=disable-bt

    in my /boot/config.txt

    Do you also know how to get rid of the slightly different message?



    --
    Björn

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Tauno Voipio@3:770/3 to All on Mon Sep 21 13:20:20 2020
    On 21.9.20 13.09, Björn Lundin wrote:
    Den 2020-09-19 kl. 17:09, skrev A. Dumas:
    Chris Green <cl@isbd.net> wrote:
    I have a fairly new Pi 4 which I'm setting up headless to use as a
    NAS.  I have done 'touch .hushlogin' to get rid of most of the
    messages which appear at login but I still get:-

         Wi-Fi is currently blocked by rfkill.
         Use raspi-config to set the country before use.

    How do I get rid of this?  I don't want WiFi enabled, I just want
    peace and quiet when I log in.  :-)

    I don't know rfkill but my suggestion would be to not use that,
    instead put
    "dtoverlay=disable-wifi" in /boot/config.txt which actually disables the
    chip, so it also saves energy (except that bluetooth on the same chip
    would
    still be on, so disable that too: "dtoverlay=disable-bt"). I have never
    seen your login message.





    I get

    Wi-Fi is disabled because the country is not set.
    Use raspi-config to set the country before use.

    upon login on my pi3

    and I do have
    dtoverlay=pi3-disable-bt
    dtoverlay=pi3-disable-wifi
    dtoverlay=disable-wifi
    dtoverlay=disable-bt

    in my /boot/config.txt

    Do you also know how to get rid of the slightly different message?



    Just do what is requested: sudo raspi-config; and set country (se?).

    --

    -TV

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From =?UTF-8?Q?Bj=c3=b6rn_Lundin?=@3:770/3 to All on Mon Sep 21 16:32:59 2020
    Den 2020-09-21 kl. 12:20, skrev Tauno Voipio:

    Do you also know how to get rid of the slightly different message?

    Just do what is requested: sudo raspi-config; and set country (se?).

    Ah, I thought it would go away just by disabling the wifi.
    However I get this in raspi-config

    No wireless interface found

    and then

    There was an error running option I4 Change Wi-fi Country


    Hmm, I guess I have to enable the Wifi to disable the warning.
    Something for next weekend


    --
    Björn

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From A. Dumas@3:770/3 to All on Mon Sep 21 18:12:42 2020
    On 21-09-2020 16:32, Björn Lundin wrote:
    Den 2020-09-21 kl. 12:20, skrev Tauno Voipio:

    Do you also know how to get rid of the slightly different message?

    Just do what is requested: sudo raspi-config; and set country (se?).

    Ah, I thought it would go away just by disabling the wifi.
    However I get this in raspi-config

     No wireless interface found

    and then

     There was an error running option I4 Change Wi-fi Country


    Hmm, I guess I have to enable the Wifi to disable the warning.
    Something for next weekend

    Just do it manually. Open a terminal window and: "sudo nano /etc/wpa_supplicant/wpa_supplicant.conf". You can try hitting Tab
    instead of typing it all out, that will complete the path if it
    recognises it. In the editor, at the top of the file it says:

    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1

    Add below that:
    country=SE

    (or the abbreviation for your country if it isn't Sweden.) Then Ctrl-O
    to save, Ctrl-X to quit. Reboot to check.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Chris Green@3:770/3 to A. Dumas on Mon Sep 21 17:34:23 2020
    A. Dumas <alexandre@dumas.fr.invalid> wrote:
    On 21-09-2020 16:32, Björn Lundin wrote:
    Den 2020-09-21 kl. 12:20, skrev Tauno Voipio:

    Do you also know how to get rid of the slightly different message?

    Just do what is requested: sudo raspi-config; and set country (se?).

    Ah, I thought it would go away just by disabling the wifi.
    However I get this in raspi-config

     No wireless interface found

    and then

     There was an error running option I4 Change Wi-fi Country


    Hmm, I guess I have to enable the Wifi to disable the warning.
    Something for next weekend

    Just do it manually. Open a terminal window and: "sudo nano /etc/wpa_supplicant/wpa_supplicant.conf". You can try hitting Tab
    instead of typing it all out, that will complete the path if it
    recognises it. In the editor, at the top of the file it says:

    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1

    Add below that:
    country=SE

    (or the abbreviation for your country if it isn't Sweden.) Then Ctrl-O
    to save, Ctrl-X to quit. Reboot to check.

    But why do we have to set a country at all if we're going to disable
    the WiFi anyway?

    --
    Chris Green
    ·

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Natural Philosopher@3:770/3 to A. Dumas on Mon Sep 21 17:31:17 2020
    On 21/09/2020 17:12, A. Dumas wrote:
    On 21-09-2020 16:32, Björn Lundin wrote:
    Den 2020-09-21 kl. 12:20, skrev Tauno Voipio:

    Do you also know how to get rid of the slightly different message?

    Just do what is requested: sudo raspi-config; and set country (se?).

    Ah, I thought it would go away just by disabling the wifi.
    However I get this in raspi-config

      No wireless interface found

    and then

      There was an error running option I4 Change Wi-fi Country


    Hmm, I guess I have to enable the Wifi to disable the warning.
    Something for next weekend

    Just do it manually. Open a terminal window and: "sudo nano /etc/wpa_supplicant/wpa_supplicant.conf". You can try hitting Tab
    instead of typing it all out, that will complete the path if it
    recognises it. In the editor, at the top of the file it says:

    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1

    Add below that:
    country=SE

    (or the abbreviation for your country if it isn't Sweden.) Then Ctrl-O
    to save, Ctrl-X to quit. Reboot to check.

    My (working) config is this
    more /etc/wpa_supplicant/wpa_supplicant.conf


    country=GB
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1
    network={
    ssid="Kitchen"
    psk="not.telling"
    key_mgmt=WPA-PSK
    }

    network={
    ssid="LivingRoom"
    psk="still.not.telling"
    key_mgmt=WPA-PSK
    }

    if it helps


    --
    “There are two ways to be fooled. One is to believe what isn’t true; the other is to refuse to believe what is true.”

    —Soren Kierkegaard

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From druck@3:770/3 to Chris Green on Mon Sep 21 19:20:32 2020
    On 21/09/2020 17:34, Chris Green wrote:
    But why do we have to set a country at all if we're going to disable
    the WiFi anyway?

    You may well ask, but sometimes for an easier life you have to humour
    the computer.

    ---druck

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From =?UTF-8?Q?Bj=c3=b6rn_Lundin?=@3:770/3 to All on Mon Sep 21 22:33:48 2020
    Den 2020-09-21 kl. 18:12, skrev A. Dumas:

    Just do it manually. Open a terminal window and: "sudo nano /etc/wpa_supplicant/wpa_supplicant.conf". You can try hitting Tab
    instead of typing it all out, that will complete the path if it
    recognises it. In the editor, at the top of the file it says:

    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1

    Add below that:
    country=SE

    (or the abbreviation for your country if it isn't Sweden.) Then Ctrl-O
    to save, Ctrl-X to quit. Reboot to check.

    ok, got an opportunity to do it it now,
    and yes - it worked

    thanks


    --
    Björn

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From =?UTF-8?Q?Bj=c3=b6rn_Lundin?=@3:770/3 to All on Mon Sep 21 22:34:18 2020
    Den 2020-09-21 kl. 18:34, skrev Chris Green:
    But why do we have to set a country at all if we're going to disable
    the WiFi anyway?

    Yes odd.



    --
    Björn

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From =?UTF-8?Q?Bj=c3=b6rn_Lundin?=@3:770/3 to All on Mon Sep 21 22:34:32 2020
    Den 2020-09-21 kl. 20:20, skrev druck:
    On 21/09/2020 17:34, Chris Green wrote:
    But why do we have to set a country at all if we're going to disable
    the WiFi anyway?

    You may well ask, but sometimes for an easier life you have to humour
    the computer.


    Indeed


    --
    Björn

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From ray carter@3:770/3 to All on Mon Sep 21 20:57:01 2020
    But why do we have to set a country at all if we're going to disable the
    WiFi anyway?

    Just remember two things:
    1. computers are just fast idiots - they do exacly, literally, as they
    are told.

    2. Programmers are not perfect.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Nikolaj Lazic@3:770/3 to All on Mon Sep 21 23:25:09 2020
    Dana Mon, 21 Sep 2020 17:34:23 +0100, Chris Green <cl@isbd.net> napis'o:
    [snip]
    But why do we have to set a country at all if we're going to disable
    the WiFi anyway?

    Because somebody made a script that expects to find it. And reports an error
    if it does not find it.
    You could disable that script.
    But then you would have to remember that you've done that in case you
    would like to use wifi some time in the future.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Chris Green@3:770/3 to druck on Tue Sep 22 09:15:23 2020
    druck <news@druck.org.uk> wrote:
    On 21/09/2020 17:34, Chris Green wrote:
    But why do we have to set a country at all if we're going to disable
    the WiFi anyway?

    You may well ask, but sometimes for an easier life you have to humour
    the computer.

    That's probably the best answer! :-)

    --
    Chris Green
    ·

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Natural Philosopher@3:770/3 to Chris Green on Tue Sep 22 10:18:52 2020
    On 22/09/2020 09:15, Chris Green wrote:
    druck <news@druck.org.uk> wrote:
    On 21/09/2020 17:34, Chris Green wrote:
    But why do we have to set a country at all if we're going to disable
    the WiFi anyway?

    You may well ask, but sometimes for an easier life you have to humour
    the computer.

    That's probably the best answer! :-)

    Obviously never been married or run a business. Doesn't matter how wrong partners or employees are, you simply balance the downside of them
    behaving like idiots, until they learn better, with the downside of
    telling them that they are.



    --
    It’s easier to fool people than to convince them that they have been fooled. 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 druck on Tue Sep 22 10:38:06 2020
    On 22/09/2020 10:29, druck wrote:
    On 22/09/2020 10:18, The Natural Philosopher wrote:
    On 22/09/2020 09:15, Chris Green wrote:
    druck <news@druck.org.uk> wrote:
    On 21/09/2020 17:34, Chris Green wrote:
    But why do we have to set a country at all if we're going to disable >>>>> the WiFi anyway?

    You may well ask, but sometimes for an easier life you have to humour
    the computer.

    That's probably the best answer!  :-)

    Obviously never been married or run a business. Doesn't matter how
    wrong partners or employees are, you simply balance the downside of
    them behaving like idiots, until they learn better, with the downside
    of telling them that they are.

    When it comes to the wife, she is always right, but if she wasn't it
    would still be your fault.

    ---druck

    That's why I have an ex-wife. It got past a joke, to a serious mental
    health condition.

    --
    If I had all the money I've spent on drink...
    ..I'd spend it on drink.

    Sir Henry (at Rawlinson's End)

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From druck@3:770/3 to The Natural Philosopher on Tue Sep 22 10:29:42 2020
    On 22/09/2020 10:18, The Natural Philosopher wrote:
    On 22/09/2020 09:15, Chris Green wrote:
    druck <news@druck.org.uk> wrote:
    On 21/09/2020 17:34, Chris Green wrote:
    But why do we have to set a country at all if we're going to disable
    the WiFi anyway?

    You may well ask, but sometimes for an easier life you have to humour
    the computer.

    That's probably the best answer!  :-)

    Obviously never been married or run a business. Doesn't matter how wrong partners or employees are, you simply balance the downside of them
    behaving like idiots, until they learn better, with the downside of
    telling them that they are.

    When it comes to the wife, she is always right, but if she wasn't it
    would still be your fault.

    ---druck

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