page_title: Installing on Debian / Ubuntu page_description: Grafana Installation guide for Debian / Ubuntu.
| Description | Download |
|---|---|
| .deb for Debian-based Linux | grafana_2.0.0-beta3_amd64.deb |
$ wget https://grafanarel.s3.amazonaws.com/builds/grafana_2.0.0-beta3_amd64.deb
$ sudo apt-get install -y adduser libfontconfig
$ sudo dpkg -i grafana_2.0.0-beta3_amd64.deb
/usr/sbin/grafana-server/etc/init.d/grafana-server/etc/default/grafana-server/etc/grafana/grafana.inigrafana-server.service/var/log/grafana/grafana.log/var/lib/grafana/grafana.dbsudo service grafana-server startgrafana user (created during package install)3000, and default user is admin/adminTo configure Grafana server to start at boot time:
$ sudo update-rc.d grafana-server defaults 95 10
$ systemctl daemon-reload
$ systemctl start grafana-server
$ systemctl status grafana-server
Enable the systemd service (so grafana starts at boot)
sudo systemctl enable grafana-server.service
The systemd service file and init.d script both use the file located at /etc/default/grafana-server for
environment variables used when starting the backend. Here you can override log directory, data directory and other
variables.
By default grafana will log to /var/log/grafana
The default configuration specifies a sqlite3 database located at /var/lib/grafana/grafana.db. Please backup
this database before upgrades. You can also use mysql or postgres as the Grafana database.
The configuration file is located at /etc/grafana/grafana.ini. Go the Configuration page for details
on all those options.
Start by downloading the latest .tar.gz file and extract it.
This will extract into a folder named after the version you downloaded. This folder contains all files required to run grafana.
There are no init scripts or install scripts in this package.
To configure grafana add a config file named custom.ini to the conf folder and override any of the settings defined in
conf/defaults.ini. Start grafana by excecuting ./grafana web. The grafana binary needs the working directory
to be the root install dir (where the binary is and the public folder is located).