Skip to content

Latest commit

 

History

History
123 lines (74 loc) · 2.92 KB

README.md

File metadata and controls

123 lines (74 loc) · 2.92 KB

The setup of a Raspberry Pi

The main objective of this README is to guide users on how to set up and Backup their Raspberry Pi devices using different methods such as creating a new Raspberry Pi image, backing up the image to an SD card, and backing up the image to an external disk using a macOS. It provides step-by-step instructions for each method, including enabling SSH access, finding the IP address, and creating an image from an SD card. Additionally, it also covers how to use the Raspberry Pi Imager to create a new Raspberry Pi image on a macOS."

  1. Backup your Raspberry Pi image to an sd-card
  2. Backup your Raspberry Pi image to an external disk with a macOS
  3. Create a new Raspberry Pi image with Raspberry Pi Imager on macOS

1. Backup your Raspberry Pi image to a sd-card

1.1 Connect to your existing Raspberry Pi with SSH

Step 1: Ensure you set the root password of your Raspberry Pi

sudo su
passwd
sudo passwd pi
  • Optional:
reboot

Step 2: Enable the ssh access on your Raspberry Pi using the command line

Enter the following command:

sudo raspi-config
  1. Select Interfacing Options

  2. Select SSH

  3. Enable SSH

  4. Finish

Step 3: Get the IP address of your Raspberry Pi

ifconfig

or

hostname -I

Step 4: Connect with shh remote connection from your local machine to the Raspberry Pi

export HOSTNAME=192.168.178.69
export REMOTE_USER=pi
ssh ${REMOTE_USER}@${HOSTNAME}

1.2 Add an SD card

1.3 Save the data to the external storage

Step 1: Find the source of the current configuration mmcblk0

cd /dev
ls | grep mmcblk0

Step 2: Find the source of the current configuration

sudo dd bs=4M if=/dev/mmcblk0 of=/dev/sda

2. Backup your Raspberry Pi image to an external disk with a macOS

Step 1: Insert to your computer the Raspberry Pi - SD card and an external disk to

Step 2: Open Disk Utility

Step 3: Create an image from SD Card as DVD/CD master

Step 4: Rename the created file from crd to iso

3. Create a new Raspberry Pi image with Raspberry Pi Imager on macOS

Step 1: Download Raspberry Pi Imager to the local machine

Step 2: Select the Operating System to install

Step 3: Configure the Operating System settings

  • Enable ssh and VNC for remote connection inside your WLAN.

Step 3: Save

Step 4: Finish