]> code.delx.au - monosys/blobdiff - notes/raspi-headless:debian-bookworm.txt
notes: fix raspi install notes, also @home -> @username
[monosys] / notes / raspi-headless:debian-bookworm.txt
index 54f612c5dd4e5303e2be1aa558ea4bdadd619b4a..db1f0a68533431d959c63cc8359992670b04197b 100644 (file)
@@ -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