How to install OpenMediavault virtualmin and zoneminder on debian 7

    • OMV 1.0
    • Resolved
    • How to install OpenMediavault virtualmin and zoneminder on debian 7

      How to install OpenMediavault virtualmin and zoneminder on debian 7
      Download Debian 7 and install the base system with openssh
      I also make sure the ethernet cable is not connected so during the install process I can manually setup the network IP address etc.
      once past the network config you can reconnect the ethernet cable.

      *** This is important you need to install the applications in a set sequence else the system setup will fail ***
      First of all we install Zoneminder

      Update the system and install Zoneminder:

      apt-get update && apt-get upgrade
      # apt-get install zoneminder

      Add user to supplementary group:

      # usermod -aG video www-data

      Link Apache to Zoneminder

      # nano /etc/zm/apache.conf

      Check the file to look as below:

      Alias /zm /usr/share/zoneminder
      ScriptAlias /cgi-bin /usr/share/zoneminder/cgi-bin
      <Directory /usr/share/zoneminder>
      php_flag register_globals off
      Options FollowSymLinks
      <IfModule mod_dir.c>
      DirectoryIndex index.php
      </IfModule>
      </Directory>

      MAKE Apache Listen on port 81 temporarily (you can leave this or change it later. I have changed it back to 80 later on in my config):

      # nano /etc/apache2/ports.conf

      Link Apache file:

      # ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf

      Restart Daemons

      # service apache2 restart
      # service zoneminder restart

      test that everything works

      yourserverip/zm

      Other options can be found on the full install tutorial at:

      lisenet.com/2013/zoneminder-in…gitech-quickcam-pro-5000/

      Install OpenMediaVault on Debian

      Update the repository sources and add the contrib and non-free repositories.

      # nano /etc/apt/sources.list

      Now add the OpenMediaVault repository.

      deb packages.openmediavault.org/public kralizec main

      Update.

      # apt-get update

      Install the OpenMediaVault repository key and Postfix.

      # apt-get install openmediavault-keyring postfix

      ** When the 'Postfix Configuration' dialogue is displayed choose No configuration. **

      Update again and install OpenMediaVault.

      # apt-get update
      # apt-get install openmediavault

      ** When the 'Configuring mdadm' dialogue is displayed enter none.
      Do you want to start MD arrays automatically? YES
      When the 'ProFTPD configuration' dialogue is displayed choose standalone. **

      Initialise OpenMediaVault and reboot.

      # omv-initsystem
      # reboot

      ** After the reboot you should be able to connect to the OpenMediaVault WebUI and login as admin with the password of openmediavault.

      That's it. Get testing. **

      ** This is important once you are in Openmediavault change the password and change the port that OMV listens to I used port 10002
      also enable ssh If you do not then things will go pear shaped DO NOT DO ANYTHING ELSE AT THIS TIME DO NOET ENABLE SAMBA ETC.

      Open ssh client and set the apache server to listen to port 80

      # nano /etc/apache2/ports.conf



      Installing Virtualmin GPL

      Start by downloading the install script.

      # cd /usr/local/src

      # wget software.virtualmin.com/gpl/scripts/install.sh

      # chmod +x install.sh

      # ./install.sh

      Other software programs you can install:

      # apt-get install fetchmail flex binutils gcc cpp \
      libarchive-zip-perl libc6-dev libpcre3 libpopt-dev \
      lynx m4 make ncftp perl perl-modules unzip zip zlib1g-dev \
      autoconf automake1.9 libtool bison autotools-dev g++ build-essential \
      ffmpeg flvtool2 pbzip2 lvm2 ntpdate curl rsync libmagic-dev \
      libio-compress-perl vim iftop smartmontools pvrg-jpeg iotop sysstat pflogsumm ncdu

      # apt-get install php5-curl php5-dev php5-gd php5-idn php5-imagick \
      php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql \
      php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy \
      php5-xmlrpc php5-xsl php5-odbc php5-dev apache2-prefork-dev unixodbc \
      unixodbc-dev unixodbc-bin aspell-en imagemagick make memcached g++ \
      graphicsmagick whowatch

      Reboot the Server

      # reboot

      ** From joealdeguer.com/installing-vir…n-gpl-on-debian-7-wheezy/ **
      To complete installation go to URL of the newly installed Virtualmin GPL.
      in web browser

      serverip:10000

      Login using root.

      Click Next.

      Pre-load Virtualmin Libraries: Y

      Run email domain lookup server: Y

      Run ClamAV server scanner: Y

      Run SpamAssassin server filter: Y

      Run MySQL database server: Y

      Enter MySQL password.

      MySQL configuration size: Leave default settings

      Skip check for resolvability (If DNS is not yet setup for server’s fully qualified domain name)

      Password storage mode: Only store hashed passwords.

      Click next, next.

      Click re-check and refresh configuration. I got this error after running check.

      now

      click onto the webmin tab

      Goto system
      Bootup and Shutdown

      find the samba demon tick the box
      then
      enable start on boot then start it

      Goto Servers Apache Webserver

      Global configuration tab

      Configure Apache Modules

      Enable php5_cgi

      restart apache

      Thats it you should have Openmediavault Virtualmin and Zoneminder all running on one box


      Thanks to all the creators of tutorials of how to install the said applications for their help:


      Hope this help someone
    • Just be careful that an update to apache doesn't overwrite something nginx uses and causes the OMV web interface to not work.
      omv 4.1.13 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Point Taken so far so good everything is working fine
      the only thing I found after a number of re installs of Debian on my testing box; is you have to enable samba through virtualmin before you enable in OMV.

      The only reason I am doing this is due to a non tech mate that needs a nas with the three applications installed for a few web packages and cctv plus storage.
      Plus I have to create a landing page to enable him to get to each web gui.
      all great fun :(
    • Is there not the zoneminder package I created for OMV that works with nginx? I thought it was going to be added to the repo so users could just do an apt-get install zoneminder
      [IMG:http://widgets.trakt.tv/users/1f5d0f5ed67f98ed9d06d9849b42dd0e/watched/banner@1x.jpg]
      What I am watching/watched on my Popcorn Hour media player
      omv 2.1.1 stoneburner | 64 bit | omvextrasorg 1.29
      MySQL (Percona) | Newznab | Sonarr | CP | HP | NZBget | YAMJ | CUPS
    • You mean this package in the download manager testing repo (miller-testing) :) Been there since June. Somehow I was focus on the virtualmin part. Oops.
      omv 4.1.13 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Would that package get installed via apt-get? does an extra repo need to be enabled? Should we rename the package to "omv-zoneminder" to show it is specific to OMV?
      [IMG:http://widgets.trakt.tv/users/1f5d0f5ed67f98ed9d06d9849b42dd0e/watched/banner@1x.jpg]
      What I am watching/watched on my Popcorn Hour media player
      omv 2.1.1 stoneburner | 64 bit | omvextrasorg 1.29
      MySQL (Percona) | Newznab | Sonarr | CP | HP | NZBget | YAMJ | CUPS
    • Enable Download Managers Testing and then:
      apt-get install zoneminder

      It will install version 1.27 from the omv-extras repo because it is a newer version (1.27 > 1.25) and higher apt priority than the debian repo version.
      omv 4.1.13 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • i don't get the right version from the omv extras for stoneburner.
      Looks there will be apache installed.

      Is the package available in the download testing repo for stoneburner?
      OMV 3.0.XX Erasmus always up to date.
      Modded dell t20 into 19" rack case / xeon e3-1225v3 / 8GB RAM / 1x 250 SSD (OS) / 4x WD10EADS (Raid5) (hdd running now for more than 5 years ;) )
    • jhmiller wrote:

      github.com/cptjhmiller/omv-zoneminder

      Have a look at the above link for a how-to on building ZM for use on OMV.


      Hi,

      i tried your guide and it works.
      Is there no plugin in the omv extras?

      BR Robert
      OMV 3.0.XX Erasmus always up to date.
      Modded dell t20 into 19" rack case / xeon e3-1225v3 / 8GB RAM / 1x 250 SSD (OS) / 4x WD10EADS (Raid5) (hdd running now for more than 5 years ;) )
    • No at the moment. I did make a start on one and was going to use the built zoneminder deb package as a default install but have been looking at the Jessie version of zoneminder and it has a few differences. I want any plugin to have its files in the same locations so when OMV goes to Jessie there will be no issues when upgrading zoneminder.

      I have started work on this already and have everything setup but there are some issues while its compiling (if any one wants to help, its in the testing branch of the link I posted) I have not asked on the zoneminder forum just yet as its not high on my do to list.
      [IMG:http://widgets.trakt.tv/users/1f5d0f5ed67f98ed9d06d9849b42dd0e/watched/banner@1x.jpg]
      What I am watching/watched on my Popcorn Hour media player
      omv 2.1.1 stoneburner | 64 bit | omvextrasorg 1.29
      MySQL (Percona) | Newznab | Sonarr | CP | HP | NZBget | YAMJ | CUPS