From 1c9b6b2bef49d1c613f346f155e16d2d8d8301b2 Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Sat, 20 Jul 2024 08:00:15 +0200 Subject: [PATCH] Assign pirogue.local and pirogue to 127.0.1.1 It's pretty standard to have 127.0.0.1 match localhost while the actual machine's name (FQDN and hostname) matches 127.0.1.1 instead. We would be happy to be told if something similar exists for IPv6! --- raspberrypi/recipes/pi3-pi4.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raspberrypi/recipes/pi3-pi4.sh b/raspberrypi/recipes/pi3-pi4.sh index 34d1d28..9960358 100644 --- a/raspberrypi/recipes/pi3-pi4.sh +++ b/raspberrypi/recipes/pi3-pi4.sh @@ -19,7 +19,7 @@ toast_me() { rm -f $MNT/etc/ssh/ssh_host_* chroot $MNT systemctl enable ssh # Change the hostname - echo "127.0.0.1 pirogue.local pirogue" >> $MNT/etc/hosts + echo "127.0.1.1 pirogue.local pirogue" >> $MNT/etc/hosts echo "::1 pirogue.local pirogue" >> $MNT/etc/hosts echo "pirogue" > $MNT/etc/hostname # Add PTS PPA