What if the Realtek RTL8821CE WIFI module is not recognized under the Ubuntu system?

Introduction:
This article presents a solution for using the Realtek RTL8821CE wireless network card with a "mini computer" running Ubuntu. In many Linux distributions, including Ubuntu, the Realtek RTL8821CE driver is not pre-installed in the system library. Consequently, users may face difficulties using WiFi in the operating system. To enable WiFi networking, manual installation of the driver is necessary.

Here's how to install the driver:
Q: How can I check the NIC model under the Ubuntu system?
A: Upon reaching the system desktop, use the key combination Ctrl+Alt+T to open the "Terminal." Then, input the following command to retrieve detailed information about the network card model: sudo lshw -c network
After entering the command, you'll be prompted to input your password (e.g., 123456). Note that the password field won't display any characters as you type. Simply press Enter to confirm once you've entered your password.

The network card models identified by the command are as follows:
(Wired NIC) RTL8111/8168/8411
(Wireless NIC) RTL8821CE

1. Prepare the installation environment
1-1.
Use wired network to connect to the Internet, and install git and dkms tools first. Ctrl+Alt+T keys to open the terminal, and enter the following commands in the terminal:
▶ update apt source
▶ sudo apt update
▶ Install the required software
▶ sudo apt install git

The installation was successful, type git --version to see the version:

1-2. sudo apt install build-essential
build-essential is a C/C++ build environment family bucket, you can install all the packages you need to build c/c++.

sudo apt install dkms
DKMS stands for Dynamic Kernel Module Support and is used to maintain Linux drivers that are not integrated into the kernel.

2. Download Driver and Installation

2-1. Download the RTL8821CE driver and unzip it to the Downloads directory. Download address: GitHub - tomaspinho/rtl8821ce

2-2. Ctrl+Alt+T key to open the terminal, input the following command in the terminal to open the directory where the driver file is located:
▶ ls
▶ cd Downloads
▶ cd Drives-Realtek-RTL8821CE-master
▶ cd Drives-Realtek-RTL8821CE-master

PS: "Drives-Realtek-RTL8821CE-master" is the name of the folder, the name of your folder may not be the same as the one in this blog post, please enter the corresponding command according to the actual name of the folder or modify the filename by yourself!

2-3. Run the following commands in the terminal to compile the files and install the driver
▶ sudo make
▶ sudo make install
▶ sudo modprobe 8821ce
▶ sudo reboot
If no error is reported during the installation, you can see the WIFI after reboot under normal circumstances.

作者: minipc

Our company is a reliable manufacturer and exporter of fanless mini computers, industrial computers, all-in-one computers and industrial tablet computers. Our products are exported to the European Union, America, Asia and other places, and enjoy a high reputation in the global market. In order to provide high-quality products and excellent services, our company has obtained reports and certificates approved by CE, FCC, RoHS, SGS, ISO9001, etc. Our goal is "innovation first, quality first, customers first, service first". We are committed to providing quality products, excellent service, competitive prices, fast response and timely delivery. We warmly welcome every customer to visit us and hope that both of us will work together to create a brilliant future. OEM and ODM orders are welcome.

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注