Transition to an operating system Linux is often accompanied by a desire to understand the intricacies of how the equipment works, and the first step is usually setting up access to the global network. Modern distributions, such as Ubuntu 22.04 or 24.04 LTS, have advanced tools for automatically detecting wireless adapters, making the process as simple as possible for beginners. However, in reality, users often encounter situations where the system doesn't detect the network or refuses to connect due to proprietary drivers.
In this guide, we'll walk you through every step in detail: from a basic connection via a graphical interface to complex terminal manipulations if the automation fails. Wireless connection This is critical for proper operation and cannot be ignored. We'll cover both standard methods and solutions for specific cases where manual network configuration is required.
Checking compatibility and availability of an adapter
Before attempting to enter a password, you must ensure that the operating system can physically see your network device. Unlike Windows, where drivers are often installed secretly, in Linux The absence of a driver may mean a complete lack of an interface. For initial diagnostics, it's best to use the command line, as it provides more detailed information about the hardware status.
Open the terminal and enter the command lspci for desktop computers or lsusb for laptops and USB dongles. These utilities will list all connected devices, and you need to find lines containing the words Wireless, Wi-Fi or chipset names like Realtek, Intel, BroadcomIf the device is displayed here, it means the system recognizes it, and it's just a matter of software configuration.
Additionally, you can use a specialized utility nmcli, which is part of the network manager NetworkManager. Enter the command nmcli device statusto see the status of all network interfaces. If you see a line like wifi and status disconnected or unavailable, this is a good sign - the adapter is detected by the system.
⚠️ Note: If the adapter isn't displayed at all in the command output, the issue may be at the BIOS/UEFI level. Check whether the wireless module is disabled in the motherboard settings or via a hardware switch on the laptop case.
In some cases, you need to activate the kernel module manually. To do this, use the command modprobe, followed by the driver name. For example, for some cards Intel it could be modprobe iwlwifiAfter executing the command, you should restart your computer and check if the network appears.
Connecting via the GNOME graphical interface
Standard desktop environment GNOME, used in Ubuntu By default, it offers an intuitive connection method. In the upper right corner of the screen is a system indicator panel, where the network icon is usually located. Clicking on it opens a drop-down menu, which should include a toggle switch. Wi-Fi.
Once the slider is enabled, the system will begin scanning for available access points. Nearby routers will appear in the list, along with their signal strength. Select the desired network and click "Connect." If the network is secured, a password entry window will appear.
- 📡 Make sure you select the correct SSID, especially if your neighbors have routers with similar names.
- 🔑 Check your keyboard layout before entering your password, as case is important.
- 🔄 If the connection doesn't happen immediately, try turning Wi-Fi off and on again in the same menu.
For more detailed settings, such as setting a static IP address or DNS servers, you need to go to the full settings. To do this, click the gear next to the network name or go to Settings → NetworkHere you can edit IPv4 and IPv6 settings, changing the method from "Automatic (DHCP)" to "Manual".
Setting up Wi-Fi via the terminal (nmcli)
For advanced users or when working with server versions Ubuntu Server, where there is no graphical interface, an indispensable tool is the utility nmcliIt allows you to control NetworkManager entirely from the command line, providing flexibility and the ability to script automation.
The first step is always to scan for available networks. The command nmcli device wifi list will display a table with available access points, their channels, frequencies, and signal strengths. If the list is empty, the device may be software-blocked, and the command will be required. nmcli radio wifi on.
To connect to the network, use the following construction:
nmcli device wifi connect "Network_Name" password "Your_Password"
If the connection is successful, the system will save the profile and automatically connect to this point in the future. If errors occur, the utility will return a specific error code to help diagnose the problem, whether it's an incorrect password or incompatible security settings.
It is also convenient to manage saved connections through the terminal. The command nmcli connection show will display a list of all known profiles. You can delete an unnecessary or faulty profile with the command nmcli connection delete "Network_Name", which often helps to reset incorrect settings.
Installing proprietary drivers
One of the most common reasons for Wi-Fi not working on Ubuntu is the lack of proprietary drivers for wireless cards, especially those produced Broadcom or some models RealtekOpen Source Drivers Linux Most devices are supported, but some hardware requires closed binary modules for full functionality.
IN Ubuntu There's a handy tool called "Additional Drivers" that automatically scans your hardware and prompts you to install the necessary components. You can find it through the app search or in the "Additional Drivers" section. Settings → About → Device DriversIf the system finds a suitable driver, simply select it and click "Apply Changes."
If the graphical tool doesn't help, you can use the terminal. Utility ubuntu-drivers allows you to manage drivers manually. First, run the command ubuntu-drivers devicesto see a list of recommended drivers for your hardware. The output will indicate the device and the recommended package, for example, driver: bcmwl-kernel-source.
| Manufacturer | Typical driver package | Status in repositories |
|---|---|---|
| Broadcom | bcmwl-kernel-source | restricted (proprietary) |
| Realtek (RTL88xx) | rtl8812au-dkms | multiverse (often requires dkms) |
| Intel | firmware-iwlwifi | main (usually built into the kernel) |
| Atheros | firmware-atheros | main/free |
To install, use the command sudo apt install package_nameAfter installation, be sure to restart your computer. It's important to note that installing drivers often requires an internet connection via an Ethernet cable or USB modem, as packages must be downloaded from repositories.
What to do if the driver is not in the repositories?
If the standard Ubuntu repositories don't contain the required driver, you may need to compile it from source code on GitHub. This is a complex process that requires installing the build-essential and linux-headers packages corresponding to your kernel version.
Using the nmtui text interface
For those who prefer to work in the terminal but don't want to remember complex syntax nmcliUbuntu has a built-in utilitarian text interface. nmtuiIt is a pseudo-graphical menu controlled by the keyboard arrows and the Enter key, making it ideal for servers without a graphical shell.
Run the utility with the command sudo nmtuiIn the menu that opens, select "Edit a connection" to configure settings or "Activate a connection" to connect. The interface fully supports keyboard control, which is convenient when connecting via SSH.
- 🖥️ Select "Activate a connection" to quickly connect to a known network.
- ⚙️ In the "Edit a connection" section, you can configure a static IP, DNS, and MTU.
- 🗑️ There is also an option to delete old connection profiles.
When you select a network from the list of available networks, you'll be prompted to enter a password. Once entered successfully, the connection will be established and saved. This is one of the most reliable ways to set up a network on minimalist builds. Ubuntu.
Troubleshooting and diagnostics
Even with proper configuration, failures may occur. Often, the problem lies in a conflict between network management services. In modern versions Ubuntu responsible for the network NetworkManager, but there may be a daemon active on the system wpa_supplicant or systemd-networkd, which can intercept control of the adapter.
Check the status of the NetworkManager service using the command systemctl status NetworkManagerIf the service is not running, activate it via sudo systemctl start NetworkManager and add it to startup with the command sudo systemctl enable NetworkManagerRestarting the service often solves the problem of a frozen interface.
⚠️ Warning: Do not run multiple network managers (e.g. NetworkManager and systemd-networkd) on the same interface at the same time, as this is guaranteed to cause conflicts and connection breaks.
Another common issue is power saving mode, which can disable the Wi-Fi adapter to conserve battery life. You can disable this feature by creating a configuration file. Create the file /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf and add a line there wifi.powersave = 2 (where 2 means power saving is disabled).
If nothing helps, try resetting your network settings. Delete the configuration files in the directory /etc/NetworkManager/system-connections/ (after making a backup) and restart the service. This will reset the network settings to factory defaults.
How to find the MAC address of a wireless adapter in Ubuntu?
To get the MAC address use the command ip link show or nmcli device showIn the output, look for the string "link/ether" next to the interface name (usually wlan0 or wlo1). You can also view it in the graphical interface: Settings → About.
Why can't Ubuntu see 5GHz Wi-Fi networks?
This may be due to regional settings. In some countries, 5 GHz channels are restricted. Try setting the region explicitly with the command sudo iw reg set RU (or your country code). Also check if your adapter supports the 802.11ac/ax standard.
Is it possible to share Wi-Fi with Ubuntu (access point mode)?
Yes, modern versions of NetworkManager support access point mode. In the graphical interface, select "Use as access point" in the Wi-Fi settings. In the terminal, this can be done via nmcli connection add type wifi ifname wlan0 con-name hotspot ssid MyHotspot mode ap.
Where are the Wi-Fi connection error logs located?
The main NetworkManager event log is located at /var/log/syslog or journalctl -u NetworkManagerLook for messages containing the words "wpa_supplicant," "firmware," or "authentication failed" to diagnose the cause of the failure.