Bionic Server on Pi 3 B+

A place for discussion of topics that are not specific to ZoneMinder. This could include Linux, Video4Linux, CCTV cameras or any other topic.
Post Reply
Posts: 2676
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Bionic Server on Pi 3 B+

Post by bbunge » Mon Feb 04, 2019 12:59 am

Playing with my Pi 3 B+ I was able to get a copy of Bionic Mate running with the WIFI enabled. So I thought why not pare it down to just a server version. I uninstalled Mate, added server, a swap file and tweaked the network to be activated with netplan. Also fixed a couple of errors that came up at boot.

First test was to add LAMP and Zoneminder 1.32.3. Ran one USB and one remote camera at 640x480 5 FPS. Ran well.

Edit: Ubuntu now has server images for Pi 2 and 3. See:

I have run the versions, 32 and 64 bit, on my Pi 3B+ and Zoneminder installs and runs.

I did get rid of the cloud service. See: ... -init.html

You will need a swap file. Run these commands:

fallocate -l 512M /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab

You will need to set your timezone. Run these commands:

nano /etc/timezone
apt install ntp ntpdate
Note: for the next command replace "La_Paz" with your local timezone.
cp /usr/share/zoneinfo/America/La_Paz /etc/localtime

To disable auto updates run:

nano /etc/apt/apt.conf.d/20auto-upgrades

and replace the "1" with "0"

Here is a shell script to install Apache2, Mariadb Server, PHP and Zoneminder 1.32.x on your Ubuntu Pi:

read -p "This script installs Apache2, Mariadb Server, PHP and Zoneminder 1.32.x on Ubuntu 18.04 ...
Press Enter to continue or Ctrl + c to quit" nothing
read -p "You must be logged in as root using sudo su ...
Press Enter to continue or Ctrl + c to quit" nothing
apt install php mariadb-server php-mysql libapache2-mod-php7.2
read -p "Next secure MySQL server by entering requested information. Press enter to continue" nothing
read -p "Next we will add the PPA repository, install and configure the system to run Zoneminder.
Press enter to continue" nothing
apt install -y software-properties-common
add-apt-repository ppa:iconnor/zoneminder-1.32
apt update
awk '$0="date.timezone = "$0' /etc/timezone >> /etc/php/7.2/apache2/php.ini
apt install -y zoneminder
systemctl enable zoneminder
service zoneminder start
adduser www-data video
a2enconf zoneminder
a2enmod rewrite
chown -R www-data:www-data /usr/share/zoneminder/
service apache2 reload
read -p "Install complete.Press enter to continue" nothing

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests