Re: Automatic PSK wifi on boot

2023-02-26 Thread Dave Close
Bertin wrote:

>The password is stored elsewhere, presumably in some secure storage
>managed by the NM and changes are made via a privileged helper
>launched by the KDE Daemon (kded). That one isn't running when you're
>not logged in, nor is the KDE wallet daemon, which means a KDE wallet
>cannot be required for connecting to a WiFi network at boot...

Thanks for that clue. I think my problem was that, although I was
following directions, I was doing it while KDE was running. Running
from a simple command line without KDE seems to have solved it.

  # nmcli c modify ${name} 802-11-wireless-security.psk "password" \
   802-11-wireless-security.psk-flags 0

After booting and before starting KDE (which I do using startx because
I like seeing boot messages), the connection is up. And still up after
KDE is running. No wallet impact at all.
-- 
 Dave Close, Compata, Irvine CA   +1 714 434 7359
   d...@compata.com  dhcl...@alumni.caltech.edu
"There are now so many exceptions to the Fourth Amendment that
  it operates only by accident."  --William Hugh Murray, 2013




Re: Automatic PSK wifi on boot

2023-02-26 Thread Dave Close
Bertin wrote:

I wrote:
>
>>It's possible that the problem stems from the KDE wallet. I haven't
>>set it up and find it annoying that it seems to be required.

>You could try setting up only the local wallet. It not storing the
>password rings a bell for me though, and that never happens when I
>select the "allow for all users" option.
>
>The password is stored elsewhere, presumably in some secure storage
>managed by the NM and changes are made via a privileged helper
>launched by the KDE Daemon (kded). That one isn't running when you're
>not logged in, nor is the KDE wallet daemon, which means a KDE wallet
>cannot be required for connecting to a WiFi network at boot...

Of course. But that could impact the connection editor since it is
running in KDE. So maybe I should address this question to Network
Manager support also...
-- 
 Dave Close, Compata, Irvine CA   +1 714 434 7359
   d...@compata.com  dhcl...@alumni.caltech.edu
  "Intelligence is like four-wheel drive. It only allows you
   to get stuck in more remote places."  -- Garrison Keillor




Re: Automatic PSK wifi on boot

2023-02-26 Thread René J . V . Bertin
On Sunday February 26 2023 09:00:04 Dave Close wrote:

>It's possible that the problem stems from the KDE wallet. I haven't
>set it up and find it annoying that it seems to be required.

You could try setting up only the local wallet. It not storing the password 
rings a bell for me though, and that never happens when I select the "allow for 
all users" option.

The password is stored elsewhere, presumably in some secure storage managed by 
the NM and changes are made via a privileged helper launched by the KDE Daemon 
(kded). That one isn't running when you're not logged in, nor is the KDE wallet 
daemon, which means a KDE wallet cannot be required for connecting to a WiFi 
network at boot...


Re: Automatic PSK wifi on boot

2023-02-26 Thread Dave Close
Bertin wrote:

>I wrote:
>
>>I want the connection to come up automatically on boot. The trick
>>seems to be, where do I put the password so NM can see it? And what
>>other settings have to be there so it even tries to see it?

>Are you going through KDE's interface to NM, whatever
>`kde-nm-connection-editor` is called nowadays? I usually launch that
>via the wrench icon in the top-right corner of the network connection
>drop-down menu.
>
>I think the trick you're looking for is to indicate that "all
>users may connect to this network" (in the "General Configuration"
>tab when you edit a given connection). I've learned that automatic
>connection to a WiFi network is wonky if you don't select that option,
>but I have done nothing particular otherwise and for me WiFi connects
>automatically at some point during the boot process.

Thanks for the reply. I've tried the connection editor. Although it
asks me to enter the password, I haven't found that it stores the
result anywhere. What I'm really trying to do is to edit the actual
"connection profile" in /etc/NetworkManager/system-connections.
Somewhere I read that psk-flags should be 0 to store a password but
the connection editor always sets that to 1.

It's possible that the problem stems from the KDE wallet. I haven't
set it up and find it annoying that it seems to be required.
-- 
Dave Close, Compata, Irvine CA  "Curiosity is insubordination
d...@compata.com, +1 714 434 7359in its purest form."
dhcl...@alumni.caltech.edu -- Vladimir Nabokov




Automatic PSK wifi on boot

2023-02-25 Thread Dave Close
Several hours of reading search results and I can't find an answer.
Plenty of people explaining how to run an nmcli command to start w
wifi connection, but that requires that a person has already logged
in. I want the connection to come up automatically on boot. The trick
seems to be, where do I put the password so NM can see it? And what
other settings have to be there so it even tries to see it?

If it matters, I'm trying this on a Fedora 37 clean install.
-- 
 Dave Close, Compata, Irvine CA   +1 714 434 7359
   d...@compata.com  dhcl...@alumni.caltech.edu
   "Some ideas are so stupid that only intellectuals believe them."
 -- George Orwell