-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmac_setup.sh
executable file
·44 lines (38 loc) · 1.2 KB
/
mac_setup.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
#!/bin/sh
echo "--------------------"
echo "Installing python3.7"
echo "--------------------"
#sudo apt-get install -y python3.7 python3.7-venv
brew install [email protected]
echo "--------------------------------"
echo "Installing and running mosquitto"
echo "--------------------------------"
#sudo apt-get install -y mosquitto mosquitto-clients
brew install mosquitto
if pgrep -x "mosquitto" >/dev/null
then
echo "mosquitto already installed and running :D"
else
mosquitto -c /etc/mosquitto/mosquitto.conf &
fi
echo "---------------------------"
echo "Installing ffmpeg and libav"
echo "---------------------------"
#sudo apt-get install -y libav-tools libavcodec-extra ffmpeg
brew install libav
brew install ffmpeg
echo "------------------------------"
echo "Setting up virtual environment"
echo "------------------------------"
python3.7 -m pip install virtualenv
python3.7 -m venv ./sbu-rezi-env
source sbu-rezi-env/bin/activate
echo "------------------"
echo "Installing modules"
echo "------------------"
pip install --upgrade pip
pip install -r requirements.txt --no-cache-dir
pip install -r yolov5/requirements.txt --no-cache-dir
echo "--------------------"
echo "Done! HAPPY HACKING!"
echo "--------------------"