Page 1 of 1

How to autoconnect on a wifi network during boot?

Posted: 18 Nov 2016, 05:02
by fulalas
I've managed to save my wifi network password (creating a xzm module of /etc/NetworkManager/system-connections/), but after a reboot the wifi connection is down so I have to manually connect it every time (although it doesn't ask for the password anymore). So where's the folder/file that tells which wifi network should be connected during boot?

I'm using Porteus 3.2 final x64 kernel 4.8.8 + XFCE.

Re: How to autoconnect on a wifi network during boot?

Posted: 18 Nov 2016, 06:31
by FURRY_NOVA
Sadly, it lost that functionality in a previous update. I attempted researching a terminal command to manually connect to mine, so I could embed it in my startup script. But I was unsuccessful since the terminal commands wouldn't connect to my WiFi.

Re: How to autoconnect on a wifi network during boot?

Posted: 18 Nov 2016, 20:04
by brokenman
Please right click on the network manager applet on the taskbar and choose to edit connection. Find your wifi connection and in the general tab tick the box that says "All users may connect to this network".

Now copy your network config from /etc/NetworkManager/system-connections/youConnection back into your rootcopy or make a module from it. Reboot and check that it auto connects.

Do you think this is a bug? It seems like a safe default to me.

Re: How to autoconnect on a wifi network during boot?

Posted: 18 Nov 2016, 20:40
by fulalas
brokenman, thanks. I'll try this later. :)

I don't think it's a bug, but maybe not the best default. OK not saving the password by default. But saving the connection as a default one on the first connect (if there'is no other previously chosen) maybe is a better approach in my opinion. What you think?

Re: How to autoconnect on a wifi network during boot?

Posted: 18 Nov 2016, 20:50
by brokenman
Booting as a user (let's say guest) I would expect the connection to be saved and autoconnect at boot without having to allow other users access. I'm sure that was the default before. I'm not sure why it changed in this version of NetworkManager. It seems a bit buggy.

Re: How to autoconnect on a wifi network during boot?

Posted: 19 Nov 2016, 05:49
by fulalas
I've managed to save the autoconnect option the way you told me. Thanks!

The other good news is that Asus wifi usb stick is working! :)

The problem now is that wifi takes a looooong time to start a connection or even sees the networks availables after boot. But if you manually create a new dummy connection then the real networks are found quickly. :(