N1用来做NAS,还是界面管理比较方便,有时候输命令太麻烦了,也不好监控,所以用OMV,又能折腾了。
Armbian-bullseye是基于Debian11的,对应的OMV版本是6,6的界面也好看点,所以就装OMV6了。
1. 手动添加并安装omv官方秘钥环
apt-get install --yes gnupg
wget -O "/etc/apt/trusted.gpg.d/openmediavault-archive-keyring.asc" https://packages.openmediavault.org/public/archive.key
apt-key add "/etc/apt/trusted.gpg.d/openmediavault-archive-keyring.asc"
2. 添加清华源软件包储存库加速
cat <<EOF > /etc/apt/sources.list.d/openmediavault.list
deb https://mirrors.tuna.tsinghua.edu.cn/OpenMediaVault/public shaitan main
deb https://mirrors.tuna.tsinghua.edu.cn/OpenMediaVault/packages shaitan main
## Uncomment the following line to add software from the proposed repository.
# deb https://mirrors.tuna.tsinghua.edu.cn/OpenMediaVault/public shaitan-proposed main
# deb https://mirrors.tuna.tsinghua.edu.cn/OpenMediaVault/packages shaitan-proposed main
## This software is not part of OpenMediaVault, but is offered by third-party
## developers as a service to OpenMediaVault users.
# deb https://mirrors.tuna.tsinghua.edu.cn/OpenMediaVault/public shaitan partner
# deb https://mirrors.tuna.tsinghua.edu.cn/OpenMediaVault/packages shaitan partner
EOF
omv6对应的版本名字叫shaitan
。
3. 设置环境变量
export LANG=C.UTF-8
export DEBIAN_FRONTEND=noninteractive
export APT_LISTCHANGES_FRONTEND=none
4. 修改
做一下修改,防止安装过程中出现错误。
systemctl unmask systemd-networkd.service
5. 更新软件包源并安装omv
# 更新
apt-get update
# 因为有原来自带的国外的软件源,会比较慢,耐心等待
# 安装
apt-get --yes --auto-remove --show-upgraded \
--allow-downgrades --allow-change-held-packages \
--no-install-recommends \
--option DPkg::Options::="--force-confdef" \
--option DPkg::Options::="--force-confold" \
install openmediavault-keyring openmediavault
6. 更新omv环境
omv-confdbadm populate
7. 安装omv-extras
安装omv-extras
,不要去GitHub上拉了,就国内的网,经常连不上。我们可以看清华的镜像库,它里面有。地址:
https://mirrors.tuna.tsinghua.edu.cn/OpenMediaVault/openmediavault-plugin-developers/pool/main/o/openmediavault-omvextrasorg/
直接下载需要的版本就行:
wget https://mirrors.tuna.tsinghua.edu.cn/OpenMediaVault/openmediavault-plugin-developers/pool/main/o/openmediavault-omvextrasorg/openmediavault-omvextrasorg_6.1.1_all.deb
下载完成后,进行安装:
dpkg -i openmediavault-omvextrasorg_6.1.1_all.deb
# 等待一会,顺利安装完成。
注意注意注意,omv默认账号密码:admin/openmediavault
安装成功,就是这个样子的: