- Latest Jessie Light : https://downloads.raspberrypi.org/raspbian_lite_latest
- default login/pass : pi/raspberry
- Minibian : https://minibianpi.wordpress.com/features
- expand filsystem :
sudo resize2fs /dev/mmcblk0p2
ssh
empty file to the /boot partition to enable headless boot and SSH server
wpa_supplicant.conf
file to the /boot partition to enable WiFi
country=fr
update_config=1
ctrl_interface=/var/run/wpa_supplicant
network={
scan_ssid=1
ssid="Livebox-taiti"
psk="PouetPouet"
}
- johnny-five : http://johnny-five.io/
- raspi-io pin infos : https://github.com/nebrius/raspi-io/wiki/Pin-Information
- NodeJS home automation framework https://pimatic.org/
curl -o- https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
nvm install stable
sudo ln -s /home/pi/.nvm/versions/node/v8.4.0/bin/node /usr/bin/node
sudo ln -s /home/pi/.nvm/versions/node/v8.4.0/bin/npm /usr/bin/npm
apt-get install alsa-utils
modprobe snd_bcm2835
amixer cset numid=3 1
amixer sset PCM,0 90%
add dtparam=audio=on to /boot/config.txt add snd_bcm2835 to /etc/modules numid: 0=auto, 1=headphones, 2=hdmi.
in /boot/config.txt
set audio_pwm_mode=2
. source
Useful commands for OSX
https://pimylifeup.com/raspberry-pi-kiosk/
ssh
empty file to the /boot partition to enable headless boot and SSH server
see disks : diskutil list
IMAGE=/path/to/image.img
DISK=/dev/rdisk3
sudo dd if=$IMAGE of=$DISK bs=8m
also : unzip -p sdcard.img.zip | sudo dd bs=1m of=<device>
or use ./prepare-disk.sh /path/to/image.img
- expand filsystem :
sudo resize2fs /dev/mmcblk0p2
use `./backup-disk.sh
detect your rpi on the network : sudo nmap -sS 192.168.0.1/24
apt-get install wiringpi
gpio mode 7 out
gpio write 7 1
gpio write 7 0
Using PiShrink and this docker-compose.yml
:
version: '2'
services:
pishrink:
build: .
volumes:
- .:/pishrink
- /dev:/dev
privileged: true
Shrink an image is as easy as :
docker-compose run pishrink /pishrink/pishrink.sh /pishrink/backup.img /pishrink/backup-shrinked.img
https://frillip.com/using-your-raspberry-pi-3-as-a-wifi-access-point-with-hostapd/
Y U NO USE Pi64? https://github.com/bamarni/pi64