summaryrefslogtreecommitdiffstats
path: root/arch-install/arch-setup-1.sh
blob: 7a4735bfc8f38a0dab95fb55c21114639bbc7c67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#! /bin/bash

echo "LOCALTIME"
rm /etc/localtime
ln -s /usr/share/zoneinfo/Europe/Zurich /etc/localtime
hwclock --systohc --utc

echo "LOCALE"
locale-gen

echo "PACMAN"
pacman-db-upgrade
pacman -Syu
pacman -S --noconfirm grub efibootmgr mkinitcpio linux linux-firmware vim

echo "MKINITCPIO"
mkinitcpio -p linux

echo "GRUB"
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub_uefi --recheck
grub-mkconfig -o /boot/grub/grub.cfg


ETH=$(ip add | grep '^2' | cut -d ':' -f2 | sed 's/ //g')
cat > /etc/systemd/network/10-wired.network << EOF
[Match]
Name=$ETH

[Network]
DHCP=yes

[DHCP]
UseDomains=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

systemctl enable systemd-timesyncd
systemctl start systemd-timesyncd

echo " !!! set your root password !!!"