Wifi Guide

How to Activate Wifi on Ubuntu? Reliable Enablement Process

Introduction Ubuntu is one of the most popular Linux distributions in the world, prized for its stability, user-friendly interface, and strong community support. Whether you are running Ubuntu on a laptop, a desktop with a wireless card, or a virtual machine,

HowToFixWiFi

Introduction

Ubuntu is one of the most popular Linux distributions in the world, prized for its stability, user-friendly interface, and strong community support. Whether you are running Ubuntu on a laptop, a desktop with a wireless card, or a virtual machine, getting your wireless connection up and running is usually one of the first tasks after installation. For new users, however, the process can feel confusing, especially if the WiFi option is missing, grayed out, or simply not responding.

If you are wondering How to Activate Wifi on Ubuntu?, you are not alone. Many users encounter situations where the wireless interface is disabled by a software switch, blocked by a system setting, or missing the proper driver. This guide walks you through every reliable method to enable WiFi on Ubuntu, from the graphical desktop environment to command-line tools, driver installation, and troubleshooting common issues.

By the end of this article, you will know how to check if your WiFi hardware is recognized, how to unblock a disabled wireless adapter, how to connect to a network using both the GUI and the terminal, and what to do when standard methods fail. The steps below apply to recent Ubuntu releases, including Ubuntu 22.04 LTS and Ubuntu 24.04 LTS, though most concepts remain valid across versions.

Table of Contents


Understanding How WiFi Works on Ubuntu

Before diving into the activation steps, it helps to understand the layers involved in Ubuntu WiFi connectivity. When you click the WiFi icon or run a command to enable wireless networking, several components work together:

  • The wireless hardware: Your laptop or desktop has a WiFi adapter, either built-in or connected via USB or PCIe. Common manufacturers include Intel, Realtek, Broadcom, and Qualcomm Atheros.
  • The Linux kernel driver: The kernel includes open-source drivers for many wireless chips. Some hardware requires proprietary firmware or drivers that are not installed by default.
  • NetworkManager: This is the background service Ubuntu uses to manage network connections. It handles scanning, connecting, and remembering WiFi networks.
  • rfkill: A Linux tool that manages radio transmitters. It can soft-block or hard-block WiFi, Bluetooth, and other wireless devices.

If any layer in this chain is broken, WiFi will not activate. For example, the driver might be present but the radio could be soft-blocked by rfkill, or NetworkManager might be stopped. Understanding this helps you troubleshoot more effectively when How to Activate Wifi on Ubuntu? becomes a real problem on your system.

Prerequisites Before You Begin

Before attempting to activate WiFi, gather the following:

  • Administrator access: You will need sudo privileges to install drivers, restart services, or modify network configurations.
  • An internet backup: If possible, connect via Ethernet cable or use your phone’s USB tethering. This ensures you can download drivers or packages if WiFi is completely down.
  • Your Ubuntu version: Open a terminal and run lsb_release -a to confirm your release. Steps are similar across versions, but menu labels can differ slightly between Ubuntu GNOME and other flavors like Kubuntu or Xubuntu.
  • Knowledge of your wireless adapter: Run lspci -knn | grep Net -A3 or lsusb to identify your WiFi chipset. This is useful if you need to install a specific driver later.

With these ready, you can proceed through the activation methods below.

Method 1: Activate WiFi Using the Ubuntu GUI

The graphical method is the easiest starting point for most users. Ubuntu uses the GNOME desktop by default, which includes a straightforward Settings panel for networking.

Step 1: Open the Settings Application

Click the system menu in the top-right corner of your screen and select the gear icon labeled Settings. Alternatively, open the application grid and search for “Settings.”

Step 2: Navigate to the WiFi Panel

In the Settings window, look at the left sidebar and click WiFi. If you do not see WiFi listed, your wireless adapter may be disabled at the hardware or driver level, and you should try the terminal methods later in this guide.

Step 3: Turn WiFi On

You will see a toggle switch at the top of the WiFi panel. Click it to switch from Off to On. Once enabled, Ubuntu begins scanning for available wireless networks.

Step 4: Connect to a Network

  1. Wait for the list of nearby SSIDs to populate.
  2. Click the name of the network you want to join.
  3. If the network is secured, enter the password when prompted and click Connect.
  4. For open networks, simply click Connect.

After a few seconds, the WiFi icon in the top bar should show signal strength, indicating that you are connected. If the toggle immediately flips back to Off, or if no networks appear, proceed to the rfkill and driver sections below.

Method 2: Activate WiFi Using the Terminal with nmcli

The nmcli tool is a command-line interface for NetworkManager. It is powerful, scriptable, and works even when the graphical desktop is unresponsive. This is often the fastest way to answer How to Activate Wifi on Ubuntu? when you only have terminal access.

Step 1: Check WiFi Radio Status

Run the following command to see whether WiFi is enabled:

nmcli radio wifi

