How to install Arch Linux

Anonim

How to install Arch Linux

One of the most famous distributions based on the Linux kernel is considered to be Arch. Among the other platforms, it is allocated in difficulty in installing and configuring, but this attracts users who want to learn more about the structure of this operating system and increase the level of knowledge in the use of the classical console. Arch Linux is installed completely manually, starting from creating partitions of a hard disk and ending with new accounts. All actions are performed through the "Terminal" by entering the relevant commands.

Install Arch Linux

Within the framework of this article, I would like to consider the procedure for installing this platform as in detail, taking into account the pretty configuration of all components. We broke the entire process to steps so that novice users were easier to navigate. For the installation itself, you will only need a flash drive with a minimum of 2 GB or the same disk. Everything else is loaded from the Internet or added directly during the installation of the OS. Note that adding all the necessary components is performed through an active Internet connection.

Step 1: download distribution image

The platform under consideration, like most other distributions, is in open access and can be downloaded from the official site of developers. We recommend using this particular source, as you are guaranteed to get a working image without any errors and malicious files inside.

Download Arch Linux Distribution from the Official Site

  1. Go to the above link and select "Download".
  2. Go to the Arch Linux distribution page download page

  3. You can use any mirror, but we advise you to choose a BitTorrent link.
  4. Button for downloading the Arch Linux distribution from the official site

  5. After downloading, run the file via any torrent client and expect to complete the download of the image to the computer.
  6. Starting a downloaded torrent file to load an Arch Linux image

Now there is a full-fledged image of the operating system. It remains only to write to the disk or flash drive, after which it will be possible to start directly to the installation procedure.

Step 2: Creating a bootable media

Now the USB flash drives are more popular, because they are more convenient to disks, and the appropriate connector is present absolutely on all computers. Therefore, let's stop at this option. You will need to take advantage of a special program that will create the bootable from the usual flash drive. Detailed instructions on this topic are in a separate article according to the following link.

Read more: Record OS image on a USB flash drive

Step 3: Configuring BIOS to start the boot flash drive

As you know, the start of installation of the operating system is made after connecting the drive and restart the computer. In this case, it is important that the BIOS starts the download from the flash drive, and not the hard disk. To ensure successful execution of this task, you will need to manually set priority through the BIOS settings. To deal with this procedure will help another material further.

Read more: Configuring BIOS to run from flash drive

Step 4: Download Installer and Live-mode

After executing the previous step, it will be enough to insert a flash drive into a free connector and run PC. After a certain amount of time, the Arch Linux bootloader appears on the screen. It has several items, for example, a reboot or view of iron information, but now you are interested in "Boot Arch Linux". Arrows on the keyboard, select this item and press the ENTER key.

Transition to the Live Mode of Installation of the Arch Linux operating system

All standard components for Live mode begins. This may take a few minutes, so do not turn off the PC and do not press any keys on the keyboard. After successfully downloading, you will fall into the Live mode with the console, where the further installation procedure is performed.

Loading the Live mode to install the Arch Linux operating system

Step 5: Hard Disc Markup

Hard disk marking - the first one will encounter the user when installing the platform under consideration. To work correctly, all disk space should be divided into several logical volumes, each of which will be stored its information, the storage parameters are also set manually. In general, the process is simple, you only need to perform several teams and carefully monitor their writing in the console.

  1. The storage markup is best done through the standard utility, and to start it in the Terminal, you need to enter CFDisk / Dev / SDA.
  2. Creating a hard disk markup table for installing Arch Linux

  3. The partition table is primarily selected. A newer is considered GPT, so it is better to use it if you can not independently decide on the choice.
  4. Select the type of hard disk markup to install Arch Linux

  5. Arrows on the keyboard move between connected devices. Select a markup drive and activate the "New" item by going to it using the left and right arrows.
  6. Creating the first partition from the free space of the Arch Linux disk space

  7. First, the place is separated for the GRUB loader. It provides the correct launch of the operating system. It is always recommended to allocate a separate section under it. You only need to set the volume volume and click on ENTER. The loader is quite enough 200 MB.
  8. Specifying a certain place for bootloader on the hard disk for Arch Linux

  9. If you have selected the GPT partition table, and not the MBR, it is additionally created a logical partition for storing the loader image. Select «FREE SPACE» and "NEW" again.
  10. Creating an image of the bootloader from the free space of the Arch Linux disk

  11. The image of the loader is worth separating 1 megabytes of free space.
  12. Specifying the location for the bootloader when creating a section in Arch Linux

  13. Now set this section a specific type so that it is loaded from it when the computer starts. To do this, select "/ DeV / SDA2" in the table and go to the "Type" menu.
  14. Transition to Selection Type Section for Arch Linux Loader Image

  15. Rock up the keyboard arrows to the Bios Boot and click on ENTER.
  16. Selecting the BIOS BOOT type for Arch Linux loader image

  17. Additionally, the root section is created where all system files will be placed. Again in the table, perform already familiar actions, indicating the size of 20-30 GB.
  18. Creating a system, home directory and paging file for Arch Linux hard disk markup

  19. Next, create a partition that will perform the role of a home directory. Take to it almost all available location, leaving a few gigabytes for the paging file (recommended volume of the paging file in Arch is equal to the number of RAM in the PC). Finally, after the home directory, create a paging file, and in the end you should have five sections. When the procedure is completed, save the changes by selecting the "write" option.
  20. Saving the current hard disk markup table for installing Arch Linux

  21. Confirm the entry by writing in the "Yes" line.
  22. Confirmation of the hard disk markup to install Arch Linux

  23. After all, you can exit the editor of the sections through clicking on "Quit"
  24. Exit from the hard disk partition editor in Arch Linux

