I previously blogged about Installing Debian 8.6 on a BeagleBone Black and not too much has changed. I figured I’d post a streamlined version for my own notes.
Installing the Base Image
I got my Debian BeagleBone base images from https://rcn-ee.com/rootfs/bb.org/testing/ because the https://beagleboard.org/latest-images were a bit stale. I used the latest Debian stable “Stretch” IOT build for ARMHF on the BeagleBone stretch-iot/bone-debian-9.7-iot-armhf compressed image. I flashed the image onto a 32 gig microSD card with Etcher for OSX, which was quite painless.
With my microSD card ready I plugged in my micro HDMI cable, ethernet, and a USB keyboard and booted into Debian.
The default user/password combination on Debian is
temppwd, which you’ll want to immediately change with
I then copied over my SSH key so I wouldn’t need to use my password when logging in.
scp ~/.ssh/id_rsa.pub firstname.lastname@example.org:~/.ssh/authorized_keys ssh email@example.com sudo su -
To ensure the latest versions of the base install:
apt-get update apt-get upgrade
To set the timezone I ran:
timedatectl set-timezone Australia/Sydney
To use the whole microSD card I followed these instructions:
cd /opt/scripts/tools/ git pull ./grow_partition.sh reboot
Because I’ve previously built Chef for the BeagleBone Black, I installed the .DEB:
dpkg -i chef_14.5.33_armhf.deb
knife bootstrap 10.0.0.4 -x debian --sudo -N cubert --policy-group home --policy-name beaglebone
Now it was ready to use again.