Ubuntu on SD Card - jackspaceBerkeley/pupil GitHub Wiki

If you just want to try out Pupil on Ubuntu and you have a Mac/PC with SD-Card slot you can grab our specially prepared image to try it our.

##Creating a bootable Pupil Ubuntu SD-Card This guide explains how to load our image of Ubunut 14.04 onto an SD-Card. The SD-Card should be class 10 and needs to have 16GB or more.

  1. Download and unzip the preprepared image: pupil_ubuntu.dmg for mac and BIOS laptops (the os user: pupil, pw: pupil_pupil)

  2. Insert SD-Card. (We will erase all contents!)

  3. Find out its node name Run diskutil list to find the SD-Card name. In the example case it is 1. Going forward replace the number with the one you have.

⌘ ~/ diskutil list
/dev/disk0
 #:                       TYPE NAME                    SIZE       IDENTIFIER
 0:      GUID_partition_scheme                        *251.0 GB   disk0
 1:                        EFI EFI                     209.7 MB   disk0s1
 2:                  Apple_HFS Macintosh HD            250.1 GB   disk0s2
 3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
/dev/disk1
 #:                       TYPE NAME                    SIZE       IDENTIFIER
 0:     FDisk_partition_scheme                        *16.0 GB    disk1
 1:                      Linux                         6.1 GB     disk1s1
 2:                      Linux                         7.7 GB     disk1s2
 3:                 Linux_Swap                         2.0 GB     disk1s3
  1. Format the SD-Card:
sudo newfs_msdos -F 16 /dev/rdisk1
  1. Unmount and write image (make sure the path to image and disk number are appropriate):
diskutil unmountDisk /dev/disk1
sudo dd if=~/Desktop/pupil_ubuntu.dmg of=/dev/rdisk1 bs=5m
  1. Wait until done.

##Booting from the image

  1. Insert the SD-Card into the machine you want to load Ubuntu with.
  2. On Mac you will now restart and hold alt when the machine starts up. You will be presented with a selection of boot options. Select the one with USB logo it might mistakenly say windows but it will boot into Ubuntu.
  3. The user password is: pupil_pupil. You should change that.

##What we did to the Ubuntu installation: Not much really:

  1. Installed Ubuntu 14.04 on an SD-Card
  2. Patched the UVC driver: Patch Guide
  3. Downloaded Pupil Player and Pupil Capture.
  4. Created launcher shortcuts.
  5. Created an image of the SD-Card.