Projet

Général

Profil

Actions

Install Operating system on raspberry pi 0w

To install Operating system on Raspberry pi there are many website describing how to do. For french noobies, better explanations here : https://edutechwiki.unige.ch/fr/Installation_de_Raspbian

Raspbian Lite

The steps are classic :

Dowloading image from https://www.raspberrypi.org/downloads/raspbian/ and download the "Raspbian Stretch Lite" version. We will not use X servers and other desktops tools. Just console.

wget https://downloads.raspberrypi.org/raspbian_lite_latest

unrar the .zip

tar -xvf /my/raspbian/iso.zip

Install it on SDcard from your desktop pc https://www.raspberrypi.org/documentation/installation/installing-images/

dd bs=512 if=/iso/place/on/my/computer of=/dev/mysdcard conv=sync

activate ssh, to create the ssh file in boot to activate it

$ touch /media/$USER/boot/ssh

set the wifi : edit the wifi config file to set your personnal SSID and psswd

vim /media/$USER/rootfs/etc/wpa_supplicant.conf

add :

country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="MyWiFiNetwork"
psk="password123"
}

eject sdcard :

$ sudo diskutil eject /dev/mmcbbtruc0
Password:
Disk /dev/mmcbbtruc0 ejected`

start pi0 : put the sdcard in pi0 and plug it with usb to your computer

connect to pi0 (default psswd is raspberry)

ssh pi@raspberrypi.local

extend file system

$ sudo raspi-config

in "7 Advanced options", select "A1 Expand filesystem", when operation done, reboot and reconnect to ssh.

update packages

$ sudo apt-get update
$ sudo apt-get upgrade

change password

passwd

Buildroot

Buildroot is a tool that help to build Linux embedded dedicated system. Basic tutorial here : https://code4pi.fr/2014/03/creation-dune-custom-image-pour-votre-raspberry-pi/

Mis à jour par openbeelab il y a environ 5 ans · 12 révisions