Single-board computers series Orange Pi They've long ceased to be just a toy for enthusiasts and have become a fully-fledged alternative to the Raspberry Pi for home servers and smart home systems. However, unlike desktop PCs, these devices often lack a built-in graphical interface upon first boot, leaving beginners with a dilemma: how do you set up a network without an Ethernet cable? The answer lies in the correct sequence of steps and an understanding of the operating system's structure. Linux, on which most firmware is based.
Connecting to a wireless network is critical, as it allows access to remote device management via SSH or a web interface. Without a stable connection, you won't be able to update packages, install necessary repositories, or set up automation. Modern distributions such as Armbian or Orange Pi OS, offer several configuration methods, from simple graphical utilities to a command line that requires precise input of parameters.
In this guide, we will cover all the current setup methods, including working with the utility nmcli, manually editing configuration files, and using a graphical interface if available. You'll learn how to troubleshoot common driver errors and ensure a stable connection for your projects. A key point for models without an integrated module (for example, Orange Pi 3 LTS) is the mandatory presence of a compatible USB WiFi adapter on a Realtek or MediaTek chip.
Preparing equipment and choosing a distribution
Before you begin setup, you need to make sure your device is physically ready for use. Most modern models, such as Orange Pi 5 or Orange Pi Zero 3, already have a built-in wireless module, while older versions require an external adapter connected via a USB port. It's important to check the compatibility of your adapter with the Linux kernel used in the firmware beforehand, as some exotic chips may require manual driver compilation.
The choice of operating system also plays a decisive role. Official image Orange Pi OS (Arch) or Ubuntu may have different default network management tools. The most universal and recommended option remains the distribution Armbian, which provides a unified configuration standard for a huge number of boards. Download the latest image from the official website and burn it to a microSD card using the program BalenaEtcher or Rufus.
⚠️ Caution: Using cheap USB WiFi adapters without an external antenna can result in critically short range. For server-based applications where stability is critical, it's better to use adapters with an antenna connector or connect the board via a cable.
After recording the image and the first boot, the system may automatically try to connect to a known network if you have previously configured it armbian-first-runHowever, in 90% of cases, you'll need to intervene manually. Make sure you have access to a keyboard and monitor (via HDMI) or the ability to connect via a UART console cable if the graphics output isn't working.
Basic setup via the Armbian GUI
If you are using a desktop version of the operating system with a desktop XFCE or GNOMEThe process is extremely simplified and resembles setting up a regular laptop. In the upper right corner of the screen, find the network icon, which usually looks like two arrows or a fan. Right-click it and select Edit Connections or Wi-Fi Settings depending on the version of the distribution.
A window will open displaying a list of available wireless networks within range. Find your router's name (SSID) in the list and click it. The system will prompt you for security settings. Most home networks use an encryption protocol. WPA/WPA2 Personal, which is selected by default. In the password field, enter the access key for your WiFi network.
- 📡 Make sure the network status switch is set to
ONorConnected. - 🔒 Make sure that Obtain an IP address automatically via is selected DHCP, unless you are using static addressing.
- 🔄 If you have connection problems, try forgetting the network (
Forget Network) and create the profile again.
After successfully entering the data, the system will attempt to establish a connection. The indicator next to the network name should turn green, and a signal strength icon will appear in the status bar. If the connection is successful, you can test it by opening a browser and visiting any website or entering a command in the terminal.
Setting up WiFi via the command line (NetworkManager)
For server versions of the OS, where there is no graphical interface, the main tool becomes a utility nmcli (NetworkManager command-line interface). It's preinstalled in most modern Linux distributions and allows you to manage connections without manually editing text files. First, you need to ensure that the WiFi module itself is enabled in software.
Enter the command nmcli radio wifi on to activate the wireless interface. To see a list of available networks, use the command nmcli dev wifi listThe system will display a table with the following columns: SSID, MODE, CHAN, RATE, SIGNAL, and SECURITY. Find your network in the list and remember the exact name, as it is case-sensitive.
nmcli dev wifi connect "Your_Network_Name" password "Your_Password"
If the command is successful, you will see a message Device 'wlan0' successfully activatedIf an error occurs, the system will return a failure reason code, which can be deciphered in the NetworkManager documentation. To create a persistent connection profile that will activate automatically at boot, use the extended syntax:
nmcli con add type wifi con-name "HomeWiFi" ifname wlan0 ssid "Network_Name" wifi-sec.key-mgmt wpa-psk wifi-sec.psk "Password"
Manual configuration via the interfaces file
In some lightweight builds or when using older versions Debian network management can be done through a configuration file /etc/network/interfacesThis method is considered lower-level and requires precise syntax. Open the file with a text editor. nano or vim, having previously obtained superuser rights.
You need to add an entry for the wireless interface. It is usually designated as wlan0It's important to specify the correct driver and encryption parameters. Below is an example configuration for a static IP address, which is often required for smart home servers to ensure the device's address doesn't change after a router reboot.
| Parameter | Meaning | Description |
|---|---|---|
iface |
wlan0 inet static |
Interface type and protocol |
address |
192.168.1.50 |
Fixed IP address of the board |
netmask |
255.255.255.0 |
Subnet mask |
gateway |
192.168.1.1 |
Gateway (router) address |
After making changes, the file must be saved and the network service restarted with the command sudo systemctl restart networking Or simply reboot the device. A single digit error in the IP address or gateway will result in loss of connection with the device, so double-check the information.
⚠️ Important: When switching from DHCP to a static IP, make sure the selected address is not in the router's dynamic IP range, otherwise an address conflict will occur and both devices will lose network access.
☑️ Checking a static IP
Working with WPA Supplicant for Complex Networks
For corporate networks or scenarios where specific security configuration is required, a daemon is used. wpa_supplicantThis is a more flexible tool that allows you to configure connections with Enterprise encryption (WPA2-Enterprise), which require not only a password but also a user login. The configuration is stored in a file /etc/wpa_supplicant/wpa_supplicant.conf.
To generate a hashed password (so as not to store it in clear text), use the utility wpa_passphrase. Enter the command wpa_passphrase "SSID" "password", and the system will output a ready-made configuration block with the PSK. This block should be copied to the configuration file. This method is especially useful for automating the deployment of multiple devices.
If you are using a hidden network (Hidden SSID), you must explicitly specify it in the configuration. scan_ssid=1This will force the network adapter to actively scan the air for a specific network, even if it isn't broadcasting its name. However, this may slightly increase power consumption and connection time at system startup.
How to find out the MAC address for filtering?
Enter the command 'ip link show wlan0' in the terminal. The MAC address will be listed after the word 'link/ether' as six pairs of hexadecimal digits (e.g., aa:bb:cc:dd:ee:ff).
Diagnostics and troubleshooting
Even with the correct settings, there may be situations where Orange Pi doesn't see the network or constantly loses connection. The first step should always be checking the interface status. The command ip addr will show whether an address is assigned to the interface wlan0If the address is missing or starts with 169.254.x.x, this means DHCP failure - the device was unable to receive settings from the router.
A common problem is frequency band incompatibility. Many older boards or cheap adapters only support the frequency band 2.4 GHz and don't see 5 GHz networks. Conversely, some new modules may ignore older standards. Try separating the network names (SSIDs) on your router for different bands and connecting to 2.4 GHz to test.
- 🔍 Check the system logs with the command
dmesg | grep firmwareto search for WiFi module microcode loading errors. - 📉 Use the command
iwconfigto view signal quality (Link Quality) and noise level. - 🛠 Try disabling WiFi power saving mode by adding the line
options 8192cu rtw_power_mgnt=0in the module config.
Power supply is also important to consider. The WiFi module draws significant current when transmitting data. If you're using a weak power supply or a thin USB cable, the board may reboot or disable the wireless module when attempting to connect to the WiFi.
FAQ: Frequently Asked Questions
Why can't Orange Pi see my 5GHz network?
Your WiFi module or adapter likely only supports the 802.11 b/g/n (2.4 GHz) standard. Check the specifications for your Orange Pi model on the official website. 5 GHz (ac/ax) operation requires appropriate hardware support.
How can I make WiFi connect automatically after a reboot?
When using NetworkManager, profiles are saved automatically. If you configured the network via interfaces, make sure the line auto wlan0 present at the beginning of the interface configuration.
Can Orange Pi be used as a WiFi repeater?
Yes, it is possible, but it requires two WiFi adapters (or one with monitor/AP mode support) and complex packet configuration. hostapd And dnsmasqThe built-in module often does not support simultaneous operation of the client and access point.
Where can I find drivers for the RTL8812AU WiFi adapter?
Drivers for popular Realtek chips are often included in the Linux kernel, but some models require manual compilation. Search the repositories. rtl8812au on GitHub, adapted for ARM architecture.