How to Enable Wi-Fi on Ubuntu: From the Interface to the Terminal

operating system Ubuntu Linux is renowned for its stability and security, but for beginners, setting up a wireless connection can sometimes seem complicated. Unlike traditional systems, where everything works out of the box, Linux distributions sometimes require manual intervention to activate network adapters. This is especially true for laptop owners with specific requirements. network cards or after updating the system kernel.

Most often, the problem lies not in the physical failure of the equipment, but in the missing proprietary drivers or software blocking of the radio module. The system may disable power-saving modes by default that conflict with the Wi-Fi module. Understanding the principles of network managers in Linux will allow you to quickly restore access to the global network without reinstalling the OS.

In this guide, we will look at all possible ways to activate wireless communication: from simple actions in the graphical interface to deep diagnostics via command lineYou'll learn how to determine the adapter's status, install necessary packages, and troubleshoot common errors users encounter when first using Ubuntu.

Diagnosing the status of a wireless adapter

Before attempting to enable Wi-Fi, you need to make sure the system actually "sees" your wireless device. In Ubuntu, the network interface management utility is responsible for managing network interfaces. NetworkManager, but for initial diagnostics, it's better to use low-level tools. They will show the actual state of the hardware, regardless of the graphical interface.

Open a terminal and enter the command to list all network devices. This will display a detailed status report of all interfaces, including Ethernet and Wi-Fi. Note the lines marked as Wireless, and their status.

nmcli device status

If you see the word in the status column disconnected, which means the device is recognized but not connected to the network. Status unmanaged indicates that NetworkManager doesn't manage this device, and manual configuration files will be required. The most common issue is the device not being listed, which indicates a driver issue.

For more detailed information about the chip manufacturer and adapter model, use the command lspci for internal cards or lsusb for USB whistles. Find the lines containing the words in the output Network controller or WirelessWrite down the device ID; you'll need it to search for a specific driver.

⚠️ Attention: If the team lspci If your Wi-Fi adapter isn't showing up, check your BIOS/UEFI. In some laptops, the wireless module may be physically disabled at the firmware level.

It is also useful to check whether the radio interface is blocked by software. Utility rfkill shows the status of locks. Enter the command rfkill list allto see a list of devices and their blocking status (soft or hard). If you see Soft blocked: yes, this means that the blocking is set programmatically and can be removed.

📊 What is your Wi-Fi status in nmcli?
disconnected
unavailable
unmanaged
device not found

Activating Wi-Fi via the graphical interface

In modern versions of Ubuntu that use the desktop environment GNOMENetwork management is as simple as possible. Most users can resolve the issue simply by checking the system tray settings. This is the safest method and doesn't require any command knowledge.

In the upper right corner of the screen, find the network icon (usually two triangles or a computer monitor). Click it to open a drop-down menu. If Wi-Fi is off, you'll see a toggle next to "Wi-Fi." Toggle it to the "On" position. On.

If the switch is active but there are no networks, Airplane Mode may be enabled. Make sure this feature is disabled, as it forcibly silences all radios. Once enabled, the system will automatically scan for available access points.

Select your network from the list and click "Connect." If the network is password-protected, an input window will appear. Make sure your keyboard layout matches the required one, as Wi-Fi passwords sensitive to character case.

If successful, the network icon will change to a signal strength indicator. If the system displays "Connection failed" or "Unable to activate connection," the problem lies deeper—most likely in the drivers or security settings.

Controlling the radio module via the terminal

When the graphical interface is unresponsive or missing, the command line comes to the rescue. It's a powerful tool that allows you to manage the state radio interface directly, bypassing possible bugs of the graphical shell.

To remove the software blockage previously detected through rfkill, use the unblock command. This resets the software data transfer prohibition flag for all wireless devices or a specific device by ID.

sudo rfkill unblock wifi

After executing the command, check the status again. Word Soft blocked should change to noIf the lock remains, there may be a physical switch or key combination on the laptop case (for example, F2 or F12 with an antenna icon) that needs to be activated.

Sometimes you need to restart the network manager itself if it's stuck in an error state. This can be done without restarting the entire operating system, saving time. Enter the command to restart the NetworkManager service.

sudo systemctl restart NetworkManager

☑️ What to do when rfkill is blocked

Completed: 0 / 4

It is also worth checking whether the interface is in the "DOWN" state. The command ip link will show the link status. If next to the interface name (for example, wlan0 or wlp2s0) there is a status DOWN, it needs to be raised by the command sudo ip link set dev <interface_name> up.

