Raspbian Install & Configure
Flash SD Card
- Format SD card FAT32
- Download Raspbian
- Flash image with Etcher
- Create a file
boot/sshbefore booting raspbian to enable ssh
Wifi setup before first boot
help-1 help-2 !country not OK in this example!
Create file boot/wpa_supplicant.conf. (Raspbian will move it in /etc/wpa_supplicant/ when the system is booted)
Warning
EOL Conversion shall be UNIX File Format.
Add content:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=FR
network={
ssid="YOUR_NETWORK_NAME"
psk="YOUR_PASSWORD"
}
Wifi setup after first boot
If conf is done after first boot, edit wpa_supplicant.conf
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="YOUR_NETWORK_NAME"
psk="YOUR_PASSWORD"
key_mgmt=WPA-PSK
}
Configuration
Hostname and password
- Modify hostname, Edit
/etc/hostnameand/etc/hosts. Set to chaudiere (recognized on network as chaudiere.local) - Modify pi password
sudo passwd pi
Package install
Update/upgrade system and existing packages
sudo apt-get update met à jour la liste des dépôts
sudo apt-get dist-upgrade -y met à jour tous les paquets installés vers les dernières versions en installant de nouveaux paquets si nécessaire
sudo apt-get upgrade -y met à jour tous les paquets installés sur le système
Install packages
sudo apt-get -y install supervisor git python-pip nginx
pip install virtualenv virtualenvwrapper
mkvirtualenv whatever -p /usr/bin/python3
specific packages for chaudiere app
sudo apt-get install curl
clean
sudo apt-get clean supprime les paquets téléchargés et stockés sur carte SD