Skip to content

Instantly share code, notes, and snippets.

@jlelli
Forked from truh/rpi0-w_network-manager.md
Created July 18, 2018 06:08
Show Gist options
  • Save jlelli/018c8375ecd4b2d5fdf1eadf034318e6 to your computer and use it in GitHub Desktop.
Save jlelli/018c8375ecd4b2d5fdf1eadf034318e6 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.

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