-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patharch-install-help.txt
147 lines (77 loc) · 3.93 KB
/
arch-install-help.txt
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
Disclaimer: This helps me, but you might want/have a different configuration, so use this just as a "quick guide", but definitively go to the Arch Wiki to learn more :)
# Installing Arch
### Load pt keys with:
loadkeys pt-latin1
### Make sure it is in UEFI. To do this write:
ls /sys/firmware/efi/efivars
### If there are results everything is nice.
### Establish network connection, maybe use cable for this one, a lot easier, configure the wireless:
timedatectl set-ntp true
### To list partitions, use:
fdisk -l
### There needs to be:
### - A /mnt/boot or /mnt/efi with 260-512 MB;
### - A /mnt which is the entirety of the device;
### - A swap, make it around 1.25* of RAM, that should do it (a lot of varying opinions on this);
### Check what is the drive you are going to install Arch on, and run:
fdisk /dev/sdX
### Where X is the name of the partition, then wipe the partitions that you want delete by entering 'd' and then deleting the respective partition.
### To create a new partition write 'n', let the number of the partition be default, the starting point be default, and for the size you can write '+#X', where X is the format (G for gigabytes, M for Megabytes), and # is the number of MB or GB for the partition.
### If fdisk asks you to override the signature, choose Yes.
### Create a partition of 512M for the /mnt/boot/efi, a partition for the SWAP, and another for the /mnt.
### Now we need to actually make the partitions usable, so we use:
mkfs.ext4 /dev/sdXY (where XY are the partitions created for /mnt/boot/efi and /mnt partitions)
## Important! If you have an EFI system, create the boot partition with:
mkfs.fat -F32 /dev/sdXY
mkswap /dev/sdXY && swapon /dev/sdXY (where XY is the partition created for the swap file)
### Now we need to mount the partitions using
mount /dev/sdXY /mnt/boot/efi
mount /dev/sdXZ /mnt/
### where XY is the partition for the boot and XZ is the root partition.
### Now just make sure everything is setup nicely running:
lsblk
### Now to install Arch!
pacstrap /mnt base base-devel linux linux-firmware (more programs you want to install)
### Now that we have Arch Linux installed, we need to generate our file system tab, stored in /etc/fstab. For this we run:
genfstab /mnt >> /mnt/etc/fstab
### Let's hop into our Arch Linux installation:
arch-chroot /mnt
### Nice, we're getting there. Now to install GRUB
pacman -S grub (and efibootmgr if you have UEFI)
### All that's left is installing and configuring grub.
grub-install /dev/sdX (not sdXY, the file system, and not the partition)
grub-mkconfig -o /boot/grub/grub.cfg
### Setup a password using:
passwd
### Setup locale:
nano /etc/locale.gen
(uncomment locale you want, like en_GB things)
nano /etc/locale.conf
(add LANG=en_GB.UTF-8)
locale-gen
nano /etc/vconsole.conf
(add KEYMAP=pt-latin1, change it to whatever keymap you want)
### Timezone information
ln -sf /usr/share/zoneinfo/ZONEOFYOURCHOOSING /etc/localtime
### Now setup hostname
nano /etc/hostname
(add a single word to be your hostname)
nano /etc/hosts
(add this, and replace myhostname with the word you wrote above)
127.0.0.1 localhost
127.0.1.1 myhostname
::1 localhost ip6-localhost ip6-loopback
### Configure a NetworkManager
sudo pacman -S networkmanager
sudo systemctl enable NetworkManager
### Arch is installed! Exit your arch-chroot by entering 'exit', and then do 'umount -R /mnt' to unmount all partitions.
### Reboot, and then in the new Arch Linux install do:
useradd -m -g wheel username (change this to what you want)
passwd username
### Now edit the /etc/sudoers file and uncomment the %wheel statement
### Edit the /etc/pacman.conf, and uncomment multilib
### Now exit, log into your user and setup basic folder structure:
cd ~
mkdir Documents Downloads Music Games Pictures Desktop
sudo pacman -S git
### Then clone this repo, and after this, I made a script to automate everything :) and run the archFullSetup, and you're good to go!