Skip to content

Instantly share code, notes, and snippets.

@davidbradway
Last active August 29, 2015 14:07
Show Gist options
  • Save davidbradway/fa085270ce111052008f to your computer and use it in GitHub Desktop.
Save davidbradway/fa085270ce111052008f to your computer and use it in GitHub Desktop.

BeagleBone Black Configuration

Set up base OS

eMMC boot to Angstrom

  • Downloaded latest Angstrom image
  • Unzipped and wrote to uSD card
  • Put card into BBB
  • Held down the boot button and powered up
  • Waited < 45 min for LEDs to go solid
  • Safely shutdown and removed card
  • Then could access Angstrom from PC terminal and add stuff:
ssh root@ipaddress
opkg update && opkg install python-pip python-setuptools python-smbus

uSD card boot

  • Downloaded lastest uSD card-bootable image of Debian
  • Unzipped, and wrote to uSD card
  • Renamed the MLO file to force boot from uSD card
  • access command line from another computer's terminal:
ssh debian@ipaddress

Change the default passwords

passwd
sudo passwd

Expand the File System Partition

Method 1 (seems easier)

http://www.voltvision.com/booting-into-debian-os-on-the-beaglebone-black-using-a-usd-card

cd /opt/scripts/
git pull
./tools/grow_partition.sh

Method 2 (what I did)

http://elinux.org/Beagleboard:Expanding_File_System_Partition_On_A_microSD

sudo su
fdisk /dev/mmcblk0
d
2
n
p
2
w
reboot
sudo resize2fs /dev/mmcblk0p2
df -h

Update Kernel

cd /opt/scripts/tools/
sudo git pull
sudo ./update_kernel.sh
sudo reboot

Get info about setup

cat /etc/dogtag 
ifconfig
uname -a

More Setup

sudo apt-get update
sudo apt-get upgrade
sudo dpkg-reconfigure tzdata
sudo /usr/bin/ntpdate -b -s -u pool.ntp.org
sudo reboot
sudo apt-get install zip unzip

Synergy

Python Stuff

sudo apt-get install build-essential python-dev python-setuptools python-pip python-smbus -y
sudo pip install Adafruit_BBIO --upgrade
sudo python -c "import Adafruit_BBIO.GPIO as GPIO; print GPIO"
sudo pip install python-twitter

R-Project

sudo gedit /etc/apt/sources.list
deb http://cran.rstudio.com/bin/linux/debian wheezy-cran3/
sudo apt-key adv --keyserver keys.gnupg.net --recv-key 381BA480
sudo R
update.packages(checkBuilt=TRUE, ask=FALSE)
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo aptitude -t wheezy-cran3 install r-base r-base-dev r-cran-boot r-cran-codetools r-recommended
``
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment