| 1 | |
| 2 | == Baseline Minibot Raspbian Image Build Instructions |
| 3 | |
| 4 | * Plan A: note that some of the below install steps may already be in the stock image, so don't worry about it if they're already installed) |
| 5 | 1. Download stock [https://www.raspberrypi.org/downloads/raspbian/ Raspian Jessie Light] image |
| 6 | 2. Follow [https://www.raspberrypi.org/documentation/installation/installing-images/README.md these directions] for installing it to a uSD card |
| 7 | |
| 8 | * Plan B: |
| 9 | 1. Download and install [http://www.pibakery.org/ PiBakery] which includes Jessie Light |
| 10 | |
| 11 | |
| 12 | |
| 13 | * [wiki:SetupPiZeroSSHOverUSB Setup SSH over USB for the Pi Zero] |
| 14 | * SSH to Pi with {{{ssh pi@raspberrypi.local}}} (password is raspberry) |
| 15 | * Setup DNS {{{sudo nano /etc/resolv.conf}}} , adding the following lines: |
| 16 | {{{ |
| 17 | nameserver 8.8.8.8 |
| 18 | nameserver 8.8.4.4 |
| 19 | }}} |
| 20 | * Update to latest software (this will take a while): |
| 21 | {{{ |
| 22 | sudo apt-get update |
| 23 | sudo apt-get upgrade |
| 24 | }}} |
| 25 | * Install Oracle Java JDK. Do not use stock OpenJDK, its slower. |
| 26 | {{{ |
| 27 | sudo apt-get install oracle-java8-jdk |
| 28 | }}} |
| 29 | * Then test, by running {{{java -version}}}. It should say java 8, not openjdk. |
| 30 | * Install [http://pi4j.com/ Pi4J] |
| 31 | {{{ |
| 32 | mkdir -p ~/dev;cd ~/dev |
| 33 | curl -s get.pi4j.com | sudo bash |
| 34 | }}} |
| 35 | * Install [https://www.nano-editor.org/ Nano] text editor {{{sudo apt-get install nano}}} |
| 36 | * Install [https://en.wikipedia.org/wiki/Avahi_(software) Avahi] (mDNS/zeroconf) {{{sudo apt-get install avahi-daemon}}} |
| 37 | * Update Raspian Configuration {{{ sudo raspi-config }}} |
| 38 | * Activate the Pi Zero's built-in I2C Interface: |
| 39 | * Use the down arrow to select 'Advanced Options' |
| 40 | * Arrow down and select 'I2C' |
| 41 | * Select 'Yes' to enable the I2C Interface |
| 42 | * Acknowledge the notification confirming the I2C Interface has been enabled |
| 43 | * [wiki:SetupPiZeroWiFi Setup WiFi for a Pi Zero] |
| 44 | * Reboot one last time, and log back in. Capture OS image for reuse by |
| 45 | * ??? |
| 46 | === Per Minibot config instructions (with baseline image above installed) |
| 47 | * Update Raspian Configuration {{{ sudo raspi-config }}} |
| 48 | * Customize host name. Reference hostname list for assigned names. Be sure not to duplicate! |
| 49 | * Select 'expand to use entire sd card'. This will reboot the pi. |
| 50 | |
| 51 | === Other Miscellaneous Things |
| 52 | * [http://www.savagehomeautomation.com/projects/pi4j-now-supports-non-privileged-access-no-more-rootsudo.html] |
| 53 | * [http://avilpage.com/2014/02/best-way-to-restore-usb-drive-back-to/ restore size of a uSD card] |
| 54 | * [wiki:HowToRunProgramAtStartupPiZero How to run a program at startup on the Pi Zero] |
| 55 | * http://www.savagehomeautomation.com/projects/pi4j-connecting-java-to-the-raspberry-pi.html |
| 56 | * [https://www.youtube.com/watch?v=grItDpy3TRM video tutorial] |
| 57 | * Doesn't wiringpi get installed as part of Pi4j install??? If not: |
| 58 | * Install git: {{{ sudo apt-get install git }}} |
| 59 | * Install [http://wiringpi.com/ wiringPi]: |
| 60 | {{{ |
| 61 | mkdir ~/dev;cd ~/dev |
| 62 | git clone git://git.drogon.net/wiringPi |
| 63 | cd wiringPi |
| 64 | ./build |
| 65 | }}} |
| 66 | * [http://wiringpi.com/download-and-install/ Install wiringPi] |
| 67 | * Then, test by running "gpio -v" and "gpio readall" |
| 68 | |
| 69 | |