once the system is up and running I believe one can unload the devx
Get the devx_bionicpup64_8.0.sfs and load it using Menu->Setup->SFS-Load-on-the-fly
Open a terminal ->
Code: Select all
adduser mysql -d
https://nodejs.org/en/download/
download nodejs LTS (in my case node-v10.16.0-linux-x64)
open it with xarchive (click on it) extract to /root/my-applications
open /root/my-applications/node-v10.16.0-linux-x64/bin
sym-link the these files, open a termnal ->
Code: Select all
ln -s /root/my-applications/node-v10.16.0-linux-x64/bin/node /root/my-applications/bin/node
ln -s /root/my-applications/node-v10.16.0-linux-x64/bin/npm /root/my-applications/bin/npm
ln -s /root/my-applications/node-v10.16.0-linux-x64/bin/npx /root/my-applications/bin/npx
Code: Select all
node -v
Code: Select all
v10.16.0
Let PPM install it
open a terminal and type ->
Code: Select all
mysql_install_db
mkdir /var/log/mysql
chown -R mysql /var/log/mysql
mysqld &
/usr/bin/mysql_secure_installation
close the terminal
mysql is running and the nodejs server is almost ready now.
open a terminal ->
Code: Select all
ffmpeg
From this page of the Shinobi docs -> https://shinobi.video/docs/start
Application Install
Download Shinobi with git (comes in the devx_bionicpup64_8.0.sfs)
Open Terminal in /root/my-applications
Code: Select all
git clone https://gitlab.com/Shinobi-Systems/Shinobi.git Shinobi
Code: Select all
chmod -R 755 /root/my-applications/Shinobi
Code: Select all
cd /root/my-applications/Shinobi
Code: Select all
cd sql
Code: Select all
mysql -u root -p
Code: Select all
source ./user.sql
Code: Select all
CREATE USER 'majesticflame'@'127.0.0.1' IDENTIFIED BY '';
GRANT ALL PRIVILEGES ON * . * TO 'majesticflame'@'127.0.0.1';
FLUSH PRIVILEGES
while still in the SQL client. Install the Shinobi database. It will create a database called ccio.
Code: Select all
source ./framework.sql
Code: Select all
source ./default_data.sq
Go up one directory to enter the main directory. Where camera.js is located.
Code: Select all
cd ..
Code: Select all
cp conf.sample.json conf.json
Install Libraries
Run npm install while in the main directory. This will install the libraries Shinobi needs. PM2 is needed to use UPDATE.sh and to Daeomonize the process
Code: Select all
npm install&&npm install pm2 -g
Code: Select all
cp super.sample.json super.json
then to start :
Code: Select all
pm2 start camera.js
forever is another program to daemonize, but i've had more success with pm2.
To get your IP you can run the following command.
Code: Select all
ifconfig -a
Code: Select all
Username : ccio@m03.ca
Password : password
all the passwords used are default and you can modify them as you wish.
once you have seen how it works one can place the components in any directories desired.