Wifi Guide

How to Enable Wifi on Ubuntu? Clear Step-by-Step Setup

Introduction If you have recently installed Ubuntu or switched from another operating system, getting connected to the internet is usually the first thing on your to-do list. For many users, figuring out how to enable WiFi on Ubuntu? can feel confusing at firs

HowToFixWiFi

Introduction

If you have recently installed Ubuntu or switched from another operating system, getting connected to the internet is usually the first thing on your to-do list. For many users, figuring out how to enable WiFi on Ubuntu? can feel confusing at first, especially if the wireless option does not appear automatically or if your hardware requires additional drivers. The good news is that Ubuntu includes built-in tools that make connecting to WiFi straightforward once you know where to look.

This guide walks you through every method you might need, from turning on WiFi through the graphical interface to enabling it from the terminal. You will also learn how to troubleshoot common problems such as missing adapters, disabled wireless radios, and driver issues. Whether you are using Ubuntu Desktop or Ubuntu Server, this article will help you get online quickly and confidently.

Table of Contents

Prerequisites Before You Begin

Before diving into the steps for how to enable WiFi on Ubuntu?, it helps to confirm a few basics. Taking a moment to check these items can save you time later.

  • A working WiFi adapter: Most laptops have a built-in wireless card. Desktop users may need a USB WiFi adapter or a PCIe wireless card.
  • Ubuntu installed and running: These instructions apply to recent Ubuntu versions, including Ubuntu 20.04, 22.04, 24.04, and newer releases.
  • Administrative access: Some steps require sudo privileges to install drivers or modify network settings.
  • Optional wired connection: If your WiFi drivers are missing, a temporary Ethernet connection or a USB tether from your phone can help you download what you need.

Once you have confirmed these prerequisites, you can move on to checking whether Ubuntu recognizes your wireless hardware.

How to Check if Your WiFi Hardware Is Detected

Ubuntu cannot enable WiFi if it does not detect a wireless adapter. Checking hardware detection is a smart first step, especially if the WiFi option is missing from your system menu.

Check with the Terminal

Open the Terminal by pressing Ctrl + Alt + T and run one of the following commands:

lspci | grep -i network

This command lists PCI network devices. If you see a wireless controller in the output, Ubuntu recognizes the hardware. For USB WiFi adapters, use:

lsusb

You can also check the status of your network interfaces with:

ip link show

Look for an interface named something like wlan0, wlp2s0, or wlo1. If such an interface appears, your system has detected a wireless device.

Check with the System Information Tool

If you prefer a graphical approach, open Settings, go to About or System Details (depending on your Ubuntu version), and review the hardware information. This can confirm whether the system sees your network card.

How to Enable WiFi on Ubuntu Using the Graphical Interface

For most desktop users, the easiest way to learn how to enable WiFi on Ubuntu? is through the graphical interface. Ubuntu’s GNOME desktop provides a simple network menu in the top-right corner of the screen.

Step-by-Step: Using the System Menu

  1. Click the system menu in the top-right corner of the screen (where you see icons for network, sound, and power).
  2. Look for the WiFi section. If WiFi is turned off, you may see an option labeled Wi-Fi Off or a toggle switch.
  3. Click the WiFi option to expand it, then click Turn On or toggle the switch to the on position.
  4. Once WiFi is enabled, click Select Network to view available networks.
  5. Choose your network name (SSID) from the list.
  6. Enter the network password when prompted and click Connect.

If the connection is successful, the WiFi icon in the top bar will change to indicate signal strength. You should now be online.

Step-by-Step: Turning On WiFi in Ubuntu Settings

If the quick system menu does not show the options you need, you can enable WiFi through the full Settings application. This method gives you more control over network configuration.

  1. Open the Activities overview by pressing the Super key (usually the Windows key) or by clicking Activities in the corner.
  2. Type Settings and open the Settings app.
  3. In the left sidebar, click Wi-Fi (sometimes labeled Network depending on your version).
  4. Make sure the WiFi toggle at the top of the window is switched on.
  5. Wait a few seconds for Ubuntu to scan for available networks.
  6. Click the name of the network you want to join.
  7. Enter the security key (password) and click Connect.

You can also click the gear icon next to a connected network to view details such as IP address, DNS settings, and security type. This is useful if you need to troubleshoot or configure advanced options.

How to Enable WiFi on Ubuntu Using the Terminal (nmcli)

The terminal offers a powerful way to manage WiFi, especially on systems without a graphical interface or when troubleshooting. The nmcli command is part of NetworkManager and is available on most Ubuntu installations.

Check WiFi Status

nmcli radio wifi

This command tells you whether WiFi is enabled or disabled.

Turn WiFi On

nmcli radio wifi on

List Available Networks

nmcli device wifi list

Connect to a Network

