app/notes/20180924-0116.md
Installing Netdata
installing-netdata
1537751765
1. `sudo apt install netdata`
2. Check that netdata is running on the default port 19999. Note that netdata
does not by default respond to requests on public interfaces. I therefore
used an SSH tunnel from my laptop (`ssh -fN -L 19999:localhost:19999 albertyw.com`)
to connect to netdata (`localhost:19999`).
3. `sudo apt install apache2-utils nginx`
4. Write an [nginx config file](https://gist.github.com/albertyw/00c0ae43e7fba8b1f855075b1df60063) to proxy traffic to netdata.
5. Generate a username/password: `sudo htpasswd -c netdata-access $USER`
6. `sudo service nginx reload`