How to Enable WiFi on Ubuntu: A Complete Guide

operating system Ubuntu Linux has long established itself as a stable and secure platform, but interacting with wireless networks sometimes requires user attention. Unlike proprietary systems, network interface management can be performed through both a graphical interface and a console, which provides flexibility but can be confusing for beginners. Modern versions of the distribution, such as 22.04 LTS or the more recent 24.04, feature improved network managers, but specific hardware may still require manual configuration.

Problems with a missing wireless network icon are often not caused by a faulty adapter, but by a lack of a suitable driver or a kernel-level blockage. Wireless interface It may be disabled programmatically, which can be easily fixed with a single command. Understanding the basic principles of the network manager will allow you to quickly restore the connection without reinstalling the system.

In this guide, we'll walk you through every step: from simply checking your laptop's switches to installing proprietary drivers for complex chipsets. You'll learn how to diagnose your network status, manage connections via nmcli and resolve common conflicts that arise when updating the Linux kernel. Let's start with initial diagnostics.

Primary diagnostics and equipment testing

Before diving into complex settings, you need to make sure the wireless module is physically enabled and visible to the system. Many laptops have hardware switches or function keys (usually F2, F12 or combination with Fn), which can block the radio interface. If the indicator on the case is red or not lit at all, software methods may not work until the physical switch is turned on.

Launch the terminal and enter the command to check the status of all network devices. Utility lshw will show detailed information about the software, including the power-on status:

sudo lshw -C network

In the command output, pay attention to the line configuration. If it is indicated there driver= no driver name or marked UNCLAIMED, then the system lacks the software to work with your adapter. Also, check if the radio interface is blocked by a utility. rfkill.

  • 🔍 Check the physical Wi-Fi switch on the laptop case or side edge.
  • 🔍 Use a keyboard shortcut Fn + a key with an image of an antenna to activate flight mode.
  • 🔍 Run the command rfkill list to check software blocking.

⚠️ Attention: If in the output lshw If the device is displayed as "DISABLED," enabling it in software may not help. Make sure the integrated wireless module isn't disabled in your computer's BIOS/UEFI.

📊 Have you ever encountered missing drivers in Linux?
Yes, all the time.
Rarely, but it happened
Never, everything works right away
Switching to Linux for the first time

Wi-Fi management via a graphical interface

For most users of a standard desktop environment such as GNOME (used in standard Ubuntu) or KDE PlasmaNetwork management is as simple as possible. The system tray, which displays network icons, is located in the upper right corner of the screen. Clicking the "stars" or "triangle" icon opens the quick connection menu.

If the Wi-Fi slider is off, simply move it to the on position. The system will automatically scan for available access points. Select your network from the list, enter the password, and click "Connect." The Network Manager will save the configuration and automatically connect to a known network when it is detected.

For more fine-tuning, such as changing MAC addresses or static IP settings, go to the main system settings. The path usually looks like this: Settings → Network → Wi-FiHere you can delete saved profiles, configure proxy servers, or change network priorities.

Parameter Description Where to find
SSID Wireless network name List of available networks
Security Encryption type (WPA2/WPA3) Network properties
IPv4 Method IP acquisition method (Auto/Manual) IPv4 settings
MAC Address Unique adapter identifier Device properties

The graphical interface is convenient for everyday use, but it hides many details that can be critical for troubleshooting. If the Wi-Fi button is completely missing or grayed out, proceed to diagnostic methods via the terminal.

Enabling Wi-Fi via Terminal and nmcli

The command line is a powerful tool for a system administrator. The utility nmcli (NetworkManager command-line interface) allows you to manage network connections where the graphical interface is ineffective. It is available by default in all modern Linux distributions.

First, let's check the radio's general status. This command will show whether Wi-Fi is enabled and whether other devices can see it:

nmcli radio wifi

If the output shows disabled, you need to activate the interface. Use the enable command:

sudo nmcli radio wifi on

After enabling the radio module, the system should begin scanning. You can force a network scan with the command nmcli dev wifi listThe list will display available access points, signal strength, and security type. To connect to the network, use the following command:

nmcli dev wifi connect "Network_Name" password "Your_Password"
  • 🚀 Team nmcli Works faster than the graphical interface with a large number of saved profiles.
  • 🚀 Allows you to create scripts to automatically switch between networks.
  • 🚀 Ideal for server versions of Ubuntu without a graphical shell.

