Skip to content

Instantly share code, notes, and snippets.

@jjakob
Last active November 19, 2023 10:31
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jjakob/c9ab333d15105b986008863e9f4f5db8 to your computer and use it in GitHub Desktop.
Save jjakob/c9ab333d15105b986008863e9f4f5db8 to your computer and use it in GitHub Desktop.
Guide for building Openmediavault 5 on Debian Buster

This guide is only for Debian Buster (10) as of 2019-01-07. It was tested on a mipsel system (GnuBee PC2).

  1. Enable buster-backports (needed for monit)
echo "deb http://httpredir.debian.org/debian buster-backports main" >> /etc/apt/sources.list
apt-get update
  1. Install prerequisites
apt-get update
apt-get install debhelper fakeroot gettext python3-pip unzip sudo git make python3-setuptools python3-dev quilt
pip3 install --upgrade wheel
pip3 install --upgrade black pylint
  1. Clone wsdd from openmediavault, build and install
git clone https://github.com/openmediavault/wsdd.git
cd wsdd
fakeroot debian/rules binary
cd ..
dpkg -i wsdd_*.deb
  1. Clone openmediavault repo
git clone https://github.com/openmediavault/openmediavault.git
cd openmediavault/deb
  1. Download ext-6.2.0-gpl.zip into deb/sources
cd sources
wget -c http://cdn.sencha.com/ext/gpl/ext-6.2.0-gpl.zip
cd ..
  1. Build non-openmediavault packages libjs-extjs6, php-pam
cd libjs-extjs6 && fakeroot debian/rules binary
cd ../php-pam
fakeroot debian/rules binary
cd ..
  1. Build all openmediavault packages
make binary
  1. Install all deb packages (NOT udeb)
dpkg -i ./*.deb
  1. Install dependencies and configure
apt-get --auto-remove \
        --no-install-recommends \
        --option Dpkg::Options::="--force-confdef" \
        --option DPkg::Options::="--force-confold" \
        -f install
  • If the above step fails due to masked openmediavault-beep-up.service, unmask all of them:
systemctl unmask openmediavault-beep-up.service
systemctl unmask openmediavault-beep-down.service
systemctl unmask openmediavault-cleanup-monit.service
systemctl unmask openmediavault-cleanup-php.service
systemctl unmask openmediavault-engined.service
systemctl unmask openmediavault-issue.service

and run apt-get -f install again.

  • If you get an error
dpkg: error processing package openmediavault-diskstats (--configure):
 installed openmediavault-diskstats package post-installation script subprocess returned error exit status 1

rerun apt-get -f install and it should install correctly this time. (This may be due to the order in which packages are installed, e.g. if all openmediavault packages are installed at the same time instead of the base package first.)

  • If the above dpkg/apt-get steps don't work (want to remove openmediavault packages instead of installing dependencies) try apt (answer with the default choice for all questions):
apt install ./*.deb
apt -f install
  • A possible way to improve the above installation process to fix some errors would be to do:
dpkg -i libjs-extjs6_*.deb php-pam_*.deb
dpkg -i openmediavault_*.deb
apt-get -f install
dpkg -i openmediavault-*.deb
apt-get -f install
  1. After the installation is finished without errors, populate the database:
omv-confdbadm populate
  1. Make the web GUI work:
omv-salt deploy run nginx
omv-salt deploy run phpfpm

You should now be able to log in to the web GUI at port 80.


  • failed to start chrony (Fatal error : Failed to load seccomp rules) This means that your kernel is compiled without seccomp (f.e. many embedded ARM/MIPS kernels).

    • Disable network time in openmediavault GUI, apply
    • check that chrony.service is disabled
    • Create /etc/systemd/system/systemd-timesyncd.service.d/x-disable-condition-disable-with-time-daemon.conf with contents:
     [Unit]
     # override conditions set in /lib/systemd/system/systemd-timesyncd.service.d/disable-with-time-daemon.conf
     ConditionFileIsExecutable=
    
    • systemctl daemon-reload
    • Configure systemd-timesyncd.conf and restart systemd-timesyncd, check status with timedatectl.
@muellerjoel
Copy link

git clone https://github.com/openmediavault/openmediavault.git
git checkout 3be91eccabe8b7afd735241d787b962697d3124e

is the openmediavault version 5 download the git clone command will clone OMV6

@muellerjoel
Copy link

A made a guide how install latest OMV5 with Debian 10 and RAID5 on a GnuBee PC2!
https://joelmueller.ch/revival-of-gnubee-pc2/

Have Fun!

@jjakob
Copy link
Author

jjakob commented Jun 11, 2022

I wouldn't advise running OMV5 on the Gnubee. I could not get it to work at that time, as the CPU was just too slow, and it was hitting timeouts that made it unusable. I opened an issue about it in OMV Github issues but they said it was a wontfix, to just use more powerful HW. In the end I completely uninstalled OMV and just configured Samba on my own.

@vgnmnky
Copy link

vgnmnky commented Jul 24, 2022

Unfortunately, I can't get this to install. It requires a later version of Salt than is available. I followed Joel-Muller's guide for that, but the directory structure is different at one point (no deb-dist), so I'm stuck there too. I'm on Buster, OMV has been removed (was 4) and I'm on kernel 5.15. I hear what has been said about OMV5 being very slow, and I'm prepared to go with a different solution, but I would like to at least get it successfully installed first.

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