Skip to content

Instantly share code, notes, and snippets.

@timothybasanov
Last active August 17, 2021 10:05
Show Gist options
  • Save timothybasanov/4cac1f8be77a6f912886 to your computer and use it in GitHub Desktop.
Save timothybasanov/4cac1f8be77a6f912886 to your computer and use it in GitHub Desktop.
Setup: BeagleBone's Ubuntu

Installing Ubuntu onto BeagleBone Black

(Timothy’s default Ubuntu configuration from Mac OS X)

Image micro-SD card

  • Download prebuilt image
  • Find disk name for SD card and prepare device:
diskutil list
sudo diskutill umount /dev/diskN    # Otherwise dd complains busy resource
  • Image SD card: pv foo.img | sudo dd of=/dev/rdiskN bs=10000000 # rdisk is fast, ~10M=good
  • Follow adafruit instructions to flush it onto BeagleBone Black

Initial Ubuntu configuration

Connecting remotely via Ethernet

  • Power on BeagleBone
  • Internet connection should be shared through Ethernet
  • Network configuration: DHCP w/ manual address 192.168.2.1
  • Connect via Ethernet wire to your Mac
  • Connect via SSH (these are the only commands for a Mac):
ssh [email protected]    # takes ~min
Password: `temppwd`
  • Update your public key: ssh-copy-id [email protected]
  • Change your password: passwd
  • Add Google DNS for the name resolution:
sudo nano /etc/resolvconf/resolv.conf.d/tail
# add
nameserver 8.8.8.8
nameserver 8.8.4.4
  • Refresh network settings by rebooting: sudo reboot

Ubuntu configuration

  • Update apt caches: sudo apt-get update # takes ~min
  • Install minimal suite of packages: sudo apt-get install man ntp byobu dkms
  • Set right timezone: sudo dpkg-reconfigure tzdata

Fixing Wi-Fi

git clone https://github.com/lwfinger/rtl8188eu.git
sudo dkms add ./rtl8188eu
sudo dkms build 8188eu/1.0
sudo dkms install 8188eu/1.0
  • Ensure that new driver is loaded: dmesg
  • Uncomment Wi-Fi section in the config: sudo nano /etc/network/interfaces
  • Reboot (just to be sure)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment