From ed642f1dcfccfb82dc7fc96a10ea2fdc6931b503 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 12 Feb 2021 16:36:03 +0100 Subject: arch-setup : add network basic setup --- arch-install/arch-setup-1.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch-install/arch-setup-1.sh b/arch-install/arch-setup-1.sh index 80baf04..b9bcd1c 100755 --- a/arch-install/arch-setup-1.sh +++ b/arch-install/arch-setup-1.sh @@ -21,4 +21,23 @@ echo "GRUB" grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub_uefi --recheck grub-mkconfig -o /boot/grub/grub.cfg + +cat > /etc/systemd/network/10-wired.network << EOF +[Match] +Name=enp0s* + +[Network] +DHCP=yes +EOF + +systemctl enable systemd-networkd +systemctl start systemd-networkd + +ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf + +systemctl enable systemd-resolved +systemctl start systemd-resolved + +resolvectl status + echo " !!! set your root password !!!" -- cgit v1.1-2-g2b99