1. write to sd card
download the latest image file, check below the references section.
umount -v /dev/sda?
xzcat img/raspios/2022-09-22-raspios-bullseye-arm64-lite.img.xz | sudo dd of=/dev/sda bs=4M iflag=fullblock oflag=direct status=progress
2. resize the microSD
test -f /bin/growpart || sudo yum -y install cloud-utils-growpart
sudo growpart /dev/sda 2
sudo fsck -fyv /dev/sda2
sudo resize2fs /dev/sda2
3. enable & configure SSH
(re)mount the SD card
touch $(ls -d /run/media/*/boot/)ssh
sudo mkdir -p $(ls -d /run/media/*/rootfs/root)/.ssh
curl -ns http://d01cid.ddns.net/sharel/img/sshkeys/ssh-20200601.tgz | sudo tar xz -C $(ls -d /run/media/*/rootfs/root)/.ssh/
sudo rm $(ls -d /run/media/*/rootfs/root)/.ssh/id_rsa
sudo chown root:root $(ls -d /run/media/*/rootfs/root)/.ssh/ -R
sync
umount /run/media/*/*
Remove the SD card and put it in the SD slot of the raspberry.
Power on and determine the IP address/name of the device.
4. aftercares
ssh root@10.1.25.148
apt update; apt -y dist-upgrade
curl -s http://d01cid.ddns.net/.sec/getsec | bash
/bin/cid-init
reboot
5. optional
5.1. homeassist
curl -ns http://d01cid.ddns.net/sharel/bin/inst-ha | bash
5.2. apache
curl -ns http://d01cid.ddns.net/sharel/bin/inst-httpd | bash
5.3. 3proxy
curl -ns http://d01cid.ddns.net/sharel/bin/inst-3proxy | bash
5.4. rtunnel
curl -ns http://d01cid.ddns.net/sharel/bin/inst-rtunnel | bash