if you need to install our Arch Linux in the UEFI mode with the gtp partition
table then watch this video and you will learn the most up-to-date installation
of our Arch Linux in a very concise video
I have already made the video tutorial on how to install Arch Linux
where I showed the whole process in less than 10 minutes
in that video the installation was performed in the legacy mode with
the MBR partition table versus the UEFI mode and the GPT partition table in this
tutorial in my personal view the installation of Arch Linux in the
legacy mode is more conservative it is simpler and it is also more reliable but
many of you asked me to show you the tutorial on how to install Arch Linux in
the UEFI mode so unless you need or you really want to install your Arch Linux in
the UEFI mode I recommend you to go to the previous video and do the legacy
installation but if you want to learn more advanced features such as UEFI mode
and the GPT partition table or your hardware requires to perform the
installation only in the UEFI mode you need to follow up this tutorial let's
get started first you need to download the Arch Linux installation ISO you go
to the website Arch Linux dot-org and here you can find the download link you
click on it you can download either torrent if you know how to use torrent or you
can use some direct links here just find your country and click on any links here
among all these files you need to download the one which ends with dot ISO
click on it and save it when the ISO is downloaded you need to write it to your
USB flash drive and perform the installation I have already made a video
on how to create a bootable USB Drive you can watch it here but in this
tutorial I will show you how to install originals in a VirtualBox and this is
what I also recommend you to do try to install a Linux VirtualBox first
this way you will practice and you will better know the whole process so it will
be easier for you to do the installation on the
real hardware so in the in show box you need to create a new machine here we
give it a name Arch Linux I usually give two gigs of RAM but one gig is also fine
if you don't have enough RAM you can also keep it at 1 gigabyte and you need
to create a new hard disk here keep it the default the virtual disk image
dynamically allocated give it 20 gigs and if you want you can also click on
this icon and change the location of this Arch Linux virtual hard drive
next click create so virtual machine for Arch Linux is almost done we
just need to change some settings click on the Settings icon if you don't see
this menu for example if it looks like this you just need to do right click
here and select show toolbar next click on the settings I will skip most of
these settings except this system tab here you need to enable efi mode because
we're gonna do the installation of Arch Linux in the UEFI mode so we need to
enable this feature in the Virtualbox ok now everything is fine and we can
start the installation just click on the start icon or just double click on this
Arch Linux here you need to specify the path to the downloaded Arch Linux ISO
or if you don't see this menu you can also go to the devices here optical
drives and choose the image it will be the same next you just need to click
reset here and this is our Arch Linux installation the boot process of the our
Arch Linux ISO image in the VirtualBox in UEFI mode is very slow and this is normal
this is described in the Arch Linux Wiki so you just need to wait one or
maybe two minutes so now the system is loaded and we can start the installation
process the first thing we need to check is the internet connection in this
tutorial I use wired internet connection and I also recommend you to use wired
internet connection to check if your internet works you need to type ping for
example you can do this ping three times and any website you like for example we
can use Arch Linux
as you can see ping works and the data is transferred so our internet
connection works fine if it happens that you don't have wired internet connection
and you have to use Wi-Fi then you need to type Wi-Fi menu and run this command
so you will see a window looking like this where you can choose the available
networks you type your password and you should be connected to your Wi-Fi
network but I still recommend you to go to some of your friends or somewhere
else and find the wild internet connection because during the
installation you will need to download a lot of packages so wired internet
connection will be faster and more reliable next let's list the available
partitions of our hard drives you can use different commands here but I will start
with fdisk with the option -l so in this particular case I have only two hard
drives the one is actually the ISO image here as you can see it's here and
another disk is SDA this is the hard drive we just created the virtual hard
drive in this virtualbox so in your case you may have also a real hard drive and
most likely to also be called sda if you have just one hard drive if you have
several hard drives look at their size and define which one you want to use to
install Arch Linux so this the hard drive doesn't have any partition table
so we need to create one it's also possible that you already have a
partition table so you can skip this step just follow the steps after the
partition is created either use the program cfdisk and I want to partition
the disk sda here is the first difference from my previous tutorial
where I showed the installation in the legacy mode I created a DOS partition
table in other words it's the same as MBR partition table but this is the
installation in the UEFI mode and the UEFI mode is also compatible with GPT
partition table and GPT partition table is more advanced you can use it with larger
your hard drives and it is also more flexible in terms of number of
partitions you can have on it so let's select GPT here so we have 20 gigs of
space let's create a new partition and the first partition we need to create is
a UEFI partition this is where the bootloader will be installed it's enough
to have a 500 mega base you can see we have created one partition here and we
have 19.5 gigabytes of free let's create a new partition on
this free space you need to select it with your arrow keys and click new again
and we'll make 10 Giga base of our root partition table this is a virtual
machine but if you install a Linux on the real Hardware I recommend you to use
at least 20 gigs and the rest of the space will they use to create our home
partition so after that you need to write this table to your hard drive type
yes here and quit I'll go press ctrl+L to clean the screen and list the
partition again you can go for the history of your commands with your arrow
keys if you press up key you will see this command which we have typed before
now the SDA disk has free partitions here as you can see we need to format
them so the first partition is a UEFI partition and it needs to be formatted
in a fat filesystem you type make FS fat with option F 32 and the path to this
partition dev sda1 enter so the fat file system has been created on this
partition and the other two partitions I will format with ext4
let's clean the screen the next step we need to mount our route and home
partition you type mount and our root partition is the sda2 which needs
to be mounted to mnt now it is mounted next we need to create a home
directory in the /mnt folder and mount the home partition which is sda3 to this
home folder now we can list all the mounting points and you can see that
sda2 is mounted to /mnt and sda3 is mounted to /mnt/home for now we don't
touch sda1 which is our UEFI partition we will use it later so now we start the
installation process you need to type the comment pacstrap with option -i to
see the information and you install all the packages into the /mnt
where our root partition is mounted and we will install base and base-devel
packages through all this process you just need to select all and yes here so this
is a longest the installation part of this video I will speed up this part of
the video to save your time but in real world you go need to wait quite a while
and two of these packages are installed so all packages have been installed
let's clean this screen and the next we need to generate our fstab file you
type genfstab with the option U and option p /mnt and everything will be saved to a
mnt etc fstab
if you're curious what the option u and p
mean you can just type the command with the option help and you will see the
description of these options next we need to chroot our account so you
type Arch chroot and we will chroot to mnt so what it means that
we will go to our newly installed system as a root user but it is still mounted
to mnt so we specify the path to this directory and we will also use bash
here so now we are located in the system we have just installed because
previously we logged in as a user of the ISO file but now we are logged in to the
system we have installed so if you type LS you can see here the directories
which have been just created during the installation process we still need to do
few more installation steps here first we need to set the locale you type
Nano etc locale gen enter and here you need to find your locale
in my case I will use English US so this is nano editor if you are not familiar
you can work here if you walk down you will see different options and this is
the option W so if you press ctrl W you will be able to search for terms here
and we need to find option English us enter and as you can see it has found
this option here this is what we need so we just remove this # sign and this is
a workout which will be used on the system ctrl+O to save enter and
ctrl X to exit from the editor let's clean the screen so and now you can
generate the locale you type locale gen and press enter so the generation of
the locale is complete next we need to set the time zone for our system you type
Ln which locate a symbolic link is option SF usr share zone info and
here you need to select the option which fits you for example if you press tab
here you will see all the available options in my case I need to use Europe
again you can press tab here and you will see all the available cities here
and I will use Stockholm here next I will type etc and save this symbolic
link to locale time enter the time zone is set now we also need to set the time
you type hwclock with option --systohc and --UTC enter so the time zone and the
time I set now we need to set the hostname you type echo next you need to
type the name you want to give to your computer I will name it archPC and it
needs to be saved to etc host name and you also need to add this name to our
hostname you need to type nano etc hosts enter and here you need to add this
line 127.0.0.1 local host dot local domain and the name of your computer
archPC in my case if you use a static IP address you need to replace this one
two seven zero one one with your static IP address in this case it is a dynamic
IP address ctrl o to save ctrl X to exit from the editor so next we need to
enable the network so again this is only for the wired internet connection
unfortunately I don't have a Wi-Fi card on this computer so I cannot show you
how to set a Wi-Fi so just go to Arch Linux wiki and look how to set the Wi-Fi
if you have Wi-Fi only so we need to install network manager to do that you
type pacman with the option S and the name of the package network manager and install
all the needed packages after the installation enabl it type systemctl
unable and here it is important you type network manager with the capital and
manager also starts with the capital as a one word enter so this will create some
symbolic links which will launch a network manager during the boot of your
system now we need to set the root password it
is as simple as typing the comment passwd and type your password blindly here
you see nothing when you type the type it once and repeat so the password is
set so the next step is the most crucial step this is where we will install our
group bootloader and this is the step where the installation process of UEFI
mode is very different from the legacy mode first we need to install all the
necessary packages type pacman with the option -S and install grub and efibootmgr
yes now create the efi directory which will be located in our
boot folder is the name efi and mount the efi partition to this directory if
you remember the efi partition of this system is dev sda1 this is 500
megabytes partition we have created in the very beginning and it will be
mounted to boot efi so you can check the mounting point with the command lsblk
and here you can see that sda1 partition is mounted to boot efi we can
start the installation of the grub you type grub install again this grub
installation command is different from the legacy installation so be very
careful with all the options you type here in the option target you need to
specify x86 underscore 64 efi then you need to specify the bootloader ID you
can give it any name I will use grub here and I also recommend you to use the
same name this way it will be easier for you to follow this tutorial and the last
option is efi directory which will be the directory we have just created boot
if I just make sure that all the options are typed correctly and press Enter so
as you can see the grub has been installed with no errors which is very
good now we need to generate the config file for the installed grub bootloader
you need to type grub make config with the option oh this is where the config
will be outputted and it should be located in boot grub dot cfg enter so
the grub bootloader has been installed and basically the minimal installation
of Arch Linux is finished for now and if you install it on your
hard day in most of the cases your system should work fine after all these
steps but unfortunately efi mode doesn't work really well in a VirtualBox and
also on some hardware you may have some problems so we need to do some
additional trick with our bootloader to make sure that our system always boots
again this is another step by things that the UEFI installation is more
complicated and it is trickier than the legacy installation because after the
legcy installation we would have finished at this step but here we need
to do some additional configuration with the boot loader make directory boot efi
EFI with capitals and boot directory is also with capitals created now we need to
copy grub bootloader we have just installed to this newly created
directory and then you copy you also need to rename it so the name of this
boot loader will be boot x64 efi all capital letters this is a boot loader
which will be recognized by efi during the boot system in case it fails to boot
from the original boot loader so we have copied our boot loader to this boot
folder and to be even safer we can also create a startup script for efi to do
that you need to type nano this script will be located in boot efi
and the name of the script is startup dot nsh and here you need to type this
line bcf boot add one fs0 column and here you need to use reverse slash so
usually in linux to use this way but here we need to type another slash which
is a backward slash I think you type efi grub grub x64 efi so here i type
the path to the grub we have just installed i just use the backward slash
in this case and you can give a name to this boot entry for example you can name
it my grub bootloader enter and type exit so be very careful that you type
everything as you can see on this screen ctrl O to save these changes and
ctrl X to exit so now you can type the command exit so we will exit from
this chroot account next we can unmount all mounted
partitions to do that we do a recursive unmount from mnt and reboot hopefully
after the reboot diversity this GRUB welcome screen with Arch Linux installed and
now as you can see we have booted in our Arch Linux system so this is a very
minimal installation of Arch Linux there is no graphical environments yet
but don't worry you are just few steps away from the finalizing this
installation before we continue to the next step if this tutorial is useful for
you consider subscribing and activate the bell notification so you want miss a
new video so to log into your system you can only use the root account because
this is on the account which we have create from this system
you type root and you need to type the password which you created during the
passwd command so now we are logged in to Arch Linux
system with the root account and the first step would be logical
to create a user account because it's another good practice to always work
from the root account you type user add with option M G users so the main group
they will be users and we also need to add optional group which is wheel and we
will use bash shell environment and here you give the username for your account
in my case it's average Linux User or ALU enter if you are curious about all
these options you can type user add is option help and you will see what the
options are using this command mean create a password for newly created user
just type passwd and the name of you username and type your password twice
next we also need to enable sudo privileges follow a newly created user
to do that you type editor with all capital letters nano and visudo enter
and here you need to scroll down with your arrow keys and find this one which
says wheel all equal all all and uncomment it ctrl to save and ctrl X to exit now
we can exit from our root account and login as a new user if you type your
username enter and the password you have just created you should be able to again
to your user account and as you can see it has this dollar sign instead of #
sign so this means you are logged in as a regular user not as a root user to make
our system usable we need to install few more packages we will install audio X
Window System xfce desktop and login manager
and I'll also install VirtualBox guest utilities if you do this installation on
VirtualBox do the same if you install your originals under your hardware you
don't need to install this last package I will copy this command into the
description enter and here select all so here if you have in video graphic card
you can select the second option in my case I have inter video card so I'll
just select the first option and in this step for VirtualBox it is recommended
to use the second option so as you can see it will install many packages so we
say yes here and this is the second part where installation takes quite some time
so again I speed up this part of the video
so the packages are installed and
we are just two steps away from the finalizing our installation process now
we need to create a X initiation file you type echo in the quotations
exec start xfce4 so if you install any other desktop not xfce you will
need to use another command here I copy all the available desktops and
corresponding command for this part in the description and you need to save it
in your home directory with the name dot xinitrc enter and they also need
to enables the login manager again systemctl unable this is the same way as
we enable the network manager lightDM ok it requires root privileges so just
type your password so everything worked fine at this step I also recommend you
to run the command startX to test if your graphical environment works
so the graphical environment works fine and this is the XFC desktop with a minimum install
I will use the default panel here and as you can see there
almost no packages installed in this system
so let's shut down our system
go to the settings of Arch Linux and in the
storage you need to remove Arch Linux ISO just click remove attachment
ok and let's try to boot from the newly installed arch linux this is the lightdm
login screen which is not configured yet so it doesn't have any wallpapers
that's why it's black you type your password and you will be logged in into
your xfce desktop as you have seen the UEFI installation process is a little bit
more complicated than the legacy installation but everything is moving
towards UEFI so sooner or later we will all have to install our arch linux in
the UEFI mode by the way if you want me to do another tutorial on how to
configure xfce desktop on arch linux please give this video a like if it gets
more than 500 likes I will make a follow up tutorial on how to configure xfce
desktop in arch linux but I have already made a video tutorial on things to do
after installing arch linux you can click on it somewhere here on the screen
and I also showed how to configure the KDE desktop on arch linux it also should
be on the screen thank you for watching
Không có nhận xét nào:
Đăng nhận xét