OMV 系统中插件主要来源还是 omv-extras,本文记录安装过程。
背景
- 首先确定自己的 OMV 版本
- 区分 4, 5 或是 6,安装指定版本的扩展插件包
- 官网链接:https://wiki.omv-extras.org/
安装方法 (针对OMV 5.6)
方法一
- root 登录 omv,输入命令
wget -O - https://github.com/OpenMediaVault-Plugin-Developers/packages/raw/master/install | bash
方法二
- root 登录 omv, 输入命令
wget -O - https://raw.githubusercontent.com/OpenMediaVault-Plugin-Developers/packages/master/install | bash
方法三
- root 登录 omv
- 按照
https://raw.githubusercontent.com/OpenMediaVault-Plugin-Developers/packages/master/install
中记录的命令执行
apt-get update
apt-get install dirmngr
apt --fix-broken install
apt-get --yes --no-install-recommends install dirmngr gnupg
wget http://omv-extras.org/openmediavault-omvextrasorg_latest_all5.deb
dpkg -i openmediavault-omvextrasorg_latest_all5.deb
代码语言:javascript复制可能会报错:
Preconfiguring packages ...
dpkg: warning: 'ldconfig' not found in PATH or not executable.
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable.
dpkg: error: 2 expected programs not found in PATH or not executable.
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
- 问题为当前 root 用户的 Path 列表中没有包含
/usr/local/sbin, /usr/sbin 和 /sbin.
- 编辑
/root/.bashrc
文件 - 加入:
export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- 使
.bashrc
文件生效
source /root/.bashrc
测试
- 添加上述 deb 包后出现
OMV-Extras
选项
参考资料
- https://www.jianshu.com/p/59504d02d6f5
- https://wiki.omv-extras.org/
- https://blog.csdn.net/weixin_33701617/article/details/88694701