0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ZoneMinder インストール方法

Last updated at Posted at 2020-04-04

taskselのインストール
※次のlamp-serverインスコのためtasksel導入しましょう
sudo apt -y install tasksel
lamp-serverの導入
sudo tasksel install lamp-server
このままだと動かないので古いverのPHP追加
リポジトリ追加

sudo add-apt-repository ppa:ondrej/php
sudo apt update
php7.2と必要群
sudo apt install -y php7.2 php7.2-common 
php7.2-cli php7.2-fpm php7.2-mysql php7.2-dev php7.2-mbstring php7.2-zip

nano /etc/apt/sources.listに追加
deb http://archive.ubuntu.com/ubuntu bionic main multiverse restricted universe
deb http://archive.ubuntu.com/ubuntu bionic-security main multiverse restricted universe
deb http://archive.ubuntu.com/ubuntu bionic-updates main multiverse restricted universe

権限の昇格
”sudo su -”

zoneminderインストール用シェルの作成

# !/bin/sh
clear
read -p "This script installs Zoneminder 1.32.x on Ubuntu 18.04 AMD64 with LAMP (MySQL) installed...
Press Enter to continue or Ctrl + c to quit" nothing
clear
read -p "You must be logged in as root using sudo su ...
Press Enter to continue or Ctrl + c to quit" nothing
clear
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
clear
add-apt-repository ppa:iconnor/zoneminder-1.32
apt update
clear
awk '$0="date.timezone = "$0' /etc/timezone >> /etc/php/7.2/apache2/php.ini
clear
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
clear
read -p "Install complete.Press enter to continue" nothing
clear

アクセス権の変更
"chmod 755 zm-install"

シェルの実行
"./zm-install"
→確認が来るので[Enter]を入力
4回確認が来ますので[Enter]キーを押下します。

後は
192.168.x.x/zmでアクセスすればおkです

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?