Do yourself a favor and login as root to save yourself some time and headaches:
$ sudo su -Install unattended-upgrades:
| cat /usr/share/grafana/grafana-backup.sh | |
| #!/bin/bash | |
| DB="/var/lib/grafana/grafana.db" | |
| BACKUP="/data/backup/grafana/grafana.db-$(date +%Y%m%d).bck" | |
| SQLITE=/usr/bin/sqlite3 | |
| ZIP=/bin/gzip | |
| ${SQLITE} ${DB} ".backup ${BACKUP}" | |
| ${ZIP} ${BACKUP} |
| #Add the Ubuntu 12.04(precise) repositories | |
| cat <<EOF >> /etc/apt/sources.list | |
| deb http://archive.ubuntu.com/ubuntu precise main restricted universe | |
| deb http://archive.ubuntu.com/ubuntu precise-updates main restricted universe | |
| deb http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse | |
| EOF | |
| # Update the repos | |
| apt-get update |
Please click on the below link for downloading “gpg4win-3.1.13.exe” tool for generating PGP key pairs.
Double click on the downloaded tool and then install it just by make sure the below components were selected.
| B A S H C H E A T S H E E T | |
| to page output forward (only): command filename | more | |
| to page output forward & back: command filename | less | |
| to print a dataset: lp datasetname (-d printerid) (-o landscape) | |
| USE OF QUOTATION MARKS | |
| echo "$varname" = echo The value of \$varname is \"$varname\" | |
| = echo "The value of \$varname is \"$varname\"." | |
| $fred='Four spaces between these words.' |
| [user] | |
| name = Pavan Kumar Sunkara | |
| email = [email protected] | |
| [core] | |
| editor = vim | |
| whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
| excludesfile = ~/.gitignore | |
| [sendemail] | |
| smtpencryption = tls | |
| smtpserver = smtp.gmail.com |