You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For Raspbian, you can follow the procedure described in stackexchange (http://raspberrypi.stackexchange.com/questions/39254/updating-bluez-5-23-5-36)
227
230
and install a newer version of BlueZ from the stretch sources
228
231
232
+
## How to set the keyboard to a English-US layout
233
+
Go to Localization options, then:
234
+
235
+
Locale -> remove en_GB, add en_US.UTF-8, then choose enUS.UTF-8 as default
236
+
237
+
Keyboard layout -> choose a generic keyboard -> in the next list you'll see only UK keyboards. Go down and choose "other" -> Choose English (US) -> Choose English (US) agian
238
+
239
+
## Notes on how to create an image and copying it on multiple hubs
240
+
Ingeneral, follow the instructions on how to setup a regular hub, except:
241
+
* Do not expand the file system. It seems that HypriotOS and Jessie both expand it automatically. So in order to turn it off, edit /boot/boot/cmdline.txt and remove the call to init=/usr/lib/raspi-config/init_resize.sh
242
+
* Istead, use fdisk to extend it to a smaller partition. You can find more infomration here - http://www.raspberry-projects.com/pi/pi-operating-systems/raspbian/troubleshooting/expand-filesystem-issues . In general:
243
+
* sudo fdisk /dev/mmcblk0
244
+
* Then press 'p' to see the current partitions on the disk
245
+
* Now delete the 2nd partition (it won't actually delete the data on it)
246
+
* Press 'd' > Enter
247
+
* Press '2' > Enter
248
+
* Now re-create it:
249
+
* Press 'n' > Enter
250
+
* Press 'p' > Enter
251
+
* Press '2' > Enter
252
+
* Enter the First sector and the same value as the original /dev/mmcblk0p2 partition
253
+
* Set the new size. I used +3G to create a 3GB partition (you'll need some space for building the hub images)
254
+
* Now press 'p' > Enter to see the new partition setup.
255
+
* Finally press 'w' > Enter to write it
256
+
* Now reboot: sudo shutdown -r now
257
+
* Once its back do the resize: sudo resize2fs /dev/mmcblk0p2
258
+
* Use docker-machine to install docker dependencies, etc
259
+
* Then run update & upgrade
260
+
261
+
Then save the image
262
+
* See this post for information - https://raspberrypi.stackexchange.com/questions/8305/how-to-make-an-image-img-from-whats-on-the-sd-card-but-as-compact-as-the-or
263
+
* make sure partitions are unmounted
264
+
* sudo fdisk -l /dev/mmcblk0
265
+
* sudo dd if=/dev/mmcblk0 of=openbadge-hub-py.img bs=512 count=<END of second partition + 1>
266
+
267
+
Burn image into a new SD card
268
+
* Use dd, flash or Etcher.io
269
+
270
+
After you create a copy, make sure to:
271
+
* Change the hostname
272
+
* Extend the filesystem
273
+
229
274
## Old instructions on setting up a Raspberry Pi with Raspbian
230
275
Download the Raspbian lite (e.g. 2017-04-10-raspbian-jessie-lite.img) the the offical site.
0 commit comments