Last active
December 13, 2022 17:47
-
-
Save rwcitek/c7b7e424bde6488fca3a51c5136897cc to your computer and use it in GitHub Desktop.
Instructions for downloading and imaging the Raspberry Pi 3 image to a USB drive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is for a Raspberry Pi 3B+ | |
# To make this work, you will need to be running in developer mode on the Chromebook. | |
# To enable developer mode, first make a backup of any files, then follow these instrucitons: | |
# https://chromium.googlesource.com/chromiumos/docs/+/HEAD/developer_mode.md#dev-mode | |
# Choosing an image: https://www.raspberrypi.com/software/operating-systems/ | |
# find Images at https://downloads.raspberrypi.org/raspios_lite_armhf/images/ | |
# ctrl+alt+T to open a crosh terminal | |
# open a shell | |
shell | |
# become root | |
sudo su - | |
# make target folder | |
mkdir -p /home/chronos/user/Downloads/raspberry.pi | |
cd /home/chronos/user/Downloads/raspberry.pi | |
# download SHA and IMG files | |
url="https://downloads.raspberrypi.org/raspios_armhf/images/raspios_armhf-2022-09-26/2022-09-22-raspios-bullseye-armhf.img.xz" | |
image=$( <<< "${url}" rev | cut -d/ -f1 | rev ) | |
curl --progress-bar -L -O -C - "${url}".sha256 | |
curl --progress-bar -L -O -C - "${url}" | |
# compute SHA of IMG and compare to SHA | |
{ | |
cat "${image}".sha256 | |
sha256sum "${image}" | |
} | tee verify.txt | |
# insert USB disk | |
# determine which device is USB disk | |
grep sd /proc/partitions | |
mount | grep /media/removable/ | |
# unmount USB disk from Files app ( maybe not needed? ) | |
# image to USB device; change sdX to appropriate USB drive | |
xzcat "${image}" | | |
dd of=/dev/sdX bs=1M status=progress | |
# remove USB device, insert into Raspberry Pi, and power it up | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From: https://www.simplilearn.com/tutorials/docker-tutorial/raspberry-pi-docker | |
curl -fsSL https://get.docker.com -o get-docker.sh | |
sudo sh get-docker.sh | |
sudo usermod -aG docker ${USER} | |
exec sudo su - ${USER} | |
docker image pull ubuntu:22.04 | |
docker container run --rm ubuntu:22.04 head -2 /etc/os-release | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment