美文网首页
基于debian11手动安装omv6

基于debian11手动安装omv6

作者: Armlinux | 来源:发表于2023-02-27 13:32 被阅读0次

简介:
OMV(openmediavault)是一个开源的基于Debian Linux的下一代网络附加存储(NAS)解决方案。它主要是设计用于在家庭环境或小的家庭办公室,但不仅限于这些场景。 这是一个简单和易于使用的开箱即用的解决方案,允许任何没有更深的知识的人来安装和管理的网络附加存储(NAS)

环境:debian11最小安装(这里是想OMV的系统和数据存储在一块盘,故直接在Debian系统上装OMV;要想系统和数据存储分开,用官方ISO镜像安装即可)

一、手动添加并安装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"

二、添加清华源软件包储存库加速

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

提示!!!:如果您是需要安装omv5的话,请把软件包存储库中所有的“shaitan”,替换为“usul”
三、设置语言以及API等默认环境

export LANG=C.UTF-8
export DEBIAN_FRONTEND=noninteractive
export APT_LISTCHANGES_FRONTEND=none

四、更新软件包源并安装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

可能会遇到

Failed to preset unit: Unit file /etc/systemd/system/systemd-networkd.service is masked.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on systemd-networkd.service: No such file or directory
dpkg: error processing package openmediavault (--configure):
 installed openmediavault package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 openmediavault
E: Sub-process /usr/bin/dpkg returned an error code (1)
systemctl unmask systemd-networkd.service

如果没有安装ntp,会出现,应该没事

Failed to stop ntp.service: Unit ntp.service not loaded.
Unit ntp.service does not exist, proceeding anyway.
Created symlink /etc/systemd/system/ntp.service → /dev/null.
Failed to stop systemd-timesyncd.service: Unit systemd-timesyncd.service not loaded.
Unit systemd-timesyncd.service does not exist, proceeding anyway.

五、更新omv环境

omv-confdbadm populate

openmediavault 6既没有自带OMV-Exras功能,也没有自带Docker

所以需要使用命令

wget -O - https://github.com/OpenMediaVault-Plugin-Developers/packages/raw/master/install | bash

安装之

安装之后就有OMV-Exras了,然后再安装Docker就行了
最后在浏览器输入您的IP地址即可,omv的默认端口是80
默认账号:admin,默认密码:openmediavault

参考:
OMV官方链接:https://openmediavault.readthedocs.io/en/latest/installation/on_debian.html
清华大学镜像源:https://mirrors.tuna.tsinghua.edu.cn/help/openmediavault/
————————————————
版权声明:本文为CSDN博主「逸曦玥泱」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_51792671/article/details/125985903

相关文章

网友评论

      本文标题:基于debian11手动安装omv6

      本文链接:https://www.haomeiwen.com/subject/vmrhldtx.html