X-Git-Url: https://code.delx.au/monosys/blobdiff_plain/5eba0c1ecae38cbf3ada2789df9370885eeb3bf8..HEAD:/notes/raspi-headless:debian-bookworm.txt diff --git a/notes/raspi-headless:debian-bookworm.txt b/notes/raspi-headless:debian-bookworm.txt index 54f612c..db1f0a6 100644 --- a/notes/raspi-headless:debian-bookworm.txt +++ b/notes/raspi-headless:debian-bookworm.txt @@ -6,7 +6,7 @@ raspi.debian.net xzcat image.xz | pv > $THE_DEV -gdisk $THE_DEV +fdisk $THE_DEV # resize partition 2 @@ -40,14 +40,14 @@ rm @root/initrd.img @root/initrd.img.old @root/vmlinuz @root/vmlinuz.old echo 'do_symlinks=no' > @root/etc/kernel-img.conf rmdir @root/var/log/journal -find @root/usr/local -type f -print #-delete -find @root/etc/systemd/system -name 'rpi*' -print #-delete +find @root/usr/local -type f -print -delete +find @root/etc/systemd/system -name 'rpi*' -print -delete find @root/etc/systemd/system -type d -empty -print -delete -echo $THE_HOSTNAME > @root/etc/hostname +echo $THE_HOSTNAME >| @root/etc/hostname ln -sf /usr/share/zoneinfo/Australia/Sydney @root/etc/localtime -echo > @root/etc/motd +echo -n >| @root/etc/motd cp ~/monosys/etc/ssh/sshd_config @root/etc/ssh/sshd_config @@ -64,8 +64,8 @@ dpkg-reconfigure raspi-firmware apt-get update apt-get install locales dpkg-reconfigure locales -apt-get install aptitude curl git python3 vim +apt-get install aptitude curl git python3 vim curl -sSfL https://code.delx.au/p/dotfiles | bash exit ssh root@192.168.1.XXX @@ -79,7 +79,7 @@ cp monosys/etc/systemd/network/ethernet.network /etc/systemd/network/ systemctl stop networking ; systemctl restart systemd-networkd systemctl disable networking ; systemctl enable systemd-networkd - +apt-get install aptitude mkdir /root/monosys/package-lists/local ln -s /root/monosys/package-lists/local /root/.aptorphan cd /root/monosys/package-lists/local