{"id":374857,"date":"2021-11-30T17:00:00","date_gmt":"2021-11-30T14:00:00","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-install-arch-linux-on-a-pc\/"},"modified":"2021-11-30T17:00:00","modified_gmt":"2021-11-30T14:00:00","slug":"how-to-install-arch-linux-on-a-pc","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-install-arch-linux-on-a-pc\/","title":{"rendered":"#How to Install Arch Linux on a PC"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a36ebc84f7ee\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a36ebc84f7ee\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-install-arch-linux-on-a-pc\/#Download_the_Arch_Linux_ISO\" >Download the Arch Linux ISO<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-install-arch-linux-on-a-pc\/#Preliminary_Steps\" >Preliminary Steps<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-install-arch-linux-on-a-pc\/#Install_the_Arch_Linux_System\" >Install the Arch Linux System<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-install-arch-linux-on-a-pc\/#Creating_the_Necessary_Partitions\" >Creating the Necessary Partitions<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-install-arch-linux-on-a-pc\/#Formatting_the_Partitions\" >Formatting the Partitions<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-install-arch-linux-on-a-pc\/#Installing_and_Configuring_the_System\" >Installing and Configuring the System<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-install-arch-linux-on-a-pc\/#Creating_and_Configuring_Users\" >Creating and Configuring Users<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-install-arch-linux-on-a-pc\/#Setting_Up_the_GRUB_Bootloader\" >Setting Up the GRUB Bootloader<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-install-arch-linux-on-a-pc\/#Install_a_Desktop_Environment_in_Arch\" >Install a Desktop Environment in Arch<\/a><\/li><\/ul><\/nav><\/div>\n<p><strong>&#8220;#How to Install Arch Linux on a PC&#8221;<\/strong><\/p>\n<div>\n<figure style=\"width: 1200px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"type:primaryImage size-full wp-image-767941\" data-pagespeed-lazy-srcset=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/11\/arch-linux-logo.jpg?width=398&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1 400w, https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/11\/arch-linux-logo.jpg?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1 1200w\" sizes=\"auto, 400w, 1200w\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/11\/arch-linux-logo.jpg?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Arch Linux logo on a dark background\" width=\"1200\" height=\"675\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><figcaption class=\"wp-caption-text\"><span class=\"type:primaryImage imagecredit\"><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.shutterstock.com\/image-illustration\/arch-linux-logo-on-dark-matte-1809092941\">Rupesh Pathak\/Shutterstock.com<\/a><\/span><\/figcaption><\/figure>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/archlinux.org\/\">Arch Linux<\/a> is well-known for its complex command-based installation. But once you get familiar with the ins and outs of the process, you can install Arch on any computer without fear of the terminal. We\u2019ll help you get there.<\/p>\n<blockquote class=\"admonishment_note\"><p><strong>Note:<\/strong> The Arch Linux ISO includes a <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">script<\/a> called <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/wiki.archlinux.org\/title\/Archinstall\">archinstall<\/a> meant to help you through the process. As of this writing, the script is still experimental, however, and prone to errors in our testing. This guide will instead cover the standard installation method.<\/p><\/blockquote>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Download_the_Arch_Linux_ISO\"><\/span><a rel=\"nofollow noopener\" target=\"_blank\" name=\"autotoc_anchor_0\">Download the Arch Linux ISO<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The first step is to get the Arch Linux installation image from a suitable mirror. To do that, visit the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/archlinux.org\/download\/\">Arch Linux Download<\/a>\u00a0page, and depending on how you wish to download the ISO, select the appropriate option. The available options include direct download, torrent, virtual machine image, \u201cNetboot\u201d install for wired connections, and more.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-767386 size-full\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/11\/arch-linux-direct-downloads-page.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"arch linux direct downloads page\" width=\"650\" height=\"413\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>To keep it simple, we\u2019ll be doing a direct download. Scroll down to the list of available mirrors and choose one. Selecting a server closer to your geographical location will ensure that you get a fast and stable download speed. Verify the checksums of the ISO to confirm the downloaded file is genuine and secure.<\/p>\n<p>The next steps include\u00a0creating a bootable USB drive, restarting your computer, and booting from the newly-created installation media instead of the hard disk. The Arch Linux boot interface will load and you\u2019ll be asked to choose from the various options displayed.<\/p>\n<p>Select the default highlighted option by hitting \u201cEnter.\u201d After the system has successfully loaded files necessary for the installation, you\u2019ll see the \u201croot@archiso\u201d prompt.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Preliminary_Steps\"><\/span>Preliminary Steps<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Moving on, you need to have an active internet connection for the installation to complete. The Arch installer states that <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/217463\/wi-fi-vs.-ethernet-how-much-better-is-a-wired-connection\/\">Ethernet and DHCP connections should work automatically. However, users on a wireless network will have to set up a connection manually.<\/p>\n<p>Just to be sure, check if you are connected to a network by typing <code>ping google.com<\/code>. If the output looks something like this, then you can skip ahead to <a rel=\"nofollow noopener\" target=\"_blank\" href=\"#moka_anchor_install\">the next section<\/a>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-766176 size-full\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/11\/check-internet-connection-arch-linux.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"check network on Arch Linux with ping\" width=\"650\" height=\"292\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>However, if the \u201cTemporary failure in name resolution\u201d error pops up, you need to establish an internet connection using the iwctl command.<\/p>\n<p>First, launch the utility interactively by typing <code>iwctl<\/code> in the terminal. Then, check the name of your wireless interface by issuing the\u00a0<code>device list<\/code> command. Generally, the name of the wireless interface will start with a \u201cw\u201d,\u00a0 such as wlan0 or wlp2s0.<\/p>\n<p>Next, run the following commands to scan for your\u00a0SSID\u00a0and connect to it. Replace <code>[device]<\/code> and <code>[SSID]<\/code> in the commands with your wireless interface and Wi-Fi name respectively.<\/p>\n<pre>iwctl station [device] get-networks&#13;\niwctl station [device] connect [SSID]<\/pre>\n<p>The system will then ask you for the Wi-Fi password if you have one set up. Type it in and press \u201cEnter\u201d to continue. Run <code>ping google.com<\/code> again to verify the connection.<\/p>\n<p>Enable network time synchronization using timedatectl by running the following command:<\/p>\n<pre>timedatectl set-ntp true<\/pre>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Install_the_Arch_Linux_System\"><\/span><a rel=\"nofollow noopener\" target=\"_blank\" name=\"moka_anchor_install\">Install the Arch Linux System<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>With your PC connected to the internet, you\u2019re ready to begin. The\u00a0Arch installation process at its core is similar to <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/693588\/how-to-install-linux\/\">installing any other Linux distro. So what\u2019s the catch?<\/p>\n<p>While other distros provide a graphical user interface to configure and set up the OS, Arch Linux\u00a0comes with only a command-line interface. Any instructions, commands, or configurations need to be done through the shell.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Creating_the_Necessary_Partitions\"><\/span>Creating the Necessary Partitions<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>To install Arch, you\u2019ll need to create three partitions, namely <strong>EFI<\/strong>, <strong>root<\/strong>, and <strong>swap<\/strong>. List the available storage devices on your system using <code>fdisk -l<\/code>. Most of the time, the HDD would be listed as <code>\/dev\/sda<\/code> and SSDs will be listed as <code>\/dev\/nvme0n1<\/code> .<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/106873\/how-to-use-fdisk-to-manage-partitions-on-linux\/\">Run <code>fdisk<\/code> \u00a0by typing <code>fdisk \/dev\/sda<\/code> or <code>fdisk \/dev\/nvme0n1<\/code>, depending on whether you\u2019re installing the OS on an HDD or SSD. Then, type <code>g<\/code> and hit \u201cEnter\u201d to create a new GPT partition table.<\/p>\n<p><strong>RELATED:<\/strong> <strong><em>How to Use Fdisk to Manage Partitions on Linux<\/em><\/strong><\/p>\n<p>Type <code>n<\/code> to create a new EFI partition and choose the partition type <code>primary<\/code> . Hit \u201cEnter\u201d twice to proceed with the default partition number and first sector value.<\/p>\n<p>For the partition size, you can either enter the sector number manually or specify the size you want the partition to have. Since you don\u2019t want to waste disk space on EFI partitions, any number between 500M and 1G would work. Type <code>+550M<\/code> and press \u201cEnter\u201d to continue.<\/p>\n<p>You are free to replace <code>550M<\/code> in the aforementioned command with the size you want for the partition.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-767371 size-full\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/11\/creating-partitions-using-fdisk-e1636447811608.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"create partitions with fdisk\" width=\"650\" height=\"448\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Similarly, create a swap partition with <code>+2G<\/code> as the last sector value. Finally, create a root partition and allocate all the remaining sectors to it by simply continuing with the default configurations.<\/p>\n<p><strong>RELATED:<\/strong> <strong><em>How Big Should Your Page File or Swap Partition Be?<\/em><\/strong><\/p>\n<p>By default, all the partitions will have the \u201cLinux Filesystem\u201d type. To change this, type <code>t<\/code> and hit \u201cEnter\u201d to proceed. Select the EFI partition by entering <code>1<\/code> . Then, type <code>ef<\/code> to change the filesystem to EFI System type.<\/p>\n<p>Similarly, select the swap partition (partition number 2) and type <code>82<\/code> to convert the partition type to Linux swap. The root partition should be of Linux filesystem type, so we don\u2019t need to change it.<\/p>\n<p>Type <code>w<\/code> and hit \u201cEnter\u201d to write the changes to the disk.<\/p>\n<p><strong>RELATED:<\/strong> <strong><em>How to Choose a Partition Scheme for Your Linux PC<\/em><\/strong><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Formatting_the_Partitions\"><\/span>Formatting the Partitions<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Now you need to format the partitions using the\u00a0<a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/443342\/how-to-use-the-mkfs-command-on-linux\/\"><code>mkfs<\/code> command. Format the <code>\/dev\/sda1<\/code> (EFI) partition to FAT32 by typing:<\/p>\n<pre>mkfs.fat -F32 \/dev\/sda1<\/pre>\n<p>Again, run the following command to format the <code>\/dev\/sda3<\/code> (root) partition to ext4:<\/p>\n<pre>mkfs.ext4 \/dev\/sda3<\/pre>\n<p>Issue the following commands one by one to format and enable the swap partition:<\/p>\n<pre>mkswap \/dev\/sda2&#13;\nswapon \/dev\/sda2<\/pre>\n<blockquote class=\"admonishment_warning\"><p><strong>Warning:<\/strong> For those who are\u00a0dual-booting Linux with Windows, make sure you have the correct partitions set up. Pay extra attention when you\u2019re formatting partitions or creating new ones, as a mistake here can render your Windows system useless.<\/p><\/blockquote>\n<h3><span class=\"ez-toc-section\" id=\"Installing_and_Configuring_the_System\"><\/span>Installing and Configuring the System<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>To be able to install Arch on your disk, you need to mount the created partitions to appropriate directories. Mount the root partition ( <code>\/dev\/sda3<\/code> ) to the <code>\/mnt<\/code> directory.<\/p>\n<pre>mount \/dev\/sda3 \/mnt<\/pre>\n<p>The next step is installing the base Linux packages to the mounted root partition.<\/p>\n<pre>pacstrap \/mnt base linux linux-firmware<\/pre>\n<p>This will take some time depending on your network connection. Once done, generate a <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/howto\/38125\/htg-explains-what-is-the-linux-fstab-and-how-does-it-work\/\">file system table using the <code>genfstab<\/code> command.<\/p>\n<pre>genfstab -U \/mnt &gt;&gt; \/mnt\/etc\/fstab<\/pre>\n<p>The Arch Linux system is up and running on the <code>\/mnt<\/code> directory. You can change root to access the system by typing:<\/p>\n<pre>arch-chroot \/mnt<\/pre>\n<p>The change in the bash prompt denotes that you\u2019ve now logged in to the newly installed Arch Linux system. Before you can proceed further, you\u2019ll have to configure some settings and install the necessary packages for the system to work properly.<\/p>\n<p>Set the local timezone by creating a symlink between the \u201c\/usr\/share\/zoneinfo\u201d and \u201c\/etc\/localtime\u201d directories.<\/p>\n<pre>ln -sf \/usr\/share\/zoneinfo\/Region\/City \/etc\/localtime<\/pre>\n<p>Replace the \u201cRegion\u201d and \u201cCity\u201d in the above command with the appropriate timezone. You can refer to <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_tz_database_time_zones\">this timezone database<\/a> to check the region and city you need to input.<\/p>\n<p>Then, sync the hardware clock with the system time by running:<\/p>\n<pre>hwclock --systohc<\/pre>\n<p>Before moving on, install Vim (or another text editor of your choice) and the \u201cnetworkmanager\u201d package.<\/p>\n<pre>pacman -S vim networkmanager<\/pre>\n<p>Next, edit the \u201c\/etc\/locale.gen\u201d file using your text editor and uncomment the locale statement that suits your needs. For the purpose of this guide, we will uncomment the <code>en_US.UTF-8 UTF-8<\/code> line in the file using Vim.<\/p>\n<pre>vim \/etc\/locale.gen<\/pre>\n<p>After editing the file, type <code>locale-gen<\/code> in the terminal to generate the locale configuration.<\/p>\n<p>Next, create a new hostname file inside <code>\/etc<\/code> and add the hostname you want for your computer in the file. This can be anything you want, and you don\u2019t need to enter anything but the name. When you\u2019re done, don\u2019t forget to save the file.<\/p>\n<pre>vim \/etc\/hostname<\/pre>\n<p>Create another text file with the name <code>hosts<\/code> under the <code>\/etc<\/code> directory.<\/p>\n<pre>vim \/etc\/hosts<\/pre>\n<p>You\u2019ll notice that the file already contains some comments. Leave the comments as is and append the following text to the file. Remember to replace <code>hostname<\/code> in the command with the system hostname you set in the previous step.<\/p>\n<pre>127.0.0.1\u00a0 \u00a0 \u00a0 \u00a0 localhost&#13;\n::1\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 localhost&#13;\n127.0.1.1\u00a0 \u00a0 \u00a0 \u00a0 hostname.localdomain\u00a0 \u00a0 \u00a0 \u00a0 hostname<\/pre>\n<h3><span class=\"ez-toc-section\" id=\"Creating_and_Configuring_Users\"><\/span>Creating and Configuring Users<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Set up the root user password by typing the <code>passwd<\/code> command. Then, create an additional non-root user using <code>useradd<\/code> as follows, replacing <code>username<\/code>\u00a0with your username:<\/p>\n<pre>useradd -m username<\/pre>\n<p>Configure the new user\u2019s password using the <code>passwd<\/code> command, again replacing <code>username<\/code> with your username.<\/p>\n<pre>passwd username<\/pre>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/50787\/add-a-user-to-a-group-or-second-group-on-linux\/\">Add the new user to the groups <code>wheel<\/code> , <code>audio<\/code> , and <code>video<\/code> using the command given below. Replace <code>username<\/code> with your username, and note that the group names in the command don\u2019t have spaces after the commas.<\/p>\n<pre>usermod -aG wheel,video,audio username<\/pre>\n<h3><span class=\"ez-toc-section\" id=\"Setting_Up_the_GRUB_Bootloader\"><\/span>Setting Up the GRUB Bootloader<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>First, install the <code>grub<\/code> package using pacman.<\/p>\n<pre>pacman -S grub<\/pre>\n<p>Then, install these additional packages required for the bootloader to work properly.<\/p>\n<pre>pacman -S efibootmgr dosfstools os-prober mtools<\/pre>\n<p>Mount your EFI partition ( <code>\/dev\/sda1<\/code> ) to the <code>\/boot\/EFI<\/code> directory. Note that you\u2019ll have to create the directory first with <code>mkdir<\/code> .<\/p>\n<pre>mkdir \/boot\/EFI&#13;\nmount \/dev\/sda1 \/boot\/EFI<\/pre>\n<p>Finally, run the <code>grub-install<\/code> script to install the bootloader in the EFI directory.<\/p>\n<pre>grub-install --target=x86_64-efi --efi-directory=\/boot\/EFI --bootloader-id=grub<\/pre>\n<p>Generate a GRUB configuration file using <code>grub-mkconfig<\/code> as follows:<\/p>\n<pre>grub-mkconfig -o \/boot\/grub\/grub.cfg<\/pre>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Install_a_Desktop_Environment_in_Arch\"><\/span><a rel=\"nofollow noopener\" target=\"_blank\" name=\"autotoc_anchor_8\">Install a Desktop Environment in Arch<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Unlike other Linux distros, Arch Linux doesn\u2019t ship with a preinstalled <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/163154\/linux-users-have-a-choice-8-linux-desktop-environments\/\">desktop environment. And if you want to control the system via a GUI, you\u2019ll have to install one manually.<\/p>\n<p>You can install whichever DE you prefer, but we will install the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/kde.org\/plasma-desktop\/\">KDE Plasma<\/a> desktop on this system. Before that, however, let\u2019s configure the display server, network manager, and similar services.<\/p>\n<p>Run the following command to install the <code>xorg<\/code> , <code>plasma-meta<\/code> , and <code>kde-applications<\/code> packages:<\/p>\n<pre>pacman -S xorg plasma-meta kde-applications<\/pre>\n<p>Then, enable the SDDM and NetworkManager services by typing:<\/p>\n<pre>systemctl enable sddm&#13;\nsystemctl enable NetworkManager<\/pre>\n<p>Exit the arch-chroot environment by typing <code>exit<\/code>. Then, unmount the root partition mounted in the <code>\/mnt<\/code> directory as follows:<\/p>\n<pre>umount -f \/mnt<\/pre>\n<p>Finally, restart your system by typing <code>reboot<\/code>\u00a0and remove the installation media. Once the system boots, you\u2019ll notice that the dark terminal screen is now replaced with the colorful SDDM splash screen.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-767374 size-full\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/11\/arch-linux-sddm-login-screen.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"arch linux login screen after reboot\" width=\"650\" height=\"408\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>To log in, type the user password and hit \u201cEnter.\u201d You can also install multiple desktop environments\u00a0and switch between each using the \u201cSession\u201d dropdown menu in the splash screen.<\/p>\n<p><strong>RELATED:<\/strong> <strong><em>How to Install and Use Another Desktop Environment on Linux<\/em><\/strong><\/p>\n<\/div>\n<p><script>\n setTimeout(function(){\n  !function(f,b,e,v,n,t,s)\n  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n  n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n  n.queue=[];t=b.createElement(e);t.async=!0;\n  t.src=v;s=b.getElementsByTagName(e)[0];\n  s.parentNode.insertBefore(t,s) } (window, document,'script',\n  'https:\/\/connect.facebook.net\/en_US\/fbevents.js');\n   fbq('init', '335401813750447');\n   fbq('track', 'PageView');\n  },3000);\n<\/script><\/p>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.howtogeek.com\/766168\/how-to-install-arch-linux-on-a-pc\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#How to Install Arch Linux on a PC&#8221; Rupesh Pathak\/Shutterstock.com Arch Linux is well-known for its complex command-based installation. But once you get familiar with the ins and outs of the process, you can install Arch on any computer without fear of the terminal. We\u2019ll help you get there. Note: The Arch Linux ISO includes&#8230;<\/p>\n","protected":false},"author":1,"featured_media":374858,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/11\/arch-linux-logo.jpg?height=200p&trim=2,2,2,2","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-374857","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/374857","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=374857"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/374857\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/374858"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=374857"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=374857"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=374857"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}