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.

Revisions

  1. airblade revised this gist Jan 7, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion raspbian.md
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@
    sudo dd bs=1m if=<path of raspbian image> of=/dev/rdisk4 conv=sync # rdisk4 is faster than disk4
    ```
    * Touch `ssh` file on boot partition: `touch /Volumes/boot/ssh` (to [enable ssh](https://www.raspberrypi.org/documentation/remote-access/ssh/README.md) on raspberry pi).
    * [Enable ssh](https://www.raspberrypi.org/documentation/remote-access/ssh/README.md): `touch /Volumes/boot/ssh`
    * Eject card: `diskutil eject /dev/disk4`
    * Install card in Raspberry Pi.
    * Plug Raspberry Pi into power.
  2. airblade revised this gist Jan 7, 2020. 1 changed file with 2 additions and 8 deletions.
    10 changes: 2 additions & 8 deletions raspbian.md
    Original file line number Diff line number Diff line change
    @@ -4,15 +4,9 @@

    ```
    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
    ```
    asd
    ```
    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
    ```
    * Touch `ssh` file on boot partition: `touch /Volumes/boot/ssh` (to [enable ssh](https://www.raspberrypi.org/documentation/remote-access/ssh/README.md) on raspberry pi).
    * Eject card: `diskutil eject /dev/disk4`
  3. airblade revised this gist Jan 7, 2020. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions raspbian.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,11 @@
    * Plug SD card into computer.
    * Unzip Raspbian image and [install on SD card](https://www.raspberrypi.org/documentation/installation/installing-images/mac.md). 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
    ```
    asd
    ```
    diskutil list # make note of disk of SD card; eg. disk4
  4. airblade revised this gist Jan 7, 2020. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions raspbian.md
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,8 @@
    * Plug SD card into computer.
    * Unzip Raspbian image and [install on SD card](https://www.raspberrypi.org/documentation/installation/installing-images/mac.md). 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 list # make note of disk of SD card; eg. disk4
    diskutil unmountDisk /dev/disk4
  5. airblade revised this gist Jan 7, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions raspbian.md
    Original file line number Diff line number Diff line change
    @@ -3,9 +3,9 @@
    * Unzip Raspbian image and [install on SD card](https://www.raspberrypi.org/documentation/installation/installing-images/mac.md). This should overwrite everything on the SD card; it shouldn't be necessary to format first.

    ```
    diskutil list # make note of disk, not partition, of SD card; eg. `disk4`
    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 # using rdisk4 is much faster then disk4
    sudo dd bs=1m if=<path of raspbian image> of=/dev/rdisk4 conv=sync # rdisk4 is faster than disk4
    ```

    * Touch `ssh` file on boot partition: `touch /Volumes/boot/ssh` (to [enable ssh](https://www.raspberrypi.org/documentation/remote-access/ssh/README.md) on raspberry pi).
  6. airblade revised this gist Jan 7, 2020. No changes.
  7. airblade revised this gist Jan 7, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion raspbian.md
    Original file line number Diff line number Diff line change
    @@ -14,4 +14,4 @@ sudo dd bs=1m if=<path of raspbian image> of=/dev/rdisk4 conv=sync # using rdis
    * Plug Raspberry Pi into power.
    * Connect Raspberry Pi to router via ethernet cable.
    * `ssh [email protected]` (password: `raspberry`)
    * Run [Pi-hole installer](https://docs.pi-hole.net/main/basic-install/).
    * Run [Pi-hole installer](https://docs.pi-hole.net/main/basic-install/). During the installation process one can specify a static IP.
  8. airblade revised this gist Jan 7, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions raspbian.md
    Original file line number Diff line number Diff line change
    @@ -14,3 +14,4 @@ sudo dd bs=1m if=<path of raspbian image> of=/dev/rdisk4 conv=sync # using rdis
    * Plug Raspberry Pi into power.
    * Connect Raspberry Pi to router via ethernet cable.
    * `ssh [email protected]` (password: `raspberry`)
    * Run [Pi-hole installer](https://docs.pi-hole.net/main/basic-install/).
  9. airblade revised this gist Jan 7, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion raspbian.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    * Download latest Raspbian Lite from [here](https://www.raspberrypi.org/downloads/raspbian/).
    * Download latest Raspbian Lite (currently Buster) 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). This should overwrite everything on the SD card; it shouldn't be necessary to format first.

  10. airblade revised this gist Jan 7, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion raspbian.md
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ 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).
    * Touch `ssh` file on boot partition: `touch /Volumes/boot/ssh` (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.
  11. airblade revised this gist Jan 7, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion raspbian.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    * 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).
    * Unzip Raspbian image and [install on SD card](https://www.raspberrypi.org/documentation/installation/installing-images/mac.md). This should overwrite everything on the SD card; it shouldn't be necessary to format first.

    ```
    diskutil list # make note of disk, not partition, of SD card; eg. `disk4`
  12. airblade renamed this gist Jan 5, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  13. airblade revised this gist Jan 5, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -12,5 +12,5 @@ sudo dd bs=1m if=<path of raspbian image> of=/dev/rdisk4 conv=sync # using rdis
    * Eject card: `diskutil eject /dev/disk4`
    * Install card in Raspberry Pi.
    * Plug Raspberry Pi into power.
    * Connect Raspberyy Pi to router via ethernet cable.
    * Connect Raspberry Pi to router via ethernet cable.
    * `ssh [email protected]` (password: `raspberry`)
  14. airblade revised this gist Jan 5, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -13,4 +13,4 @@ sudo dd bs=1m if=<path of raspbian image> of=/dev/rdisk4 conv=sync # using rdis
    * Install card in Raspberry Pi.
    * Plug Raspberry Pi into power.
    * Connect Raspberyy Pi to router via ethernet cable.
    * `ssh [email protected]` # password: raspberry
    * `ssh [email protected]` (password: `raspberry`)
  15. airblade renamed this gist Jan 5, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  16. airblade created this gist Jan 5, 2020.
    16 changes: 16 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    * 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