-
Notifications
You must be signed in to change notification settings - Fork 1
/
packages.sh
executable file
·38 lines (27 loc) · 1.18 KB
/
packages.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
# Install apt packages we need
sudo apt-get install -y adduser libfontconfig1 wget default-mysql-client python3-pip python3-dev default-libmysqlclient-dev build-essential ffmpeg unzip
# Install youtube-dl
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/bin/youtube-dl
sudo chmod a+rx /usr/bin/youtube-dl
# Upgrade pip
pip3 install --upgrade pip setuptools wheel
# Install pip packages
pip3 install -r requirements.txt
# Grab Grafana
wget https://dl.grafana.com/enterprise/release/grafana-enterprise_8.4.5_amd64.deb
# Install Grafana
sudo dpkg -i grafana-enterprise_8.4.5_amd64.deb
# Delete old deb
rm grafana-enterprise_8.4.5_amd64.deb
# grab the dynamic image plugin
curl -L https://grafana.com/api/plugins/dalvany-image-panel/versions/2.4.0/download -o dalvany-image-panel.zip
# Create the plugins directory b/c it doesn't exist by default
sudo mkdir -p /var/lib/grafana/plugins
# unzip the plugin into the directory
sudo unzip dalvany-image-panel.zip -d /var/lib/grafana/plugins/dalvany-image-panel
# Clean up
rm dalvany-image-panel.zip
# Enable Grafana on startup
sudo systemctl enable grafana-server.service
sudo systemctl daemon-reload
sudo systemctl start grafana-server