If you're having trouble connecting to WiFi on your CentOS Stream 9 system, it's possible that the necessary WiFi drivers haven't been installed. In this article, we'll walk you through the process of installing WiFi drivers on CentOS Stream 9 to get your system connected to WiFi.
Check if WiFi is enabled
Before we dive into installing WiFi drivers, it's important to make sure that WiFi is enabled on your system. You can do this by running the following command in the terminal:
sudo rfkill list all
If you see a WiFi device listed as "Soft blocked: yes", you can unblock it by running the following command:
sudo rfkill unblock wifi
Check if the WiFi driver is installed
Once you've confirmed that WiFi is enabled, you can check if the necessary WiFi driver is installed by running the following command:
lspci -knn | grep Net -A3
If you see a WiFi device listed with a "Kernel driver in use" line, the necessary driver is installed. If not, you'll need to install it manually.
Install WiFi driver
The process of installing WiFi drivers on CentOS Stream 9 varies depending on the manufacturer of your WiFi device. Here are the general steps to follow:
- Identify the manufacturer and model of your WiFi device.
- Visit the manufacturer's website and download the latest driver for your WiFi device that is compatible with CentOS Stream 9.
- Install the driver by following the manufacturer's instructions. This may involve extracting the driver files and running a script to install the driver.
- Reboot your system to complete the installation process.
Install WiFi driver using RPM package
If you're unable to find a compatible driver for your WiFi device on the manufacturer's website, you can try installing the driver using an RPM package. Here are the general steps to follow:
- Visit a trusted repository of RPM packages, such as the RPM Fusion repository, and search for a driver package that is compatible with your WiFi device and CentOS Stream 9.
- Download the RPM package to your system.
- Install the RPM package by running the following command:
sudo rpm -ivh package-name.rpm
Install WiFi driver using DKMS
If you're still having trouble finding a compatible WiFi driver for your device, you can try installing the driver using DKMS (Dynamic Kernel Module Support). DKMS is a framework that allows you to automatically build and install kernel modules for your system. Here are the general steps to follow:
- Identify the manufacturer and model of your WiFi device.
- Visit the manufacturer's website and download the latest driver for your WiFi device that is compatible with CentOS Stream 9.
- Install the necessary dependencies for DKMS by running the following command:
sudo yum install dkms kernel-devel gcc make
- Extract the driver files to a directory on your system.
- Navigate to the directory containing the driver files and run the following command to install the driver using DKMS:
sudo dkms add -m module-name -v driver-version
Replace "module-name" and "driver-version" with the name and version of your WiFi driver.
- Build the kernel module for your current kernel by running the following command:
sudo dkms build -m module-name -v driver-version
- Install the kernel module by running the following command:
sudo dkms install -m module-name -v driver-version
Test WiFi connection
Once you've installed the necessary WiFi driver, you can test the WiFi connection by running the following command:
iwconfig
If you see a WiFi device listed with an "ESSID" and "Signal" line, you're connected to WiFi. If not, you may need to manually connect to a WiFi network using the following command:
sudo nmcli device wifi connect network-name password network-password
Replace "network-name" and "network-password" with the name and password of your WiFi network.
If you're having trouble connecting to WiFi on your CentOS Stream 9 system, it's possible that the necessary WiFi drivers haven't been installed. By following the steps outlined in this article, you can install WiFi drivers on CentOS Stream 9 and get your system connected to WiFi. If you're still having trouble, you may need to seek further assistance from the manufacturer or a professional tech support service.
References
| Title | URL |
|---|---|
| CentOS Stream 9 Release Notes | https://wiki.centos.org/Manuals/ReleaseNotes/CentOSStream9 |
| RPM Fusion repository | https://rpmfusion.org/ |
| DKMS documentation | https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html |