安装Armbian,固件地址:https://github.com/ophub/amlogic-s9xxx-armbian/releases 版本:bookworm使用 Rufus 或者 balenaEtcher 等工具将系统写入U盘里,然后把写好系统的U盘插入盒子通电开机,SSH工具登录 Armbian 系统 (IP从主路由查看,默认用户: root, 默认密码: 1234) 启动后按提示操作即可。输入命令:armbian-install可写入到 EMMC,输入命令:armbian-software后选择308可一键自动安装(网络已科学)。
安装教程:
1、禁用zram #非必须
systemctl disable armbian-zram-config.service
systemctl disable armbian-ramlog.service
2、禁用NetworkManager
systemctl stop NetworkManager
systemctl disable NetworkManager
3、修改网络配置,按需修改,mac地址可先用ip a查看
nano /etc/network/interfaces
例:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
hwaddress ether fc:7c:02:28:99:0e
address 192.168.1.228/24
gateway 192.168.1.1
4、修改dns,按需修改或填写公共dns(223.5.5.5等)
nano /etc/resolv.conf
例:
search lan
nameserver 192.168.1.1
5、修改hostsname,按需修改
nano /etc/hostname
例:
N1
nano /etc/hosts
6、修改hosts文件,对应hostname、ip,按需修改
例:
127.0.0.1 localhost.localdomain localhost
192.168.1.228 N1.proxmox.com N1
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
7、建议重启下设备
reboot
8、备份、新建debian源——清华或中科大源(二选一)
mv /etc/apt/sources.list /etc/apt/sources.list.bak
nano /etc/apt/sources.list
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
9、备份、新建armbian源——清华或中科大源(二选一)
mv /etc/apt/sources.list.d/armbian.list /etc/apt/sources.list.d/armbian.list.bak
nano /etc/apt/sources.list.d/armbian.list
deb https://mirrors.tuna.tsinghua.edu.cn/armbian bookworm main bookworm-utils bookworm-desktop
deb https://mirrors.ustc.edu.cn/armbian bookworm main bookworm-utils bookworm-desktop
10、使用正确的path
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
11、添加源
echo "deb https://mirrors.apqa.cn/proxmox/debian/pve bookworm port">/etc/apt/sources.list.d/pveport.list
12、添加apt-key
curl https://mirrors.apqa.cn/proxmox/debian/pveport.gpg -o /etc/apt/trusted.gpg.d/pveport.gpg
13、安装pve——弹窗选择第一项
apt update && apt install proxmox-ve -y
等待几分钟,安装结束后,浏览器输入 https://ip:8006 进入PVE管理界面
若安装最后出现下面错误,见修复方法
Errors were encountered while processing:
pve-manager
proxmox-ve
E: Sub-process /usr/bin/dpkg returned an error code (1)
查看pveproxy状态
service pveproxy status
报错部分
/etc/pve/local/pve-ssl.pem: failed to use local certificate chain (cert_file or cert) at ·······
修复方法
rm -f /etc/pve/pve-root-ca.pem /etc/pve/priv/pve-root-ca.* /etc/pve/local/pve-ssl.*
pvecm updatecerts -f
service pveproxy restart
浏览器输入 https://ip:8006 进入管理界面