summaryrefslogtreecommitdiffstats
path: root/arch-install/arch-setup-1.sh
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2021-02-12 16:36:03 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2021-02-12 16:36:03 +0100
commited642f1dcfccfb82dc7fc96a10ea2fdc6931b503 (patch)
tree61f7429105a9176a348dcce119ef95c5447f6dbc /arch-install/arch-setup-1.sh
parenta2dfe97f4244513917b08b538ad1a0db60ae4804 (diff)
downloadbin-ed642f1dcfccfb82dc7fc96a10ea2fdc6931b503.zip
bin-ed642f1dcfccfb82dc7fc96a10ea2fdc6931b503.tar.gz
arch-setup : add network basic setup
Diffstat (limited to 'arch-install/arch-setup-1.sh')
-rwxr-xr-xarch-install/arch-setup-1.sh19
1 files changed, 19 insertions, 0 deletions
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 !!!"