Install
- Download “RASPBIAN JESSIE LITE” without PIXEL desktop.
- Unzip it to get the image file (.img) for writing to your SD card.
Setup headless settings, if don’t have an extra keyboard or HDMI cable.
- Add “ssh” file to the SD card root. Then boot your Pi.
- Connect it to the router with wire. Then get its ip from the router.
- Use SSH to connect to your Pi.
ssh pi@<IP>
, password: raspberry.
- Configure your Pi.
sudo raspi-config
Setting WIFI up and reboot wireless.
sudo vi /etc/wpa_supplicant/wpa_supplicant.conf
123456network={ssid="ssid"psk="password"priority=1id_str="home"}sudo reboot
- Setting static ip.
ifconfig
sudo nano /etc/dhcpcd.conf
1234# Custom static IP addressinterface wlan0static ip_address = 192.168.1.121/24static routers = 192.168.1.9
Writing the image to the SD card, see the guide for your system:
Prepare
|
|
Vim
|
|
Samba
|
|
Python
|
|
Then
|
|
Usage
Light a LED and so on.
RPi.GPIO: https://sourceforge.net/p/raspberry-gpio-python/wiki/Home/
vi led.py
:
|
|
vi key.py
:
|
|
vi event.py
:
|
|