Grafana Bash Script for Ubuntu 22.04 LTS

Grafana is a open source monitoring and alerting tool and in this post we are going to install Grafana on ubuntu 22.04 LTS using Bash Script.

Step 1: Create a bash file 

You need to use the given command to create a bash file.

sudo vim

Step 2: Paste  the following command here.

You need to copy and paste the command sequence in your bash file.


sudo apt-get update
cd /tmp
sudo apt-get install -y adduser libfontconfig1
sudo dpkg -i grafana_9.0.0_amd64.deb
sudo systemctl daemon-reload
sudo service grafana-server start

and save it.

Step 3: Give Executable Permission 

You need to give the executable permission on file by using the following command.

sudo chmod +x

Step 4: Execute the Bash script 

In order to install Grafana in your ubuntu 22.04 LTS machine, You need to use the following command.



Here we have successfully installed the Grafana on our ubuntu machine, Still you have any question, Please leave a message.



Grafana Bash Script for Ubuntu 22.04 LTS

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top