How to Install Zoneminder on Fedora CoreOS Latest

Zoneminder is an open-source video surveillance software that can be used to monitor different areas of a house or office. If you are using Fedora CoreOS Latest and you want to install Zoneminder, follow these steps:

Step 1: Install the Necessary Dependencies

To install Zoneminder on Fedora CoreOS, you need to install some dependencies that are required by the software. To install these dependencies, run the following command:

sudo dnf install -y mariadb-server mariadb \
httpd mod_ssl php php-mysqlnd \
php-gd php-xml php-mbstring php-pear \
v4l-utils ffmpeg ffmpeg-devel perl-libwww-perl \
perl-Crypt-DES perl-Digest-SHA1 perl-JSON \
perl-LWP-Protocol-https perl-Module-Pluggable \
perl-Module-Find perl-Object-Realize \
perl-Params-Validate perl-Test-Exception \
perl-Test-Deep perl-Test-Warn perl-TimeDate \
make automake gcc gcc-c++ kernel-devel git-core \
postgresql-server postgresql-contrib \
postgresql-devel net-tools

Enter your user password if prompted.

Step 2: Add the EPEL Repository

Next, you need to add the EPEL (Extra Packages for Enterprise Linux) repository to your Fedora CoreOS system. To add the repository, run the following command:

sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm -E %rhel).noarch.rpm

Step 3: Install Zoneminder

Once you have installed the dependencies and added the repository, you can now install Zoneminder. To do so, run the following command:

sudo dnf install -y zoneminder

Step 4: Start the Required Services

After installing Zoneminder, you need to start the Apache and MySQL services. To start these services, run the following commands:

sudo systemctl enable --now httpd mariadb

Step 5: Configure MySQL

Next, you need to configure MySQL to work with Zoneminder. To do so, run the following commands:

sudo mysql_secure_installation

Answer the questions as follows:

  • Would you like to setup VALIDATE PASSWORD plugin? -> No
  • Please set the password for root here. -> Enter a strong root password of your choice.
  • Remove anonymous users? -> Yes
  • Disallow root login remotely? -> Yes
  • Remove test database and access to it? -> Yes
  • Reload privilege tables now? -> Yes

Step 6: Configure Zoneminder

Finally, you need to configure Zoneminder. To do so, open the "/etc/zm/zm.conf" file in your preferred text editor and adjust the settings as necessary. Some options you may want to change include:

  • ZM_SVC_HTTPS_PORT = 8443 (to use HTTPS instead of HTTP)
  • ZM_OPT_USE_AUTH = 1 (to enable login authentication)
  • ZM_DB_HOST = localhost
  • ZM_DB_NAME = zm
  • ZM_DB_USER = zmuser
  • ZM_DB_PASS = zmuserpassword

Save and close the file when you're finished.

Step 7: Access Zoneminder

You can now access Zoneminder by navigating to https://localhost/zm/ in your web browser. Login with the username "admin" and the password "admin".

Congratulations! You have successfully installed Zoneminder on Fedora CoreOS Latest.