summaryrefslogtreecommitdiff
path: root/tech/arch-server-setup.txt
blob: cb06e279ed2a627ac987f6ce5d08f175be4713b6 (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
50
51
52
53
54
Arch on a Server? Madness.

https://wiki.archlinux.org/title/installation_guide
https://www.linuxbabe.com/linux-server/install-arch-linux-on-kvm-vps

Boot ISO and follow install instructions to get it working.

verify bootmode: cat /sys/firmware/efi/fw_platform_size

ip link

ping archlinux.org

timedatectl

fdisk -l

make a 1M partition for grub 

then install grub: pacman -S grub 

then:

grub-install --target=i386-pc /dev/vda
then config:
grub-mkconfig -o /boot/grub/grub.cfg

https://wiki.archlinux.org/title/GRUB

## Networking
https://www.reddit.com/r/archlinux/comments/3yaw2x/network_failure_trying_to_set_static_ip/?rdt=35416
https://wiki.archlinux.org/title/Systemd-networkd


then start systemd-networkd, create file:

/etc/systemd/network/20-wired.network
[Match]
Name=enp0s3 # or whatever the interface is named

[Network]
Address=10.1.10.9/24
Gateway=10.1.10.1
DNS=10.1.10.1

Then link in resov files

ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
systemctl --now enable systemd-resolved

Then turn on networkd:
systemctl --now enable systemd-networkd