Score:0

how to connect to wifi network at boot time using NetworkManager

tr flag
tvs

I'm using Ubuntu 20.04 and, unless I log in, the server does not connect to the wifi network.

I've found a non-optimal solution/workaround using these steps:

 1. Stopping and disabling NetworkManager
 2. Establishing the connection using 'wpa_supplicant'
 3. Getting an IP with 'dhclient'

but I couldn't figure out how to do this using NetworkManager, anyone knows how to connect to the wifi network at boot time using NetworkManager?

Any tip/suggestion would be much appreciated, thanks!

EDIT: Here's the output of 'cat /etc/netplan/*.yaml':

# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager
chili555 avatar
cn flag
Please edit your question to show the result of the terminal command: `cat /etc/netplan/*.yaml`
chili555 avatar
cn flag
When you click the NM icon, do you see networks to connect to? Are there any clues in: `sudo dmesg | grep etwork`
tvs avatar
tr flag
tvs
@chili555, I don't have any problem seeing networks or connecting to them once I'm logged in; the problem is that I have to be logged into the server in order to connect to the wifi .... what I want to achieve is to automatically connect to the wifi network just by turning on the computer without the need to logging in first; I want to use the server remotely ... hopefully it's more clear now
chili555 avatar
cn flag
Then I'd ditch NM and use netplan. May I propose an answer?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.