Skip to content

Instantly share code, notes, and snippets.

@airblade
Last active January 7, 2020 11:38
Show Gist options
  • Save airblade/8b51a56a5986578a553c52bfdad94edd to your computer and use it in GitHub Desktop.
Save airblade/8b51a56a5986578a553c52bfdad94edd to your computer and use it in GitHub Desktop.
Pi hole stuff
  • Download latest Raspbian Lite (currently Buster) from here.

  • Plug SD card into computer.

  • Unzip Raspbian image and install on SD card. This should overwrite everything on the SD card; it shouldn't be necessary to format first.

    diskutil list  # make note of disk of SD card; eg. disk4
    diskutil unmountDisk /dev/disk4
    sudo dd bs=1m if=<path of raspbian image> of=/dev/rdisk4 conv=sync  # rdisk4 is  faster than disk4
    
  • Enable ssh: touch /Volumes/boot/ssh

  • 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 pi@raspberrypi.local (password: raspberry)

  • Run Pi-hole installer. During the installation process one can specify a static IP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment