莒县城阳网站建设,好看的wordpress文章模板下载,佛山市官网网站建设公司,做网站的劣势我的 USB 网卡是水星 Mercury 的#xff0c; 在 Ubuntu 22.04 下面没有自动识别。 没有无线网卡的时候只能用有线接到路由器上#xff0c;非常不方便。 寻思着把无线网卡驱动装好。折腾了几个小时装好了驱动。
1.检查网卡类型 安装驱动
使用 lsusb 看到的不一定是准确…我的 USB 网卡是水星 Mercury 的 在 Ubuntu 22.04 下面没有自动识别。 没有无线网卡的时候只能用有线接到路由器上非常不方便。 寻思着把无线网卡驱动装好。折腾了几个小时装好了驱动。
1.检查网卡类型 安装驱动
使用 lsusb 看到的不一定是准确的网卡类型。 用 dmesg 来看运行 dmesg 命令然后拔掉 usb 网卡再插上这个时候看屏幕上面的输出
sudo dmesg
# 拔掉 USB 网卡重新插入看终端屏幕的输出我的是 rtl8821cu 的网卡。# 我的机器用 dmesg 观察日志的输入输出usb 网卡重新插拔观察到的网卡是 rtl8821cu
# 所以安装 rtl8821cu 的驱动
sudo apt update
sudo apt install build-essential git dkms
git clone https://github.com/brektrou/rtl8821CU.git
cd rtl8821CU chmod x dkms-install.sh
# 如果这个命令运行失败则运行 make, make install 两个命令也可以安装驱动
sudo ./dkms-install.sh
# make
# make install# 把模块添加到内核中这个命令非常重要命令没有输出表示成功
sudo modprobe 8821cu# 然后运行 iwconfig 查看无线网卡应该能看到网卡
iwconfig这是安装驱动之后 dmesg 命令看到的输出:
2.iwconfig 可以看到网卡后 连接到网络
apt update apt install network-manager
然后参考 https://askubuntu.com/questions/461825/how-to-connect-to-wifi-from-the-command-line To see list of saved connections, use (SavedWiFiConn) nmcli cTo see list of available WiFi hotspots (WiFiSSID) nmcli d wifi listor: sudo iwlist WifiInterface scanningTo see list of interfaces (WifiInterface) ifconfig -a前面的 WifiInterface WiFiSSID 在配置网络的时候要用到。
命令行下配置无线网络
nmtui3.Troubleshooting:
https://forums.linuxmint.com/viewtopic.php?t324111
https://help.ubuntu.com/stable/ubuntu-help/net-wireless-troubleshooting-hardware-check.html.en#usb
https://forums.linuxmint.com/viewtopic.php?t322917