Created
January 8, 2020 01:09
-
-
Save wasimosmanhome/528f29414e903b8a0af5833fc15eec0b to your computer and use it in GitHub Desktop.
This is a grafana installation script tested on Raspbian. This should also run on any linux system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#This script is to install grafana server on the raspberry pi | |
#Download the installation file | |
#wget -P /home/pi/Documents/ https://dl.grafana.com/oss/release/grafana_6.4.4_armhf.deb | |
# Adding dependencies | |
sudo apt-get install -y apt-transport-https | |
sudo apt-get install -y software-properties-common wget | |
wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add - | |
# adding the stuff to the sources.list | |
sudo chown pi:pi /etc/apt/sources.list | |
chmod 777 /etc/apt/sources.list | |
echo "deb https://packages.grafana.com/oss/deb stable main" | sudo tee -a /etc/apt/sources.list | |
# apt-get update | |
sudo apt-get update -y && sudo apt-get upgrade -y --allow-unauthenticated | |
sudo apt-get install grafana | |
sudo systemctl enable grafana-server.service | |
sudo systemctl daemon-reload | |
sudo systemctl start grafana-server | |
# access the grafana webUI using localhost:3000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment