forked from Mqrius/BluePloverPi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Installation instructions.txt
129 lines (127 loc) · 4.43 KB
/
Installation instructions.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
I�m going to link to the tutorials I�m following, but you can ignore those, since I detail every step I take.
Note: wherever I say "vim", you should probably use "nano".
Following http://www.linuxuser.co.uk/tutorials/emulate-a-bluetooth-keyboard-with-the-raspberry-pi
Following http://elinux.org/RPi_Easy_SD_Card_Setup#Flashing_the_SD_Card_using_Windows
Going to http://www.raspberrypi.org/downloads
Downloading latest Raspbian
Kernel 3.10
http://downloads.raspberrypi.org/raspbian_latest
Extracting raspbian zip file to hard disk
Insert SD card into PC
Downloading Win32DiskImager from http://sourceforge.net/projects/win32diskimager/
Green download button
Extracting Win32DiskImager
Running Win32DiskImager
Check if Device shows correct drive letter
Opening raspbian image file downloaded earlier
This dialog box is sloooooow
Too impatient to wait
Kill Win32DiskImager
Running Win32DiskImager
Fill in path to raspbian image by hand
Write
File doesn�t exist
Correct drive letter to lowercase
Write
Yes, I�m sure I want to continue
This is gonna take a while, so flip a coin to pick one of these links for distraction:
www.lesswrong.org
www.mrmoneymoustache.org
Exit
Safely remove SDcard
Plug SDcard into RPi
Plug HDMI cable into RPi
Plug Powered USB Hub into RPi
Plug keyboard into USB Hub
Plug Bluetooth 4.0 adapter into USB Hub
Plug power into RPi
First boot
Expand filesystem
Enable boot/scratch
Text console
For now. We may need Desktop for Plover later, but it just makes things slow.
Internationalization options
Change Timezone
Europe
Amsterdam
Change keyboard layout
Generic 104-key PC
Other
English (US)
English (US) - English (US, Colemak)
Default alt-gr
No compose key
Don�t use ctrl+alt+backspace to terminate x-server
Change user password
Do this AFTER setting keyboard, or you may be typing other characters than you thought.
Advanced options
SSH
Enable
Finish
Reboot now
Boot into terminal
Login
sudo su
You can ignore this LAN bit, it's just me making sure my Pi is recognized on the university network.
ifconfig eth0 down hw ether [Mac address]&& ifconfig eth0 up
plugin LAN
Ping google.com
success
Stop ignoring things now.
apt-get update
Note: I�m not going to do apt-get upgrade after this, because that takes ages. Screw that.
[Edit: I later noticed that it doesn't actually take ages. So you might as well do an apt-get upgrade after this]
apt-get install vim python-gobject bluez bluez-tools bluez-firmware python-bluez python-dev python-pip bluez-utils bluez-compat bluetooth
Note: I install more packages than the tutorial says here. Otherwise it didn�t seem to work for me.
I�m installing bluez-utils, bluez-compat, and bluetooth. And vim, because I prefer vim over nano.
Got inspiration from http://blog.kugelfish.com/2012/10/look-ma-no-wires-raspberry-pi-bluetooth.html
It says it will take 167 MB
Yes
This is gonna take a while too, 15 minutes or so, so check out the other link now.
www.lesswrong.org
www.mrmoneymoustache.org
pip install evdev
vim /etc/bluetooth/main.conf
Change line �#DisablePlugins = network,input�
To "DisablePlugins = network,input,audio,pnat,sap,serial�
/etc/init.d/bluetooth restart
sdptool browse local
Doesn�t show anything now besides �Browsing FF:FF:FF:00:00:00 ��, as it should.
exit
git clone https://github.com/Mqrius/BluePloverPi
cd BluePloverPi
sudo ./PiTooth.py
Getting a bunch of timeouts, see if it still works though�
Leave this running for now
Alt+F2
This goes to a second terminal screen
login
sudo hciconfig hci0 piscan
Makes pi visible to scans
Also timeout. Huh.
Let�s try random stuff then.
hcitool scan
No results.
Make android visible
hcitool scan
Oh it finds stuff now, but also my desktop PC, which it should have found a second ago too.
Maybe it just needed some time to get the Bluetooth up and running?
sudo hciconfig hci0 piscan
Oh this works now!
Let�s restart the PiTooth thing too then
Alt+F1
Ctrl+C
sudo ./PiTooth.py
Lookin� good
Alt+F2
Back on track
sudo bluetooth-agent 000000
(The pin you write there is irrelevant, it generates a random one anyway)
Scan with android
click Raspberry Pi
Confirm passkey
We�re now connected
Alt+F1
On android, go to a text editor
On the RPi, hit some buttons
It works! :D :D