0% found this document useful (0 votes)
288 views34 pages

Scylla Installation Documentation

concludes by noting that the Scylla CLI can configure a maximum of 8 cameras.

Uploaded by

fenix dota11
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
288 views34 pages

Scylla Installation Documentation

concludes by noting that the Scylla CLI can configure a maximum of 8 cameras.

Uploaded by

fenix dota11
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 34

Scylla Installation and Configuration Document

SCYLLA CLI Version 1.1.0

www.scylla.ai
Table of contents

1. Introduction
2. Specification
3. CLI Installation
4. CLI Commands
Introduction

This document describes all the installation and configuration process for
the Scylla starting from scratch. It covers all aspect of its installation and
configuration including all various software needed.
Specification

This document contains installation and configuration steps only for linux
platform for version 18.04.
CLI Installation Package installation

Unzip Scylla CLI node package anywhere where it is convenient for you.
CLI Installation Verify Node.js installation

Check if you have NODE JS installed by typing this command

$ node --version
CLI Installation Verify Node.js installation
If you have installed node js it will return node version e.g. v11.14.0 otherwise it will show that
command not found. If it shows command not found don’t panic just run below
written  commands on your terminal to install node js or just go to this link:
https://nodejs.org/en/download/ and download node installer.

$ sudo apt update

$ sudo apt install nodejs npm

$ node --version

Please make sure you have installed node js 11 or greater version.


If it less then 11 please upgrade node js version.

Alternatively, you can use nvm (node version manager).


CLI Installation NVM installation
Download and install package

$ curl -o-
https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash

# Alternatively
$ wget -qO-
https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

Configuration

$ export NVM_DIR=”$HOME/.nvm”
$ [ -s “$NVM_DIR/nvm.sh” ] && \. “$NVM_DIR/nvm.sh”
$ [ -s "$NVM_DIR/bash_completion" ] && \.   "$NVM_DIR/bash_completion"
CLI Installation NVM installation
Verify your installation

$ nvm — version

Install Node.js

$ nvm install node # "node" is an alias for the latest version

Also you can use install other versions as well

$ nvm install 6.14.4 # or 10.10.0, 8.9.1, etc

NVM usage

$ nvm use node or nvm use version

You can find installation steps here https://github.com/nvm-sh/nvm


CLI Installation Create a symlink

Create a symlink.

$ cd scylla-node-installer

$ npm link
CLI Installation Verify symlink

Verify that you have successfully created a Scylla symlink.

$ scylla

This command will show the Scylla available commands list.


This is the same as Scylla help.
CLI Commands
$ scylla or scylla help shows scylla cli available commands.

$ scylla version shows scylla cli current version.

$ scylla check checks server compatibility.

$ scylla install command to install.

$ scylla uninstall to remove scylla from the system: yet not implemented.

$ scylla start to start the scylla docker container.

$ scylla stop to stop the scylla docker container.

$ scylla config to configure network cameras.


CLI Commands Scylla check

This command checks if the current platform is compatible with the Scylla
requirements. There are 5 points which this command checks.

1. Checks the OS platform and the OS version


2. Checks the installed GRAPHICS and drivers compatibility
3. Checks CPU cores count
4. Checks RAM available space
5. Checks DISK type and available space
CLI Commands Scylla install
Before the installation process, this command checks the system compatibility and starts the
installation if all requirements are correct.

1. Install Docker and Docker Cli

$ sudo apt-get update


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

2. Install Docker compose

$  sudo curl -L
https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname
-s`-`uname -m` -o /usr/local/bin/docker-compose

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


CLI Commands Scylla install
3. Install Nvidia-390 kernel-source, driver and settings

$  sudo add-apt-repository ppa:graphics-drivers/ppa


$  sudo apt-get update
$  sudo apt-get install nvidia-kernel-source-390
$  sudo apt-get install nvidia-390 nvidia-settings

4. Install Nvidia-docker2

$ curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey |  sudo apt-key add -


$ distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
$ curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list |   sudo tee
/etc/apt/sources.list.d/nvidia-docker.list
$ sudo apt-get update
$ sudo apt-get install nvidia-docker2
CLI Commands Scylla install
5. Install AWS Cli and opens configuration inputs

$ sudo apt-get update

$ sudo apt-get -y install awscli

6. Install AWS Cli

$ sudo apt-get update

$ sudo apt-get -y install awscli


CLI Commands Scylla install
7. Configure AWS by entering right credentials

Console guide will walk you through the configuration process. For Access Key ID and
Access Secret Key specify the values you got from the development team, for region
specify eu-central-1 and Output Format specify json.

Note: Once finished the wizard will create a config file under ~/.aws in a file named
credentials

1) Access key id
2) Secret Access key
3) Default region
4) Output format
CLI Commands Scylla install
Please double check before approving.

After configuration it will try to login AWS ECR. If you logged in successfully you should
see Login succeeded.
CLI Commands Scylla install
8. Create 2 folders and 2 files

Folders

$ sudo mkdir -p /etc/scylla'  /etc/scylla

$ sudo mkdir -p /var/log/scylla' /var/log/scylla

Files

/etc/scylla/config.json

/etc/scylla/scylla_cfg.json

If all operations finished successfully you should see this message:


Scylla has been successfully installed
CLI Commands Scylla config

Use this command to configure network cameras.

After execution this command it checks network devices and shows  checkbox list.
CLI Commands Scylla config

If you have connected cameras on the list it will show filled checkbox circle otherwise
bordered checkbox circle. You can choose all devices by clicking a button on your keyboard.
If  you want to remove selections just click on the I button. If you want to choose specific
camera, press click down or up buttons and press space button. If you choose all devices
click on the enter. It will open user and pass interactive inputs for selected cameras.
CLI Commands Scylla config

Once you entered user and pass wait until it connects to the camera. If connection fails it
will open confirmation dialog to try again or skip a camera installation.
CLI Commands Scylla config

After installation this command changes /etc/scylla/config.json file cameras property and
adds installed cameras.
For each cameras it adds properties like this:
CLI Commands Scylla config

If you want to add cameras manually open /etc/scylla/config.json file, find cameras property
and add camera after end of cameras array. Camera configuration requires 4 properties that
you should confirm. Camera name, camera type e.g rtsp, url (udp stream url) and device id
(device urn). Scylla cli checks connected cameras with id parameter so it is encouraged to
add this parameter if you have it.

Config.json by default includes 3 default cameras. Please DO NOT REMOVE first one. It is
required for scylla. Other 2 options are not mandatory they are just an example you can
remove or replace them.

There is limitation while installing cameras. You can not choose more than 8 cameras.
Address: Phone number:
Scylla, Inc. +1(747)228-3878
Albert Stepanyan Email:
Chief Executive Officer [email protected]
4500 Park Granada Suite 202, Calabasas CA 91302

You might also like