自留地

分享自己的技能

0%

Debian10安装OMV5

最近忙于折腾矿渣,学着安装NAS,想着换个小板子试试OMV(OpenmediaVault),后来发现买的板子是纯UEFI启动。

NUC J4005 那款NUC7JYB 带32g emmc ,网上查了下需要安装Debian9再安装OMV4,大概搜索了下,官网以及各种镜像站都是Debian10,想着应该差不多,下载就安装上了具体过程就不描述了,都差不多,镜像写入U盘然后U盘启动,大概说几个需要注意的:

  1. 安装时选项”强制UEFI安装“选择是,就是因为OMV不支持UEFI启动,才需要将OMV安装到Debian上,因为OMV是基于Debian的。
  2. 系统安装好后需要安装下wget工具,执行命令 sudo apt install wget

系统安装完成后,根据OMV官方网站教程 Install OMV5 on Debian 10 (Buster) 终端执行命令:

此命令是增加OMV源文件

1
2
3
4
5
6
7
8
9
10
11
cat <<EOF >> /etc/apt/sources.list.d/openmediavault.list
deb https://packages.openmediavault.org/public usul main
# deb https://downloads.sourceforge.net/project/openmediavault/packages usul main
## Uncomment the following line to add software from the proposed repository.
# deb https://packages.openmediavault.org/public usul-proposed main
# deb https://downloads.sourceforge.net/project/openmediavault/packages usul-proposed main
## This software is not part of OpenMediaVault, but is offered by third-party
## developers as a service to OpenMediaVault users.
# deb https://packages.openmediavault.org/public usul partner
# deb https://downloads.sourceforge.net/project/openmediavault/packages usul partner
EOF

然后执行安装命令

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
export LANG=C.UTF-8
export DEBIAN_FRONTEND=noninteractive
export APT_LISTCHANGES_FRONTEND=none
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"
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


# Populate the database.
omv-confdbadm populate


# Display the login information.
cat /etc/issue

如果命令复制有问题,请到原链接去复制

执行完命令后就算安装完成本机打开地址 http://localhost:5005 打开OMV。账号 admin 密码 openmediavault

OK,下一篇写下基本设置,因为没正经学过Linux,所以有些地方写的不够详细,多见谅。

如果对您有帮助,可以考虑支持下作者