wlan device is marked as unmanaged in the network
To enable this one time:
sudo nmcli save dev set wlan0 managed yes
To let the fix survice reboot
sudo nano /etc/NetworkManager/NetworkManager.conf
add section:
[device]
match-device=interface-name:wlan0
managed=1
To disable the gui: sudo systemctl set-default multi-user
To enable it again: sudo systemctl set-default graphical
reboot after the command