-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathstart_req.sh
82 lines (68 loc) · 2.42 KB
/
start_req.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/bin/bash
#
#RED='\033[0;31m'
#GREEN='\033[0;32m'
#YELLOW='\033[0;33m'
#NC='\033[0m'
#
#echo_color() {
# local color=$1
# local message=$2
# echo -e "${color}${message}${NC}"
#}
#
#echo_red() {
# local message=$1
# echo_color "${RED}" "$message"
#}
#
#echo_green() {
# local message=$1
# echo_color "${GREEN}" "$message"
#}
#
#echo_yellow() {
# local message=$1
# echo_color "${YELLOW}" "$message"
#}
#echo_red "This is an error message."
#echo_green "This is a success message."
#echo_yellow "This is a warning message."
#echo "This is a normal message."
echo -e "\e[32mCloning repository...\e[0m"
git clone https://github.com/Naveen-X/Mr.Stark
echo -e "\e[32mInstalling apt-utils...\e[0m"
apt-get install apt-utils -y
echo -e "\e[32mUpdating system packages...\e[0m"
sudo apt-get update && sudo apt-get upgrade -y
echo -e "\e[32mInstalling Wget...\e[0m"
sudo apt install wget
echo -e "\e[32mInstalling AI MODEL...\e[0m"
wget https://people.eecs.berkeley.edu/~rich.zhang/projects/2016_colorization/files/demo_v2/colorization_release_v2.caffemodel -P ./resources/ai_helpers/
echo -e "\e[32mInstalling mediainfo...\e[0m"
sudo apt-get install mediainfo -y
echo -e "\e[32mInstalling libgl1-mesa-glx...\e[0m"
sudo apt-get install libgl1-mesa-glx -y
echo -e "\e[32mInstalling ffmpeg...\e[0m"
sudo apt-get install ffmpeg -y
echo -e "\e[32mInstalling gifsicle...\e[0m"
sudo apt-get install gifsicle -y
echo -e "\e[32mInstalling GOOGLE-CHROME-STABLE...\e[0m"
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && apt -fqqy install ./google-chrome-stable_current_amd64.deb && rm google-chrome-stable_current_amd64.deb
echo -e "\e[32mInstalling GOOGLE-CHROME-STABLE...\e[0m"
wget https://chromedriver.storage.googleapis.com/$(curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip && unzip chromedriver_linux64.zip && chmod +x chromedriver && mv -f chromedriver /usr/bin/ && rm chromedriver_linux64.zip
echo -e "\e[32mUpdating repository...\e[0m"
cd "Mr.Stark" && git pull && pip install -r req.txt
echo -e "\e[32mRunning Stark...\e[0m"
python3 -m "Stark"
#
#
#git clone https://github.com/Naveen-X/Mr.Stark
#cd "Mr.Stark" && git pull && pip install -r req.txt
#sudo apt-get update && apt upgrade -y
#sudo apt-get install mediainfo -y
#sudo apt-get install libgl1-mesa-glx -y
#sudo apt-get install python3-opencv -y
#sudo apt-get install ffmpeg -y
#sudo apt-get install gifsicle -y
#python3 -m "Stark"