Upon completion of this step, the hard disk will be divided into the required number of sections. The user will only remain configured by setting the file system and priorities, after which everything will be ready to install.

Step 6: Formatting and Mounting Storage Partitions

Now all created sections do not belong to certain file systems and formatting should be made to install them. Due to the fact that all volumes were created manually, formatting and mothing should also be carried out independently.

  1. The loader section is better to determine the format of FS "EXT2" to ensure the best work. Therefore, in the console, activate the MKFS -T EXT2 -L BOOT / DEV / SDA1 command, where / dev / sda1 is the name of the first created partition.
  2. Format partition hard disk with Arch Linux loader

  3. The second section of the initial image does not need to be formatted, so we turn to the main system directory and format it in a familiar "EXT4" format MKFS -T EXT4 -L root / dev / sda3.
  4. Formatting a hard disk system directory for installing Arch Linux

  5. Exactly the same action is required to perform with a home directory, scoring the expression MKFS -T EXT4 -L HOME / DEV / SDA4.
  6. Formatting Hard Disk Home Catalog for Installing Arch Linux

  7. The paging file is also not formatted, so immediately mount it via MKSWAP / DEV / SDA5.
  8. Formatting the created partition for Arch Linux swap file

  9. Connecting created sections is also performed manually, only after that they will be suitable for work. You should start with the root catalog Sudo Mount / Dev / SDA3 / MNT.
  10. Mounting a system directory to install Arch Linux

  11. Next, create separate folders for the bootloader and the home directory via Sudo MKDIR / MNT / {BOOT, HOME}.
  12. Creating folders for bootloader and home directory Arch Linux

  13. It remains only to mount the remaining partitions sequentially input Rows Mount / Dev / SDA1 / MNT / BOOT, MOUNT / DEV / SDA4 / MNT / HOME and re-swapon / dev / sda5.
  14. Mounting system, home directory and paging file in Arch Linux

All sections were successfully prepared for further installation on them ARCH. If everything went without any errors, feel free to go to the next step.

Step 7: System Installation

As already mentioned earlier, an active Internet connection will be required for the full installation of the Arch, since additional components are loaded from official storage. If the wired connection is set immediately, then for Wi-Fi you must alternate such commands:

WiFi-Menu.

LS / ETC / NetTl

NetTl Start Profile

By defining the connection, you can go to the installation, but first we recommend choosing the most optimal mirror so that the boot process passed as quickly as possible:

  1. Run the file with mirrors via the vim /etc/pacman.d/mirrorlist command.
  2. Opening a list of mirrors through a text editor in Arch Linux

  3. Copy one of the mirrors by double pressing the Y key, and then transfer it up the list by inserting the P key. Exit from the file is carried out by pressing SHIFT +: and input WQ.
  4. Select the optimal mirror to download the necessary Arch Linux files

  5. Run the package installation procedure by entering the PACSTRAP / MNT Base Base-Devel.
  6. Running the installation of the Arch Linux operating system

  7. Expect the installation completion. During this operation, do not restart the computer and do not press any keys on the keyboard.
  8. Waiting for downloading the necessary Arch Linux files

Adding packets will be completed when a new input row appears in the console. This means that you can start the initial system setting.

Step 8: Setup after installation

