Raspberry Pi Install - nomrand/__basics GitHub Wiki
Install
OS Install
Create OS Image SD Card
- Prepare SD Card (https://www.raspberrypi.org/downloads/)
-
8GB -> Do officail site way (Install from NOOBS)
-
4GB -> Download [RASPBIAN STRETCH LITE] (=2GB)
- SD Format by some kind of formatter
- Burn Downloaded .img file by some tool (like balenaEtcher)
-
anyway, empty [ssh] file in SDCard boot drive needed to use ssh
Initial Setting
pi@raspberrypi:~ $ sudo raspi-config
configure Setting like ...
-
wi-fi (wi-fi adaptor needed & be aware of supportted bandwidth 2.4G/5G)
-
Keyboad Layout (ex. Generic 105-key(Intl) PC -> Other -> Japanese -> Japanese - Japanese(OADG 109A) -> The default for the keyboard layout -> No compose key)
-
static IP
-
- for wi-fi static ip (if you are in wireless network),
Edit [/etc/dhcpcd.conf] file to connecting network. add bottom of file.
interface wlan0
static ip_address=192.168.0.51/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1
-
- for wired network (no DHCP condition. ether connect fallback),
uncomment eth0 (=ether connect interface) static ip setting. like ras-pi (= headless environment), should set fallback setting)
profile static_eth0
static ip_address=192.168.1.23/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
Tool Install
pip (only LITE installed need)
get [get-pip.py] from (https://bootstrap.pypa.io/get-pip.py)
sudo python3 get-pip.py
RPi.GPIO (python module) (only LITE installed need)
# for python2.x
sudo pip install python-rpi.gpio
# for python3.x
sudo pip install python3-rpi.gpio