-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstallations.txt
More file actions
54 lines (50 loc) · 1.91 KB
/
installations.txt
File metadata and controls
54 lines (50 loc) · 1.91 KB
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
TO SET UP NEW PI:
-- use Etcher to write Raspbian image to SD card
-- Stick in pi, plug in power source
-- Upon bootup, connect to wifi
-- (Optional) change to US keyboard - see instructions below - then reboot
-- In terminal: git clone https://github.com/cpickard828/superSensor.git
-- In terminal: cd superSensor
-- In terminal: ./install
-- In terminal: mkdir /home/pi/superSensor/data
-- In terminal: mkdir /home/pi/superSensor/data/day{1..31
-- In terminal: mkdir /home/pi/superSensor/data/day{1..31}/A
-- In terminal: mkdir /home/pi/superSensor/data/day{1..31}/B
--> In /usr/share/alsa/alsa.conf:
change defaults.ctl.card from 0 to 1
change defaults.pcm.card from 0 to 1
--> Edit rc.local:
--> "sudo vim /etc/rc.local"
--> add this line before exit 0:
sudo python /home/pi/superSensor/main.py
-- run "python main.py"
Change to US Keyboard Layout:
sudo dpkg-reconfigre
--> change from en_GB.UTF-8 to en_US.UTF-8
---> Debatably unnecessary
sudo dpkg-reconfigure keyboard-configuration
--> Generic 104-key PC
--> English (US)
Reboot
Get "arecord" to work:
--> "sudo vim ~/.asoundrc"
--> Put this line in: pcm.!default { type asym playback.pcm { type plug slave.pcm "hw:0" } capture.pcm { type plug slave.pcm "hw :1" } }
--> In /usr/share/alsa/alsa.conf:
change defaults.ctl.card from 0 to 1
change defaults.pcm.card from 0 to 1
For Bluetooth Low Energy:
--> In superSensor, run: git clone https://github.com/nccgroup/BLESuite.git
--> sudo apt-get install mercurial -y
--> sudo apt-get install libglib2.0-dev -y
--> sudo apt-get install libboost-all-dev -y
--> sudo apt-get install libbluetooth-dev -y
--> In ~/superSensor/BLESuite/PyGattlib, run:
sudo python setup.py install
Edit rc.local:
--> "sudo vim /etc/rc.local"
--> add this line before exit 0:
sudo python /home/pi/superSensor/main.py
Enable SSH for file transfers:
--> "sudo raspi-config"
--> Interfacing Options
--> Enable SSH