i’m running a fedora-32-server and trying to get this thing to connect to a wifi on startup (even before i log in). I added a connection via nmcli which i can manually connect to.
nmcli device set IFNAME autoconnect yes nor nmcli connection modify CONNAME autoconnect yes
have the desired effect. Does anybody know how to do the trick?
What is the result of this command? nmcli connection show
Do you have more than one connection?
Once started, how do you manage to connect? It automatically connects only when you log in?
My laptop uses WiFi, and I have a connection configured for it through NetworkManager. I’ve told it that the connection is available to all users and to connect automatically if available, and as far as I can tell, it’s connected before I log in. Is there any reason that you can’t use NetworkManager for this?
@sideburns, @Jackson actually uses NetworkManager, but from the command line. Probably the connection configuration lacks of some bit (like the option you have mentioned).
OK, fair enough, if this is considered a solution. However, note that the general requirement to autoactivate a Wi-Fi profile is what NetworkManager is supposed to do.
A common obstacle is that you set connection.permissions. This prevents autoconnect, until the user is logged in. Another common issue is that you need to actually store the secrets in the profile itself (in plain-text, accessible to root only). You do that by setting the secret flags to zero, like wifi.psk-flags=0.