Skip to main content

WiFi Connection

  • Video Tutorial


After the system is up and running, the first thing you'll probably want to do is connect to the internet. For Ethernet, simply plug in an Ethernet cable to get online. Additionally, the WalnutPi has an onboard dual-band WiFi module supporting both 2.4G and 5G WiFi networks.

Desktop Button Connection

On the desktop system, simply click the network button at the bottom right, select Available Networks, choose your WiFi network, and enter the password to connect.

wifi1

Command-Line Connection (Non-Desktop System)

Connecting to WiFi via command line is suitable for non-desktop systems or scenarios where only terminal login is available. Here's how:

First, use the following command to get available WiFi SSIDs:

nmcli dev wifi

wifi2

Warning

Be sure to run the nmcli dev wifi command above to get WiFi information before proceeding with the next step to connect.


Press Ctrl+C or Ctrl+Z to interrupt the above command.

Then use the following command to connect to the specified WiFi (requires sudo administrator privileges). Below, "walnutpi" is the WiFi SSID and "88888888" is the password. Replace them with your own WiFi credentials.

sudo nmcli dev wifi connect walnutpi password 12345678

After successful connection, use the following command to check the WiFi connection status. An IP address indicates a successful connection.

sudo ifconfig

wlan0 indicates the WiFi connection, with the IP address below. eth0 indicates the Ethernet connection.

wifi3