nmcli device wifi connect "YourNetworkName" password "YourPassword"

Replace YourNetworkName and YourPassword with your actual network credentials. If the network name contains spaces, keep the quotation marks.

Verify the Connection

nmcli connection show --active

Using nmcli is one of the fastest answers to how to enable WiFi on Ubuntu? when you are working from the command line or connected via SSH.

How to Enable WiFi on Ubuntu Using nmtui

If you prefer a text-based interface that is easier to navigate than raw commands, nmtui (NetworkManager Text User Interface) is a great option. It provides a simple menu-driven experience inside the terminal.

Steps to Use nmtui

  1. Open the Terminal.
  2. Run the command: nmtui
  3. Select Activate a connection from the menu.
  4. Choose your WiFi network from the list of available connections.
  5. Press Enter to activate it.
  6. Enter the password if prompted.
  7. Select Back and then Quit to exit.

If nmtui is not installed on your system, you can install it with:

sudo apt update
sudo apt install network-manager

This tool is especially helpful on minimal Ubuntu installations or servers where a full desktop environment is not available.

Using rfkill to Unblock WiFi

Sometimes WiFi appears to be enabled in software but remains unavailable because it is blocked at the hardware or software level. The rfkill tool helps you check and remove these blocks.

Check for Blocks

rfkill list

The output shows whether your wireless device is soft blocked (blocked by software) or hard blocked (blocked by a physical switch or BIOS setting).

Unblock WiFi

sudo rfkill unblock wifi

After running this command, try enabling WiFi again using the Settings app or nmcli. If the device is hard blocked, check your laptop for a physical WiFi switch or a function key combination (such as Fn + F2) that toggles the wireless radio. You may also need to enable wireless in your system’s BIOS or UEFI settings.

How to Install WiFi Drivers on Ubuntu

If Ubuntu detects your WiFi card but cannot use it, or if no wireless option appears at all, you may need to install the correct driver. This is a common issue with certain Broadcom and Realtek chipsets.

Use Additional Drivers (Graphical Method)

  1. Connect to the internet temporarily using an Ethernet cable or USB tethering.
  2. Open Software & Updates from the Activities menu.
  3. Go to the Additional Drivers tab.
  4. Wait for Ubuntu to search for available drivers.
  5. Select the recommended proprietary driver for your wireless device.
  6. Click Apply Changes and enter your password.
  7. Restart your computer after the installation completes.

Install Drivers from the Terminal

You can identify your wireless chipset and install common driver packages using the terminal:

sudo ubuntu-drivers devices
sudo ubuntu-drivers autoinstall

For some Broadcom cards, the following package is often needed:

sudo apt update
sudo apt install bcmwl-kernel-source

After installing drivers, reboot your system and check whether WiFi is now available. Driver installation is often the key step in solving how to enable WiFi on Ubuntu? on laptops with proprietary wireless hardware.

Comparison of WiFi Enabling Methods

Different situations call for different approaches. The table below compares the main methods for enabling WiFi on Ubuntu so you can choose the one that fits your needs.

Method Best For Difficulty Requires Internet Works Without GUI
System Menu (GNOME) Everyday desktop users Easy No No
Settings App Users who want more control Easy No No
nmcli Advanced users, scripting, SSH sessions Moderate No Yes
nmtui Server users who prefer menus Easy No Yes
rfkill Fixing blocked wireless radios Moderate No Yes
Additional Drivers Missing or unsupported WiFi drivers Moderate Usually Yes Partially

Troubleshooting Common WiFi Problems

Even after following the standard steps, you may run into issues. Here are some of the most common problems and how to fix them when working out how to enable WiFi on Ubuntu?

WiFi Option Is Missing

  • Check if the wireless adapter is detected using lspci or lsusb.
  • Run rfkill list to see if the device is blocked.
  • Install missing drivers using the Additional Drivers tool or ubuntu-drivers autoinstall.
  • Restart NetworkManager with: sudo systemctl restart NetworkManager

WiFi Is Enabled but Cannot Find Networks

  • Make sure airplane mode is turned off.
  • Move closer to the router to rule out signal issues.
  • Restart the router and your computer.
  • Rescan for networks using nmcli device wifi rescan and then nmcli device wifi list.

Connected but No Internet Access

  • Check if other devices can access the internet on the same network.
  • Verify your IP address with ip a.
  • Test connectivity with ping -c 4 8.8.8.8. If this works but websites do not load, the issue may be DNS-related.
  • Try setting a different DNS server in your network settings, such as 8.8.8.8 or 1.1.1.1.

Authentication or Password Errors

  • Double-check that you entered the correct WiFi password.
  • Forget the network and reconnect. You can do this in Settings or with nmcli connection delete "NetworkName".
  • Ensure the router’s security settings (WPA2/WPA3) are compatible with your device.

