-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathArch_Base.txt
159 lines (114 loc) · 4.05 KB
/
Arch_Base.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
147
148
149
150
151
152
153
154
155
156
157
158
Content-Type: text/x-zim-wiki
Wiki-Format: zim 0.4
Creation-Date: 2016-10-23T03:41:50+02:00
====== Arch Base ======
Created søndag 23 oktober 2016
**This will be a simple step-by-step guide. With an unserious attempt to put the process into categories,**
**# Editor**
$ nano
== Create the bootable USB ==
**#** **Download your favorite Arch distro^ You can use dd to create the bootable USB**
$ dd if=/path/to/arch_image.iso of=/dev/sdX bs=4M && sync
== Boot ==
**# Boot the USB as UEFI**
== Pre-installation ==
**#** **Set the keyboard layout **
$ loadkeys dk-latin1
**#** **Connect to the internet **
$ wifi-menu
**#** **Update the system clock **
$ timedatectl set-ntp true
== Prepare the disk ==
**#** **Partition the disk : **
**#** **Use the gdisk package (for GPT disks). Consult with **?** for commands.**
**# Once you start gdisk it'll ask for device. Provide it with your disk** ///dev/sda//
**#** **Create 4 partitions.**
**EFI **EFI bootable
**/ **Linux Filesystem
**/home **Your home for local files
**swap **Your additional memory space
== Format the partitions ==
# **Get partition information with**
$ lsblk -f
# **EFI** **partition**
$ mkfs.vfat /dev/sdaX
# **Linux Filesystem**
$ mkfs.ext4 /dev/sdaX
# **Home partition**
$ mkfs.ext4 /dev/sdaX
# **Swap partition**
$ mkswap /dev/sdaX
== Mount the partitions ==
**# First initialize the **//swap//** partition**
$ swapon /dev/sdaX
**# Then mount your **//Linux Filesystem//
$ mount /dev/sdaX /mnt
**# Create mount-point (folders) for the remaining partitions**
$ mkdir /mnt/boot
$ mkdir /mnt/home
**# And mount the remaining partitions **
$ mount /dev/sdaX /mnt/boot **#** The **EFI** boorable partition
$ mount /dev/sdaX /mnt/home **#** The **Home** partition
== Installation ==
**# You can Edit **///etc/pacman.d/mirrorlist//** and move preferred mirrors to the top, if you like.**
**#** **Install the Arch Base **
$ pacstrap /mnt base
== Post installation ==
**#** **Generate the fstab file **
$ genfstab -U /mnt >> /mnt/etc/fstab
**#** **Change root into the newly installed system **
$ arch-chroot /mnt
**#** **Set the time zone **
**# This will generate **///etc/adjtime//
$ ln -s /usr/share/zoneinfo/Europe/Copenhagen /etc/localtime
$ hwclock --systohc
**#** **Locale **
**#** **Edit** /etc/locale.gen **and uncomment BOTH** //en_US.UFT-8 //**and**// da_DK.UTF-8//
{{{code: lang="texinfo" linenumbers="True"
da_DK.UTF-8 UTF-8
en_US.UTF-8 UTF-8
}}}
**# And generate locale**
$ locale-gen
**# Set the LANG variable in** /etc/locale.conf
{{{code: lang="texinfo" linenumbers="True"
LANG=en_US.UTF-8
}}}
**# Make the keyboard layout persistent in** tty **within** /etc/vconsole.conf
{{{code: lang="texinfo" linenumbers="True"
KEYMAP=dk-latin1
}}}
**# Create a desired hostname in** /etc/hostname
{{{code: lang="texinfo" linenumbers="True"
dinnabo
}}}
**# And add the entry to** /etc/hosts
{{{code: lang="texinfo" linenumbers="True"
127.0.0.1 localhost.localdomain localhost
::1 localhost.localdomain localhost
127.0.1.1 dinnabo.localdomain dinnabo
}}}
**#** **Network tools**
$ pacman -S iw wpa_supplicant dialog
**#** **Remember to install the **//base-devel//** as well **
$ pacman -S base-devel
**#** **Set the root password **
$ passwd
== Boot Loader ==
**# Grub will be used for this example.**
**# Install the **//grub, Intel-ucode //**and **//efibootmgr//** packages. **
**#** **If dual-booting, also install the **//os-prober//** package. **
**# Intel Microcode (**//ucode//**) provides system stability and is detected automatically by **//mkconfig//**.**
**# **//efibootmgr//** is needed for our EFI system.**
$ pacman -S grub intel-ucode efibootmgr
**# If dual-booting, also install this package**
$ pacman -S os-prober
**#** **Install to **///boot//** partition **
$ grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub
**#** **Generate configuration file **
$ grub-mkconfig -o /boot/grub/grub.cfg
== Reboot ==
**# Exit the chroot environment and Unmount the partitions**
$ exit
$ umount -R /mnt
$ reboot