Raspberry Pi Tutorials
How to install Raspbian on Raspberry Pi
Simple tutorial to install Raspbian OS on Raspberry Pi by using Raspberry Pi imager. Here is the link to the Imager
Instructions
1: Make sure your computer can recognize the SD card
2: Open Raspberry pi Imager
3: Click on Choose OS
4: Click on Raspberry Pi OS(32-bit)
5: Click on Choose Storage
5: Click on your SD Card
Instructions for Headless OS
4: Click on Raspberry Pi OS (Other)
5: Click on Raspberry Pi OS Lite (32-bit)
6: Reinsert the SD Card
7: Open the Boot folder aka SD Card’s folder
8: Create an ssh file in boot folder. Make sure the file doesn’t have any extensions, should be only ‘ssh’
How to install Docker on Raspberry pi?
In this tutorial, we will be installing docker on Raspbian and run hello-world docker. We are going to ssh into Raspi and deploy the docker.
-
From your terminal ssh into Raspberry pi
ssh pi@<IPAdderessOfThePi>
-
Pi’s ssh default password
raspberry
-
Update Raspbian
sudo apt-get update && upgrade -y
-
Install Docker
curl -sSL https://get.docker.com | sh
-
Add permissions
sudo usermod -aG docker ${USER}
-
(Optional) Check if python3 and pip3 is installed
sudo apt-get install libffi-dev libssl-dev sudo apt install python3-dev sudo apt-get install -y python3 python3-pip
-
Install docker-compose
sudo pip3 install docker-compose
-
Enable Docker system services
sudo systemctl enable docker
-
Run Hello World Container
docker run hello-World