How to Enable Ubuntu WiFi: A Complete Guide

Installing a Linux operating system on a laptop or desktop often faces the first and most critical obstacle: lack of network access. Unlike Windows, where drivers are often built into the base image, Ubuntu Your wireless module may not be recognized immediately after installation. This creates a vicious circle: downloading drivers requires internet access, and the internet requires drivers.

Solving this problem requires a systematic approach and an understanding of how NetworkManager Interacts with the system kernel. You don't need to be an experienced programmer to initiate the connection, but a basic understanding of the command line will significantly speed up the process. In this article, we'll cover every step, from physically checking the adapter to complex manual firmware installation.

We'll cover both graphical interfaces familiar to beginners and powerful terminal tools for advanced users. We'll pay special attention to situations where the system "sees" the device but can't interact with it. This is the most common problem associated with proprietary software from vendors like Broadcom or Realtek.

Diagnostics and checking the adapter status

Before attempting to configure anything, it's important to understand the current system state. Users often try to enable WiFi when the adapter is physically disconnected or blocked at the BIOS level. The first step should always be to check whether the hardware is visible to the Linux kernel.

Open a terminal and enter the command to list network devices. This will show whether the system even recognizes the wireless controller. If the command output lspci or lsusb There is no mention of Wireless or WiFi, the problem may be hardware.

lspci | grep -i network

If the adapter is built into the motherboard, it will appear as a PCI device. For USB adapters, use the command lsusbIf a device is not listed, it means that either the module is faulty or disabled in the BIOS/UEFI. Some Lenovo and HP laptops have a hidden locking feature that can only be reset by rebooting while holding down the Fn key.

  • 🔍 Check the indicators on your laptop: a lit antenna symbol often indicates active flight mode.
  • 🔍 Use the Fn + F-key combination (often F2 or F12) to toggle WiFi status.
  • 🔍 Make sure that Wireless LAN or a similar option is enabled in BIOS.

After the physical check, we move on to the software level. Utility rfkill is the main tool for managing radio modules. It indicates whether the adapter is blocked by software (soft block) or hardware (hard block). Hard blocking is usually released via a switch on the module's housing, while software blocking is released via a command.

⚠️ Warning: If you see the "hard blocked" status, no commands in the terminal will help until you flip the physical switch or change the settings in the BIOS.

To remove the software lock, use the unlock all devices command. This is a secure operation that forcibly activates the radio modules if they are not locked by hardware.

sudo rfkill unblock all

After executing the command, check the status again. If the "SOFT" column changes to "no," the activation path is clear. The system is now ready to accept commands to connect to the access point.

Activation via graphical interface

For most users of distributions based on GNOME or KDE Using the command line is optional. The graphical shell provides convenient access to network settings. In standard Ubuntu, click the network icon in the upper-right corner of the screen.

If the network icon displays a crossed-out globe or arrows, it means there's no active connection. Click it and select "Select Network." The system should begin scanning for available access points. If the list is empty, the network manager or driver may not be installed.

  • 📡 Select your network from the list of available SSIDs.
  • 🔐 Enter the security password (usually WPA2/WPA3 Personal).
  • ⚙️ Click "Connect" and wait until you receive an IP address.

In some cases, especially on older versions of Ubuntu or in builds Xubuntu/LubuntuThe interface may differ. It's important to check your privacy settings. Sometimes the system hides the SSID by default or uses temporary MAC addresses, which can cause conflicts with older routers.

📊 Which Ubuntu interface do you use most often?
GNOME (standard)
KDE Plasma
XFCE (Xubuntu)
MATE (Ubuntu Mate)
Cinnamon

If the graphical interface freezes or doesn't display the WiFi button, try restarting the network management service. This doesn't require a computer restart and often resolves minor interface glitches.

sudo systemctl restart NetworkManager

After restarting the service, the tray icon should update. If the problem persists, proceed to manually install the drivers, as the standard kernel modules may not be compatible with your hardware.

Installing drivers and firmware

The most difficult part of the process is installing proprietary drivers. Ubuntu comes with open-source drivers that work well for Intel and Atheros, but often require additional work for Broadcom And RealtekIf you don't have a wired connection (Ethernet), you'll have to use your smartphone as a USB modem or download the deb packages on another PC.

For Broadcom card owners, there's a special meta-package that automatically detects the chip and installs the correct driver version. This is the most reliable solution for problems with BCM43xx series modules.

sudo apt update

sudo apt install bcmwl-kernel-source

A reboot may be required after installation. For Realtek devices, the situation is more complex: drivers often have to be searched for on GitHub, as the official versions in the repositories may be outdated. In such cases, compiling from source is used.

Where can I find drivers for Realtek?

The official Realtek website frequently fails to update the Linux section. The best up-to-date drivers are in the lwfinger repository on GitHub. Look for the rtl88xxau repository or a similar one for your chip model.

Use the utility ubuntu-drivers to automatically search for recommended drivers. It analyzes your hardware and suggests the best options from repositories.

sudo ubuntu-drivers autoinstall

