Difference between revisions of "Cluebase VMS Installation Manual"

From vCloud.ai Documentation
Jump to navigation Jump to search
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
<strong>Kurulum kılavuzu İçindekiler</strong>
<strong>Installation manual Contents</strong>


== Otomatik kurulum  ==
== Preparation ==
Cluebase VYS kurulumu ve işletimi için Docker konteyner çerçevesi ve Docker-compose uzantısı gereklidir.<br>
Download cluebase.zip from https://vcloud.ai/downloads and unzip the file. Please note that in some versions of Linux the unzip application is not included so you'll need to install it separately with the following command:
sudo apt install unzip
Now unzip the Cluebase VMS installer with the following command:
sudo unzip cluebase.zip
The above command creates a directory containing the installation files.  


1.1. Linux<br>
Go to CluebaseVMS directory:
cd CluebaseVMS
Now you have to provide permissions to the installation script (install.sh):
sudo chmod +x install.sh
You are all set for the installation.


Cluebase VYS'yi temiz bir Linux işletim sistemine otomatik olarak kurmak için lütfen install.sh komut dosyasını çalıştırın.<br>
== Automatic installation  ==


Komut dosyasını çalıştırmak için lütfen “install.sh” içeren klasöre gidin ve aşağıdaki komutu çalıştırın: <br>
 
Docker container framework and Docker-compose extension are required for Cluebase VMS installation and operation.<br>
 
=== Installing on Linux ===
Please run the install.sh script to automatically install Cluebase VMS on a clean Linux OS.<br>
 
To run the script, please go to the folder containing “install.sh” and run the following command: <br>


  $ sudo sh install.sh <br>
  $ sudo sh install.sh <br>


1.2. Windows<br>
== Installing the SSL version ==
Here are the steps to install Cluebase VMS with SSL encryption:


Cluebase VYS'yi Windows işletim sistemine yüklemek için lütfen WINDOWS_install.bat toplu iş dosyasını çalıştırın. <br>
# Download Cluebase VMS SSL installer . Please note that it comes as a separate install package and available at https://vcloud.ai/downloads
# Prepare SSL certificate and public key that are generated for the required domain name.
# Unzip the installation package.
# Navigate to 'certs' directory in the installation package.
# Copy the SSL certificate and public key (file should be named as follows: cert.crt - SSL certificate, cert.key - public). The existing files should be replaced or removed before
# Provide permissions to the installation script by this command:


== Manuel kurulum ==
  sudo chmod +x install.sh
<strong> 2.1. Docker kurulum</strong><br>
7. Run the installation script:
  $ sudo sh install.sh
Cluebase VYS kurulumu ve çalışması için Docker konteyner çerçevesi ve Docker-compose uzantısı gereklidir. <br>


2.1.1.Docker'ı Linux'a kurmak<br>
== Manual installation ==


Resmi Docker kurulum kılavuzu: https://docs.docker.com/engine/install/ubuntu/<br>
=== Installing Docker on Linux ===
Official Docker installation guide: https://docs.docker.com/engine/install/ubuntu/<br>


Aşağıdaki komutu çalıştırın:<br>
Run the following command:<br>


  $ sudo apt-get update && apt-get install docker-ce docker-ce-cli containerd.io <br>
  $ sudo apt-get update && apt-get install docker-ce docker-ce-cli containerd.io <br>
2.1.2. Linux'ta docker-compose kurulumu<br>


Aşağıdaki komutu çalıştırın:<br>
=== Installing docker-compose on Linux ===
Run the following command:<br>


  $ sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose <br>
  $ sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose <br>
   
   
Aşağıdaki komutu çalıştırarak gerekli erişim haklarını verin:<br>
Grant the necessary access rights by running the following command:<br>


  $ sudo chmod +x /usr/local/bin/docker-compose <br>
  $ sudo chmod +x /usr/local/bin/docker-compose <br>


2.1.3. Docker'ı Windows'a Yükleme <br>
=== <strong>Preparation for manual VMS installation </strong>  ===
You will need to edit the environment variable file, the .env file, to successfully install the VMS.<br>


Docker Desktop'ın en son sürümünü resmi web sitesinden indirin: https://www.docker.com/products/docker-desktop <br>
Please note that this file is hidden in the folder by default. <br>


Docker Desktop yükleyicisi, Docker motorunu ve Docker compose içerir.<br>
Open the .env file and specify the server's IP address in the following fields: <br>


