Skip to content

Instantly share code, notes, and snippets.

@truh
Created February 21, 2018 10:21
Show Gist options
  • Save truh/de723a3bc0f837f75d3673ddf101e108 to your computer and use it in GitHub Desktop.
Save truh/de723a3bc0f837f75d3673ddf101e108 to your computer and use it in GitHub Desktop.
Notes on how to use Network Manager on a headless Raspberry Pi Zero W

Network Manager on headless RPi0 W

Installation

  • Update system
sudo apt update
sudo apt upgrade
  • Install NetworkManager
sudo apt install network-manager
# Remove these packages as suggested here:
# https://raspberrypi.stackexchange.com/a/73816
# Otherwise the wifi device appears as unavailable to nmcli.
sudo apt purge openresolv dhcpcd5
  • Reboot
sudo reboot

Usage:

  • nmcli device wifi lists available networks.

  • nmcli device wifi --help to list available commands/options.

  • nmcli device wifi connect <SSID> password <Secrete> to connect to a WiFi network.

@samveen
Copy link

samveen commented Nov 10, 2022

Please add ifupdown to the apt purge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment