I have a Raspberry Pi 3B+ with Ubuntu-mate 1.20.1 (Ubuntu 18.04.2) that I want to run headless and use VNC and SSH to access. Connections will be via WiFi, and the Pi has a static address on my network. Problem is, the WiFi isn't active until after I log in, and I can't log in without the WiFi being active! How can I activate the WiFi after boot, but before anyone logs in?
I did a lot of stuff, including installing all of the updates and changing things in the network manager, and now it seems to be working like it should. I'm not sure what fixed it, but I suspect it was clicking the All users may use this network box, combined with one of the 2 hours worth of updates.
You can’t set Ubuntu up without keyboard etc!
Ubuntu has no user account until you set it up.
Configuring Network Manager (assuming Ubuntu MATE still uses it ) from the command line is difficult, but can be done with nmcli.
Once setup it should work (I have done on 16.04)
You would be better to configure Debian networking or install dhcpcd.