树莓派编译 RTL8812AU / RTL8814AU 网卡驱动
- EN
- ZH-CN
Table of Contents
本文仅用来记录 树莓派 4B 的各种成功的配置过程
环境仅适用于 Raspbery Pi OS
其他环境并未测试!
#
安装 RTL8812AU 驱动
sudo apt update
sudo apt install raspberrypi-kernel-headers build-essential dkms
git clone https://github.com/gnab/rtl8812au.git
cd rtl8812au
sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g' Makefile
sed -i 's/CONFIG_POWER_SAVING = y/CONFIG_POWER_SAVING = n/g' Makefile
sed -i 's/CONFIG_PLATFORM_ARM_RPI = n/CONFIG_PLATFORM_ARM_RPI = y/g' Makefile
sudo chmod +x install.sh
sudo ./install.sh
sudo reboot # 重启
#
安装 RTL8814AU 驱动
sudo apt update
sudo apt-get install -y raspberrypi-kernel-headers bc build-essential dkms git
git clone https://github.com/morrownr/8814au.git
cd 8814au
sudo ./raspi32.sh # for 32-bit operating system only
sudo ./install-driver.sh
sudo reboot
#
安装 Docker
wget https://get.docker.com/ -O getdocker.sh
bash getdocker.sh --mirror=Aliyun
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
# 登出,再次登入
docker run hello-world # 以普通用户登入
sudo apt install python3-pip
sudo pip3 install docker-compose
docker-compose --version
#
设置蓝牙自动连接
需要自动连接我的蓝牙键盘,所以有了下面的文章
~# sudo bluetoothctl # 进入蓝牙操作模式
[bluetooth]# power on
[bluetooth]# agent on
[bluetooth]# pairable on
[bluetooth]# scan on
[bluetooth]# pair 34:88:5D:67:38:DF
sudo nano /etc/init.d/keyboard # 新建一个叫 keyboard 的文件(开机自启)
#!/bin/sh
sudo hcitool spinq # Start periodic inquiry
exit 0
设置开机自动加载
sudo chmod +x /etc/init.d/keyboard
sudo update-rc.d keyboard defaults
sudo service keyboard start
#
设置无线网络自动连接
略
#
安装最新版 SMART Monitoring Tools
tar zxvf smartmontools-7.2.tar.gz
cd smartmontools-7.2
mkdir build && cd build
../configure
make
sudo make install
#
挂载硬盘
blkid
ls -l /dev/disk/by-uuid/
sudo mount -t ext4 -U 这里写你的UUID /mnt/seagate/storage