2022年1月18日星期二

在 Debian 11 (Bullseye) 上安装 OMV6

要在已安装的 Debian 11 (Bullseye) 上安装 OMV6,只需执行以下步骤:

1、添加软件源:

Bash
## 添加官方软件源
cat <<EOF >> /etc/apt/sources.list.d/openmediavault.list
deb http://packages.openmediavault.org/public shaitan main
# deb http://downloads.sourceforge.net/project/openmediavault/packages shaitan main
## Uncomment the following line to add software from the proposed repository.
# deb http://packages.openmediavault.org/public shaitan-proposed main
# deb http://downloads.sourceforge.net/project/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 http://packages.openmediavault.org/public shaitan partner
# deb http://downloads.sourceforge.net/project/openmediavault/packages shaitan partner
EOF

2、完成安装

Bash

## 环境变量设置
export LANG=C.UTF-8
export DEBIAN_FRONTEND=noninteractive
export APT_LISTCHANGES_FRONTEND=none

## 添加验证公钥
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"

## 更新源
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

## 生成数据库并完成启动.
omv-confdbadm populate

默认用户名 admin
默认密码 openmediavault

## 显示登录信息.
cat /etc/issue
3、耐心等待其完成,受制于网络环境可能会意外中断安装过程,报错可重新执行安装指令

其他配置

一、释放80端口:
1、先设置webUI端口为8080(系统>工作台>Port>设置为8080)
2、删除nginx站点默认配置文件
     rm -rf  /etc/nginx/sites-available/default
3、重启nginx服务
     nginx -s reload