Installation

sudo dd if=<XXX>.img of=/dev/<XXX> bs=4M status=progress oflag=sync
sudo mount /dev/<XXX>1 /mnt
cd /mnt
sudo vi wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=DE
bgscan=""
network={
  ssid="XXX"
  psk="XXX"
}

Neuer User:

openssl passwd -6 -stdin
echo "<USER>:<PWHASH>" > userconf

oder später:

sudo passwd pi
sudo systemctl disable userconfig.service
sudo rm /etc/ssh/sshd_config.d/rename_user.conf
sudo touch ssh
cd
sudo umount /mnt
sudo mount /dev/<XXX>2 /mnt
sudo vi /mnt/etc/hostname
mkdir /mnt/home/pi/.ssh
chmod 700 /mnt/home/pi/.ssh
cp /home/<XXX>/.ssh/id_rsa.pub /mnt/home/pi/.ssh/authorized_keys
sudo umount /mnt

After Install Tasks

sudo vi /etc/locale.gen
sudo locale-gen -a
sudo apt update
sudo apt dist-upgrade -V
sudo apt install ruby vim
sudo apt clean
sudo apt autoremove --purge
sudo update-alternatives --config editor
sudo timedatectl set-timezone Europe/Berlin
sudo systemctl reboot

fstab:

proc /proc proc defaults 0 0
PARTUUID=123 /boot/firmware vfat defaults 0 2
PARTUUID=123 / ext4 defaults,noatime 0 1
tmpfs /tmp tmpfs defaults,noatime,nosuid,nodev 0 0
tmpfs /var/tmp tmpfs defaults,noatime,nosuid,nodev 0 0