Skip to content

Instantly share code, notes, and snippets.

@nichtich
Last active April 16, 2021 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nichtich/5e17f4c5c2f6df6e355aa892611971e2 to your computer and use it in GitHub Desktop.
Save nichtich/5e17f4c5c2f6df6e355aa892611971e2 to your computer and use it in GitHub Desktop.
#/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