Installing and updating drivers

The most common reason for Wi-Fi not working in Ubuntu is the lack of a suitable driver for your network cardUnlike Windows, where drivers are often included with the installer, in Linux some proprietary modules need to be installed manually.

Ubuntu provides a convenient tool called "Additional Drivers," which automatically scans your hardware and suggests available proprietary drivers. Find this utility in the application menu or through the search.

The system will search for drivers in the window that opens. If an alternative driver is available for your adapter (often Broadcom or Realtek), it will be displayed in the list. Select the recommended option and click "Apply Changes."

Manufacturer Driver type Status in Ubuntu Recommendation
Intel Open (iwlwifi) Built into the kernel Usually works right away
Broadcom Proprietary (bcmwl-kernel-source) Requires installation Use Additional Drivers
Realtek Various (rtl8xxx) Partial support Assembly may be required
Atheros Open (ath9k) Built into the kernel Stable work

If the automatic search doesn't help, you'll have to use the terminal. First, update your package lists so the system knows about the latest software versions available in the repositories. This is critical for finding the latest driver versions.

sudo apt update

sudo apt install bcmwl-kernel-source

Replace bcmwl-kernel-source The name of the package that's specific to your chip. After installation, be sure to reboot your computer so that the new kernel module loads and initializes the hardware.

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

If the standard Ubuntu repositories don't contain a driver for your exotic card, you'll need to search the source code on the manufacturer's website or GitHub. The installation process will be more complex: you'll need to compile the module using make and install, which requires installing the build-essential package and kernel headers (linux-headers).

Setting up static IP and DNS

Sometimes Wi-Fi turns on, the device connects to the router, but the internet doesn't work. This may be due to incorrect reception. IP addresses or DNS issues. In such cases, manually configuring network settings can help.

Go to the network settings via the graphical interface, select your Wi-Fi network, and click the gear icon. The "IPv4" tab allows you to switch the method from "Automatic (DHCP)" to "Manual." Here you can enter a static address if your router requires MAC address binding.

However, most often the problem is solved by changing DNS servers. Enter the DNS servers in the field 8.8.8.8 And 1.1.1.1 (from Google and Cloudflare, respectively). This often bypasses ISP blocking or local DNS errors.

⚠️ Attention: When manually setting an IP address, make sure you do not specify an address that is already taken by another device on the network, otherwise an IP conflict will occur and the connection will be lost for both devices.

For terminal users, DNS settings can be configured by editing the file /etc/resolv.conf, although in modern versions of Ubuntu with systemd-resolved It's better to use the command resolvectl or NetworkManager settings via nmcli.

nmcli con mod "ConnectionName" ipv4.dns "8.8.8.8 1.1.1.1"

Solving energy saving problems

Ubuntu strives to conserve laptop battery life by default, and this sometimes leads to the Wi-Fi module being disabled to conserve power. The adapter may spontaneously disconnect or become unstable.

To disable power saving for Wi-Fi, you need to create or edit the network manager configuration file. This will prevent the system from putting the wireless card into sleep mode.

Create a configuration file /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf. You need to change the parameter wifi.powersave for meaning 2, which means turning off the economy mode.

[connection]

wifi.powersave = 2

After making these changes, restart NetworkManager. This often resolves Wi-Fi drops on laptops where the drivers incorrectly process sleep signals from the operating system.

Frequently Asked Questions (FAQ)

Why did Wi-Fi disappear after updating Ubuntu?

A Linux kernel update may have caused a proprietary driver to become incompatible with the new kernel version. Try booting into Recovery Mode via GRUB and selecting the "dpkg" option to repair packages, or reinstall the driver package (sudo apt install --reinstall bcmwl-kernel-source).

How can I find out the exact model of my Wi-Fi adapter without internet access?

Use the command lspci -nnk | grep -iA2 netIt will display the device identifier (Vendor ID and Device ID) even without installed drivers. Using these codes, you can find the required driver on another device with network access.

Is it possible to share Wi-Fi from an Ubuntu laptop?

Yes, Ubuntu supports hotspot mode. There's a "Wi-Fi Hotspot" tab in the Wi-Fi settings. However, for this to work, your adapter must support Master mode, which is checked with the command iw list | grep "Supported interface modes".

What to do if Wi-Fi is visible but won't connect?

Check your network security type. Ubuntu may not support older encryption protocols (such as WEP) by default for security reasons. Also, try "forgetting" the network in the settings and reconnecting, carefully entering the password.