demo1984s 的个人博客


系统烧录不复杂,Windows 11安装好 SD Formatter 和 Win32 Diskimager ,先用格式化 TF卡,然后选择下载的镜像文件烧录即可。注意镜像下载链接下回来的文件是个 .xz 压缩包,解压出来的才是镜像文件,大小有1G多,后缀是 .img 。
首次登录网上有比较复杂的教程,这里用最简单的方式:插上网线,然后登录路由器后台查看ip地址,ssh远程登录进去。

orangepizero这个就是了,记下对应的 ip 地址 192.168.101.56,ssh登录进去。

这里需要注意:初始用户是 root ,密码 1234。第一次登录需要修改 root 密码以及新建一个非root用户账号。
执行 armbian-config 连接 WiFi 设置密码,拔掉网线,然后执行 reboot 重启。

再次登录路由器后台查看 IP 地址变成 57,替换 IP 顺利登录进系统。
✘ demo1984s@Demo1984sMacBook-Pro ~ ssh -l root -p 22 192.168.101.57
The authenticity of host '192.168.101.57 (192.168.101.57)' can't be established.
ED25519 key fingerprint is SHA256:aWkoD+GIvidXoceHuNWeWYrxydPCDVdn0Zt47JfDwnI.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '192.168.101.55' (ED25519) to the list of known hosts.
root@192.168.101.55's password:
___ ____ _ _____
/ _ \| _ \(_) |__ /___ _ __ ___
| | | | |_) | | / // _ \ '__/ _ \
| |_| | __/| | / /| __/ | | (_) |
\___/|_| |_| /____\___|_| \___/
Welcome to Armbian 22.11.1 Jammy with Linux 5.15.80-sunxi
System load: 2% Up time: 35 min Local users: 2
Memory usage: 32% of 238M Zram usage: 23% of 119M IP: 192.168.101.55
CPU temp: 34°C Usage of /: 6% of 29G
RX today: 259.6 KiB
[ 0 security updates available, 2 updates total: apt upgrade | Kernel and firmware upgrades disabled: armbian-config ]
Last check: 2022-12-20 05:32
Last login: Tue Dec 20 13:49:40 2022 from 192.168.101.119
root@OPi-Zero:~#
这里也有一个需要注意的地方:开始的时候为了方便,在路由器后台设置 MAC 地址绑定 IP ,结果失败。每次重启 MAC 地址随机变,这个需要在 Armbian 中设置,再次执行 armbian-config,设置静态 IP。

