-
Notifications
You must be signed in to change notification settings - Fork 0
/
archinstall
69 lines (69 loc) · 1.25 KB
/
archinstall
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
loadkeys de-latin1
ls /sys/firmware/efi/efivars
timedatectl set-ntp true
lsblk
fdisk /dev/[disk]
<
g
n
default
default
+300M
t
1
>
{
n
!<p>
default
default
+8G
t
<19>
!<82>
}
n
!<p>
default
default
default
w
<mkfs.fat -F32 /dev/[disk]1>
{mkswap /dev/[disk]1<+1>}
mkfs.ext4 /dev/[disk]1<+1>{+1}
mount /dev/[disk]1<+1>{+1} /mnt
{swapon /dev/[disk]1<+1>}
<mkdir /mnt/boot>
<mount /dev/[disk]1 /mnt/boot>
pacstrap /mnt base linux linux-firmware base-devel vim git
genfstab -U /mnt
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
hwclock --systohc
vim /etc/locale.gen
#en_US.UTF-8 UTF-8 -> en_US.UTF-8 UTF-8
locale-gen
vim /etc/locale.conf
LANG=en_US.UTF-8
vim /etc/vconsole.conf
KEYMAP=de-latin1
vim /etc/hostname
[hostname]
vim /etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.1.1 [hostname]
pacman -S networkmanager
systemctl enable NetworkManager
passwd
useradd -mG wheel [username]
passwd [username]
EDITOR=vim visudo
# %wheel ALL=(ALL) ALL -> %wheel ALL=(ALL) ALL
pacman -S grub <efibootmgr>
<grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB>
!<grub-install --target=i386-pc /dev/[disk]>
grub-mkconfig -o /boot/grub/grub.cfg
exit
shutdown now