This repository has been archived by the owner on Jan 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-your-own-pi.txt
68 lines (53 loc) · 2.18 KB
/
install-your-own-pi.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
First, download raspbian image from:
https://www.raspberrypi.org/downloads/raspbian/
We use Wheezy on the lab PIs, I think either will work.
Write the image to an sd card. On windows I used Win32diskimager
http://sourceforge.net/projects/win32diskimager/?source=typ_redirect
Make raspberry pi talk to the grovepi (via I2C)
https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c
Start up the raspberry pi with a screen/keyboard (you can connect hdmi to screens in the lab, ask us if you need a keyboard (or unplug from lab machines))
1) It will start up in raspb-config, select "expand filesystem"
2) Select advanced options
3) Select I2C, and press yes to everything - I2C is how the raspberry pi talks to the grovepi board
4) Finish, select reboot now. Wait for it to come back
5) Log in (pi / raspberry)
6)Connect to the wifi network or an ethernet cable.
If you're in the computer lab, you can connect to UoN secure. To do this:
type:
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
paste into that conf file exactly the below, except with your username and password in there:
network={
ssid="UoN-secures"
key_mgmt=WPA-EAP
eap=PEAP MSCHAPV2
identity="<your username eg:pszpw2"
password="<your password eg:mylovelypassword"
}
or for a home network it looks like this:
network={
ssid="Joe and Penny"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="your network password"
}
7)Restart wifi
type: sudo ifdown wlan0
sudo ifup wlan0
8) update everything
sudo apt-get update
sudo apt-get upgrade
8) Install useful i2c utilities:
sudo apt-get install python-smbus
sudo apt-get install i2c-tools
9) make sure kernel support for i2c is reallyu on
sudo i2cdetect -y 1
This should work, and should show something on address 4 of the i2c bus. If not, follow the 'manually enable i2c' instructions from https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c
10)Download the lab software:
First install GIT, which lets you get hold of the software
sudo apt-get install git
git clone https://github.com/joemarshall/g54ubi-useful-code.git
11)Install the show ip address script
cd ~/g54ubi-useful-code/startup-scripts
sudo cp rc.local /etc/rc.local