1
0
Fork 0
mirror of https://gitlab.com/Shinobi-Systems/ShinobiCE.git synced 2025-03-09 15:40:15 +00:00

Coy Cobra

This commit is contained in:
Moe 2018-09-01 13:16:57 -07:00
parent 157bf6feb0
commit c8b67c57b4
45 changed files with 3076 additions and 144 deletions

View file

@ -27,6 +27,7 @@ if [ ! -e "./super.json" ]; then
fi
echo "Shinobi - Run yum update"
sudo yum update -y
sudo yum install make -y
echo "============="
echo "Shinobi - Do you want to Install FFMPEG?"
echo "(y)es or (N)o"
@ -44,7 +45,7 @@ if [ "$ffmpeginstall" = "y" ] || [ "$ffmpeginstall" = "Y" ]; then
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
sudo yum install ffmpeg ffmpeg-devel -y
else
sudo npm install ffmpeg-static
sudo npm install ffmpeg-static@2.2.1
fi
fi
echo "Shinobi - Do you want to Install Node.js?"
@ -132,7 +133,9 @@ else
fi
echo "============="
echo "Shinobi - Install NPM Libraries"
sudo npm install
sudo npm i npm -g
sudo npm install --unsafe-perm
sudo npm audit fix --unsafe-perm
echo "============="
echo "Shinobi - Install PM2"
sudo npm install pm2 -g

29
INSTALL/cuda.sh Normal file
View file

@ -0,0 +1,29 @@
#!/bin/sh
echo "------------------------------------------"
echo "-- Installing CUDA Toolkit and CUDA DNN --"
echo "------------------------------------------"
# Install CUDA Drivers and Toolkit
wget https://cdn.shinobi.video/installers/cuda-repo-ubuntu1710_9.2.148-1_amd64.deb -O cuda.deb
sudo dpkg -i cuda.deb
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1710/x86_64/7fa2af80.pub
sudo apt-get update -y
sudo apt-get -o Dpkg::Options::="--force-overwrite" install cuda -y
sudo apt-get -o Dpkg::Options::="--force-overwrite" install --fix-broken -y
# Install CUDA DNN
wget https://cdn.shinobi.video/installers/libcudnn7_7.2.1.38-1+cuda9.2_amd64.deb -O cuda-dnn.deb
sudo dpkg -i cuda-dnn.deb
wget https://cdn.shinobi.video/installers/libcudnn7-dev_7.2.1.38-1+cuda9.2_amd64.deb -O cuda-dnn-dev.deb
sudo dpkg -i cuda-dnn-dev.deb
echo "-- Cleaning Up --"
# Cleanup
sudo rm cuda.deb
sudo rm cuda-dnn.deb
sudo rm cuda-dnn-dev.deb
echo "------------------------------"
echo "Reboot is required. Do it now?"
echo "------------------------------"
echo "(y)es or (N)o. Default is No."
read rebootTheMachineHomie
if [ "$rebootTheMachineHomie" = "y" ] || [ "$rebootTheMachineHomie" = "Y" ]; then
sudo reboot
fi

View file

@ -41,7 +41,9 @@ if ( $mysqlagreeData == "y" ) then
endif
echo "============="
echo "Shinobi - Install NPM Libraries"
npm install
npm i npm -g
npm install --unsafe-perm
npm audit fix --unsafe-perm
echo "============="
echo "Shinobi - Install PM2"
npm install pm2 -g

View file

@ -49,7 +49,9 @@ if [ "$mysqlagreeData" = "y" ]; then
fi
echo "============="
echo "Shinobi - Install NPM Libraries"
sudo npm install
sudo npm i npm -g
sudo npm install --unsafe-perm
sudo npm audit fix --unsafe-perm
echo "============="
echo "Shinobi - Install PM2"
sudo npm install pm2 -g

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
# OpenCV CUDA
if [ $(dpkg-query -W -f='${Status}' git 2>/dev/null | grep -c "ok installed") -eq 0 ]; then
echo "Installing Git..."
@ -77,4 +77,4 @@ read opencvuninstall
if [ "$opencvuninstall" = "y" ] || [ "$opencvuninstall" = "Y" ]; then
rm -rf opencv
rm -rf opencv_contrib
fi
fi

View file

@ -3,7 +3,6 @@ if [ -e "INSTALL/installed.txt" ]; then
echo "Starting Shinobi"
pm2 start camera.js
pm2 start cron.js
pm2 logs
fi
if [ ! -e "INSTALL/installed.txt" ]; then
chmod +x INSTALL/now.sh&&INSTALL/now.sh

View file

@ -147,7 +147,9 @@ fi
# Install NPM Libraries
echo "============="
echo "Shinobi - Install NPM Libraries"
npm install
sudo npm i npm -g
sudo npm install --unsafe-perm
sudo npm audit fix --unsafe-perm
echo "============="
#Install PM2

View file

@ -31,6 +31,7 @@ if [ "$nodejsinstall" = "y" ] || [ "$nodejsinstall" = "Y" ]; then
./setup_8.x
sudo apt install nodejs -y
fi
sudo apt install make -y
echo "============="
echo "Shinobi - Do you want to Install FFMPEG?"
echo "(y)es or (N)o"
@ -62,7 +63,7 @@ if [ "$ffmpeginstall" = "y" ] || [ "$ffmpeginstall" = "Y" ]; then
echo "============="
fi
else
sudo npm install ffmpeg-static
sudo npm install ffmpeg-static@2.2.1
fi
fi
echo "============="
@ -146,7 +147,9 @@ else
fi
echo "============="
echo "Shinobi - Install NPM Libraries"
sudo npm install
sudo npm i npm -g
sudo npm install --unsafe-perm
sudo npm audit fix --unsafe-perm
echo "============="
echo "Shinobi - Install PM2"
sudo npm install pm2 -g