我实践:在树莓派官方os上安装openmediavault系统

2020-08-12  本文已影响0人  zhf_sy

openmediavault是一个优秀的小型nas系统,提供samba、nfs、ftp、tftp、rsync(备份)及其他增强的插件功能

参考:

https://openmediavault.readthedocs.io/en/5.x/installation/on_debian.html

安装openmediavault keyring

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://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

安装openmediavault

export LANG=C.UTF-8
export DEBIAN_FRONTEND=noninteractive
export APT_LISTCHANGES_FRONTEND=none
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

浏览器打开: http://ip
默认用户名密码: admin : openmediavault

安装完成后你会发现树莓派原os用户pi无法用ssh登录了,这时你需要在web管理界面用户管理中给用户pi加入到ssh组就可以了,如下图:


image.png
上一篇下一篇

猜你喜欢

热点阅读