Hexnut – Cheatsheet

This is a cheatsheet of information and commands used with the Hexnut project.

Debian and bash

Reboot

$ sudo reboot

Update and Upgrade Debian packages

$ sudo apt-get update
$ sudo apt-get upgrade

List all processes

$ ps aux

View the syslog

$ tail /var/log/syslog

Apache2

Restart the server

$ sudo service apache2 restart

View the error log

$ tail /var/log/apache2/error.log -n 10

collectd

Check process status

$ ps aux | grep collectd

Get help for collectd

$ collectd -h    

View and edit the collectd configuration

$ sudo nano /etc/collectd/collectd.conf

Restart the collectd daemon

$ sudo /etc/init.d/collectd restart

carbon

View the carbon configuration

$ sudo nano /etc/carbon/carbon.conf

Get the status of the carbon daemon

$ carbon-cache --config=/etc/carbon/carbon.conf status

Start the carbon daemon

$ sudo carbon-cache --config=/etc/carbon/carbon.conf start

Postgres

Use postgres

$ sudo -u postgres psql

List help

postgres-# \h

List databases

postgres-# \l

RabbitMQ

View RabbitMQ Management

http://<i>raspberrypi_ip_address</i>:55672
username: guest
password: guest

whisper

View whisper commands

$ ls /usr/bin | grep whisper