Last active
April 16, 2021 14:42
-
-
Save nichtich/5e17f4c5c2f6df6e355aa892611971e2 to your computer and use it in GitHub Desktop.
This file contains 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
#/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 |
This file contains 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
#/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