Skip to content

Instantly share code, notes, and snippets.

@airblade
Last active January 7, 2020 11:38
Show Gist options
  • Select an option

  • Save airblade/8b51a56a5986578a553c52bfdad94edd to your computer and use it in GitHub Desktop.

Select an option

Save airblade/8b51a56a5986578a553c52bfdad94edd to your computer and use it in GitHub Desktop.
Pi hole stuff
  • Download latest Raspbian Lite from here.
  • Plug SD card into computer.
  • Unzip Raspbian image and install on SD card.
diskutil list  # make note of disk, not partition, of SD card; eg. `disk4`
diskutil unmountDisk /dev/disk4
sudo dd bs=1m if=<path of raspbian image> of=/dev/rdisk4 conv=sync  # using rdisk4 is much faster then disk4
  • Touch ssh file on boot partition: touch ssh /Volumes/boot (to enable ssh on raspberry pi).
  • Eject card: diskutil eject /dev/disk4
  • Install card in Raspberry Pi.
  • Plug Raspberry Pi into power.
  • Connect Raspberry Pi to router via ethernet cable.
  • ssh [email protected] (password: raspberry)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment