Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#/bin/bash
# Directly install Raspberry OS to SD card
IMAGE=https://downloads.raspberrypi.org/raspios_full_armhf/images/raspios_full_armhf-2020-12-04/2020-12-02-raspios-buster-armhf-full.zip
DEV=/dev/sdd
curl -o - $IMAGE | zcat | sudo dd bs=4M of=$DEV conv=fsync
# as one-liner
IMAGE=... DEV=/dev/sdd bash -c 'curl -o - $IMAGE | zcat | sudo dd bs=4M of=$DEV conv=fsync'
# Directly install NextcloudPi to SD card
IMAGE=https://ownyourbits.com/downloads/NextCloudPi_RPi_11-27-20/NextCloudPi_RPi_11-27-20.tar.bz2
curl -o - $IMAGE | bunzip2 | tar -xOf - | sudo dd bs=4M of=$DEV conv=fsync
# create file "ssh" at boot partition to enable SSH by default
#/bin/bash
# change keyboard layout:
# set XKBLAYOUT to "de" in /etc/default/keyboard
# add public SSH key
# ...
apt update
apt upgrade -y
# basic software not installed by default
apt install vim
apt install git-all
apt install nodejs npm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment