wasimosmanhome
1/8/2020 - 1:09 AM

This is a grafana installation script tested on Raspbian. This should also run on any linux system

This is a grafana installation script tested on Raspbian. This should also run on any linux system


#!/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