Skip to content

Connecting to the Internet ​

You can connect your Raspberry Pi to the internet using either an Ethernet cable or Wi-Fi.

Wi-Fi ​

You can configure the Wi-Fi settings either directly from the SD card or from the Raspberry Pi itself.

Directly from the SD card ​

This approach is the recommended if you require Wi-Fi to connect to the Raspberry.

  1. Insert the SD card into your computer and mount the data partition.
  2. Navigate to the /etc/NetworkManager/system-connections directory.
  3. Edit the Wi-Fi.nmconnection file. It may also be called preconfigured.nmconnection.

Wi-Fi.nmconnectionThe actual file path is not given in the image

  1. Change the ssid and psk fields to match your Wi-Fi network's name and password.
  • The SSID is the name of your Wi-Fi network. It is case-sensitive.
  • The PSK is a pre-shared key. Use this tool to generate a PSK from your Wi-Fi password and SSID.
  1. Save the file and unmount the SD card.

Ethernet ​

Simply plug the Raspberry Pi into an access point using an Ethernet cable. It should automatically connect to the internet.