+4 votes
195 views
Installing Arch Linux with the official ISO

in Linux / Unix by (552k points)
reopened | 195 views

1 Answer

+5 votes
Best answer

Preparing the ISO image

1- First we download the official ISO image of https://www.archlinux.org/download/

2- Once the ISO image is downloaded, we should check its integrity, this is done by downloading the text file sha1sums.txt from the download page.

3- To verify the integrity of the ISO image and make sure of what we downloaded was successful or we can not execute the following commands in a terminal:
  • sha1sum -c sha1sums.txt
  • gpg -v archlinux-2012-08-04-dual.iso.sig

image


4- As we could see in the screenshot above, the ISO checksum is correct and the signature is valid.

5- Now that we are sure that our ISO is correct, we can burn the CD with our favorite program.

6- Insert the CD into our computer.

7- We enter the start menu of our computer or let it automatically start from the installed installation device.

8- If the previous steps were done correctly we will see the following screen:

image


9- We select the architecture we want and press Enter.

10- We look for the layout of the keyboard for our region, these can be found in the following path: / usr / share / kbd / keymaps /.

11- Finally we set the desired layout of the keyboard with: loadkeys keyboardlayout

Creating and mounting the partitions

1- We execute cfdisk or cgdisk , being the first parameter of the device that we want to partition
  • cfdisk / dev / sdX
  • cgdisk / dev / sdX

2- We create our partition scheme

3- We save the partition scheme

4- We use the mkfs command to create the file system in the specified partition
  • mkfs -t vfat / dev / sdX
  • mkfs.ext4 -L root / dev / sdX

5- Then we mount our partition with / mnt

mount / dev / sdX3 / mnt

6- We create directories for our other partitions

mkdir -p / mnt / boot

7- We mount the other participations

mount / dev / sdX1 / mnt / boot

After this, we follow the following steps to connect to the Internet:

1- To connect to a wireless network we create a netcgf profile and execute the following command:
netcfg mywireless

2- In the opposite case we use dhclient or dhcpcd to obtain an IP address.

Then we install the base of the system and the boot system:

1- We run pacstrap with the designated parameters:

pacstrap / mnt base base-devel

2- We install the desired starting system. I recommend Syslinux :

pacstrap / mnt syslinux

3- The last step of the boot system will be done with chroot during the initial configuration of the distribution.

Now, once the partitions are made, connected to a network and the file system is mounted, we will proceed to the initial configuration of the distribution.

1- We generate fstab with genfstab :

genfstab -p / mnt >> / mnt / etc / fstab

2- We change the root in the system address:

arch-chroot / mnt

3- We set a name for the host in / etc / hostname

4- We create the symlink in / etc / localtime

5- We set the local configuration in /etc/locale.conf

6- We uncovered the local configuration in /etc/locale.gen

7- We run locale-gen

8- Configure /etc/mkinitcpio.conf

9- We generate the initial ramdisk:

mkinitcpio -p linux

10- We finished the installation of the boot system.

11- We set the password for the root with passwd.

12- We left the chroot environment with exit.

And with this we have our Arch Linux running on our computer.

by (3.5m points)
edited

Related questions

+5 votes
1 answer
asked Oct 5, 2019 in Linux / Unix by backtothefuture (552k points) | 357 views
+5 votes
1 answer
asked Mar 8, 2021 in Linux / Unix by backtothefuture (552k points) | 181 views
+5 votes
1 answer
asked Oct 6, 2019 in Linux / Unix by backtothefuture (552k points) | 345 views
+4 votes
1 answer
asked Aug 23, 2019 in Linux / Unix by backtothefuture (552k points) | 304 views
+5 votes
1 answer
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users