编辑 sources.list 修改软件源,使用阿里云的源替换。
root@OPi-Zero:~# vi /etc/apt/sources.list
deb http://ports.ubuntu.com/ jammy main restricted universe multiverse
#deb-src http://ports.ubuntu.com/ jammy main restricted universe multiverse
deb http://ports.ubuntu.com/ jammy-security main restricted universe multiverse
#deb-src http://ports.ubuntu.com/ jammy-security main restricted universe multiverse
deb http://ports.ubuntu.com/ jammy-updates main restricted universe multiverse
#deb-src http://ports.ubuntu.com/ jammy-updates main restricted universe multiverse
deb http://ports.ubuntu.com/ jammy-backports main restricted universe multiverse
#deb-src http://ports.ubuntu.com/ jammy-backports main restricted universe multiverse
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
:%s/deb http:\/\/ports.ubuntu.com/deb https:\/\/mirrors.aliyun.com\/ubuntu-ports/g
输入命令 apt update && apt upgrade 更新系统(以下内容仅做展示,细节可能每个人不一样)
root@OPi-Zero:~# apt update && apt upgrade
获取:1 https://mirrors.aliyun.com/ubuntu-ports jammy InRelease [270 kB]
获取:2 https://mirrors.aliyun.com/ubuntu-ports jammy-security InRelease [110 kB]
获取:3 https://mirrors.aliyun.com/ubuntu-ports jammy-updates InRelease [114 kB]
获取:4 https://mirrors.aliyun.com/ubuntu-ports jammy-backports InRelease [99.8 kB]
获取:5 https://mirrors.aliyun.com/ubuntu-ports jammy/multiverse armhf Packages [199 kB]
获取:7 https://mirrors.aliyun.com/ubuntu-ports jammy/universe armhf Packages [16.8 MB]
获取:6 http://mirrors.sustech.edu.cn/armbian jammy InRelease [36.0 kB]
获取:8 http://mirrors.sustech.edu.cn/armbian jammy/jammy-utils armhf Packages [36.6 kB]
获取:9 http://mirrors.sustech.edu.cn/armbian jammy/jammy-desktop armhf Packages [16.4 kB]
获取:10 http://mirrors.sustech.edu.cn/armbian jammy/main armhf Packages [375 kB]
获取:11 https://mirrors.aliyun.com/ubuntu-ports jammy/main armhf Packages [1,701 kB]
获取:12 https://mirrors.aliyun.com/ubuntu-ports jammy/restricted armhf Packages [13.3 kB]
获取:13 https://mirrors.aliyun.com/ubuntu-ports jammy-security/restricted armhf Packages [9,589 B]
获取:14 https://mirrors.aliyun.com/ubuntu-ports jammy-security/multiverse armhf Packages [594 B]
获取:15 https://mirrors.aliyun.com/ubuntu-ports jammy-security/main armhf Packages [391 kB]
获取:16 https://mirrors.aliyun.com/ubuntu-ports jammy-security/universe armhf Packages [488 kB]
获取:17 https://mirrors.aliyun.com/ubuntu-ports jammy-updates/main armhf Packages [661 kB]
获取:18 https://mirrors.aliyun.com/ubuntu-ports jammy-updates/restricted armhf Packages [9,967 B]
获取:19 https://mirrors.aliyun.com/ubuntu-ports jammy-updates/multiverse armhf Packages [1,333 B]
获取:20 https://mirrors.aliyun.com/ubuntu-ports jammy-updates/universe armhf Packages [674 kB]
获取:21 https://mirrors.aliyun.com/ubuntu-ports jammy-backports/main armhf Packages [3,503 B]
获取:22 https://mirrors.aliyun.com/ubuntu-ports jammy-backports/universe armhf Packages [7,281 B]
已下载 22.0 MB,耗时 56秒 (394 kB/s)
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
有 30 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
正在计算更新... 完成
下列软件包将被升级:
armbian-config armbian-firmware armbian-zsh binutils binutils-arm-linux-gnueabihf binutils-common ca-certificates hostapd initramfs-tools
initramfs-tools-bin initramfs-tools-core libbinutils libbpf0 libctf-nobfd0 libctf0 libglib2.0-0 libglib2.0-bin libglib2.0-data
libpython3.10 libpython3.10-minimal libpython3.10-stdlib libudev1 libxml2 linux-libc-dev python3.10 python3.10-minimal tmux tzdata
u-boot-tools udev
升级了 30 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 29.2 MB 的归档。
解压缩后将会空出 836 kB 的空间。
您希望继续执行吗? [Y/n]
输入 y 继续执行(以下内容仅做展示,细节可能每个人不一样)
您希望继续执行吗? [Y/n] y
获取:1 https://mirrors.aliyun.com/ubuntu-ports jammy-security/main armhf libpython3.10 armhf 3.10.6-1~22.04.2 [1,736 kB]
获取:3 http://mirrors.sustech.edu.cn/armbian jammy/main armhf armbian-firmware all 22.11.2 [9,443 kB]
获取:2 http://ftp.ubuntu-tw.org/mirror/armbian/apt jammy/main armhf armbian-config all 22.11.2 [128 kB]
获取:4 http://mirrors.sustech.edu.cn/armbian jammy/main armhf armbian-zsh all 22.11.2 [2,445 kB]
获取:5 http://apt.armbian.com jammy/jammy-utils armhf hostapd armhf 3:2.10-6~armbian22.02.3+1 [425 kB]
获取:6 http://mirror.ossplanet.net/armbian/apt jammy/main armhf linux-libc-dev armhf 22.11.1 [1,232 kB]
获取:7 https://mirrors.aliyun.com/ubuntu-ports jammy-security/main armhf python3.10 armhf 3.10.6-1~22.04.2 [497 kB]
获取:8 https://mirrors.aliyun.com/ubuntu-ports jammy-security/main armhf libpython3.10-stdlib armhf 3.10.6-1~22.04.2 [1,750 kB]
获取:9 https://mirrors.aliyun.com/ubuntu-ports jammy-security/main armhf python3.10-minimal armhf 3.10.6-1~22.04.2 [1,941 kB]
获取:10 https://mirrors.aliyun.com/ubuntu-ports jammy-security/main armhf libpython3.10-minimal armhf 3.10.6-1~22.04.2 [794 kB]
获取:11 https://mirrors.aliyun.com/ubuntu-ports jammy-updates/main armhf udev armhf 249.11-0ubuntu3.6 [1,536 kB]
获取:12 https://mirrors.aliyun.com/ubuntu-ports jammy-updates/main armhf libudev1 armhf 249.11-0ubuntu3.6 [69.5 kB]
获取:13 https://mirrors.aliyun.com/ubuntu-ports jammy-security/main armhf ca-certificates all 20211016ubuntu0.22.04.1 [144 kB]
获取:14 https://mirrors.aliyun.com/ubuntu-ports jammy-security/main armhf libbpf0 armhf 1:0.5.0-1ubuntu22.04.1 [124 kB]
获取:15 https://mirrors.aliyun.com/ubuntu-ports jammy-updates/main armhf libglib2.0-data all 2.72.4-0ubuntu1 [4,882 B]
获取:16 https://mirrors.aliyun.com/ubuntu-ports jammy-updates/main armhf libglib2.0-bin armhf 2.72.4-0ubuntu1 [75.7 kB]
获取:17 https://mirrors.aliyun.com/ubuntu-ports jammy-updates/main armhf libglib2.0-0 armhf 2.72.4-0ubuntu1 [1,325 kB]
获取:18 https://mirrors.aliyun.com/ubuntu-ports jammy-security/main armhf libxml2 armhf 2.9.13+dfsg-1ubuntu0.2 [599 kB]
获取:19 https://mirrors.aliyun.com/ubuntu-ports jammy-security/main armhf tzdata all 2022g-0ubuntu0.22.04.1 [333 kB]
获取:20 https://mirrors.aliyun.com/ubuntu-ports jammy-updates/main armhf tmux armhf 3.2a-4ubuntu0.1 [358 kB]
获取:21 https://mirrors.aliyun.com/ubuntu-ports jammy-security/main armhf libctf0 armhf 2.38-4ubuntu2.1 [94.1 kB]
获取:22 https://mirrors.aliyun.com/ubuntu-ports jammy-security/main armhf libctf-nobfd0 armhf 2.38-4ubuntu2.1 [94.4 kB]
获取:23 https://mirrors.aliyun.com/ubuntu-ports jammy-security/main armhf binutils-arm-linux-gnueabihf armhf 2.38-4ubuntu2.1 [3,061 kB]
获取:24 https://mirrors.aliyun.com/ubuntu-ports jammy-security/main armhf libbinutils armhf 2.38-4ubuntu2.1 [498 kB]
获取:25 https://mirrors.aliyun.com/ubuntu-ports jammy-security/main armhf binutils armhf 2.38-4ubuntu2.1 [3,162 B]
获取:26 https://mirrors.aliyun.com/ubuntu-ports jammy-security/main armhf binutils-common armhf 2.38-4ubuntu2.1 [221 kB]
获取:27 https://mirrors.aliyun.com/ubuntu-ports jammy-updates/main armhf initramfs-tools all 0.140ubuntu13.1 [9,034 B]
获取:28 https://mirrors.aliyun.com/ubuntu-ports jammy-updates/main armhf initramfs-tools-core all 0.140ubuntu13.1 [47.7 kB]
获取:29 https://mirrors.aliyun.com/ubuntu-ports jammy-updates/main armhf initramfs-tools-bin armhf 0.140ubuntu13.1 [8,778 B]
获取:30 https://mirrors.aliyun.com/ubuntu-ports jammy-security/main armhf u-boot-tools armhf 2022.01+dfsg-2ubuntu2.3 [177 kB]
已下载 29.2 MB,耗时 1分 49秒 (268 kB/s)
Preconfiguring packages ...
(正在读取数据库 ... 系统当前共安装有 64386 个文件和目录。)
准备解压 .../0-libpython3.10_3.10.6-1~22.04.2_armhf.deb ...
正在解压 libpython3.10:armhf (3.10.6-1~22.04.2) 并覆盖 (3.10.6-1~22.04.1) ...
准备解压 .../1-python3.10_3.10.6-1~22.04.2_armhf.deb ...
正在解压 python3.10 (3.10.6-1~22.04.2) 并覆盖 (3.10.6-1~22.04.1) ...
准备解压 .../2-libpython3.10-stdlib_3.10.6-1~22.04.2_armhf.deb ...
正在解压 libpython3.10-stdlib:armhf (3.10.6-1~22.04.2) 并覆盖 (3.10.6-1~22.04.1) ...
准备解压 .../3-python3.10-minimal_3.10.6-1~22.04.2_armhf.deb ...
正在解压 python3.10-minimal (3.10.6-1~22.04.2) 并覆盖 (3.10.6-1~22.04.1) ...
准备解压 .../4-libpython3.10-minimal_3.10.6-1~22.04.2_armhf.deb ...
正在解压 libpython3.10-minimal:armhf (3.10.6-1~22.04.2) 并覆盖 (3.10.6-1~22.04.1) ...
准备解压 .../5-udev_249.11-0ubuntu3.6_armhf.deb ...
正在解压 udev (249.11-0ubuntu3.6) 并覆盖 (249.11-0ubuntu3) ...
准备解压 .../6-libudev1_249.11-0ubuntu3.6_armhf.deb ...
正在解压 libudev1:armhf (249.11-0ubuntu3.6) 并覆盖 (249.11-0ubuntu3) ...
正在设置 libudev1:armhf (249.11-0ubuntu3.6) ...
(正在读取数据库 ... 系统当前共安装有 64386 个文件和目录。)
准备解压 .../00-ca-certificates_20211016ubuntu0.22.04.1_all.deb ...
正在解压 ca-certificates (20211016ubuntu0.22.04.1) 并覆盖 (20211016) ...
准备解压 .../01-libbpf0_1%3a0.5.0-1ubuntu22.04.1_armhf.deb ...
正在解压 libbpf0:armhf (1:0.5.0-1ubuntu22.04.1) 并覆盖 (1:0.5.0-1) ...
准备解压 .../02-libglib2.0-data_2.72.4-0ubuntu1_all.deb ...
正在解压 libglib2.0-data (2.72.4-0ubuntu1) 并覆盖 (2.72.1-1) ...
准备解压 .../03-libglib2.0-bin_2.72.4-0ubuntu1_armhf.deb ...
正在解压 libglib2.0-bin (2.72.4-0ubuntu1) 并覆盖 (2.72.1-1) ...
准备解压 .../04-libglib2.0-0_2.72.4-0ubuntu1_armhf.deb ...
正在解压 libglib2.0-0:armhf (2.72.4-0ubuntu1) 并覆盖 (2.72.1-1) ...
准备解压 .../05-libxml2_2.9.13+dfsg-1ubuntu0.2_armhf.deb ...
正在解压 libxml2:armhf (2.9.13+dfsg-1ubuntu0.2) 并覆盖 (2.9.13+dfsg-1ubuntu0.1) ...
准备解压 .../06-tzdata_2022g-0ubuntu0.22.04.1_all.deb ...
正在解压 tzdata (2022g-0ubuntu0.22.04.1) 并覆盖 (2022f-0ubuntu0.22.04.1) ...
准备解压 .../07-armbian-config_22.11.2_all.deb ...
正在解压 armbian-config (22.11.2) 并覆盖 (22.11.1) ...
准备解压 .../08-armbian-firmware_22.11.2_all.deb ...
正在解压 armbian-firmware (22.11.2) 并覆盖 (22.11.1) ...
准备解压 .../09-tmux_3.2a-4ubuntu0.1_armhf.deb ...
正在解压 tmux (3.2a-4ubuntu0.1) 并覆盖 (3.2a-4build1) ...
准备解压 .../10-armbian-zsh_22.11.2_all.deb ...
正在解压 armbian-zsh (22.11.2) 并覆盖 (22.11.1) ...
准备解压 .../11-libctf0_2.38-4ubuntu2.1_armhf.deb ...
正在解压 libctf0:armhf (2.38-4ubuntu2.1) 并覆盖 (2.38-4ubuntu2) ...
准备解压 .../12-libctf-nobfd0_2.38-4ubuntu2.1_armhf.deb ...
正在解压 libctf-nobfd0:armhf (2.38-4ubuntu2.1) 并覆盖 (2.38-4ubuntu2) ...
准备解压 .../13-binutils-arm-linux-gnueabihf_2.38-4ubuntu2.1_armhf.deb ...
正在解压 binutils-arm-linux-gnueabihf (2.38-4ubuntu2.1) 并覆盖 (2.38-4ubuntu2) ...
准备解压 .../14-libbinutils_2.38-4ubuntu2.1_armhf.deb ...
正在解压 libbinutils:armhf (2.38-4ubuntu2.1) 并覆盖 (2.38-4ubuntu2) ...
准备解压 .../15-binutils_2.38-4ubuntu2.1_armhf.deb ...
正在解压 binutils (2.38-4ubuntu2.1) 并覆盖 (2.38-4ubuntu2) ...
准备解压 .../16-binutils-common_2.38-4ubuntu2.1_armhf.deb ...
正在解压 binutils-common:armhf (2.38-4ubuntu2.1) 并覆盖 (2.38-4ubuntu2) ...
准备解压 .../17-hostapd_3%3a2.10-6~armbian22.02.3+1_armhf.deb ...
正在解压 hostapd (3:2.10-6~armbian22.02.3+1) 并覆盖 (2:2.10-6ubuntu2) ...
准备解压 .../18-initramfs-tools_0.140ubuntu13.1_all.deb ...
正在解压 initramfs-tools (0.140ubuntu13.1) 并覆盖 (0.140ubuntu13) ...
准备解压 .../19-initramfs-tools-core_0.140ubuntu13.1_all.deb ...
正在解压 initramfs-tools-core (0.140ubuntu13.1) 并覆盖 (0.140ubuntu13) ...
准备解压 .../20-initramfs-tools-bin_0.140ubuntu13.1_armhf.deb ...
正在解压 initramfs-tools-bin (0.140ubuntu13.1) 并覆盖 (0.140ubuntu13) ...
准备解压 .../21-linux-libc-dev_22.11.1_armhf.deb ...
正在解压 linux-libc-dev:armhf (22.11.1) 并覆盖 (22.11.0-trunk.0142) ...
准备解压 .../22-u-boot-tools_2022.01+dfsg-2ubuntu2.3_armhf.deb ...
正在解压 u-boot-tools (2022.01+dfsg-2ubuntu2.3) 并覆盖 (2022.01+dfsg-2ubuntu2) ...
正在设置 libglib2.0-0:armhf (2.72.4-0ubuntu1) ...
No schema files found: doing nothing.
正在设置 binutils-common:armhf (2.38-4ubuntu2.1) ...
正在设置 linux-libc-dev:armhf (22.11.1) ...
正在设置 libctf-nobfd0:armhf (2.38-4ubuntu2.1) ...
正在设置 tzdata (2022g-0ubuntu0.22.04.1) ...
Current default time zone: 'Asia/Shanghai'
Local time is now: Tue Dec 20 14:26:48 CST 2022.
Universal Time is now: Tue Dec 20 06:26:48 UTC 2022.
Run 'dpkg-reconfigure tzdata' if you wish to change it.
正在设置 armbian-config (22.11.2) ...
正在设置 ca-certificates (20211016ubuntu0.22.04.1) ...
Updating certificates in /etc/ssl/certs...
rehash: warning: skipping ca-certificates.crt,it does not contain exactly one certificate or CRL
0 added, 3 removed; done.
正在设置 libglib2.0-data (2.72.4-0ubuntu1) ...
正在设置 hostapd (3:2.10-6~armbian22.02.3+1) ...
正在安装新版本配置文件 /etc/default/hostapd ...
正在安装新版本配置文件 /etc/init.d/hostapd ...
正在设置 udev (249.11-0ubuntu3.6) ...
正在设置 libpython3.10-minimal:armhf (3.10.6-1~22.04.2) ...
正在设置 armbian-firmware (22.11.2) ...
正在设置 u-boot-tools (2022.01+dfsg-2ubuntu2.3) ...
正在设置 libbinutils:armhf (2.38-4ubuntu2.1) ...
正在设置 libbpf0:armhf (1:0.5.0-1ubuntu22.04.1) ...
正在设置 libxml2:armhf (2.9.13+dfsg-1ubuntu0.2) ...
正在设置 tmux (3.2a-4ubuntu0.1) ...
正在设置 initramfs-tools-bin (0.140ubuntu13.1) ...
正在设置 libctf0:armhf (2.38-4ubuntu2.1) ...
正在设置 libglib2.0-bin (2.72.4-0ubuntu1) ...
正在设置 python3.10-minimal (3.10.6-1~22.04.2) ...
正在设置 armbian-zsh (22.11.2) ...
正在设置 libpython3.10-stdlib:armhf (3.10.6-1~22.04.2) ...
正在设置 initramfs-tools-core (0.140ubuntu13.1) ...
正在设置 binutils-arm-linux-gnueabihf (2.38-4ubuntu2.1) ...
正在设置 libpython3.10:armhf (3.10.6-1~22.04.2) ...
正在设置 python3.10 (3.10.6-1~22.04.2) ...
正在设置 initramfs-tools (0.140ubuntu13.1) ...
update-initramfs: deferring update (trigger activated)
正在设置 binutils (2.38-4ubuntu2.1) ...
正在处理用于 libc-bin (2.35-0ubuntu3.1) 的触发器 ...
正在处理用于 man-db (2.10.2-1) 的触发器 ...
正在处理用于 ca-certificates (20211016ubuntu0.22.04.1) 的触发器 ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
正在处理用于 initramfs-tools (0.140ubuntu13.1) 的触发器 ...
update-initramfs: Generating /boot/initrd.img-5.15.80-sunxi
update-initramfs: Converting to u-boot format
root@OPi-Zero:~#
基本上256MB小内存的Orange Pi Zero就将Armbian烧录好了。其中还有好几个折腾过的事情,估计是内存太小了,另外CPU温度还是比较可观,难怪这个版本的 SBC 被吐槽的厉害:
欢迎关注小黄鱼:数码大世界,头像像一只蝴蝶的那个号。今年新开启一个行善计划,除了原每月支持壹基金,新增支持本地的慈善机构,一天捐献一元,借用群里善友的寓意,日行一善。