SumiForum
    • Categories
    • Recent
    • Tags
    • Popular
    • Games
      • MFME
      • Virtual Pinball
    • Register
    • Login

    Configure Wifi Settings on Raspberry Pi Zero 2 W using the SD Card

    Scheduled Pinned Locked Moved Raspberry Pi
    1 Posts 1 Posters 144 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • SumisuS Offline
      Sumisu Administrator
      last edited by

      To setup a new WiFi connection on the Raspberry Pi using only the SD card, you will need to create a new file in /etc/NetworkManager/system-connections called MySSID.nmconnection. Replace the MySSID with the name of your network, if your network has spaces create it like this: sudo nano 'My Network With Spaces.nmconnection'.

      For the contents of the file, it needs to look like this:

      [connection]
      id=My Network With Spaces
      uuid=
      type=wifi
      
      [wifi]
      cloned-mac-address=
      mode=infrastructure
      ssid=My Network With Spaces
      
      [wifi-security]
      key-mgmt=wpa-psk
      psk=My Network Password
      
      [ipv4]
      method=auto
      
      [ipv6]
      addr-gen-mode=stable-privacy
      method=auto
      
      [proxy]
      

      Be sure to change id and ssid to be the name of your network, you don’t need to add quotes if there are spaces in your networks name. Also be sure to change psk to be your network password. When you are done use Ctrl+X to save the changes.

      Now we need to restrict the file’s access rights because NetworkManager requires it to be only accessible by root:
      sudo chmod -R 600 /etc/NetworkManager/system-connections/MySSID.nmconnection
      sudo chown -R root:root /etc/NetworkManager/system-connections/MySSID.nmconnection

      Now you should be able to automatically connect to your WiFi network during the next boot.

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Forum Stats

      0

      Online

      3

      Users

      30

      Topics

      30

      Posts

      Ad

      © 2024 Sumisu

      • Home
      • Categories
      • Popular