最新的鏡像安裝已經(jīng)整理到CSDN上拐辽,傳送門:樹莓派 4B 安裝 Ubuntu 18.04.4 LTS (or)Ubuntu 19.10
人臉識(shí)別并不是什么高大上的東西宴霸,入門人臉識(shí)別,內(nèi)容包括硬件配置漩怎,環(huán)境搭載邢享,代碼詳解,程序部署冷蚂,傳送門:樹莓派4b之初學(xué)者入門人臉識(shí)別
硬件:Raspberry Pi 4B
系統(tǒng):Ubuntu 19.10 (Eoan Ermine) for IOT
官網(wǎng):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卡進(jìn)行系統(tǒng)安裝
3. 系統(tǒng)登陸
默認(rèn)賬號(hào):ubuntu 默認(rèn)密碼:ubuntu
4. 更換鏡像源
4.1 備份 apt 源文件
sudo cp -p /etc/apt/sources.list /etc/apt/sources.list.bak
如果出錯(cuò)的時(shí)候,需要恢復(fù)源文件的話汛闸。操作如下:
rm -rf /etc/apt/sources.list
sudo cp -p /etc/apt/sources.list.bak /etc/apt/sources.list
4.2 編輯 apt 源文件蝙茶,更新為國(guó)內(nèi)鏡像源(注意:路徑節(jié)點(diǎn)不是 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
因?yàn)榫W(wǎng)絡(luò)原因,如果提示有安裝出錯(cuò)厘肮,請(qǐng)?jiān)侔惭b一次:
sudo apt-get install gnome --fix-missing
我們也可以安裝更簡(jiǎn)單的圖形界面 xubuntu-desktop
sudo apt-getinstall xinint
sudo apt-getxubuntu-desktop