It is important not only to add all the necessary components, but also to configure the main parameters so that the interaction with the OS is as comfortable as possible. Pay attention to the following actions, they are just intended for optimal configuration:

  1. A configuration file for all mounted file systems is prior to the system folder. It will not only store useful information, but also describe the type of disk integration in the OS. To create a component, use the GenfStab -u / MNT >> / MNT / ETC / FSTAB command.
  2. Creating a configuration file for Arch Linux file systems

  3. The loader is not ready yet, so it is impossible to reboot. To perform further configuration, log in via Arch-Chroot / MNT.
  4. Log in to the Arch Linux operating system after installation

  5. Set the time zone through the Sudo Timedatectl Set-Timezone Europe / Kiev, where Europe / Kiev is the desired region. Use the following command to use Sudo Timedatectl Set-NTP 1 to set the network time protocol.
  6. Installing the system time after installing the Arch Linux system

  7. Previously, you already encountered work in the VIM text editor before installing Arch Linux, but now this important component is missing in the system itself. You can install it by the Pacman -S Vim or Pacman -sy Vim command.
  8. Installing the VIM text editor after installing the Arch Linux system

  9. Confirm the addition of packages by selecting the appropriate option when the query appears.
  10. Confirmation of adding packages to install VIM in Arch Linux

  11. After that, activation of the encodings with which the OS will work. It is necessary for the correct display of various symbols of Cyrillic and Latin. Run the appropriate configuration file: vim /etc/locale.gen.
  12. Starting the locale file to configure after installing Arch Linux

  13. Remove the sign # with suitable lines, for example, with en_us.utf-8 and ru_ru.utf-8. Save the changes and exit the editor.
  14. Select the optimal encodings in the Arch Linux configuration file

  15. It will be needed to update the completed configuration by entering Locale-Gen.
  16. Update Locali after changing the Arch Linux configuration file

  17. Now switch the operating system language into Russian for the convenience of further management: ECHO "LANG = RU_RU.UTF-8"> /etc/locale.conf.
  18. Installing the System Language After installing Arch Linux

  19. Set the computer name that you need when contacting it. Use the ECHO "User-PC"> / etc / hostname command, where the user-PC is the device name.
  20. Creating a new user when installing Arch Linux

  21. It remains only to confirm the user by adding it to the configuration file. First start it with Vim / etc / hosts.
  22. Opening the setup file to confirm the Arch Linux user

  23. Enter the string 127.0.0.1 User-PC.Localdomain User-PC, record and close the editor.
  24. Making a string to confirm the new user Arch Linux

  25. Some processors require an image of early downloads for the correct startup of the OS. If you are not sure if it is needed, just install the image via Mkinitcpio -p Linux.
  26. Installing an additional component for the processor kernel in Arch Linux

  27. Set the password for root access via the passwd command.
  28. Installing a password for superuser rights in Arch Linux

  29. It remains only to install the GRUB bootloader and configure the Internet. It is installed in a standard manner - PACMAN -S GRUB.
  30. Installing the GRUB loader after installing the Arch Linux operating system

  31. After completion, the GRUB-Install / DeV / SDA disk is added to the GRUB-Install / Dev / SDA disk and a separate GRUB-MKConfig -O /Boot/Grub/Grub.cfg configuration file is created.
  32. Add a GRUB bootloader to Arch Linux system files

  33. Setting up the Internet network is also carried out before rebooting the system. Pay attention to the following commands and follow them alternately:

    LS / SYS / CLASS / NET / (Definition of Active Network Interface).

    CP / ETC / NETCTL / ETC / Ethernet-DHCP / ETC / NetTl / Ethernet-DHCP (Copy Configuration File).

    VIM / etc / netctl / Ethernet-DHCP (launch a configuration file through a text editor).

  34. Commands to configure Internet connection after installing Arch Linux

  35. In the configuration file, change the value of Interface to the one you learned earlier through the LS command.
  36. Amendments to the Arch Linux Internet Configuration File Configuration File

  37. Activate the default selected profile: NetTL Enable Ethernet-DHCP.
  38. Enable the default Internet connection profile in Arch Linux

  39. Exit EXIT environments, then unmount all file systems via Umount -R / MNT and restart Arch Linux by printing reboot.
  40. Restarting the Arch Linux operating system after the installation is completed

On this procedure, the complete configuration of the operating system is completed. It remains only to wait for the reboot and you can proceed to work.

Step 9: Using Arch Linux

Typically, the Arch Linux distribution is interested in those users who have already had earlier experience with other simpler assemblies on this core. However, this does not cancel the fact that novice users also come to this platform. They need to be prepared for the fact that most of the actions and settings are carried out through the standard console. You can get acquainted with the implementation of basic functions in our articles on the following links.

See also:

Formatting flash drive in Linux

Installing Adobe Flash Player in Linux

Unpacking TAR.GZ format archives in Linux

Installing Drivers for NVIDIA Video Card in Linux

In addition, today you are faced with a number of popular teams that will have to use frequently in the Terminal. We suggest carefully examine each of them and try to remember the use, syntax and correctness of the input. This will also help detailed materials.

See also:

Frequently used commands in "Terminal" Linux

LN / FIND / LS / GREP in Linux

On this, our article is completed. We hope you easily mastered the entire installation procedure and no difficulties have arisen during its execution. For more information on work in this platform, refer to the official documentation developed by the creators of the system.

General Recommendations Arch Linux

Read more