Skip to content

Instantly share code, notes, and snippets.

@clowa
Last active December 22, 2023 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clowa/0a384f65e566d7017b051185f9ae728c to your computer and use it in GitHub Desktop.
Save clowa/0a384f65e566d7017b051185f9ae728c to your computer and use it in GitHub Desktop.
Install Openmediavault 7 on Debian 12

Overview

This instruction describes how to install openmediavault 7 (sandworm) on the newly released debian 12 (bookworm). Nearly all of the steps are copied from the original installation page, only the repositories are adjusted to openmediavault 7

Installation

Install the openmediavault keyring manually:

apt-get install --yes gnupg
wget --quiet --output-document=- https://packages.openmediavault.org/public/archive.key | gpg --dearmor --yes --output "/usr/share/keyrings/openmediavault-archive-keyring.gpg"

Add the package repositories:
This step has been adjusted to target sandworm instead of shaitan.

cat <<EOF >> /etc/apt/sources.list.d/openmediavault.list
deb [signed-by=/usr/share/keyrings/openmediavault-archive-keyring.gpg] https://packages.openmediavault.org/public sandworm main
# deb [signed-by=/usr/share/keyrings/openmediavault-archive-keyring.gpg] https://downloads.sourceforge.net/project/openmediavault/packages sandworm main
## Uncomment the following line to add software from the proposed repository.
# deb [signed-by=/usr/share/keyrings/openmediavault-archive-keyring.gpg] https://packages.openmediavault.org/public sandworm-proposed main
# deb [signed-by=/usr/share/keyrings/openmediavault-archive-keyring.gpg] https://downloads.sourceforge.net/project/openmediavault/packages sandworm-proposed main
## This software is not part of OpenMediaVault, but is offered by third-party
## developers as a service to OpenMediaVault users.
# deb [signed-by=/usr/share/keyrings/openmediavault-archive-keyring.gpg] https://packages.openmediavault.org/public sandworm partner
# deb [signed-by=/usr/share/keyrings/openmediavault-archive-keyring.gpg] https://downloads.sourceforge.net/project/openmediavault/packages sandworm partner
EOF

Install the openmediavault package:

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

Populate the openmediavault database with several existing system settings, e.g. the network configuration:

omv-confdbadm populate

Re-deploy the network configuration via the services used by openmediavault:

omv-salt deploy run systemd-networkd

Or alternatively use omv-firstaid to do the initial network configuration.

Visit the Web-UI on the IP of your Server and login with the admin user with default password openmediavault. You should change this immediately

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment