Just found this thread after installing Bookworm and wondering how to predefine wifi connections. Two things not mentioned yet: if you manually edit the "/etc/NetworkManager/system-connections/*.nmconnection" files and want to add a new UUID to an existing file, you can use the "uuid" tool for that: and then edit it to move it to the "uuid=" line. And secondly, not sure if this is necessary if you reboot anyway, but it can't hurt: after manually adding new connection files, let NetworkManager know they exist by What a kerfuffle! Darn you, Poettering.
Code:
$ uuid | sudo tee -a example.nmconnection
Code:
$ sudo nmcli connection reload
Statistics: Posted by algorithm — Wed Mar 27, 2024 6:11 pm