operating system Linux Wireless has long ceased to be the preserve of select programmers and has become a reliable platform for everyday work, where connection stability plays a critical role. Modern distributions like Ubuntu offer an intuitive graphical interface that allows you to connect to a wireless network in seconds, almost as easily as in Windows or macOS. However, under the hood, this system conceals a powerful toolkit that gives the user complete control over network adapters and security settings.
In this guide, we will cover all aspects of setting up wireless Internet: from simply entering a password in a graphical menu to fine-tuning via the command line using a utility nmcliYou'll learn how to diagnose driver issues if your adapter isn't detected by the system and how to optimize settings for maximum speed. Understanding these processes will allow you to feel confident in any situation, even if the graphical environment stops responding.
Users often encounter a situation where, after updating the kernel or installing the system on a new laptop, the Wi-Fi module is not working correctly or is completely missing from the list of available devices. This may be due to proprietary drivers or configuration issues. NetworkManagerWe'll focus on troubleshooting these issues to ensure your Ubuntu experience is a positive one. Get ready to dive into the world of open source, where you're the primary administrator of your network.
Connecting via the GNOME graphical interface
The most obvious and simple way to set up internet access is to use the built-in tools of the graphical shell. In the standard desktop environment GNOME, which is the default in Ubuntu, makes network management as convenient as possible. You don't need to know complex commands; all you need is your access point password. The system automatically scans the airwaves and offers a list of available networks, ranked by signal strength.
To get started, look in the upper-right corner of the screen where the system indicator panel is located. Clicking the network icon (usually two arcs or a computer with a cable) will open a drop-down menu. If the wireless adapter is active, you'll see a list of network names (SSID). Select the desired network, enter the password in the window that appears, and click "Connect." The system will remember this network and connect to it automatically when it comes into range.
⚠️ Important: If you're connecting to a public network at a cafe or airport, make sure your profile settings are set to "Public." This will hide your computer from other devices on the network, increasing your security.
Sometimes you need to hide the network name or change IP addressing settings. To do this, select "Network Settings" (or "Network Options") in the same menu. This opens a full control window where you can switch between DHCP You can assign a static IP address, configure DNS servers, or specify a proxy server. These settings are stored in a specific connection profile, allowing you to have different configurations for home and office use.
Managing Wi-Fi via Terminal and nmcli
For system administrators and minimalists, a graphical interface can be overkill or simply unavailable (for example, in server versions of Ubuntu). This is where a utility comes in handy. nmcli (NetworkManager command line interface). This is a powerful tool that allows you to manage all aspects of your network without leaving your keyboard. Working with a terminal is often faster and provides more granular control over the connection process.
First of all, you need to make sure that the wireless interface is enabled. The command nmcli radio wifi will show the current status. If you see "disabled", activate the adapter with the command nmcli radio wifi onNext, run a scan for available networks.
nmcli device wifi scan
Once you receive the list, find your network name (SSID) and connect using the password. Be careful with the command syntax, as it's case-sensitive. If the password contains special characters, it's best to enclose them in quotation marks.
nmcli device wifi connect "Network_Name" password "Your_Password"
If the connection was successful, NetworkManager will create a new connection profile. To reconnect in the future, simply turn on the adapter, and the system will automatically use the saved data. To view all saved profiles, use the command nmcli connection showThis allows you to quickly switch between networks or delete old, unnecessary configurations.
☑️ Checking Wi-Fi settings in the terminal
Diagnosing driver and adapter issues
When Ubuntu doesn't detect a Wi-Fi adapter or can't connect to the network, it's most often due to a lack of suitable drivers. Unlike Windows, where drivers often come with the hardware, in the Linux world they may be built into the kernel or require separate installation. The first step in troubleshooting should always be to review the system logs and verify the presence of the device.
Use the utility lspci for devices on the PCI bus (internal laptop cards) or lsusb For external USB dongles. These commands will show the chipset vendor and model. For example, you might see "Intel Corporation Wireless 8265" or "Realtek Semiconductor Corp. RTL8812AU." Knowing the exact model, you can search for a solution online or use Ubuntu's built-in tool.
The system includes a convenient utility called "Additional Drivers." It automatically scans your hardware and offers to install proprietary drivers if they are needed and available in the repositories. You can launch it through the application search or with the command software-properties-gtk --open-tab=4If the system offers a driver, feel free to install it and reboot.
⚠️ Note: Network settings interfaces and available drivers may change with the release of new Ubuntu versions. Always check the official documentation for your release if the standard methods don't work.
If automatic installation doesn't work, you may need to manually compile the driver from source code. This is a more complex approach, requiring the installation of packages. build-essential And linux-headersReady-made installation scripts for popular chipsets (such as Realtek or Broadcom) are often available on GitHub. Be careful when downloading drivers from third-party sources—use only trusted repositories.
What should I do if the adapter disappeared after a kernel update?
If Wi-Fi is lost after a system update, the new kernel is likely incompatible with the installed driver module. Try booting with the previous kernel version via the GRUB menu when starting the computer. If this helps, uninstall the problematic driver and find an updated version compatible with the new kernel. You can also temporarily disable kernel updates until the driver developers release a patch.
Setting up static IP and DNS
In home networks, dynamic address assignment is most often used (DHCP), when the router automatically decides which IP address to assign to your computer. However, in corporate networks or when setting up a home server, a static IP may be required. This ensures that the device's address doesn't change after a reboot, which is important for port forwarding or file access.
You can configure a static address through the graphical interface in the IPv4 settings section. Switch the method from "Automatic (DHCP)" to "Manual." You'll need to enter the address (e.g., 192.168.1.50), network mask (usually 255.255.255.0), gateway (router address, e.g., 192.168.1.1), and DNS servers. Incorrect values in these settings will result in loss of internet access.
For terminal lovers, setting up a static IP via nmcli It looks like this. First, you need to change the connection method, and then enter the addresses. This action will create a new version of the connection profile.
nmcli con mod"ConnectionName" ipv4.method manualnmcli con mod"Connection_Name" ipv4.addresses 192.168.1.50/24
nmcli con mod"ConnectionName" ipv4.gateway 192.168.1.1
nmcli con mod"Connection_Name" ipv4.dns"8.8.8.8 1.1.1.1"
nmcli con up"ConnectionName"
Particular attention should be paid to DNS servers. The provider's default servers are sometimes slow or block certain resources. Using public DNS, such as Google DNS (8.8.8.8) or Cloudflare (1.1.1.1) can significantly speed up website loading and improve security. The table below lists popular DNS server options.
| DNS provider | Main address | Alternative address | Peculiarity |
|---|---|---|---|
| Google Public DNS | 8.8.8.8 | 8.8.4.4 | High speed and reliability |
| Cloudflare | 1.1.1.1 | 1.0.0.1 | Emphasis on privacy |
| OpenDNS | 208.67.222.222 | 208.67.220.220 | Phishing filtering |
| Quad9 | 9.9.9.9 | 149.112.112.112 | Blocking malicious domains |
Creating a Wi-Fi hotspot in Ubuntu
Ubuntu can not only consume the internet but also distribute it. The Hotspot feature lets you turn your laptop with a wired connection or 3G/4G modem into a fully-fledged Wi-Fi router. This is extremely useful for business trips, hotels with paid access for one device, or when you temporarily don't have a home router.
Creating an access point is very simple in the graphical interface. Go to Wi-Fi settings, click the menu (three dots or gear icon), and select "Use as access point." You'll be prompted to set a network name (SSID) and password. Once activated, other devices (smartphones, tablets) will be able to connect to your computer and access the network through it.
For more advanced settings, such as selecting a frequency range (2.4 GHz or 5 GHz) or channel, you will have to use the terminal. Command nmcli Allows you to create an access point profile with flexible parameters. This is especially useful if you want to share internet with an older device that doesn't support the 5 GHz network.
nmcli device wifi hotspot ssid"MyUbuntuHotspot" password"StrongPassword123" band bg
It's important to understand that when operating in access point mode, your wireless adapter switches to master mode. You won't be able to simultaneously receive and broadcast Wi-Fi on the same physical interface (although modern dual-band cards sometimes allow this by creating virtual interfaces). If you need internet access on your laptop, connect it via an Ethernet cable or USB modem.
Optimize and secure your wireless connection
Once you've successfully connected, it's time to consider security and stability. Ubuntu's default settings are quite secure, but some additional configuration wouldn't hurt. First and foremost, make sure you're using a modern encryption protocol. WPA3 or at least WPA2. WEP and WPA protocols have long been considered obsolete and are easily cracked.
To improve connection stability, you can disable power saving for your Wi-Fi adapter. By default, the system may power down the card to conserve battery, which can lead to micro-drops in connection or increased ping. This can be resolved by creating a configuration file for NetworkManager.
Create a file /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf (or modify the existing one) and add a line there that prohibits switching to sleep mode. The meaning 2 means turning off energy saving, and 3 — inclusion.
[connection]
wifi.powersave = 2
It is also recommended to update the system regularly. Team sudo apt update && sudo apt upgrade This should become your habit. Security updates bring new driver and kernel versions, which may contain fixes for wireless protocol vulnerabilities. Don't ignore notifications about available updates, especially if they're marked as important.
Why can't Ubuntu see my Wi-Fi adapter?
Most often, the problem is a lack of proprietary drivers for a specific chipset (often seen with Broadcom and some Realtek models). Check the "Additional Drivers" section in the system settings. The adapter may also be software-locked (rfkill); try running the command rfkill unblock wifi in the terminal.
How do I find the MAC address of my Wi-Fi adapter?
A MAC address is a unique identifier for network hardware. In Ubuntu, you can find it using the command ip link show or nmcli device showLook for the "link/ether" string in the command output for your wireless interface (usually wlan0 or wlp2s0). This will be necessary if your router is configured to filter by MAC addresses.
Is it possible to share Wi-Fi from a laptop if it is itself connected via Wi-Fi?
Standard Wi-Fi connection options for a single physical adapter don't allow you to simultaneously receive and broadcast a Wi-Fi signal (client mode and access point mode require different card settings). However, if you have a second USB Wi-Fi adapter, you can receive internet on the built-in card and broadcast via an external one. Alternatively, you can receive internet via a cable and broadcast via Wi-Fi.
How to reset all network settings in Ubuntu?
If you have accumulated a lot of configuration errors, you can delete the connection files. They are stored in the directory /etc/NetworkManager/system-connections/. Deleting profiles (.nmconnection) will force the system to forget all networks and passwords. After this, you will need to restart the service with the command sudo systemctl restart NetworkManager and re-entering passwords.
What to do if Wi-Fi is slow?
Check if the channel is overloaded. Use the utility iwlist or graphical Wi-Fi analyzers to find a free channel. Also, try switching between the 2.4 GHz and 5 GHz bands. Sometimes the issue can be resolved by changing regional settings (regdomain) using the command iw reg set, as different countries allow different power levels and channels.