⚠️ Attention: When entering a password on the command line, characters are not displayed (no asterisks). This is standard Linux security behavior. Type the password blindly and press Enter.

☑️ Diagnostics via terminal

Completed: 0 / 4

Installing and updating drivers

The most common reason for Wi-Fi not working in Ubuntu is the lack of a proprietary driver. Open source drivers (open-source) are built into the kernel, but they may not support the latest features or specific chipsets from Broadcom, Realtek or MediaTek.

Ubuntu provides a convenient mechanism for searching and installing drivers. Open the Additional Drivers application through the application search or the terminal with the command software-properties-gtk --open-tab=4The system will search for available drivers for your hardware.

If drivers marked with are found in the list proprietary (proprietary), select them, and click "Apply Changes." The system will download the packages, install them, and prompt you to reboot. After rebooting, the kernel module should load automatically.

sudo ubuntu-drivers autoinstall

This command will automatically find and install recommended drivers for all devices in the system, including network cards. This is the easiest way to resolve the issue for beginners. However, if the automatic search yields no results, your adapter may be too new or, conversely, too rare.

What to do if the drivers are not in the list?

If the default repository doesn't contain drivers, try installing the linux-firmware package via the terminal: sudo apt install --reinstall linux-firmware . You should also check the laptop manufacturer's website for Linux drivers, although this is rare.

Solving problems with Broadcom and Realtek

Chipsets Broadcom have historically raised the most questions in the Linux world. They often require a package to work. bcmwl-kernel-sourceIf automatic installation doesn't help, try installing it manually after connecting to the internet via an Ethernet cable or USB modem.

sudo apt update

sudo apt install bcmwl-kernel-source

With devices Realtek The situation can be more complex, especially with RTL88xx series models. Compiling the driver from source code is often required. This requires installing the kernel headers and build tools:

sudo apt install build-essential git dkms linux-headers-$(uname -r)

After installing the dependencies, find the driver repository for your specific model on GitHub, clone it, and run the installation script. This process requires careful attention, as the commands may vary for different chipset versions.

  • 🛠 For Broadcom, uninstalling and reinstalling the package often helps bcmwl-kernel-source.
  • 🛠 For Realtek, search for drivers by the exact device ID (for example, RTL8812AU).
  • 🛠 Make sure you have an internet connection before you start installing the drivers.

⚠️ Attention: After a Linux kernel update, manually installed drivers may stop working. You'll need to reinstall them or configure DKMS to automatically rebuild modules.

Setting up static IP and DNS

Corporate networks or servers often require a fixed IP address. In Ubuntu, this can be configured through the graphical interface in the IPv4 section, selecting the "Manual" method. You'll need to enter the IP address, netmask, gateway, and DNS servers.

If you prefer the terminal, use nmcli to modify a connection. First, find out the connection name with the command nmcli connection show. Then change the method to static:

nmcli connection modify "ConnectionName" ipv4.method manual ipv4.addresses 192.168.1.50/24 ipv4.gateway 192.168.1.1 ipv4.dns "8.8.8.8 8.8.4.4"

After changing the settings, you need to reactivate the connection for the changes to take effect. This can be done with the command nmcli connection up"ConnectionName"Check the functionality by pinging an external resource.

Sometimes providers block access when the MAC address or required DNS changes. In such cases, manually configure the DNS to Google servers (8.8.8.8) or Cloudflare (1.1.1.1) can significantly speed up the opening of pages and solve the “No Internet access” problem even if there is a connection.

Why does Wi-Fi turn off by itself?

A common cause is power saving mode. The system disables the adapter to conserve battery life. Disable this with the command: sudo sed -i's/3/2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf (this parameter may vary in different NM versions).

How to reset all network settings?

Delete the NetworkManager configuration files in the /etc/NetworkManager/system-connections/ folder (care required) or simply restart the service: sudo systemctl restart NetworkManager.

Where can I view connection error logs?

Use the journalctl -u NetworkManager -f command to view logs in real time or grep Wi-Fi /var/log/syslog to search for historical entries.

Does Wi-Fi 6 work in Ubuntu?

Yes, modern Linux kernels (5.10+) and drivers fully support the 802.11ax (Wi-Fi 6) standard, but this requires a compatible adapter and router.