A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | AC | AD | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Job | Start/End | 0:42:00 | Specific Job | ||||||||||||||||||||||||||
2 | Download and Write Raspbian OS to and SD Card | |||||||||||||||||||||||||||||
3 | Download | |||||||||||||||||||||||||||||
4 | We're going to download and install the OS onto our SD Card. These instructions are specific for doing so from a Mac. | |||||||||||||||||||||||||||||
5 | 1. If you already have your PI Setup, on the network, and fully updated, skip ahead to the "Setting up your Pi for Scanning" section. | |||||||||||||||||||||||||||||
6 | 2. If you haven't, and you are NOT on a Mac, go to the RaspberryPi.org site and follow their documentation for downloading and installing the OS. Join up with us at "Setting up your Pi for Scanning" | |||||||||||||||||||||||||||||
7 | 3. Software changes! These instructions will very quickly be out of date. The Raspberry Pi site has great documentation on the installation process. | |||||||||||||||||||||||||||||
8 | For this step you will need an SD Card and an internet connected PC (Windows, Linux, or Mac) to download and write the Raspberry Pi's OS onto an SD Card. These instructions are for Mac users. | |||||||||||||||||||||||||||||
9 | 10:25:00 | Head over to https://www.raspberrypi.org | http://www.raspberrypi.org | |||||||||||||||||||||||||||
10 | Navigate to Downloads | https://www.raspberrypi.org/downloads/ | ||||||||||||||||||||||||||||
11 | Follow the steps to | |||||||||||||||||||||||||||||
12 | Download the image for Raspbian (not NOOBS!) | 2016-03-18-raspbian-jessie | https://www.raspberrypi.org/documentation/installation/installing-images/README.md | |||||||||||||||||||||||||||
13 | Write OS to SD Card | 10:35:00 | 0:10:00 | Follow the instructions on raspberrypi.org to write the image to your SD card | FYI: ~2010 Mac Laptops seem to have occasional issues reading an SD Card as read only, giving permission errors when attempting to write over them. Make sure your card is in fact in writable mode. Switch the lock back and forth on it. If still not working, make sure you are using sudo. If still not working, try blowing in / out of the SD Card reader on the Mac Laptop | |||||||||||||||||||||||||
14 | 10:38:00 | Write to drive | Four steps for me | df -h BEFORE and AFTER disk insertion | double check disk # | |||||||||||||||||||||||||
15 | Eject SD Card | sudo diskutil unmountDisk /dev/disk2 | double check disk # | |||||||||||||||||||||||||||
16 | 10:45:00 | 0:10:00 | Install SD Card into Raspberry Pi | sudo diskutil partitionDisk /dev/disk2 1 MBR "Free Space" "%noformat%" 100% | double check disk # | |||||||||||||||||||||||||
17 | Configure the OS for Basic Operations | |||||||||||||||||||||||||||||
18 | Boot up and get your Pi connected to your local network | sudo diskutil partitionDisk /dev/disk2 1 MBR "Free Space" "%noformat%" 100% | double check disk # | |||||||||||||||||||||||||||
19 | Requires SD Card with Raspbian OS. Network Cable connected to Pi and a working Internet Connection - If you are connected directly to your Pi via Kb/Mouse/HDMI Monitor, great. Skip this brief SSH Section - If you are running your Pi Headless, you will need the IP Address of your Pi before continuing on | |||||||||||||||||||||||||||||
20 | 10:55:00 | Connect Network Cable to Raspberry Pi | ||||||||||||||||||||||||||||
21 | Connect Raspberry Pi to Power | |||||||||||||||||||||||||||||
22 | We need to get the IP address of your Raspberry Pi. If you know how to do that, skip ahead, otherwise keep on reading. The following steps will likely be different for you. | |||||||||||||||||||||||||||||
23 | Mac OS: Open Terminal | |||||||||||||||||||||||||||||
24 | Type "netstat -rn | grep default" , this gets your Router's IP Address. | |||||||||||||||||||||||||||||
25 | If your router has a web interface (most likely), type in that IP address into your | |||||||||||||||||||||||||||||
26 | Use SSH Software to connect to your pi (default username: pi pass: raspberry) | On a mac, open the terminal program. On a PC, download putty. If you're on a linux/unix machine, use the console | ||||||||||||||||||||||||||||
27 | - Type: ssh pi@your.ip.address.here | |||||||||||||||||||||||||||||
28 | - Agree to adding the host | |||||||||||||||||||||||||||||
29 | Finish configuration via command "sudo raspi-config" | |||||||||||||||||||||||||||||
30 | 1. Yes, expand the file system | |||||||||||||||||||||||||||||
31 | 2. Yes, change the default password | nnp | ||||||||||||||||||||||||||||
32 | 3. Keep boot to console as default | |||||||||||||||||||||||||||||
33 | 4. International Options: Locale Choose en_US.UTF-8 UTF-8 for the default locale. en_US.UTF-8 | Or whatever makes sense for you | ||||||||||||||||||||||||||||
34 | 4. International Options: TImezone - Choose Eastern (if that makes sense) | Or whatever makes sense for you | ||||||||||||||||||||||||||||
35 | Reboot pi here, then continue w/international options | |||||||||||||||||||||||||||||
36 | 4. International Options: Change Keyboard Layout: Not sure what this did. | Failed after two attempts | ||||||||||||||||||||||||||||
37 | 5. Advanced Options: A2 Hostname changed from raspberry to SoilCamPi1 | Didn't do this time. | ||||||||||||||||||||||||||||
38 | 5. Advanced Options: A3 Memory Split, changed from 64 to 32 | |||||||||||||||||||||||||||||
39 | 6. Add to Rastrack, why not ; ) | Name: Soilcam | ||||||||||||||||||||||||||||
40 | 10:58:00 | 0:03:00 | Finish, yes reboot | |||||||||||||||||||||||||||
41 | ||||||||||||||||||||||||||||||
42 | Update install | |||||||||||||||||||||||||||||
43 | 11:00:00 | 0:01:00 | sudo apt-get update | This updates the listing of available packages? | ||||||||||||||||||||||||||
44 | 11:01:00 | 0:02:00 | sudo apt-get upgrade | This could take a long time depending on your internet connection and how many updates have been released for raspbian since the image file you download was released. | ||||||||||||||||||||||||||
45 | ||||||||||||||||||||||||||||||
46 | Setup Wifi (optional) | Following adafruit's info | https://learn.adafruit.com/adafruits-raspberry-pi-lesson-3-network-setup/setting-up-wifi-with-occidentalis | |||||||||||||||||||||||||||
47 | Note: We are setting up a static ip address for your pi. | |||||||||||||||||||||||||||||
48 | Connect to your local wireless router and find out what dhcp pool/range is. We need to assign an IP address that your wifi router will be able to recognize, but isn't one that is within the dhcp pool. Otherwise other computers might end up trying to share the IP address. This can get complicated... | |||||||||||||||||||||||||||||
49 | If you don't mind using DHCP, follow "for DHCP Only". You will get a new IP each time your Pi boots up, and possibly earlier. You can very likely use your Router to assign the Pi a specific ip address based on it's MAC/Hardware address. This is not covered in this document | |||||||||||||||||||||||||||||
50 | If you want to assign the IP yourself to the Pi. Use the "for Static IP assigned by Pi" section | |||||||||||||||||||||||||||||
51 | sudo nano /etc/network/interfaces | |||||||||||||||||||||||||||||
52 | started with | for DHCP only | for Static IP assigned by Pi | |||||||||||||||||||||||||||
53 | auto lo | auto lo | auto lo | |||||||||||||||||||||||||||
54 | iface lo inet loopback | iface lo inet loopback | iface lo inet loopback | |||||||||||||||||||||||||||
55 | ||||||||||||||||||||||||||||||
56 | auto eth0 | auto eth0 | auto eth0 | |||||||||||||||||||||||||||
57 | allow-hotplug eth0 | allow-hotplug eth0 | allow-hotplug eth0 | |||||||||||||||||||||||||||
58 | iface eth0 inet manual | iface eth0 inet dhcp | iface eth0 inet dhcp | |||||||||||||||||||||||||||
59 | ||||||||||||||||||||||||||||||
60 | auto wlan0 | auto wlan0 | auto wlan0 | |||||||||||||||||||||||||||
61 | allow-hotplug wlan0 | allow-hotplug wlan0 | allow-hotplug wlan0 | |||||||||||||||||||||||||||
62 | iface wlan0 inet manual | iface wlan0 inet dhcp | iface wlan0 inet static | |||||||||||||||||||||||||||
63 | wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf | wpa-ssid "Tardigrade" | address 192.168.1.111 | |||||||||||||||||||||||||||
64 | wpa-psk "happiness" | netmask 255.255.255.0 | ||||||||||||||||||||||||||||
65 | auto wlan1 | gateway 192.168.1.254 | ||||||||||||||||||||||||||||
66 | allow-hotplug wlan1 | dns-nameservers 8.8.8.8 8.8.4.4 | ||||||||||||||||||||||||||||
67 | iface wlan1 inet manual | wpa-ssid "tardigrade" | ||||||||||||||||||||||||||||
68 | wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf | wpa-psk "happiness" | ||||||||||||||||||||||||||||
69 | ######################## | ######################## | ######################## | |||||||||||||||||||||||||||
70 | sudo shutdown now | shutdown the pi | ||||||||||||||||||||||||||||
71 | Wait a minute for the pi to shutdown | |||||||||||||||||||||||||||||
72 | Unplug your power to the pi | |||||||||||||||||||||||||||||
73 | Install the physical wifi adapter | |||||||||||||||||||||||||||||
74 | Plug power back into the pi | |||||||||||||||||||||||||||||
75 | Wait a minute for the pi to boot | |||||||||||||||||||||||||||||
76 | ||||||||||||||||||||||||||||||
77 | Use SSH to connect to the new wireless ip address | |||||||||||||||||||||||||||||
78 | Install Everything (Apache2, Sane, ImageMagick, AVConv) | sudo apt-get --yes --force-yes install apache2 sane sane-utils libsane-extras imagemagick libav-tools | ||||||||||||||||||||||||||||
79 | 11:05:00 | |||||||||||||||||||||||||||||
80 | 11:15:00 | 0:10:00 | ||||||||||||||||||||||||||||
81 | Install youtube upload support (optional) | pip install --upgrade google-api-python-client progressbar2 | ||||||||||||||||||||||||||||
82 | 0:05:00 | cd ~/ | ||||||||||||||||||||||||||||
83 | wget https://github.com/tokland/youtube-upload/archive/master.zip | |||||||||||||||||||||||||||||
84 | unzip master.zip | |||||||||||||||||||||||||||||
85 | cd youtube-upload-master | |||||||||||||||||||||||||||||
86 | sudo python setup.py install | |||||||||||||||||||||||||||||
87 | ||||||||||||||||||||||||||||||
88 | Verify Apache | http://your.ip.address/ | ||||||||||||||||||||||||||||
89 | works! | |||||||||||||||||||||||||||||
90 | ||||||||||||||||||||||||||||||
91 | Enable Apache Userdirectory | All that is needed is below. The link to the right may provide some insight | http://httpd.apache.org/docs/2.2/howto/public_html.html | |||||||||||||||||||||||||||
92 | cd ~ | |||||||||||||||||||||||||||||
93 | mkdir ~/public_html | |||||||||||||||||||||||||||||
94 | sudo a2enmod userdir | |||||||||||||||||||||||||||||
95 | sudo service apache2 restart | |||||||||||||||||||||||||||||
96 | 0:01:00 | http://your.ip.address/~pi/ | Should display an empty directory "index of /~pi" | |||||||||||||||||||||||||||
97 | ||||||||||||||||||||||||||||||
98 | Add user to scanner group | |||||||||||||||||||||||||||||
99 | 0:01:00 | sudo usermod -a -G scanner pi | This is needed in debian on the raspberry pi, otherwise all scanimage commands will require you to run as sudo | |||||||||||||||||||||||||||
107 | Download SoilCam Git Repository |