3

I want to setup wifi on my new Pi Zero, and I do not have a powered USB hub. My keyboard/mouse takes up the only USB port, so I do not have another port to add a wifi dongle. I would prefer not to buy anything new. After setting up wifi, I will not need my keyboard/mouse. Is there any way to do this?

Merlin04
  • 422
  • 5
  • 16

1 Answers1

4

goldilocks left a comment that had a link to another question. The answer to that question led me to https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md. The way you configure wifi without a dongle plugged in is to append this to your /etc/wpa_supplicant/wpa_supplicant.conf file:

network={
    ssid="Your_wifi_name"
    psk="Your_wifi_password"
}

Replace Your_wifi_name with your wifi name, and Your_wifi_password with your wifi password. Then, turn off your Pi. Plug in your wifi dongle and turn the Pi on again. It should connect to the network.

Merlin04
  • 422
  • 5
  • 16