How to Connect to a Hidden WiFi Network

Some networks do not broadcast their SSID. If you need to connect to a hidden network, you can still do it easily on Ubuntu.

Using the Settings App

  1. Open Settings and go to Wi-Fi.
  2. Click the menu icon (three dots or three lines, depending on your version) and select Connect to Hidden Network.
  3. Enter the network name exactly as it is configured on the router.
  4. Select the correct security type (usually WPA2 or WPA3).
  5. Enter the password and click Connect.

Using nmcli

nmcli device wifi connect "HiddenNetworkName" password "YourPassword" hidden yes

Connecting to hidden networks is part of understanding how to enable WiFi on Ubuntu? in environments where network names are intentionally concealed for privacy or organizational policies.

Managing Saved WiFi Networks

Over time, Ubuntu saves the networks you connect to. Managing these saved connections can help resolve conflicts and improve reliability.

View Saved Connections

nmcli connection show

Delete a Saved Connection

nmcli connection delete "NetworkName"

Edit Connection Settings

In the graphical interface, open Settings, go to Wi-Fi, click the gear icon next to a known network, and adjust settings such as auto-connect, proxy, IPv4/IPv6 configuration, and security details.

Removing outdated or duplicate network profiles can prevent Ubuntu from connecting to the wrong network automatically.

Tips and Best Practices for Reliable WiFi on Ubuntu

Once you have mastered how to enable WiFi on Ubuntu?, a few best practices can help keep your connection stable and secure.

  • Keep your system updated: Regular updates often include kernel improvements and driver fixes. Run sudo apt update && sudo apt upgrade periodically.
  • Use supported hardware when possible: WiFi adapters with good Linux support, such as many Intel chipsets, tend to work out of the box with fewer issues.
  • Restart NetworkManager when needed: If your connection becomes unresponsive, restarting NetworkManager is a quick fix: sudo systemctl restart NetworkManager.
  • Secure your connection: Use WPA2 or WPA3 encryption on your router and avoid connecting to unsecured public networks without a VPN.
  • Check power management settings: On some laptops, aggressive power saving can disable WiFi intermittently. Adjusting power management for your wireless interface may improve stability.
  • Keep a backup connection method: Having an Ethernet cable or USB tethering option available makes it much easier to download drivers if WiFi stops working.
  • Document working settings: If you configure custom DNS, static IP addresses, or special driver options, keep notes so you can restore them after updates or reinstalls.

Frequently Asked Questions

Why is there no WiFi option on my Ubuntu system?

The most common reasons are missing drivers, a blocked wireless radio, or hardware that is not being detected. Start by checking rfkill list and lspci | grep -i network. If the hardware is present but not working, install the appropriate driver using the Additional Drivers tool.

How to enable WiFi on Ubuntu? if I only have terminal access?

You can use nmcli radio wifi on to turn on WiFi, nmcli device wifi list to see networks, and nmcli device wifi connect "SSID" password "PASSWORD" to connect. Alternatively, use nmtui for a menu-based terminal interface.

Do I need to install drivers for WiFi on Ubuntu?

It depends on your hardware. Many Intel and Atheros wireless cards work automatically. Some Broadcom and Realtek adapters require proprietary drivers, which you can install through Software & Updates > Additional Drivers or with sudo ubuntu-drivers autoinstall.

How do I fix WiFi that keeps disconnecting on Ubuntu?

Try updating your system, disabling WiFi power management, restarting NetworkManager, and checking for driver updates. If the problem persists, test with another network to determine whether the issue is with your router or your Ubuntu system.

Can I enable WiFi on Ubuntu Server without a desktop environment?

Yes. Ubuntu Server users typically rely on nmcli, nmtui, or Netplan configuration files. NetworkManager tools are often the simplest option if they are installed. Otherwise, you can configure wireless settings through Netplan by editing the YAML configuration in /etc/netplan/.

What should I do if rfkill shows my WiFi is hard blocked?

A hard block usually means a physical switch or BIOS/UEFI setting is disabling the wireless adapter. Check your laptop for a hardware WiFi switch or function key. If no switch exists, restart your computer, enter the BIOS/UEFI setup, and ensure the wireless device is enabled.

Conclusion

Learning how to enable WiFi on Ubuntu? does not have to be complicated. In most cases, you can turn on WiFi in seconds using the system menu or the Settings app. When the graphical method is not available, tools like nmcli, nmtui, and rfkill give you full control from the terminal. And if your wireless adapter needs extra help, Ubuntu’s Additional Drivers utility makes it relatively simple to install the right software.

By following the steps in this guide, checking your hardware, choosing the right enabling method, and applying the troubleshooting tips when needed, you can get your Ubuntu system connected to WiFi reliably. With a stable wireless connection in place, you can focus on what matters most: using your system productively and securely.