Академический Документы
Профессиональный Документы
Культура Документы
The above screenshot shows a BeagleBone Black running Ubuntu, Ruby, and Rails. Why Ubuntu? The Bone comes pre-installed with ngstrm, and it boots as soon as you unbox it. Why not stick with ngstrm?
My opinion: The factory standard is fine, but its always good to have options. Heres why I decided to try Ubuntu on the BeagleBone Black
Ubuntu documentation is plentiful. Books, blogs, and videos are readily available.
The Ubuntu community is huge. When a dev runs into an Ubuntu-related snag, its likely that another dev has encountered a similar problem, and they can collaborate on a solution.
Ubuntu is the distro that Im most familiar with. WisdomGroup uses Ubuntu for multiple projects. With a common operating system, knowledge gained in one environment is immediately useful in another.
Prepping for Parallella, the 64-core single-board computer that will cost about two hundred bucks. The Parallella is currently in short supply. When it becomes available, it will run Ubuntu. Experience with other singleboard computers, especially those running Ubuntu, will prove useful.
This article will show how to install Ubuntu on the BeagleBone Black. Gotchas will be pointed out along the way. Where possible, I will explain the reasons behind my decisions so that you can make different choices if you
like.
For a comparable examination of the Raspberry Pi, take a look at Ruby on Raspberry Pi.
Homebrew Required
Homebrew is the easiest way to install nix utilities on Mac OS X. We need Homebrew in order to install some of the utilities needed to burn the SD card. The one-line Homebrew installation command is given on the
Homebrew site.
Each time we use Homebrew, we run $ brew doctor and $ brew update to make sure the packages are up-to-date.
1
2
3
4
5
6
7
8
9
10
$ brew doctor
Warning: Your Homebrew is outdated.
You haven't updated for at least 24 hours, this is a long time in brewland!
To update Homebrew, run `brew update`.
$ brew update
Updated Homebrew from a2e44659 to 4c7bc9ec.
$ brew doctor
Your system is ready to brew.
1 $ brew install xz
The extracted image will have a .img file extension. We will use the dd utility to burn the disk image to the SD card. But first, we need to determine the designation of the SD card.
1 $ diskutil list
2 /dev/disk0
3
#:
TYPE
4
0:
GUID_partition_scheme
5
1:
EFI
6
2:
Apple_HFS
7
3:
Apple_Boot
8 /dev/disk1
9
#:
TYPE
10
0:
FDisk_partition_scheme
NAME
Macintosh HD
Recovery HD
NAME
SIZE
*500.3
209.7
499.4
650.0
SIZE
*8.0 GB
GB
MB
GB
MB
IDENTIFIER
disk0
disk0s1
disk0s2
disk0s3
IDENTIFIER
disk1
I happen to know that my SD Card is 8.0 GB in capacity, and my system also has a 500 GB SSD. The goal is to burn the SD card while leaving the 500 GB SSD (home of the Mac OS X operating system and all of my data)
intact. From the $ diskutil list report, I can see that the SD cards designation in my system is /dev/disk1.
Note the italicized words in my system. Your system is probably different, especially if you have a DVD drive or a second hard drive. I have neither of those. The SD cards designation will be different in each system where it is
mounted depending on the number and location of the drives that are already there.
Now that we know the SD cards designation, we can unmount it. We unmount the drive (but leave the card inserted in the reader) so that it can be written with the Ubuntu disk image.
1 $ diskutil unmountDisk /dev/disk1
2 Unmount of all volumes on disk1 was successful
Looks like the SD card was unmounted successfully. Now we can write the Ubuntu image with the dd utility.
We can strike control-T again to receive additional updates. The numbers will tell us if we are making progress. Dont get carried away with control-T. A watched pot never boils :)