This script will install Grafana on a Linux system.
1
2
3
4
5
6
7
8
9
10
# source: https://computingforgeeks.com/how-to-install-grafana-on-ubuntu-linux-2/
sudo apt install -y gnupg2 curl software-properties-common
curl -fsSL https://packages.grafana.com/gpg.key|sudo gpg \
--dearmor -o /etc/apt/trusted.gpg.d/grafana.gpg
sudo add-apt-repository -y "deb https://packages.grafana.com/oss/deb stable main"
sudo apt update
sudo apt -y install grafana
sudo systemctl enable --now grafana-server
systemctl status grafana-server.service
You can access Grafana by this URL: http://ipaddress:3000/
The initial username is admin
The Initial password is admin
You will be asked immediately to change your password.