Transition to an operating system Linux Mint It's often a welcome revelation for users seeking stability and lightweight functionality, but the first obstacle to fully functional operation is the lack of an internet connection. Unlike Windows, where drivers are often built-in or installed automatically, in the open source world, manual intervention is sometimes required, especially if you don't have an Ethernet cable installed. Modern versions of the distribution, such as Linux Mint 21, are based on Ubuntu 22.04 LTS and have excellent hardware support, but the nuances of network configuration can still be confusing for a beginner.
In this guide, we'll cover all aspects of connection: from simple network selection in the graphical interface to complex terminal manipulations when automatic tools fail. You'll learn how to check the status of your wireless adapter, install proprietary drivers, and configure a static IP address if automatic distribution is unavailable. DHCP It's not working. It's important to understand that successful setup depends not only on the system version but also on the chipset of your Wi-Fi module, so we'll cover hardware diagnostic methods.
Don't panic if the network icon shows "Device not ready" or the network list is empty. This is normal for some adapter models that require loading additional kernel modules. We'll look at the tools. nmcli And nmtui, which allow you to manage connections even without a graphical shell. Critical to this is having access to the repositories to install drivers, which often requires a temporary connection via a USB modem or Ethernet cable.
Checking the compatibility and condition of the equipment
Before you begin configuring, you need to make sure the operating system can see your wireless adapter. In Linux, hardware and software drivers are separate, and a lack of network visibility often indicates that the kernel hasn't loaded the required module. For initial diagnostics, use the utility lspci for internal cards or lsusb For external USB dongles, launch the terminal and enter the command lspci -k | grep -A 3 -i networkto see which driver is currently being used.
If you see the line in the command output Kernel driver in use, which means the driver is active, and the problem most likely lies in the configuration settings or radio module blocking. If this line is missing, and only Kernel modules, the module exists but isn't loaded and must be activated manually. Sometimes the adapter may be software-blocked, in which case the system will display the "Hard Blocked" or "Soft Blocked" status.
⚠️ Note: If you are using a laptop, check the physical Wi-Fi switches on the case or the key combinations with
FnIn Linux, soft blocking is often caused by a power management conflict, which can be resolved with the commandsudo rfkill unblock wifi.
For a more in-depth analysis, you can use the utility inxi, which provides summary information about the system. The command inxi -N will show network devices and the drivers used. If the adapter is not displayed in any lspci, not in lsusbIt may be physically faulty or disabled in the BIOS/UEFI. In rare cases, a kernel update is required to support the latest hardware.
☑️ Diagnostics of Wi-Fi adapter
Connecting via the NetworkManager graphical interface
In most cases, connecting to a wireless network is Linux Mint does not require entering complex commands, as it is responsible for this NetworkManagerIn the lower right corner of the screen, in the system tray, there's a network icon (usually two arrows or a signal indicator). Clicking it opens a menu that should display a list of detected Wi-Fi networks. If the list is empty, make sure the Wi-Fi switch is turned on.
Select your network from the list and click on it. If the network is password-protected, a window for entering the security key will appear. It's important to select the correct encryption method, although the system usually detects it automatically. For home networks, the standard is WPA/WPA2-PersonalAfter entering the password, the system will attempt to obtain an IP address via DHCP and configure DNS servers automatically.
In some cases, such as corporate networks or when using hidden SSIDs, manual configuration may be required. Click "Connect to a hidden network" or select "Network settings" to create a new profile. Here you can set a static IP address if your router doesn't assign addresses automatically, or specify specific DNS servers, such as 1.1.1.1 from Cloudflare.
Once connected, the tray icon will change to show the signal strength. You can click it again to view connection details, including link speed and assigned IP address. If the connection is successful but the internet isn't working, the issue may be with your ISP or DNS settings, not the connection to the router itself.
Working with the terminal: nmcli and nmtui utilities
The graphical interface is convenient, but in server versions or during crashes X11/Wayland The only tool left is the terminal. The main utility for network management is nmcli (NetworkManager command line interface). First, you should display a list of available devices with the command nmcli device. Status connected means work, disconnected — the device is ready, but not connected, and unavailable - lack of driver or cable.
To scan networks, use the command nmcli device wifi listIt will show all available access points within range. To connect, enter the following command: nmcli device wifi connect "Network_Name" password "Your_Password"Please note that the network name and password are case sensitive, and spaces in the network name must be enclosed in quotation marks.
nmcli device wifi connect"HomeWiFi" password"SuperSecretPass123"
For those who prefer a pseudo-graphical interface, there is a utility nmtuiRun it with the command sudo nmtui (or simply nmtui (In some configurations). A text menu will open where you can select "Activate a connection," find your network in the list, and enter the password. This is ideal for beginners wary of syntax errors in the command line.
What should I do if nmcli reports "Secrets were required, but not provided"?
This error means the system was unable to save the password to the keyring. Try running the command with the --show-password flag for debugging, or ensure your user has write access to the NetworkManager configuration. Sometimes deleting the old profile helps: nmcli connection delete "NetworkName".
Installing drivers via Driver Manager
One of the most common reasons for Wi-Fi not working on Linux Mint is the lack of proprietary drivers for wireless cards Broadcom or RealtekFortunately, the distribution includes a convenient built-in tool called "Driver Manager," which automatically scans your hardware and suggests available solutions. You can find it in the main menu by searching for "Drivers."
Launch the program and wait for the scan to complete. If the system finds suitable drivers, they will be displayed in a list with radio buttons for selection. You need to select the recommended driver (usually marked as recommended) and click "Apply Changes." The process will take a few minutes as the packages are downloaded from the repositories.
| Chip manufacturer | Typical driver | Status in Linux | Installation required |
|---|---|---|---|
| Intel | iwlwifi | Built into the kernel | Rarely |
| Atheros | ath9k / ath10k | Built into the kernel | No |
| Broadcom | bcmwl-kernel-source | Proprietary | Often |
| Realtek | rtl88xxau-dkms | Depends on the model | Often |
⚠️ Note: An active internet connection is required for the Driver Manager to function and install packages. If Wi-Fi isn't working, use a temporary connection via USB modem (the modem mode on an Android smartphone is detected as Ethernet by the system) or a LAN cable.
After installing the drivers, be sure to restart your computer. In some cases, especially with modules DKMS (Dynamic Kernel Module Support) is a kernel module that is compiled specifically for your kernel version during installation. Without a reboot, the new module may fail to load, and the adapter will remain inactive.
Solving problems with Broadcom and Realtek
Devices from Broadcom historically require special attention in the Linux world. If the "Driver Manager" doesn't help, you can try installing the package manually. Older cards often require a package bcmwl-kernel-source, and for new ones - firmware-b43-installerInstallation is performed via the terminal using the command sudo apt install bcmwl-kernel-source.
The situation with Realtek It can be more complicated, especially with the new Wi-Fi 6 standards. Drivers are often not available in the repositories, and must be built from source code. This requires installing packages. git, build-essential and kernel header files (linux-headers-generic). The process looks like this: cloning the repository from GitHub, compiling and installing the module.
An example command to download the kernel headers needed for compilation:
sudo apt update && sudo apt install linux-headers-$(uname -r) build-essential git
After installing the headers, find the driver repository corresponding to your chip model (e.g., RTL8821CE) and follow the instructions on the project page. A common mistake is attempting to install the driver without the headers installed, which results in compilation errors.
Setting up static IP and DNS
In some networks, especially in the corporate segment or when using specific routers, automatic address acquisition may not work correctly. In this case, you need to enter static IP addressThis can be done through the graphical interface by opening the connection settings, selecting the IPv4 tab, and changing the method to "Manual".
You'll need to know the gateway address (usually the router's address, such as 192.168.1.1) and the network mask (usually 255.255.255.0). You can manually specify the DNS address using public servers, which often speeds up system response times and resolves access issues with some websites. Popular addresses: 8.8.8.8 (Google) and 1.1.1.1 (Cloudflare).
The static address can be configured through the terminal using the command nmcliFirst, you need to change the method to manual, then add the address and gateway. An example command for adding an address:
nmcli con mod"ConnectionName" ipv4.addresses 192.168.1.50/24 ipv4.gateway 192.168.1.1 ipv4.dns"8.8.8.8 1.1.1.1" ipv4.method manual
After changing the settings, you'll need to reconnect to the network. If you enter a wrong gateway address or mask, you'll lose network access completely, so double-check the information you've entered. To reset the settings to automatic, use the option ipv4.method auto.
Why change DNS?
Providers often use their own DNS servers, which can be slow or block access to resources. Switching to public DNS (Google, Cloudflare, OpenDNS) often solves the "page not found" problem when the internet is working and can speed up website loading.
Detailed Questions and Answers (FAQ)
Why doesn't Linux Mint see my Wi-Fi adapter, even though it worked in Windows?
In Windows, drivers are often included with the device or downloaded from Microsoft Update. In Linux, hardware support is built into the kernel or provided as separate packages. If the adapter is very new, support may have only appeared in more recent kernel versions, or it may require manual installation of proprietary firmware that isn't included in the default distribution due to licensing restrictions.
How can I find out the exact model of my Wi-Fi module without internet?
Use the command lspci -nn for internal cards or lsusb For external devices, look for lines with the words "Network," "Wireless," "802.11," or manufacturer names like "Realtek," "Intel," or "Atheros." You can enter the numeric ID (e.g., [10ec:8822]) into a search engine from another device (phone) to find the exact chip name and driver installation instructions.
Is it possible to share Wi-Fi from a Linux Mint laptop?
Yes, it is possible. In modern versions Linux Mint There's a built-in "Hotspot" feature in the network settings. You can create a new hotspot, set a name, and password, turning your laptop into a router if it has an active wired connection or a second Wi-Fi adapter.
What to do if Wi-Fi keeps disconnecting?
A common cause is aggressive power saving settings. Try disabling power saving for Wi-Fi. Create a configuration file. /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf and set the value wifi.powersave V 2 (which means power saving is disabled). Also check the system logs (dmesg) for driver errors.