安裝步奏
「更新」在網絡上查找 OMV-Extras 的安裝方法時,發現 OpenMediaVault 根本不需要另外安裝,也就是 Step 5 之後,直接可以跳到 Step 10,那一行指令會同時安裝 OpenMediaVault + OMV-Extras。有時網絡上的經驗分享也是有盲點的~
- 用以下指令查詢可用的 LXC 系統檔
root@pve2:~# pveam available --section system system alpine-3.10-default_20190626_amd64.tar.xz system alpine-3.11-default_20200425_amd64.tar.xz system archlinux-base_20200508-1_amd64.tar.gz system centos-6-default_20191016_amd64.tar.xz system centos-7-default_20190926_amd64.tar.xz system centos-8-default_20191016_amd64.tar.xz system debian-10.0-standard_10.0-1_amd64.tar.gz system debian-8.0-standard_8.11-1_amd64.tar.gz system debian-9.0-standard_9.7-1_amd64.tar.gz system fedora-31-default_20191029_amd64.tar.xz system fedora-32-default_20200430_amd64.tar.xz system gentoo-current-default_20200310_amd64.tar.xz system opensuse-15.1-default_20190719_amd64.tar.xz system ubuntu-16.04-standard_16.04.5-1_amd64.tar.gz system ubuntu-18.04-standard_18.04.1-1_amd64.tar.gz system ubuntu-19.10-standard_19.10-1_amd64.tar.gz system ubuntu-20.04-standard_20.04-1_amd64.tar.gz
- 下載 debian 10 系統檔
root@pve2:~# pveam download debian-10.0-standard_10.0-1_amd64.tar.gz
- 新建一個 Debian 10 LXC,1 Core / 1024 Mem / 1024 Swap 但是先不要開機,到 pve shell 編輯設定檔
root@pve2:~# nano /etc/pve/lxc/105.conf
在檔案最後加上以下設定,然後存檔,離開。lxc.apparmor.profile: unconfined lxc.mount.auto: cgroup:rw lxc.mount.auto: proc:rw lxc.mount.auto: sys:rw
- 開機新建立的 Debian 10,打開容器的 Shell,首先將 apt source 改成 Taiwan 的伺服器
root@OMV:~# cat /etc/apt/sources.list deb http://ftp.tw.debian.org/debian buster main contrib deb http://ftp.tw.debian.org/debian buster-updates main contrib # security updates deb http://security.debian.org buster/updates main contrib
- 將 Debian 10 系統更新
root@OMV:~# apt update && apt dist-upgrade -y && reboot
- 重開機後,加入 OMV 的套件來源
root@OMV:~# echo "deb http://packages.openmediavault.org/public usul main" \
>> /etc/apt/sources.list.d/omv.list
- 必須先安裝 gnupg 套件
root@OMV:~# apt install gnupg -y
- 安裝 OpenMediaVault 5 套件的 PGP Key,步奏如下
root@OMV:~# export LANG=C.UTF-8 root@OMV:~# export DEBIAN_FRONTEND=noninteractive root@OMV:~# export APT_LISTCHANGES_FRONTEND=none root@OMV:~# wget -O \
"/etc/apt/trusted.gpg.d/openmediavault-archive-keyring.asc" \
https://packages.openmediavault.org/public/archive.key
root@OMV:~# apt-key add \"/etc/apt/trusted.gpg.d/openmediavault-archive-keyring.asc"
root@OMV:~# apt update 再來是開始安裝 OpenMediaVault 5
root@OMV:~# apt --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 root@OMV:~# omv-confdbadm populate- 安裝 omv-extras
root@OMV:~# wget -O - \ https://github.com/OpenMediaVault-Plugin-Developers/packages/raw/master/install \ | bash
- 大功告成!
沒有留言:
張貼留言