Skip to content

Instantly share code, notes, and snippets.

@lourenci
Last active May 1, 2019 20:23
Show Gist options
  • Save lourenci/1e947cedf6ef5f9c3f4a3dfd0a61ab68 to your computer and use it in GitHub Desktop.
Save lourenci/1e947cedf6ef5f9c3f4a3dfd0a61ab68 to your computer and use it in GitHub Desktop.

First-steps to boot

  • Burn the Raspbian lite image on Raspberry's SSD.

  • On mount partition, put a blank ssh file on it. Raspberry doesn't enable SSH server by default.

  • Connect to Raspberry through SSH.

    User Password
    pi raspberry

Configuration

  • Configure Raspberry's configuration: sudo raspi-config:
    • Change the user's default password
    • Change localisation configuration
    • Change timezone
  • Restart it.
  • Upgrade Raspbian:
    • sudo apt-get update
    • sudo apt-get upgrade
    • sudo apt-get dist-upgrade

Mount an external HD in every boot automatically

  • If your HD partition is NTFS, you need to install the ntfs-3g:

    sudo apt-get install ntfs-3g

  • Create a folder to be your mount point:

    sudo mkdir /mnt/[PATH]

  • Get your HD's UUID:

    sudo blkid

  • Append a line in fstab to mapping your HD: sudo vim /etc/fstab:

    UUID=[HD-UUID] /mnt/[PATH] [ntfs] defaults,nofail 0 0

Power consumption

Turn off WIFI and Bluetooh:

rfkill block all

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