If the output is disabled, proceed to Step 2. If it is enabled but you still have no connection, skip to Step 4.

Step 2: Enable WiFi Radio

Turn the wireless radio on with:

nmcli radio wifi on

You should see no output on success. Verify the change by running nmcli radio wifi again; it should now report enabled.

Step 3: Scan for Available Networks

List nearby wireless access points:

nmcli device wifi list

This command displays SSIDs, signal strength, security type, and channel information.

Step 4: Connect to a Network

To connect to a secured network, use:

nmcli device wifi connect "Your-SSID" password "Your-Password"

Replace Your-SSID and Your-Password with your actual network name and passphrase. If the connection succeeds, nmcli reports that the device was successfully activated.

Step 5: Verify the Connection

Check your IP address and connection state:

ip addr show wlan0

Note that your wireless interface might be named wlan0, wlp2s0, or something similar depending on your hardware. Look for an inet address to confirm you have received an IP from the router.

Method 3: Unblock WiFi Using rfkill

Sometimes WiFi will not activate because the wireless radio is blocked. Linux uses rfkill to manage software and hardware blocks on wireless devices.

Step 1: List Wireless Devices and Block Status

Run:

rfkill list

Look for entries labeled Wireless LAN or WiFi. You will see one of two block types:

  • Soft blocked: yes — The wireless radio is disabled by software. You can unblock it with a command.
  • Hard blocked: yes — The wireless radio is disabled by a physical switch, function key, or BIOS setting. Software alone cannot override this.

Step 2: Unblock WiFi

If WiFi is soft-blocked, run:

sudo rfkill unblock wifi

You can also unblock all wireless devices with sudo rfkill unblock all. After running this, check rfkill list again to confirm the soft block is cleared.

Step 3: Resolve Hard Blocks

If your device shows a hard block, check for:

  • A physical wireless switch on the side of your laptop.
  • A function key combination (often Fn + F2 or Fn + F12) that toggles wireless.
  • BIOS/UEFI settings that disable the wireless card.

Toggle the physical switch or key, then run rfkill list again. Once the hard block is removed, use nmcli radio wifi on or the GUI to finish activation.

Method 4: Restart the NetworkManager Service

NetworkManager is the daemon that controls wired and wireless connections on Ubuntu. If it crashes or enters a bad state, WiFi may appear inactive even when the hardware is fine.

Restart the service with:

sudo systemctl restart NetworkManager

To check whether it is running:

systemctl status NetworkManager

Look for active (running) in the output. After restarting, wait a few seconds and try the GUI toggle or nmcli radio wifi on again.

Installing Missing WiFi Drivers on Ubuntu

If none of the methods above reveal your WiFi adapter, the issue is likely a missing driver or firmware. Ubuntu includes many open-source drivers, but some popular chipsets require proprietary software.

Step 1: Identify Your Wireless Adapter

Run one of these commands to find your hardware:

lspci -knn | grep Net -A3

or, for USB adapters:

lsusb

Look for lines mentioning “Network controller,” “Wireless,” or the name of your chipset vendor.

Step 2: Use Ubuntu Additional Drivers

  1. Open Software & Updates from the application menu.
  2. Click the Additional Drivers tab.
  3. Wait for Ubuntu to scan your hardware.
  4. If a proprietary WiFi driver appears in the list, select it and click Apply Changes.
  5. Restart your computer when prompted.

This method works well for Broadcom and some NVIDIA-related wireless packages.

Step 3: Install Firmware Manually

If Additional Drivers does not help, install the generic firmware package:

sudo apt update
sudo apt install linux-firmware

Reboot after installation. Many Realtek, Intel, and Ath9k devices start working once linux-firmware is present.

Step 4: Install Vendor-Specific Drivers

Some adapters need out-of-tree drivers. For example:

  • Broadcom: May require bcmwl-kernel-source or firmware-b43-installer.
  • Realtek: Some RTL8821CE or RTL88x2BU chips need drivers from GitHub repositories maintained by the community.

When installing third-party drivers, follow the documentation provided by the driver maintainer and ensure you have build-essential and kernel headers installed:

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

Troubleshooting Common WiFi Activation Problems

Even after enabling WiFi, you may encounter issues. Here are the most frequent problems and their solutions.

WiFi Toggle Is Grayed Out

If the WiFi switch in Settings cannot be clicked, the device is likely hard-blocked or soft-blocked. Run rfkill list and clear any blocks. Also check for a physical switch on your laptop chassis.

No WiFi Networks Appear

This usually means the wireless interface is down. Bring it up with:

sudo ip link set wlan0 up

Replace wlan0 with your actual interface name from ip link. Then rescan with nmcli device wifi list.

Connected but No Internet

If you connect to a router but cannot browse:

  • Check DNS settings. Try setting DNS to 1.1.1.1 or 8.8.8.8 in the WiFi connection settings.
  • Disable WiFi power management, which can cause intermittent drops:
