Transition to an operating system Linux It's often a welcome revelation for users seeking stability and security. However, the first and most significant barrier a newcomer faces is the lack of an internet connection immediately after installing the system. Ubuntu While it's renowned for its user-friendliness, the specifics of wireless network drivers sometimes require manual intervention. In this article, we'll cover all possible connection scenarios, from automatic network detection to complex terminal configuration.
Modern distributions such as Ubuntu 24.04 LTS, have excellent hardware support out of the box. Graphical interface Allows you to connect to your home network in a couple of clicks, unless your hardware is an exotic model. However, knowledge of the command line gives you complete control and allows you to diagnose problems that aren't visible in the settings menu. We'll cover both approaches so you can choose the one that's most convenient for you.
It's important to understand that the absence of a Wi-Fi button or network list can be caused by more than just a software glitch. Often, the cause lies in proprietary drivers that weren't installed automatically due to a lack of access to the repositories. The key is to have temporary internet access via an Ethernet cable or USB modem to initially download the necessary packages. Without this step, it may not be possible to resolve some issues with the wireless module.
Checking the status of the wireless adapter
Before attempting to enter a password or search for networks, you need to make sure the system actually "sees" your Wi-Fi adapter. There's a powerful utility for Linux that does this. nmcli (Network Manager Command Line Interface), which displays the status of all network interfaces. Launch the terminal and enter the command to check the status of the radio modules. This is the first step in any diagnostic, allowing you to determine whether the communication module is physically enabled.
If you see the line in the command output wifi: enabled, then the adapter is software-active. However, if it is displayed wifi: disabled or the device isn't listed at all, the problem may be deeper. The adapter may be disabled by a hardware switch on the laptop case or blocked at the device level. BIOS/UEFIIt's also worth checking whether the system is in Airplane Mode, which forcibly disables all wireless interfaces.
⚠️ Attention: In some laptop models (especially HP And Dell) The Wi-Fi hotkey combination may block the module at the firmware level. If enabling it in software doesn't help, try rebooting while holding down the function key.
For more detailed information about which chip is installed in your system and whether a driver is loaded for it, use the command lspci for internal cards or lsusb for external USB dongles. Search for the chip model (for example, Realtek RTL8821CE or Intel AX200) in Ubuntu documentation will help you understand whether it requires additional installation of proprietary drivers. Often, it is the lack of microcode for new chips that is the cause. Wi-Fi 6 becomes the cause of inoperability.
Connecting via the GNOME graphical interface
For most users of the standard desktop environment GNOME The connection process is extremely simplified and doesn't require any knowledge of commands. The system panel is located in the upper right corner of the screen, next to the sound and power indicators. Clicking the network icon (usually looks like two triangles or a computer with a cable) opens a drop-down menu where the switch should be. Wi-FiIf it is disabled, activate it using the slider.
Once enabled, the system will begin scanning for available access points. The list is sorted by signal strength, but you can also sort it by security or frequency. Select your network from the list and click "Connect." If the network is hidden (not broadcasting) SSID), you must select "Connect to a hidden network" and enter the name manually. The system will prompt you for a password; pay attention to your keyboard layout, as Caps Lock may be enabled without your knowledge.
- 📡 Make sure the correct security standard is selected (usually WPA2/WPA3 Personal) if the system prompts you to select manually.
- 🔑 Saving your password in your keychain allows you to automatically connect to the network in the future without re-entering it.
- ⚙️ By clicking on the gear next to the network name, you can set up a static IP address or proxy server.
The network settings also include an "Identity" tab where you can change the device's network name. This is useful in corporate environments or when you need to quickly identify your device. Ubuntu PC Among the many other devices in the router's list of connected clients, you can also see the interface's MAC address, which may be needed for filtering on the router's side.
Setting up Wi-Fi via the terminal (nmcli and netplan)
For server versions Ubuntu Server or when troubleshooting the graphical interface, the terminal is indispensable. Utility nmcli is a text-based frontend for NetworkManager. First, run the command nmcli radio wifi onto ensure the radio module is enabled. Then scan for available networks with the command nmcli dev wifi list, which will display a table with available access points, their signal strength and security status.
To connect to the network, use the following command, substituting your credentials. Be careful to escape any special characters in the password. If the connection is successful, the system will display a device activation message. If an error occurs, check the network name (SSID) and character registration, as Linux is case-sensitive.
nmcli dev wifi connect "Your_Network_Name" password "Your_Password"
Newer versions of Ubuntu, especially on servers, may use a configuration manager. NetplanConfiguration files are located in the directory /etc/netplan/ and have an extension .yamlYAML syntax requires strict indentation (no spaces or tabs allowed). Below is an example configuration for a wireless interface specifying a static IP.
network:version: 2
renderer: networkd
wifis:
wlp2s0:
access-points:
"HomeNetwork":
password: "secret_password"
dhcp4: true
After making changes to the configuration file, you need to apply them with the command sudo netplan applyIf the syntax is incorrect, the system will return an error and refuse to apply the settings, preventing you from losing access to the server. This is a reliable network configuration method that persists after reboots and is independent of the graphical shell.
☑️ Terminal setup checklist
Installing and updating Wi-Fi drivers
One of the most common causes of Wi-Fi issues in Ubuntu is the lack of proprietary drivers. Unlike Windows, where drivers are often included on a disk or downloaded from the manufacturer's website, in Linux they are often built into the kernel or available through repositories. To find and install them, use the "Additional Drivers" utility. Launch it through the application search or with the command ubuntu-drivers devices in the terminal.
The system will analyze the hardware and offer available drivers. If there are no drivers for your adapter (often this is Broadcom or some models Realtek) There's a recommended driver, select it, and click "Apply Changes." This process requires an active internet connection, so if Wi-Fi isn't working, use an Ethernet cable or share the internet from your phone via USB (RNDIS/NCM mode).
| Chip manufacturer | Driver type | Status in Ubuntu | Comment |
|---|---|---|---|
| Intel | Open (iwlwifi) | Built into the kernel | Works great, rare problems |
| Realtek | Partially open | Requires DKMS | Drivers from the repository are often needed |
| Broadcom | Proprietary | Additional drivers | The bcmwl-kernel-source package is needed. |
| MediaTek | Open/Proprietary | Depends on the model | New models may require patches |
If automatic installation doesn't work, your adapter may be too new and drivers for it aren't yet available in the stable repository. In this case, you may need to manually compile the driver from the source code on GitHub. This is a more complex process that requires installing packages. build-essential, dkms and kernel header files (linux-headers). Always check the compatibility of the driver version with the kernel version of your system.
⚠️ Note: Interfaces and package names may change with the release of new Ubuntu versions. If the standard methods don't work, check the official Ubuntu forum or the hardware manufacturer's knowledge base for up-to-date information for your specific adapter model.
What to do if the driver disappeared after updating the kernel?
Often, when updating the Linux kernel, third-party drivers (DKMS) may stop loading. In this case, you need to reinstall the driver package or run the sudo dkms autoinstall command to rebuild the modules for the new kernel.
Diagnosing and resolving connection problems
Even with the drivers installed, the connection may be unstable or even absent. First, check the system logs. dmesg | grep -i wifi or journalctl -u NetworkManager will show the latest events related to the network manager and wireless adapter. Look for errors with the words "firmware," "failed to load," or "disassociated." These messages will point to the specific cause of the failure, whether it's a power, signal, or configuration issue.
A common problem is an address conflict or a stuck NetworkManager. In such cases, restarting the NetworkManager service without rebooting the entire system helps. This is a safe operation that often restores the interface's functionality. It's also worth checking whether a firewall is blocking it (UFW) connection, although by default it should not interfere with outgoing traffic.
- 🔄 Restart the service with the command
sudo systemctl restart NetworkManager. - 📡 Check the signal strength; if it is below -75 dBm, the connection may be interrupted.
- 🔒 Make sure MAC address filtering is not enabled in your router settings.
If the problem only occurs on certain frequencies, try switching your router to 2.4 GHz or 5 GHz only mode. Some older adapters don't work well with 80 MHz channel width or the standard Wi-Fi 6 (802.11ax)In the driver settings (via modprobe), you can forcefully disable new standards to test connection stability.
Optimizing power consumption and stability
Ubuntu laptops often aggressively conserve power, which can lead to the Wi-Fi adapter being disabled to conserve battery life. This manifests itself as intermittent connection drops or an inability to connect after waking from sleep mode. A power management tool is used. powertopInstall it through sudo apt install powertop and launch it for analysis. The "Tunables" tab will show the power saving status for your Wi-Fi device.
To disable power saving for Wi-Fi, create a configuration file for NetworkManager. This will prevent the adapter from going into sleep mode. Create the file /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf and change the parameter value wifi.powersave to 2 (which means power saving is disabled). This small change can significantly improve connection stability on unstable networks.
[connection]
wifi.powersave = 2
It's also worth paying attention to IPv6 settings. If your ISP doesn't support IPv6, the system's attempts to establish a connection via this protocol may cause connection delays. In the network connection settings in the graphical interface or via nmcli You can set the IPv6 method to "Ignore" which will speed up the address acquisition process.
How to permanently disable airplane mode?
If the airplane mode button in the interface is stuck and prevents you from turning on Wi-Fi, you can try resetting rfkill with the command sudo rfkill unblock all . If this doesn't help, you may need to edit the kernel module or BIOS configuration files.
Frequently Asked Questions (FAQ)
Why doesn't Ubuntu see my Wi-Fi adapter even though it works in Windows?
Ubuntu likely lacks a proprietary driver for your Wi-Fi model. In Windows, drivers are often preinstalled by the manufacturer. You need to find the adapter model (using lspci or lsusb), find the corresponding package in the Ubuntu repositories ("Additional Drivers"), or download the driver from the manufacturer's website and compile it manually using the internet from another device.
How to connect Ubuntu to a hidden Wi-Fi network?
In the GUI, when selecting a network, click "Connect to a hidden network" and enter the exact name (SSID). In the terminal, use the command: nmcli con add type wifi ifname wlan0 con-name "MyHiddenSSID" ssid "MyHiddenSSID" wifi-sec.key-mgr wpa-psk wifi-sec.psk "password". Make sure the network name is case-sensitive.
Is it possible to share Wi-Fi with Ubuntu (create an access point)?
Yes, modern versions of Ubuntu allow you to create a hotspot directly from the network settings menu. Select "Use as access point" in the Wi-Fi settings. You can also do this in the terminal using nmcli, specifying the interface mode as "ap" (access point).
What to do if Wi-Fi is slow after installing Ubuntu?
Try disabling Wi-Fi power saving as described in the optimization section. Also, check if you're using an older security standard (WEP/TKIP) that's reducing speed. Switching your router to a fixed channel (e.g., 1, 6, or 11 for 2.4 GHz) instead of "Auto" can also improve stability and speed.