This method is safe and recommended for beginners. It avoids manual editing of configuration files. If automatic installation fails, check the compatibility table below.

Manufacturer Chip series Recommended package Support status
Intel Wi-Fi 6 (AX200/210) firmware-iwlwifi Excellent (in the core)
Broadcom BCM43xx bcmwl-kernel-source Good (proprietary)
Realtek RTL8821CE rtl8821ce-dkms Requires PPA
Atheros AR9xxx firmware-atheros Excellent (in the core)

Please note the support status. For Intel and Atheros, drivers are already built into the kernel; issues may only arise with the firmware files installed with the package. linux-firmware.

Setting up WiFi via the terminal (Netplan and Nmcli)

For server versions of Ubuntu or minimalist enthusiasts, the graphical interface is not available. This is where Netplan (for configuration) and Nmcli (for management). Netplan uses YAML files to describe the network, making the configuration transparent and easily replicated.

Netplan configuration files are located in the directory /etc/netplan/. Usually there is a file there with a name like 01-network-manager-all.yamlEditing requires care: indentation in YAML is critical.

sudo nano /etc/netplan/01-network-manager-all.yaml

Example file contents for enabling NetworkManager and DHCP:

network:

version: 2

renderer: NetworkManager

After saving the file, apply the changes with the command sudo netplan applyTo connect directly to the network, use the nmcli utility. It allows you to scan networks and enter passwords without exiting the console.

☑️ Checking the connection via the terminal

Completed: 0 / 5

The connection command looks like this. Replace SSID and PASSWORD with your details. If the network name contains spaces, enclose it in quotation marks.

nmcli dev wifi connect"MyNetwork" password"MyPassword"

Using the terminal offers the advantage of detailed logs. If the connection fails, the system will return a specific error, such as "authentication failed" or "no agents available," simplifying diagnostics.

Troubleshooting connection and DNS issues

It often happens that the driver is installed, the network is visible, but the internet isn't working. This is a classic DNS or IP issue. If you see the connection icon but the pages won't open, try entering your public DNS servers.

In the graphical interface, go to network settings, select IPv4, and change the method from "Automatic" to "Manual." In the DNS servers field, enter Google's addresses (8.8.8.8) or Cloudflare (1.1.1.1). This often solves the problem of "slow" internet.

  • 🌐 Check your system time: an incorrect date can invalidate SSL certificates and block access to websites.
  • 🌐 Disable IPv6 in your router or Ubuntu settings if your ISP doesn't support it correctly.
  • 🌐 Reset the TCP/IP stack with the command sudo systemctl restart NetworkManager.

Another common issue is an address conflict or a static IP previously set. Make sure DHCP is enabled in the settings. It's also worth checking the file /etc/resolv.conf, although in modern versions of Ubuntu it is a symlink and editing it directly is not recommended.

⚠️ Note: Ubuntu's network configuration interfaces may change with the release of new versions (22.04, 24.04, etc.). If you can't find the option, search for it in the settings or use the terminal.

Use the ping utility to diagnose the issue. First, ping localhost, then the gateway, then the external IP (e.g., 8.8.8.8). If you can ping the IP but not the domain name (google.com), the problem is definitely DNS.

Optimizing WiFi power consumption

Linux laptops sometimes drain their batteries quickly due to aggressive network scanning or improper adapter power management. power saving in WiFi drivers may cause intermittent disconnections or reduced speed.

To disable power saving for WiFi, create a configuration file. This will prevent the adapter from going into sleep mode, which is especially important for connection stability when downloading large files.

sudo nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

Change the parameter value wifi.powersave on 2 (which means turning off the savings). Meaning 3 includes savings, which can lead to breaks.

It's also worth checking your router settings. Switching your WiFi channel to a less congested one (for example, from 1 to 6 or 11 in the 2.4 GHz band) can significantly improve stability without changing Ubuntu settings.

After making all the changes, restart NetworkManager. If the laptop no longer sleeps during boot, the configuration was successful. This is especially true for older adapters that don't handle modern sleep protocols well.

Frequently Asked Questions (FAQ)

Why doesn't Ubuntu see my WiFi adapter after updating?

A Linux kernel update may have caused a proprietary driver to become incompatible with the new kernel version. You will need to reinstall the driver package (e.g. bcmwl-kernel-source) or wait for the DKMS module to be updated. Also, check if the module has been blacklisted.

How to connect WiFi without a graphical interface (Server version)?

Use the utility nmcli. Team nmcli dev wifi list will show the networks, and nmcli dev wifi connect SSID password PASS will establish the connection. For permanent configuration, edit the YAML file in /etc/netplan/.

What should I do if the password is correct, but the connection is reset?

This often indicates a problem with the encryption method or driver. Try changing the router's security from WPA3 to WPA2/WPA Mixed. Disabling "MAC Address Randomization" in Ubuntu settings will also help.

Where can I find the connection error log?

Main system log - /var/log/syslog. Use the command grep -i wifi /var/log/syslog or journalctl -u NetworkManagerto see a detailed report of connection attempts and failure reasons.