-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·23 lines (18 loc) · 874 Bytes
/
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
#!/bin/bash
echo "Installing Python dependencies..."
if ! dpkg-query -W -f='${Status}' xvfb | grep "ok installed"; then sudo apt install xvfb; fi
pillow="$(python3 -c 'import pkgutil; print(1 if pkgutil.find_loader("Pillow") else 0)')"
wordcloud="$(python3 -c 'import pkgutil; print(1 if pkgutil.find_loader("wordcloud") else 0)')"
matplotlib="$(python3 -c 'import pkgutil; print(1 if pkgutil.find_loader("matplotlib") else 0)')"
selenium="$(python3 -c 'import pkgutil; print(1 if pkgutil.find_loader("selenium") else 0)')"
pyvirtualdisplay="$(python3 -c 'import pkgutil; print(1 if pkgutil.find_loader("pyvirtualdisplay") else 0)')"
if [ $pillow == 0 ]; then
echo "Installing Pillow..."
pip3 install --user Pillow
fi
if [ $wordcloud == 0 ]; then
echo "Installing wordcloud..."
pip3 install --user wordcloud
fi
echo "Setup successfully completed"
sh updateWallpaper.sh