<strong> 2.2. VYS kurulumu için hazırlık </strong> <br>
APP_HOST=0.0.0.0 (the server's public IP address) MACHINE_HOST=0.0.0.0 (local IP address of the server) <br>
2.2.1. Cluebase.zip'i indirin. Bir VYS klasörü oluşturun ve zip dosyası içeriğini bu klasöre açın. <br>


VYS'yi başarılı bir şekilde kurmak için ortam değişkeni dosyası olan .env dosyasını düzenlemeniz gerekecektir.<br>
If the VMS should only be used in the local network, both IP addresses will be the same.  


Lütfen bu dosyanın varsayılan olarak klasörde gizlendiğini unutmayın. <br>
=== Using a custom port for the VMS ===
By default the VMS installs and runs on port 80. However you can configure a different port by amending the .env file.


2.2.2. .env dosyasını açın ve aşağıdaki alanlarda sunucunun IP adresini belirtin: <br>
Open the .env file and add NGINX_PORT variable and it's value (port number) as shown on the screenshot.
[[File:Editing .env file .jpg|thumb|none|557x557px]]


APP_HOST=0.0.0.0 (sunucunun genel IP adresi)
=== Installing and running VMS ===
MACHINE_HOST=0.0.0.0 (sunucunun yerel IP adresi) <br>
<br>Enter the VMS folder and run the following command: <br>


VYS'nin yalnızca yerel ağda kullanılması gerekiyorsa, her iki IP adresi de aynı olacaktır. <br>
$ sudo docker-compose up -d <br>


2.2.3. VYS’yi yükleme ve çalıştırma <br>VYS klasörüne girin ve aşağıdaki komutu çalıştırın: <br>
This command will automatically download, install and run VMS.  
 
=== Failover ===
 
===== Description =====
Cluebase VMS supports failover (hot swap) functionality as the following options:
 
# 1 to 1 - every server in the system has a failover server
# Many to 1 - several servers can be hot-swapped by 1 failover server
# Many to Many - several servers can be hot-swapped by several failover servers
 
===== Important =====
 
# In case of using the failover functionality it’s important to make sure that network storage is being used (Object storage or NAS)
# Failover server hardware should be able to handle the required number of cameras so the failover servers’ hardware should be precisely calculated and configured.
# Configuration is automatically sent from main server to failover every 5 minutes
#Please note that shutting down the main server manually is considered as maintenance and will not initiate the failover process.
#After switching back from failover server to the main server it is required to reset failover server's configuration or reboot.
 
===== Setup =====
To set up a failover system you need to have at least 1 main server and 1 failover server.
 
Go to the main server user interface and open Failover settings: Settings->Failover->Add Failover Server and fill the fields with Failover server credentials. In the Logic field choose the server or servers that should be hot-swapped by the current Failover server. Then click Save.
[[File:Failover settings.png|none|thumb]]


$ sudo docker-compose up -d <br>


Bu komut, VYS'yi otomatik olarak indirecek, kuracak ve çalıştıracaktır. <br>
<br>


== Oturum açma ==
== Sign in ==
Bir web tarayıcısı açın (Google Chrome, Mozilla Firefox ve Safari önerilir), sunucunun IP adresini girin ve Enter'a basın. <br>
Open a web browser (Google Chrome, Mozilla Firefox and Safari are recommended), enter the server's IP address and press Enter. <br>
[[File:Picture 24.png|thumb|none]]<br>
[[File:Picture 24.png|thumb|none]]<br>
Varsayılan olarak oturum açma ve parola: admin/admin.<br>
By default login and password: admin/admin.
 
== Server IP update ==
sudo sh newIP.sh
 
== Stopping the VMS  ==
Run the following command from the VMS folder to stop the VMS server:<br>
 
$ sudo sh stop.sh<br>
 
== Updating VMS  ==
To update VMS version:<br><br>
$ sudo sh update.sh<br>  


== VYS'yi Durdurma  ==
== Start VMS ==
VYS sunucusunu durdurmak için VYS klasöründen aşağıdaki komutu çalıştırın:<br>
$ sudo sh start.sh<br>


  $ sudo docker-compose down  <br>
== Uninstall VMS ==
  $ sudo sh uninstall.sh<br>


== VYS'nin Güncellenmesi  ==
== Camera settings recommendations ==
VYS sürümünü güncellemek için:<br> 1.VYS'yi durdurun <br> 2.VYS klasöründen aşağıdaki komutu çalıştırın:<br>
1. Always use the CBR setting, as when using VBR on some camera models, the bitrate may drop to limits, which may cause the video stream to be temporarily shut down. <br>
$ sudo docker-compose pull  <br>
2. Always set the minimum keyframe interval (I Frame interval or Key Frame interval).
3.VYS'yi yeniden çalıştırın:<br>
$ sudo docker-compose up -d<br>

Latest revision as of 05:31, 9 July 2024

Installation manual Contents

Preparation

Download cluebase.zip from https://vcloud.ai/downloads and unzip the file. Please note that in some versions of Linux the unzip application is not included so you'll need to install it separately with the following command:

sudo apt install unzip

Now unzip the Cluebase VMS installer with the following command:

sudo unzip cluebase.zip

The above command creates a directory containing the installation files.

Go to CluebaseVMS directory:

cd CluebaseVMS

Now you have to provide permissions to the installation script (install.sh):

sudo chmod +x install.sh

You are all set for the installation.

Automatic installation

Docker container framework and Docker-compose extension are required for Cluebase VMS installation and operation.

Installing on Linux

Please run the install.sh script to automatically install Cluebase VMS on a clean Linux OS.

To run the script, please go to the folder containing “install.sh” and run the following command:

$ sudo sh install.sh 

Installing the SSL version

Here are the steps to install Cluebase VMS with SSL encryption:

  1. Download Cluebase VMS SSL installer . Please note that it comes as a separate install package and available at https://vcloud.ai/downloads
  2. Prepare SSL certificate and public key that are generated for the required domain name.
  3. Unzip the installation package.
  4. Navigate to 'certs' directory in the installation package.
  5. Copy the SSL certificate and public key (file should be named as follows: cert.crt - SSL certificate, cert.key - public). The existing files should be replaced or removed before
  6. Provide permissions to the installation script by this command:
sudo chmod +x install.sh

7. Run the installation script:

 $ sudo sh install.sh

Manual installation

Installing Docker on Linux

Official Docker installation guide: https://docs.docker.com/engine/install/ubuntu/

Run the following command:

$ sudo apt-get update && apt-get install docker-ce docker-ce-cli containerd.io 

Installing docker-compose on Linux

Run the following command:

$ sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose 

Grant the necessary access rights by running the following command:

$ sudo chmod +x /usr/local/bin/docker-compose 

Preparation for manual VMS installation

You will need to edit the environment variable file, the .env file, to successfully install the VMS.

Please note that this file is hidden in the folder by default.

Open the .env file and specify the server's IP address in the following fields:

APP_HOST=0.0.0.0 (the server's public IP address) MACHINE_HOST=0.0.0.0 (local IP address of the server)

If the VMS should only be used in the local network, both IP addresses will be the same.

Using a custom port for the VMS

By default the VMS installs and runs on port 80. However you can configure a different port by amending the .env file.

Open the .env file and add NGINX_PORT variable and it's value (port number) as shown on the screenshot.

Editing .env file .jpg

Installing and running VMS


Enter the VMS folder and run the following command:

$ sudo docker-compose up -d 

This command will automatically download, install and run VMS.

Failover

Description

Cluebase VMS supports failover (hot swap) functionality as the following options:

  1. 1 to 1 - every server in the system has a failover server
  2. Many to 1 - several servers can be hot-swapped by 1 failover server
  3. Many to Many - several servers can be hot-swapped by several failover servers
Important
  1. In case of using the failover functionality it’s important to make sure that network storage is being used (Object storage or NAS)
  2. Failover server hardware should be able to handle the required number of cameras so the failover servers’ hardware should be precisely calculated and configured.
  3. Configuration is automatically sent from main server to failover every 5 minutes
  4. Please note that shutting down the main server manually is considered as maintenance and will not initiate the failover process.
  5. After switching back from failover server to the main server it is required to reset failover server's configuration or reboot.
Setup

To set up a failover system you need to have at least 1 main server and 1 failover server.

Go to the main server user interface and open Failover settings: Settings->Failover->Add Failover Server and fill the fields with Failover server credentials. In the Logic field choose the server or servers that should be hot-swapped by the current Failover server. Then click Save.

Failover settings.png



Sign in

Open a web browser (Google Chrome, Mozilla Firefox and Safari are recommended), enter the server's IP address and press Enter.

Picture 24.png


By default login and password: admin/admin.

Server IP update

sudo sh newIP.sh

Stopping the VMS

Run the following command from the VMS folder to stop the VMS server:

$ sudo sh stop.sh

Updating VMS

To update VMS version:

$ sudo sh update.sh

Start VMS

$ sudo sh start.sh

Uninstall VMS

$ sudo sh uninstall.sh

Camera settings recommendations

1. Always use the CBR setting, as when using VBR on some camera models, the bitrate may drop to limits, which may cause the video stream to be temporarily shut down.
2. Always set the minimum keyframe interval (I Frame interval or Key Frame interval).