-
Notifications
You must be signed in to change notification settings - Fork 0
/
spell
131 lines (66 loc) · 2.19 KB
/
spell
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
1 - create partitions
1 uefi +512M type ef :primary
2 root *rest of disk' type linux :primary
3 swap +1G type 82| solaris / swap :primary
Creating filesystem for UEFI system
mkfs.fat -F32 /dev/sdax
create an Ext4 filesystem on the root partition:
mkfs.ext4 /dev/sdax
make swap
mkswap /dev/sdax
swapon /dev/sdax
ping google.com //check etternet connection
pacman -Syy //update arch repos
mount /dev/sdax /mnt //rootfiles
pacstrap /mnt base linux linux-firmware nano //install base linux in de os with pacstrap
info <** Generate a fstab file to define how disk partitions, block devices, or remote file systems are mounted into the filesystem. **>
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt //change root directory for de terminal to the os
set basic configurations
# ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime //set local time
# hwclock --systohc
Edit /etc/locale.gen and uncomment en_US.UTF-8 UTF-8 and other needed locales.
Create the locale.conf(5) file, and set the LANG variable accordingly:
/etc/locale.conf
LANG=en_US.UTF-8
If you set the console keyboard layout, make the changes persistent in vconsole.conf(5):
/etc/vconsole.conf
KEYMAP=de-latin1
Network configuration
Create the hostname file:
echo myhostname >> /etc/hostname
nano /etc/hosts >>
127.0.0.1 localhost
::1 localhost
127.0.1.1 myarch
set root password
passwd
install grub
pacman -S grub efibootmgr
Create the directory where EFI partition will be mounted:
mkdir /boot/efi
Now, mount the ESP partition you had created
mount /dev/sda1 /boot/efi
install grub:
grub-install --target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot/efi
last step:
grub-mkconfig -o /boot/grub/grub.cfg
crate more users:
install sudo
pacman -S sudo
useradd -m myuser
passwd myuser
usermod -aG wheel,audio,video,storage myuser
EDITOR=nano visudo
uncoment %wheel ALL=(ALL=ALL) ALL
pacman -S xorg networkmanager sddm xf86-video-amdgpu plasma
systemctl enable NetworkManager.service
systemctl start NetworkManager.service
systemctl enable sddm.service
systemctl start sddm.service
exit
Finally, unmount the root partition using the following command:
umount /mnt
Or,
umount -l /mnt
reboot