From 1764c2417f542fa80e2796f48d47d94c28ef98c1 Mon Sep 17 00:00:00 2001 From: JJ Asghar Date: Thu, 2 Jan 2020 10:40:09 -0500 Subject: [PATCH] Docs: Added sudo and removed $ where inconsistent. (#21314) I standardized the readme for `sudo` and removed the `$`. Now you can copy paste the commands and just "install" via the rpm based distros. Signed-off-by: JJ Asghar Signed-off-by: JJ Asghar --- docs/sources/installation/rpm.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/sources/installation/rpm.md b/docs/sources/installation/rpm.md index a5e8a94ced4..43862894584 100755 --- a/docs/sources/installation/rpm.md +++ b/docs/sources/installation/rpm.md @@ -25,7 +25,7 @@ links. You can install Grafana using Yum directly: ```bash -$ sudo yum install +sudo yum install ``` You will find package URLs on the [download page](https://grafana.com/grafana/download?platform=linux). @@ -33,20 +33,20 @@ You will find package URLs on the [download page](https://grafana.com/grafana/do Or install manually using `rpm`. First execute ```bash -$ wget +wget ``` ### On CentOS / Fedora / Redhat: ```bash -$ sudo yum install initscripts urw-fonts -$ sudo rpm -Uvh +sudo yum install initscripts urw-fonts +sudo rpm -Uvh ``` ### On OpenSuse: ```bash -$ sudo rpm -i --nodeps +sudo rpm -i --nodeps ``` ## Install via YUM Repository @@ -82,7 +82,7 @@ sslcacert=/etc/pki/tls/certs/ca-bundle.crt Then install Grafana via the `yum` command. ```bash -$ sudo yum install grafana +sudo yum install grafana ``` ### RPM GPG Key @@ -104,7 +104,7 @@ The RPMs are signed, you can verify the signature with this [public GPG key](htt You can start Grafana by running: ```bash -$ sudo service grafana-server start +sudo service grafana-server start ``` This will start the `grafana-server` process as the `grafana` user, @@ -122,9 +122,9 @@ $ sudo /sbin/chkconfig --add grafana-server ## Start the server (via systemd) ```bash -$ systemctl daemon-reload -$ systemctl start grafana-server -$ systemctl status grafana-server +sudo systemctl daemon-reload +sudo systemctl start grafana-server +sudo systemctl status grafana-server ``` ### Enable the systemd service to start at boot @@ -171,9 +171,9 @@ for example in alert notifications. If the image is missing text make sure you have font packages installed. ```bash -yum install fontconfig -yum install freetype* -yum install urw-fonts +sudo yum install fontconfig +sudo yum install freetype* +sudo yum install urw-fonts ``` ## Installing from binary tar file