• Ubuntu 20.04.5安装无线网卡RTL8821CE驱动


    陈拓 2022/11/26-2022/11/26

    准备工作

    • 查看网络设备

     

    WiFi设备未驱动。

    • 查看WiFi设备型号

    lspci | grep -i wireless

    lspci -nn | grep -i net

    设备代号10ec:c821可以用来查询验证WiFi设备型号。

    在网站PCI devices查询无线设备型号:

     

     

    Wifi设备型号:RTL8821CE

    1. 查询linux内核版本

    uname -sr

     

    安装驱动

    • 更新apt源

    sudo apt update

    • 安装所需软件

    sudo apt install git

    出现错误:

     

    按照提示运行sudo dpkg --configure -a

     

    再安装:

    sudo apt install git

    安装成功,查看版本:

     

    sudo apt install build-essential

    build-essential是C/C++的编译环境全家桶,可以将编译c/c++所需要的软件包都安装上。查看gcc版本:

     

    sudo apt install dkms

    DKMS是Dynamic Kernel Module Support的缩写,即动态内核模块支持,用于维护未集成到内核之中的Linux驱动程序。

     

    • 下载驱动

    git clone https://github.com/tomaspinho/rtl8821ce

     

    • 进入rtl8821ce库目录

    cd rtl8821ce

    • 给shell脚本程序install.sh可执行权限

    chmod +x dkms-install.sh

    • 给shell脚本程序remove.sh可执行权限

    chmod +x dkms-remove.sh

    • 执行安装脚本

    sudo ./dkms-install.sh

     

    • 重启

    sudo reboot

    • 查看网络设备

     

    可以看到无线网卡设备wlp2s0已经驱动了。

    • 查看可用的Wifi

    通过桌面或远程桌面查看连接可用的Wifi:

     

    选择一个WiFi网络连接即可。

    关于远程桌面的安装和使用见《Linux ubuntu 20.04.5 Server安装远程桌面》

    https://blog.csdn.net/chentuo2000/article/details/126838229?spm=1001.2014.3001.5502

    参考文档

    1. How to Install Realtek rtl8821ce WIFI Driver on Ubuntu 18.04 & Ubuntu 20.04
      https://gizmoxo.com/how-to-install-realtek-rtl8821ce-wifi-driver-on-ubuntu/
    2. 新安装的Ubuntu20.04 5.13上没有WIFI 看这一篇就够了
      https://blog.csdn.net/Jack_Sparrow33/article/details/127525441
    3. ubuntu 20.04安装RTL8821CE无线网卡驱动
      https://blog.csdn.net/brave_heart_lxl/article/details/127828032

  • 相关阅读:
    Windows 应用商店无法打开解决办法
    展开说说:Android Fragment完全解析-卷二
    【Python 千题 —— 基础篇】成绩评级
    【哈希表完整代码】模拟实现哈希表和unordered_set与unordered_map
    双重差分模型(DID)论文写作指南与操作手册
    RUST持续学习 一点borrow问题的心得记录
    理解MySQL的日志 Redo、Undo
    k8s集群使用ingress转发grafana服务
    xxl-job源码—调度器/执行器工作原理
    Java中接口间的继承
  • 原文地址:https://blog.csdn.net/chentuo2000/article/details/128050230