sudo iwconfig wlan0 power off

To make this permanent, you may need to create a NetworkManager dispatcher script or edit the connection profile.

WiFi Disconnects After Sleep

Ubuntu sometimes suspends the wireless card to save power. In Settings > Power, adjust suspend behavior, or disable WiFi power saving as shown above.

Authentication Failures

Double-check the password. If you recently changed your router’s WiFi password, tell Ubuntu to forget the network and reconnect from scratch. In Settings, click the gear icon next to the saved network and choose Forget, then reconnect.

Comparison: GUI vs Terminal vs rfkill Methods

The table below compares the three primary approaches to activating WiFi on Ubuntu so you can choose the best one for your situation.

Method Ease of Use Best For Requirements Pros Cons
GUI (Settings) Very Easy Desktop users, beginners Graphical desktop session Visual feedback, no commands to memorize Fails if desktop environment is broken
nmcli (Terminal) Moderate Server editions, advanced users Terminal access, NetworkManager running Fast, scriptable, works over SSH Requires command-line familiarity
rfkill Moderate Blocked wireless radios Root or sudo privileges Clears soft/hard block states Does not install drivers or connect to SSIDs
NetworkManager Restart Easy Service glitches systemd, sudo access Resets network daemon state Temporary fix if underlying issue remains

Tips and Best Practices for Stable WiFi on Ubuntu

Activating WiFi is only the first step. Keeping it stable requires good habits:

  • Keep Ubuntu updated: Run sudo apt update && sudo apt upgrade regularly to receive kernel and firmware improvements.
  • Use LTS releases: Ubuntu Long Term Support versions receive driver and stability updates for five years, making them ideal for daily use.
  • Document your adapter: Note down your wireless chipset model. If you reinstall Ubuntu, you will know exactly which driver to look for.
  • Disable power saving for critical connections: If you rely on WiFi for work, turn off WiFi power management to prevent unexpected disconnects.
  • Back up connection profiles: NetworkManager stores WiFi passwords and settings in /etc/NetworkManager/system-connections/. Back these up before major system changes.
  • Avoid mixing configuration tools: Stick to either NetworkManager or manual /etc/network/interfaces configuration, not both, to prevent conflicts.

Advanced WiFi Configuration and Management

Power users may want finer control over wireless networking. Below are a few advanced options.

Managing Connections with nmtui

If you prefer a text-based graphical interface over raw commands, install and run nmtui:

sudo apt install network-manager
nmtui

This provides a menu-driven way to activate, deactivate, and edit WiFi connections without leaving the terminal.

Editing Netplan Configuration

Modern Ubuntu uses Netplan for network configuration. While NetworkManager handles WiFi on desktops, server installations may use YAML files in /etc/netplan/. Edit these carefully and apply changes with:

sudo netplan apply

Hidden SSIDs and MAC Addresses

To connect to a hidden network via terminal:

nmcli device wifi connect "Hidden-SSID" password "Password" hidden yes

You can also spoof or set a specific MAC address for privacy in the connection settings, though some routers use MAC filtering and may block unfamiliar addresses.

Frequently Asked Questions

Why does my WiFi option disappear after a system update?

Kernel updates can sometimes replace or break out-of-tree drivers. Reinstalling linux-firmware or the proprietary driver package usually restores functionality.

Can I activate WiFi without a graphical desktop?

Yes. Use nmcli or nmtui in the terminal. Ubuntu Server does not include a GUI by default, so command-line tools are the standard approach.

How do I know if my WiFi is hard-blocked?

Run rfkill list. If the output shows Hard blocked: yes for your wireless device, no software command can enable it until you toggle the physical switch, function key, or BIOS setting.

What if my WiFi adapter is not listed at all?

The kernel may not have a driver for your hardware. Identify the chipset with lspci or lsusb, then search for a compatible Linux driver or install linux-firmware.

Does Ubuntu support WiFi 6 and WiFi 6E?

Yes, provided your wireless adapter and firmware support it. Recent Intel and Qualcomm chips generally work well on Ubuntu 22.04 and newer.

How do I forget a WiFi network?

Open Settings, go to WiFi, click the gear icon next to the saved network, and select Forget. Alternatively, use nmcli connection delete "SSID".

Conclusion

Activating wireless networking on Ubuntu does not have to be complicated. Most users can succeed with the graphical Settings panel, but when that fails, the terminal offers reliable alternatives through nmcli, rfkill, and NetworkManager service management. If your hardware is not recognized, installing the correct driver or firmware package usually resolves the issue.

Now that you know How to Activate Wifi on Ubuntu?, you can handle everything from a simple toggle to deeper driver troubleshooting. Keep your system updated, know your wireless adapter model, and bookmark this guide for the next time you need to get online quickly. With these methods in your toolkit, you will be able to connect to WiFi on Ubuntu confidently, whether you are using a desktop, laptop, or server.