Flash eMMC with latest Debian image

  1. Download Debian image [whatever].img.xz
  2. Insert microSD card and make sure that it is unmounted
    • lsblk
    • fdisk -l
  3. Copy the img to the microSD card

    This step will take a lot of time.

  4. Mount the microSD card and make sure it flashes to the beaglebone:

    Uncomment the line:

  5. Hookup the USB-to-serial cable
    • Connect Black Wire to Pin 1 (closest to 5v barrel)
    • Connect Green Wire to Pin 4 (2 pins from pin 1)
    • Connect White Wire to Pin 5
  6. Connect to USB, check output of dmesg for which /dev/ the serial connection is on
  7. Connect to serial connection via screen

  8. put sdcard in BBB and power up, hold the S2 button, power up
  9. Wait, the status lights will flash in a cylon pattern, you can watch the eMMC flash progress via screen
  10. All User LEDs should be solid on completion

More info is available on the BeagleBoneBlack Wiki

Initial setup

Connect over SSH

To connect via ssh: plugin beaglebone to computer via SSH

Wifi Setup

  1. Plugin the wifi adapter
  2. Reboot (unplug it and plug it back in)
  3. Generate your pre-shared key using wpa_passphrase (see Debian Wiki)
  4. vim /etc/network/interfaces

  5. ifdown wlan0; ifup wlan0
  6. use ip -o addr show to confirm that you have an ip address

Update debian

Use the Debian Upgrade Script to update debian:

Basic security

Make a root password

  • Install pwgen: sudo apt-get install pwgen
  • Generate a root password: pwgen -Bsy 16 1
  • Store that password in your password store—you'll never remember it
  • Login to beaglebone via ssh, run passwd

Add a privileged non-root user

Remove demo user

  • userdel -fr debian

Lockdown ssh

Fun Stuff

Things to remember

thank god for 1wire temp sensor blog posts: