​ 安装Ubuntu系统后发现wifi的适配器不能发现,所以要下载相应的驱动并安装。

  • 查找相应的网卡的信息
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
lspci      -查看系统中所有PCI总线以及连接到该总线上的设备的工具
电脑lspci显示结果为:
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 08) //主桥
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07) //显卡兼容控制器
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th Gen Core Processor Gaussian Mixture Model
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21) //USB控制器
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21) //通信控制器
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21) //硬盘模式
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 (rev f1)
00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1) //PCI桥
00:1d.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #9 (rev f1)
00:1d.2 PCI bridge: Intel Corporation Device 9d1a (rev f1)
00:1d.3 PCI bridge: Intel Corporation Device 9d1b (rev f1)
00:1f.0 ISA bridge: Intel Corporation Intel(R) 100 Series Chipset Family LPC Controller/eSPI Controller - 9D4E (rev 21) //数据局部总线
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21) //声卡
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21) //系统管理总线
02:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Lexa PRO [Radeon RX 550/550X] (rev c0 ) //显示控制器
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10)
04:00.0 Non-Volatile memory controller: Toshiba America Info Systems Device 0113 (rev 01)
05:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network //网卡
06:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01)

安装8821CE无线网卡驱动

  • 升级ubuntu内核到4.14

    1
    $ uname -sr
1
2
3
4
5
6
7
8
9
10
11
12
	*若内核不是*4.14,则进行以下两个操作,否则跳过。
- 安装Kernel4.14
对于64位操作系统,依次安装三个文件:
​ $ cd /tmp/
​ $ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.14/linux-headers-4.14.0-041400_4.14.0-041400.201711122031_all.deb
​ $ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.14/linux-headers-4.14.0-041400-generic_4.14.0-041400.201711122031_amd64.deb
​ $ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.14/linux-image-4.14.0-041400-generic_4.14.0-041400.201711122031_amd64.deb
​ $ sudo dpkg -i *.deb
​ $ sudo reboot
​ 安装这些.debs后,重新启动即可。
- 卸载之前版本的内核
* 使用如下命令可以自动移除*Ubuntu 16.04 *系统不再需要的旧版内核和软件包:*

​ $ sudo apt autoremove --purge

1
2
3
4
5
6
7
8
9
 - 	   安装gcc,后续make需要
$ sudo apt-get install gcc --安装完了可以执行
$ gcc--version --查看版本
- 下载RTL8821CE驱动
​ 打开https://github.com/hlcool/rtl8821ce,选择克隆和下载,然后解压。
- 关闭Secure Boot
关机重启时,连按F12 进入 bios,Tab 切换到管理界面,找到 Secure Boot 选项并关闭。
- 安装RTL8821CE驱动
更改Makefile*文件中*"exportTopDIR ?= ..." *为*"TopDIR ?= PATH TO EXTRACTED DIRECTORY"(填写当前路径地址)。cd 到驱动的文件地址,在当前目录中执行命令。
 	make
  	sudo make install
 	sudo modprobe -a 8821ce