This commit is contained in:
Jeffrey Paul 2019-10-04 08:10:07 -07:00
parent 45a2bcf34e
commit d9f759a43c
6 changed files with 21 additions and 8 deletions

View File

@ -0,0 +1,4 @@
#!/bin/bash
echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
locale-gen

View File

@ -2,7 +2,7 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PKGS="$(cat $DIR/packages.txt)"
PKGS="$(cat $DIR/packagelist.txt)"
export DEBIAN_FRONTEND=noninteractive
@ -10,6 +10,4 @@ apt update
apt upgrade -y
for PKG in $PKGS ; do
apt install -y $PKG
done
apt install -y $PKGS

View File

@ -4,10 +4,18 @@ export DEBIAN_FRONTEND=noninteractive
apt update && apt install -y curl
KEY_URL="https://sneak.cloud/authorized_keys"
# CAUTION! /!\
# doing only passwd -d <user> means they can log in at the console
# with no password whatsoever - probably not what you want
curl -fLo /root/.ssh/authorized_keys --create-dirs $KEY_URL && \
passwd -d root
passwd -d root && \
passwd -l root
curl -fLo /home/pi/.ssh/authorized_keys --create-dirs $KEY_URL && \
passwd -d pi
passwd -d pi && \
passwd -l pi
chown -R pi:pi /home/pi/.ssh

View File

@ -0,0 +1,4 @@
#!/bin/bash
systemctl enable ssh
systemctl start ssh

View File

@ -11,7 +11,6 @@ dirmngr
dnsutils
gnupg-agent
gnupg2
golang-go
haveged
inetutils-ping
iptables-persistent

View File

@ -6,7 +6,7 @@ exec 1> >(logger -s -t $(basename $0)) 2>&1
echo "waiting for network to come up..."
while sleep 1; do ping -c1 www.google.com > /dev/null && break; done
until ping -c1 -w1 www.google.com >/dev/null 2>&1; do :; done
echo "network is now up, running scripts"