C.H.I.P cheat sheet

August 20, 2017

Connect via USB

  1. Make sure you're in the dialout group
  2. $ screen /dev/ttyACM0

Networking

$ sudo nmtui
$ sudo shutdown -r now

Disable X

$ sudo systemctl set-default multi-user.target
$ sudo shutdown -r now

Install Pi-hole

$ sudo apt-get -y install curl
$ curl 'https://raw.githubusercontent.com/pi-hole/pi-hole/master/automated%20install/basic-install.sh' | bash

Purge removed packages

$ sudo apt-get autoremove
$ for i in `dpkg --list |grep "^rc" | cut -d " " -f 3` ; do sudo dpkg --purge $i ; done