最新的鏡像安裝已經整理到CSDN上,傳送門:樹莓派 4B 安裝 Ubuntu 18.04.4 LTS (or)Ubuntu 19.10
人臉識別并不是什么高大上的東西,入門人臉識別,內容包括硬件配置,環(huán)境搭載,代碼詳解,程序部署,傳送門:樹莓派4b之初學者入門人臉識別
硬件:Raspberry Pi 4B
系統(tǒng):Ubuntu 19.10 (Eoan Ermine) for IOT
官網:https://ubuntu.com/download/iot/raspberry-pi
下載通道:
Ubuntu Server 19.10 for Raspberry Pi 4 64-bit:ubuntu-19.10.1-preinstalled-server-arm64+raspi3.img.xz
Ubuntu Server 19.10 for Raspberry Pi 4 32-bit:ubuntu-19.10.1-preinstalled-server-armhf+raspi3.img.xz
配置步驟
1. 下載系統(tǒng)鏡像
http://cdimage.ubuntu.com/releases/19.10/release/ubuntu-19.10-preinstalled-server-arm64+raspi3.img.xz
2. 燒錄至SD卡進行系統(tǒng)安裝
3. 系統(tǒng)登陸
默認賬號:ubuntu 默認密碼:ubuntu
4. 更換鏡像源
4.1 備份 apt 源文件
sudo cp -p /etc/apt/sources.list /etc/apt/sources.list.bak
如果出錯的時候,需要恢復源文件的話。操作如下:
rm -rf /etc/apt/sources.list
sudo cp -p /etc/apt/sources.list.bak /etc/apt/sources.list
4.2 編輯 apt 源文件,更新為國內鏡像源(注意:路徑節(jié)點不是 ubuntu,而是 ubuntu-ports)
sudo nano /etc/apt/sources.list
阿里云源
deb https://mirrors.aliyun.com/ubuntu-ports/ disco main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ disco main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu-ports/ disco-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ disco-security main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu-ports/ disco-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ disco-updates main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu-ports/ disco-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ disco-backports main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu-ports/ disco-proposed main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ disco-proposed main restricted universe multiverse
中科大源
deb https://mirrors.ustc.edu.cn/ubuntu-ports/ disco main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu-ports/ disco main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu-ports/ disco-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu-ports/ disco-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu-ports/ disco-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu-ports/ disco-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu-ports/ disco-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu-ports/ disco-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu-ports/ disco-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu-ports/ disco-proposed main restricted universe multiverse
清華源
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ disco main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ disco main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ disco-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ disco-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ disco-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ disco-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ disco-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ disco-security main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ disco-proposed main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ disco-proposed main restricted universe multiverse
5. 安裝桌面環(huán)境(可選擇:xubuntu-desktop、lubuntu-desktop、kubuntu-desktop)
sudo apt-get install xubuntu-desktop
6. 重啟系統(tǒng)
reboot
7. 安裝 Docker
sudo apt install docker.io
8.、安裝桌面環(huán)境(可選擇:gnome xubuntu-desktop、lubuntu-desktop、kubuntu-desktop)
安裝最新的gnome3.34c
因為網絡原因,如果提示有安裝出錯,請再安裝一次:
sudo apt-get install gnome --fix-missing
我們也可以安裝更簡單的圖形界面 xubuntu-desktop
sudo apt-getinstall xinint
sudo apt-getxubuntu-desktop