📅 2026-01-26
🔄 2026-01-26
⌚ Reading time: 2 min
orangepi 5 plus ,RK3588
orangepi 3 LTS,全志H6
安装 ubuntu server 22.04 jammy
改一个字符的密码。Ubuntu Server 默认启用了 PAM 密码强度策略
# 编辑 PAM 配置
sudo vi /etc/pam.d/common-password
# here are the per-package modules (the "Primary" block)
password [success=1 default=ignore] pam_unix.so yescrypt minlen=1
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy main restricted universe multiverse
# deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-security main restricted universe multiverse
# deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-security main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-updates main restricted universe multiverse
# deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-updates main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-backports main restricted universe multiverse
# deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-backports main restricted universe multiverse
apt update 报 TLS / 证书错误(时间问题)
板子 没 RTC,解决方法
# 手动调时
date
sudo date -s "2026-01-27 12:30:00"
# 启用 systemd-timesyncd
sudo timedatectl set-ntp true
timedatectl
sudo apt install systemd-timesyncd
sudo systemctl enable systemd-timesyncd
sudo systemctl start systemd-timesyncd
指定同步时间的服务器
sudo vim /etc/systemd/timesyncd.conf
[Time]
NTP=ntp.aliyun.com ntp.ntsc.ac.cn time.tencent.com
FallbackNTP=pool.ntp.org
重启
sudo systemctl restart systemd-timesyncd
还有格式的问题。
sudo vim /etc/default/locale
编辑内容为
LANG=C.UTF-8
LC_ALL=
orangepi 3 LTS,DHCP 连不上的原因。
ubuntu 有两个网络管理器
systemctl is-active systemd-networkd
systemctl is-active NetworkManager
两个都开着就会出问题。
# 关 NetworkManager
sudo systemctl stop NetworkManager
# 不随开机启动
sudo systemctl disable NetworkManager
# 即使被其他工具拉起也不允许,不让 orangepi-config 管
sudo systemctl mask NetworkManager
/etc/netplan
新建一个配置
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: true
文件权限
chmod 600 /etc/netplan/*.yaml
DNS 的问题。使用 systemd 来控制
rm /etc/resolv.conf
ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
sudo hostnamectl set-hostname edge01-pi5plus
改用户名,可选
sudo apt install gcc-aarch64-linux-gnu
sudo apt install g++-aarch64-linux-gnu
sudo apt install binutils-aarch64-linux-gnu
https://developer.nvidia.com/sdk-manager
sdk manager 2.4.0
sudo dpkg -i sdkmanager_2.4.0-13235_amd64.deb