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](https://www.raspberrypi.org/downloads/raspbian/).
* Plug SD card into computer.
* Unzip Raspbian image and [install on SD card](https://www.raspberrypi.org/documentation/installation/installing-images/mac.md).
```
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](https://www.raspberrypi.org/documentation/remote-access/ssh/README.md) on raspberry pi).
* Eject card: `diskutil eject /dev/disk4`
* Install card in Raspberry Pi.
* Plug Raspberry Pi into power.
* Connect Raspberyy 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