WEBVTT
Kind: captions
Language: en

00:00:00.080 --> 00:00:06.319 align:start position:0%
hi everyone and welcome to this comfy
noons guide on installing Arch Linux

00:00:04.640 --> 00:00:10.280 align:start position:0%
with encryption in today's video I'm
going to be doing a ufi install with an

00:00:08.480 --> 00:00:13.679 align:start position:0%
encrypted rot partition and as you can
tell I've already plugged in my Arch

00:00:11.679 --> 00:00:17.080 align:start position:0%
Linux USB stick and I'm going to press
enter on the first option once we're

00:00:15.400 --> 00:00:20.800 align:start position:0%
done setting up the system today when
you turn it on you're going to be

00:00:18.359 --> 00:00:25.039 align:start position:0%
prompted for a password that password is
going to unlock all of your files and

00:00:23.199 --> 00:00:28.320 align:start position:0%
give you access to them as you would on
a normal system the reason for this

00:00:26.720 --> 00:00:32.920 align:start position:0%
password is to protect your files if
anybody was ever able to steal your hard

00:00:30.759 --> 00:00:36.360 align:start position:0%
drive or SSD and plug it into their
computer this prevents your files from

00:00:34.480 --> 00:00:39.520 align:start position:0%
falling into the wrong hands while the
system is done booting now and we're at

00:00:37.760 --> 00:00:44.160 align:start position:0%
the Arch Linux shell the first thing I'm
going to do is run the set font space- D

00:00:42.480 --> 00:00:47.680 align:start position:0%
command which is going to make our font
size twice as big I'm going to press

00:00:45.879 --> 00:00:51.160 align:start position:0%
enter over here and obviously this
command is not necessary if you're just

00:00:49.559 --> 00:00:54.800 align:start position:0%
doing the install by yourself but for
the sake of my viewers and most

00:00:52.840 --> 00:00:57.920 align:start position:0%
importantly their eyes I'm going to make
the text a little bigger in today's

00:00:56.239 --> 00:01:02.359 align:start position:0%
guide the next thing we want to do is
clear the screen by typing clear or

00:01:00.079 --> 00:01:08.159 align:start position:0%
pressing crl L and then we're going to
load a keyboard layout to do this we're

00:01:04.720 --> 00:01:12.759 align:start position:0%
going to type load Keys space it for
example for the Italian layout and press

00:01:10.880 --> 00:01:18.040 align:start position:0%
enter now I have an Italian keyboard
layout but I'm going to go back to the

00:01:14.040 --> 00:01:21.680 align:start position:0%
US One by typing load Keys space us just
like that now that we have the keyboard

00:01:19.840 --> 00:01:25.079 align:start position:0%
and the terminal how we want it we need
to start setting up our internet

00:01:23.360 --> 00:01:29.400 align:start position:0%
connection I highly recommend plugging
in an ethernet cable into your computer

00:01:27.200 --> 00:01:34.439 align:start position:0%
or laptop to make sure that this process
is as easy as possible but if your only

00:01:32.200 --> 00:01:40.880 align:start position:0%
way of accessing the internet is Wi-Fi
you can use the iwct utility and press

00:01:37.560 --> 00:01:44.000 align:start position:0%
enter over here to enter the iwd shell
now obviously I can demonstrate this in

00:01:42.560 --> 00:01:48.240 align:start position:0%
great detail since I'm on a virtual
machine right now and I can't show Wi-Fi

00:01:46.560 --> 00:01:50.880 align:start position:0%
however I'm going to have a guide Linked
In the description that shows you how to

00:01:49.520 --> 00:01:56.039 align:start position:0%
do everything in short you're going to
want to type station space list to see

00:01:53.479 --> 00:02:03.840 align:start position:0%
all the Wi-Fi devices on your computer
and then station let's say wl0 is one of

00:01:59.520 --> 00:02:07.680 align:start position:0%
my WI devices space get- networks and
this command would list all the networks

00:02:05.680 --> 00:02:10.800 align:start position:0%
on the you know in the surrounding area
obviously it's not working because I

00:02:09.080 --> 00:02:14.879 align:start position:0%
don't have Wi-Fi on this virtual machine
but once you're done setting all that up

00:02:12.560 --> 00:02:18.360 align:start position:0%
you can type exit and press enter and go
back to the main terminal screen to make

00:02:16.720 --> 00:02:23.599 align:start position:0%
sure you have internet access all you
got to do is type ping and then a domain

00:02:20.599 --> 00:02:28.080 align:start position:0%
name like dhi.org for example press
enter and confirm that it does indeed

00:02:25.920 --> 00:02:32.160 align:start position:0%
ping the site and ping back I'm going to
type contrl c to close this command now

00:02:30.720 --> 00:02:37.319 align:start position:0%
that we have an internet connection we
can start configuring our discs I'm

00:02:34.280 --> 00:02:41.120 align:start position:0%
going to type lsblk to see the situation
as you can see there's a dis right there

00:02:38.760 --> 00:02:45.000 align:start position:0%
with 16 GB of space that's the main one
I'm going to be using in today's video

00:02:42.879 --> 00:02:49.319 align:start position:0%
and it's named SDA the tool I'm going to
be using to configure it is CF disk

00:02:47.720 --> 00:02:52.519 align:start position:0%
which is a simple graphical tool to
configure diss to select our disk we're

00:02:51.519 --> 00:02:59.319 align:start position:0%
going to
addd for/ SDA as an option now you may

00:02:56.680 --> 00:03:04.200 align:start position:0%
not have SDA as your disc you may have
SD B SDC and so on like all the letters

00:03:02.200 --> 00:03:11.879 align:start position:0%
of the alphabet or maybe you might have
nvme 0 N1 or 1 N1 or something like that

00:03:08.120 --> 00:03:16.440 align:start position:0%
or even MMC blk1 if you're using emmc
storage in my case I'm using a regular

00:03:14.120 --> 00:03:21.840 align:start position:0%
SATA device so I'm going to do
SDA just like that now pressing enter if

00:03:19.799 --> 00:03:25.720 align:start position:0%
your disc is completely fresh and new
and you've never used it before you

00:03:23.400 --> 00:03:30.959 align:start position:0%
might be prompted for a label type since
today's video is a ufi install I'm going

00:03:27.879 --> 00:03:34.159 align:start position:0%
to pick GPT and press enter once again
if your dis is new you're going to see

00:03:32.400 --> 00:03:37.599 align:start position:0%
nothing here it's just going to say free
space and you can start partitioning

00:03:36.200 --> 00:03:41.360 align:start position:0%
however your disc may look something
more like this with multiple partitions

00:03:40.200 --> 00:03:44.959 align:start position:0%
because we're going to be wiping
everything and installing only Linux in

00:03:43.159 --> 00:03:48.400 align:start position:0%
today's video I'm going to go to every
single one of these partition using the

00:03:46.400 --> 00:03:52.599 align:start position:0%
up and down arrows and then using my
left and right arrows I'm going to go to

00:03:50.280 --> 00:03:55.920 align:start position:0%
the delete option and press enter then
I'm going to go down to the next one go

00:03:53.920 --> 00:03:59.760 align:start position:0%
to delete and press enter and once again
to the next one and go down and press

00:03:57.840 --> 00:04:03.920 align:start position:0%
enter on delete we can start config
figuring our basic partitions the first

00:04:01.720 --> 00:04:09.439 align:start position:0%
one is going to be a
512 capital M for M bytes partition

00:04:07.560 --> 00:04:12.280 align:start position:0%
which we're going to use for booting so
I'm going to press enter and as you can

00:04:10.879 --> 00:04:16.040 align:start position:0%
see it's configured it then we're going
to be left with this free space all you

00:04:14.159 --> 00:04:19.479 align:start position:0%
got to do here is press enter and leave
it at the default size cuz it's going to

00:04:17.519 --> 00:04:23.479 align:start position:0%
fill up the rest of the dis by default
press enter again and you'll have a new

00:04:21.680 --> 00:04:29.720 align:start position:0%
Partition you can leave these pretty
much like this by default now I'm going

00:04:25.400 --> 00:04:32.880 align:start position:0%
to go down to right press enter type yes
and it's going to permanently write

00:04:30.919 --> 00:04:37.000 align:start position:0%
those changes to the dis finally we can
go down to where it says quit and press

00:04:34.600 --> 00:04:41.560 align:start position:0%
enter to leave CF dis all right so if we
run LSB okay again as you can see we

00:04:39.240 --> 00:04:44.639 align:start position:0%
have SDA 1 and SDA 2 configured over
there the first thing we're going to do

00:04:42.720 --> 00:04:49.919 align:start position:0%
is format our boot partition this is
pretty straightforward all we got to do

00:04:45.960 --> 00:04:57.880 align:start position:0%
is run mkfs fat space- Capital
F32 space slev SL SDA 1 just like that

00:04:55.680 --> 00:05:01.240 align:start position:0%
we're going to press enter and it's done
however our rot partition because going

00:04:59.800 --> 00:05:07.240 align:start position:0%
to be encrypting it is going to be a
little bit more tricky we're going to

00:05:02.479 --> 00:05:16.000 align:start position:0%
run Crypt setup just like that lux
capital F format space

00:05:11.199 --> 00:05:19.720 align:start position:0%
slev sda2 and press enter this will give
you a warning about overwriting data

00:05:17.600 --> 00:05:23.199 align:start position:0%
we're going to type yes in capital
letters over here and press enter and

00:05:22.000 --> 00:05:28.360 align:start position:0%
now we're going to have to come up with
a password for the dis since this video

00:05:26.039 --> 00:05:31.560 align:start position:0%
is just an example I'm going to do 1 2 3
4 now obviously in real life you want to

00:05:30.160 --> 00:05:35.120 align:start position:0%
use a much more secure password than
that but 1 2 3 4 will do for the

00:05:33.400 --> 00:05:38.680 align:start position:0%
purposes of this video so I'm going to
press enter I'm going to type it again

00:05:36.440 --> 00:05:41.560 align:start position:0%
for the verification press enter and now
it's going to start encrypting and

00:05:39.840 --> 00:05:45.000 align:start position:0%
formatting the drive now this might take
a little bit so give it a while all

00:05:43.160 --> 00:05:50.479 align:start position:0%
right so it's done which means that we
can now use the Crypt setup tool to open

00:05:48.680 --> 00:05:56.479 align:start position:0%
the encrypted partition we're going to
run Crypt setup open

00:05:53.240 --> 00:06:00.960 align:start position:0%
/dev SL sda2 make sure you select the
right partition here and then you have

00:05:58.199 --> 00:06:05.680 align:start position:0%
to give it a name now in today's video
I'm going to be using Crypt root which

00:06:03.680 --> 00:06:10.520 align:start position:0%
is a pretty common one so I'm going to
press enter and now we have to type the

00:06:07.680 --> 00:06:14.199 align:start position:0%
password which we set which is 1 2 3 4
and we're going to press enter all right

00:06:12.160 --> 00:06:20.080 align:start position:0%
so as you can see it's opened and now if
we run lsblk again we'll see that we

00:06:16.919 --> 00:06:24.840 align:start position:0%
have SDA SDA 1 and SDA 2 as partitions
but under SDA 2 we have another thing

00:06:22.520 --> 00:06:30.080 align:start position:0%
that says Crypt root that is going to be
our decrypted root partition now that

00:06:28.039 --> 00:06:34.960 align:start position:0%
we've decrypted it we can set a file
system on it like we did with sda1 so

00:06:32.240 --> 00:06:40.319 align:start position:0%
I'm going to run mkfs
exd4 or alternatively if you prefer

00:06:37.560 --> 00:06:47.840 align:start position:0%
butter FS you can do MK fs.
btrfs I'm going to stick to ext4 since

00:06:43.000 --> 00:06:53.240 align:start position:0%
it's the more default one slev SL mapper
SL Crypt rout just like that so I'm

00:06:51.039 --> 00:06:57.240 align:start position:0%
going to press enter and as you can see
it's formatted it using exd4 now that

00:06:55.720 --> 00:07:00.319 align:start position:0%
we've done all of our disk formatting
with all the file systems we can

00:06:58.840 --> 00:07:06.759 align:start position:0%
actually start mounting them so I'm
going to run Mount

00:07:02.639 --> 00:07:10.879 align:start position:0%
/dev SL mapper SL Crypt rout make sure
you select your root partition first and

00:07:08.680 --> 00:07:15.080 align:start position:0%
I'm going to mount to for SL
MNT just like that then we're going to

00:07:13.840 --> 00:07:20.800 align:start position:0%
run
mkdir slmn SL boot we're making the

00:07:18.800 --> 00:07:25.199 align:start position:0%
special boot directory to put our boot
partition on so I'm going to press enter

00:07:23.319 --> 00:07:29.599 align:start position:0%
I'm going to type
mountd SL sda1 remember the boot

00:07:28.039 --> 00:07:36.520 align:start position:0%
partition is not encrypted so we can
just refer to it as sda1 SL MNT then SL

00:07:34.360 --> 00:07:41.520 align:start position:0%
Boot and I'm going to press enter if we
want else be okay again as you can see

00:07:38.919 --> 00:07:45.960 align:start position:0%
sda1 is mounted in MNT Boot and our
Crypt route our decrypted partition is

00:07:43.680 --> 00:07:49.919 align:start position:0%
mounted in MNT so all of our partition
stuff is set up correctly with that done

00:07:48.120 --> 00:07:54.400 align:start position:0%
we can actually start installing Arch
Linux now but before we run the pack

00:07:52.319 --> 00:07:58.840 align:start position:0%
strap command I'm going to give you guys
an important recommendation I'm going to

00:07:56.120 --> 00:08:05.400 align:start position:0%
use the nanot text editor to go into
for/ at c/ pacman.com which is a file on

00:08:03.240 --> 00:08:10.039 align:start position:0%
the Arch Linux ISO which configures the
package manager once we enter this file

00:08:07.639 --> 00:08:15.599 align:start position:0%
I'm going to go down all the way to this
section that says parallel downloads and

00:08:12.680 --> 00:08:18.759 align:start position:0%
I'm going to go to the p and delete this
pound symbol that's right in front of it

00:08:17.080 --> 00:08:23.360 align:start position:0%
which uncommons it then you want to set
the number next to it to something like

00:08:21.280 --> 00:08:27.080 align:start position:0%
four or depending on how many threads
your computer has this virtual machine

00:08:25.000 --> 00:08:31.879 align:start position:0%
is four so I'm going to set it to four
what this option allows Pac-Man to do is

00:08:29.520 --> 00:08:35.479 align:start position:0%
download multiple packages at once so if
your internet connection is relatively

00:08:33.560 --> 00:08:39.560 align:start position:0%
fast this will really speed up the
process of installing Arch Linux and

00:08:37.200 --> 00:08:43.279 align:start position:0%
also just installing packages in general
so I'm going to press crl o to write the

00:08:41.440 --> 00:08:47.120 align:start position:0%
changes and press enter and then I'm
going to press control X to exit the

00:08:45.160 --> 00:08:53.040 align:start position:0%
text editor so now that we're out we can
run pack strap space- MNT and start

00:08:51.519 --> 00:08:58.079 align:start position:0%
selecting the packages we want to
install on our system obviously the

00:08:54.760 --> 00:09:01.560 align:start position:0%
important ones are base then base- devel
which adds important utilities like like

00:08:59.560 --> 00:09:06.640 align:start position:0%
GCC and pseudo we're also going to
install the nanotex editor I'm going to

00:09:03.839 --> 00:09:10.600 align:start position:0%
install Vim cuz I really like it network
manager because it's a very important

00:09:08.600 --> 00:09:16.160 align:start position:0%
tool for setting up Wi-Fi or Ethernet or
whatever you need we also need lvm2 and

00:09:13.720 --> 00:09:21.440 align:start position:0%
crypt setup for the encryption to work
properly we're going to need grub and

00:09:18.519 --> 00:09:25.200 align:start position:0%
EFI boot MGR and of course we're going
to need Linux and if you have a

00:09:23.480 --> 00:09:29.440 align:start position:0%
relatively modern computer you're also
going to want to install Linux Das

00:09:27.680 --> 00:09:33.560 align:start position:0%
firmware I'm going to just make that a a
little bit more obvious by spacing that

00:09:31.240 --> 00:09:37.600 align:start position:0%
out over here but essentially this Linux
firmware package has a bunch of drivers

00:09:35.440 --> 00:09:41.160 align:start position:0%
for important devices you may have on
your computer for example Wi-Fi now

00:09:40.000 --> 00:09:45.079 align:start position:0%
there might be things that we're
actually missing from this list of

00:09:43.160 --> 00:09:49.320 align:start position:0%
packages but it's okay cuz we can always
install them while we're configuring

00:09:46.839 --> 00:09:53.160 align:start position:0%
Arch Linux in our new system so I'm
going to press enter and it's going to

00:09:51.200 --> 00:09:56.800 align:start position:0%
start downloading the repositories and
downloading all the packages as you can

00:09:55.200 --> 00:10:00.120 align:start position:0%
see it's downloading four packages at
once like we configured it to do this

00:09:58.680 --> 00:10:04.120 align:start position:0%
might take a while depending on your
internet connection speed and so so

00:10:02.200 --> 00:10:07.880 align:start position:0%
don't be worried if it takes a long time
it successfully ran the pack stop

00:10:05.800 --> 00:10:12.519 align:start position:0%
command it took a little while
2976 seconds but it has finished and

00:10:10.600 --> 00:10:17.200 align:start position:0%
before we go into our Arch Linux system
and start configuring it further the

00:10:14.440 --> 00:10:22.839 align:start position:0%
last thing we want to do in the arch ISO
is run gen FS tab to generate the fstab

00:10:20.800 --> 00:10:27.320 align:start position:0%
file so you're going to run gen FS tab
space- capital u and then the directory

00:10:25.519 --> 00:10:31.519 align:start position:0%
you mounted the root partition in which
is/ MNT and press enter now this is

00:10:30.160 --> 00:10:35.200 align:start position:0%
going to send the output to a terminal
so we can quickly look at it before we

00:10:33.240 --> 00:10:39.360 align:start position:0%
actually pipe it as you can see we have
two main partitions Dev mapper cryp rout

00:10:37.639 --> 00:10:43.920 align:start position:0%
which is mounted to the forward slash or
the root and Def sda1 which is mounted

00:10:41.760 --> 00:10:47.360 align:start position:0%
to for SL boot now that looks all
perfectly fine to me there's no weird

00:10:45.880 --> 00:10:51.839 align:start position:0%
additional stuff that my mess up our
system so that gets my stamp of approval

00:10:49.920 --> 00:10:56.839 align:start position:0%
we're going to run the command again
with the angled bracket a single one

00:10:54.079 --> 00:11:03.240 align:start position:0%
over there and then send the output to
slmn SL Etsy SL fstab just like that to

00:11:01.920 --> 00:11:09.120 align:start position:0%
check the contents of it we're going to
do cat mn/ etz fstab and as you can see

00:11:07.440 --> 00:11:16.639 align:start position:0%
it looks perfectly fine all right now
that we have the fstab set up we can run

00:11:12.760 --> 00:11:20.279 align:start position:0%
arch-chroot just like that for/ MNT and
now we've successfully entered our Arch

00:11:18.760 --> 00:11:24.040 align:start position:0%
Linux system the first thing we're going
to do is set the time zone for our

00:11:22.240 --> 00:11:29.680 align:start position:0%
system the time zones are available in a
directory called user share Zone info as

00:11:27.800 --> 00:11:33.440 align:start position:0%
you can see there's a lot of region here
and if you go to a specific one like

00:11:31.040 --> 00:11:37.120 align:start position:0%
America there's even more time zones so
I'm going to pick I don't know America

00:11:35.480 --> 00:11:41.320 align:start position:0%
New York so to activate one of those
time zones as the default we going to do

00:11:39.079 --> 00:11:49.720 align:start position:0%
Ln space-
SF slash user share Zone info then the

00:11:46.720 --> 00:11:54.720 align:start position:0%
actual time zone so for example America
newor York just like that and I'm going

00:11:52.320 --> 00:12:01.000 align:start position:0%
to send this I'm going to link this to
Etsy local time just like that Etsy looc

00:11:58.959 --> 00:12:04.040 align:start position:0%
time and I'm going to press enter the
next thing you want to do is synchronize

00:12:02.440 --> 00:12:10.720 align:start position:0%
the hardware clock which is pretty easy
all you got to do is run HW clock-- Sy o

00:12:08.040 --> 00:12:13.880 align:start position:0%
h c just like that and press enter and
if you want to check to make sure the

00:12:12.160 --> 00:12:17.040 align:start position:0%
date is set correctly you can just run
the date command which shows you the

00:12:15.240 --> 00:12:21.839 align:start position:0%
current date and time the next thing is
the local so the local on the Linux

00:12:19.320 --> 00:12:25.720 align:start position:0%
system dictates how things are formatted
for example dates and when the week

00:12:23.760 --> 00:12:29.320 align:start position:0%
starts if it starts on Monday on Sunday
or whatever you have so to customize

00:12:27.480 --> 00:12:35.959 align:start position:0%
that we're going to use the Nano Tech
editor that we used earlier we're going

00:12:30.920 --> 00:12:40.320 align:start position:0%
to go to/ Etsy SL local. gen so if you
press enter over here and go down down

00:12:38.480 --> 00:12:46.000 align:start position:0%
down down down using a down arrow all
the way to the local you want in my case

00:12:43.120 --> 00:12:50.959 align:start position:0%
it's going to be eore us there you go I
just saw us. utf-8 you want to remove

00:12:49.320 --> 00:12:56.680 align:start position:0%
the pound sign over here to uncomment
the line and then press crl o and press

00:12:53.760 --> 00:13:02.160 align:start position:0%
enter to right and then contrl X to exit
the file now we can run local - gen to

00:13:00.120 --> 00:13:05.199 align:start position:0%
generate the local successfully and as
you can see it says generation complete

00:13:03.760 --> 00:13:10.240 align:start position:0%
now we also have to configure it in a
special file called local.com so I'm

00:13:07.240 --> 00:13:14.399 align:start position:0%
going to run Nano Etsy
local.com not gen this time.om we're

00:13:13.079 --> 00:13:18.600 align:start position:0%
going to go into that file and we're
going to type

00:13:16.760 --> 00:13:23.639 align:start position:0%
lalore
us.

00:13:20.600 --> 00:13:26.959 align:start position:0%
utf-8 that's my local the US you know
United States one there's also lots of

00:13:25.600 --> 00:13:30.399 align:start position:0%
other ones just make sure you get the
same one as the one in the list you were

00:13:28.680 --> 00:13:34.199 align:start position:0%
looking at and now you can do CR o and
press enter to write the contents of the

00:13:31.839 --> 00:13:37.760 align:start position:0%
file and press CR X to exit it I'm also
going to change the host name of our

00:13:35.839 --> 00:13:42.639 align:start position:0%
computer so as you can see on a shell it
says root at Arch ISO you can change

00:13:40.399 --> 00:13:47.839 align:start position:0%
that Arch ISO to pretty much anything
you want in my case I'm going to use

00:13:44.399 --> 00:13:52.240 align:start position:0%
Nano to go to Etsy host name just like
that I'm going to set it to Alex Arch

00:13:50.959 --> 00:13:56.680 align:start position:0%
just like that that that looks pretty
cool I'm going to do crl o and press

00:13:54.440 --> 00:14:01.279 align:start position:0%
enter and do contr X to exit the text
editor the next step is to set the

00:13:58.519 --> 00:14:06.160 align:start position:0%
password for our root user to do this we
can just type PS swd and press enter and

00:14:04.880 --> 00:14:09.880 align:start position:0%
you can just set it to whatever you want
I'm going to do 1 2 34 since you know

00:14:08.240 --> 00:14:12.120 align:start position:0%
this is just an example but obviously
you should set it to something

00:14:10.759 --> 00:14:15.519 align:start position:0%
relatively secure if you don't want
people accessing the root user on your

00:14:13.880 --> 00:14:19.399 align:start position:0%
computer speaking of passwords we
actually have to set up pseudo on the

00:14:17.360 --> 00:14:23.600 align:start position:0%
computer if you're not familiar pseudo
is the command which allows somebody on

00:14:21.199 --> 00:14:27.759 align:start position:0%
Linux to have access to super user
privileges you know install packages and

00:14:25.320 --> 00:14:31.759 align:start position:0%
whatnot without having to be the root
user it basically gives you admin

00:14:29.759 --> 00:14:37.079 align:start position:0%
privileges on Linux so to do that we're
going to run the command vudo and press

00:14:34.959 --> 00:14:41.040 align:start position:0%
enter this is going to bring you to this
text editor which is actually Vim now if

00:14:39.720 --> 00:14:47.079 align:start position:0%
you don't know how to use Vim that's
fine you can do a colon and then WQ to

00:14:44.560 --> 00:14:52.800 align:start position:0%
exit it and go back to the vudo command
and at the beginning type editor in

00:14:49.680 --> 00:14:58.360 align:start position:0%
capital letters equals Nano and press
space this way when you press enter and

00:14:55.199 --> 00:15:03.360 align:start position:0%
run V again it will open it in Nano this
file config figures pseudo and if you go

00:15:01.040 --> 00:15:08.639 align:start position:0%
all the way to the bottom you'll see
this line that says we all all all all

00:15:05.639 --> 00:15:11.480 align:start position:0%
all it's a lot of alls commented out so
we're going to get rid of the pound sign

00:15:09.959 --> 00:15:16.440 align:start position:0%
over here and just leave it as
percentage wheel all all all all now as

00:15:14.040 --> 00:15:21.360 align:start position:0%
the text implies you can uncommon it to
allow members of group wheel to execute

00:15:19.040 --> 00:15:29.279 align:start position:0%
any command so I'm going to do crl o
press enter crol X to exit it and now

00:15:24.480 --> 00:15:34.079 align:start position:0%
we're going to run user ad- m- capital G
wheel that means we're adding this user

00:15:31.040 --> 00:15:38.560 align:start position:0%
to the wheel group-
sbin bash it's going to send us to The

00:15:36.360 --> 00:15:43.240 align:start position:0%
Bash sh when we log in and I'm going to
give this new user a name I'm going to

00:15:41.000 --> 00:15:48.360 align:start position:0%
name him Alex so I'm going to press
enter and now I'm going to run pswd or

00:15:46.680 --> 00:15:52.560 align:start position:0%
password and I'm going to give it the
option Alex which customizes Alex's

00:15:50.759 --> 00:15:57.160 align:start position:0%
password I'm going to press enter I'm
going to set it to 1 2 3 4 just like

00:15:55.240 --> 00:16:00.680 align:start position:0%
that not very secure but once again this
is just an example and now you've

00:15:58.720 --> 00:16:04.639 align:start position:0%
created created a user given that user
pseudo permissions by adding that user

00:16:02.480 --> 00:16:08.639 align:start position:0%
to the wheel group and you've set the
password for that user so good on you

00:16:06.959 --> 00:16:13.920 align:start position:0%
that's pretty much everything that you
need to do on a default Arch install

00:16:11.360 --> 00:16:17.880 align:start position:0%
already done however there are a couple
more things that we want to do to

00:16:15.959 --> 00:16:22.800 align:start position:0%
actually have the setup work as an
encrypted setup more specifically there

00:16:19.920 --> 00:16:28.079 align:start position:0%
are two steps first we need to configure
our init cpio and second we have to

00:16:25.839 --> 00:16:32.519 align:start position:0%
configure our bootloader which in this
tutorial is going to be grub for the

00:16:30.160 --> 00:16:40.639 align:start position:0%
init cpio step all you got to do is run
Nano and go into SL Etsy SL MK init

00:16:36.600 --> 00:16:46.240 align:start position:0%
cp.com open up this file and go down all
the way until you see the hooks section

00:16:43.759 --> 00:16:50.639 align:start position:0%
as you can see it says hooks Base udev
auto detect and so on you're going to go

00:16:48.040 --> 00:16:57.800 align:start position:0%
all the way to the block section and
after here you want to add in Crypt and

00:16:54.839 --> 00:17:02.199 align:start position:0%
lvm2 with a space between them as if
they were two new options now that you

00:16:59.600 --> 00:17:06.919 align:start position:0%
added those you can do CR o press enter
andr X these basically allow your system

00:17:05.079 --> 00:17:10.360 align:start position:0%
to support booting from an encrypted
root partition when you turn it on and

00:17:08.760 --> 00:17:14.559 align:start position:0%
if you don't enable this and then
regenerate the init cpio your system

00:17:12.799 --> 00:17:20.400 align:start position:0%
will not boot up successfully so to
regenerate the cpio we're going to run

00:17:16.640 --> 00:17:24.240 align:start position:0%
MK init cpio Das capital P and press
enter now this might take a while but

00:17:22.360 --> 00:17:28.559 align:start position:0%
when it's running make sure you see the
encrypt and lvm2 build hooks over there

00:17:27.319 --> 00:17:32.360 align:start position:0%
so make sure those are running fine
without any errors and also don't worry

00:17:30.520 --> 00:17:36.120 align:start position:0%
too much about the warnings since those
are mostly for generic Hardware which

00:17:34.480 --> 00:17:39.640 align:start position:0%
won't really apply to you all right so
now that we've successfully configured

00:17:37.520 --> 00:17:43.600 align:start position:0%
the init cpio we're going to move on to
the next step of encryption which is

00:17:41.520 --> 00:17:47.400 align:start position:0%
setting up the bootloader now this tends
to be the hardest step and at least in

00:17:45.440 --> 00:17:50.919 align:start position:0%
my own personal experience the one I get
stuck on the most so I'm going to make

00:17:49.039 --> 00:17:55.200 align:start position:0%
sure to go through every single step
slowly and deliberately so that you

00:17:53.480 --> 00:17:58.240 align:start position:0%
understand every part and the chance of
messing up is lowered as much as

00:17:57.080 --> 00:18:02.400 align:start position:0%
possible so the first thing we're going
to do is install grub since that is the

00:18:00.840 --> 00:18:07.280 align:start position:0%
bootloader we're using today we're going
to run grub-install then we're going to

00:18:05.200 --> 00:18:14.480 align:start position:0%
pass it the EFI directory option by
doing d-fi D directory equals SL boot

00:18:12.799 --> 00:18:19.440 align:start position:0%
since that is our boot partition after
all it's mounted there and then if you

00:18:16.280 --> 00:18:23.760 align:start position:0%
want to you can pass the D- boot loader
D ID and then set this to like I don't

00:18:21.480 --> 00:18:27.120 align:start position:0%
know Alex Linux or whatever you want uh
this is just vain you know this is just

00:18:25.240 --> 00:18:31.240 align:start position:0%
giving your bootloader a name like if
you want to call this my art or whatever

00:18:29.440 --> 00:18:35.320 align:start position:0%
you want and then we're going to pass it
the dis we're installing grub to which

00:18:33.480 --> 00:18:44.200 align:start position:0%
in this video it's
/dev/sda not the partition not sda1 not

00:18:39.760 --> 00:18:49.080 align:start position:0%
sda2 whatever but just the dis slev SL
SDA I'm going to press enter and as you

00:18:46.880 --> 00:18:53.559 align:start position:0%
can see it says installation finished no
errors reported and if we do an LS

00:18:50.960 --> 00:18:58.039 align:start position:0%
command and list the boot partition as
you can see we have an EFI in capital

00:18:56.280 --> 00:19:02.840 align:start position:0%
letters partition over there and if we
list that one it has Alex Linux which is

00:19:00.919 --> 00:19:06.760 align:start position:0%
of course the name of our setup over
here of the bootloader now that's the

00:19:04.240 --> 00:19:11.159 align:start position:0%
easy part over the next step is
configuring grub itself now most of you

00:19:09.320 --> 00:19:16.440 align:start position:0%
who have done an Arch Linux install will
say that hey now we have to run the grub

00:19:13.600 --> 00:19:21.000 align:start position:0%
DMK config command but we can't actually
do that and have encryption work by

00:19:18.520 --> 00:19:25.720 align:start position:0%
default we have to specify the drives
we're setting up in the Etsy default

00:19:24.080 --> 00:19:30.280 align:start position:0%
grub configuration I'm going to just
quickly show you guys what it looks like

00:19:27.600 --> 00:19:34.880 align:start position:0%
Etsy default called grub and as you can
see there's a section over here that

00:19:31.559 --> 00:19:38.559 align:start position:0%
says Grub command line Linux default in
here we're going to have to add some

00:19:36.919 --> 00:19:43.280 align:start position:0%
options and I'm going to show you guys
how to do that there are two main things

00:19:41.080 --> 00:19:48.720 align:start position:0%
we have to obtain and put in our grab
configuration the first is the uuid for

00:19:46.240 --> 00:19:53.799 align:start position:0%
our encrypted device and the second one
is the uuid for our decrypted device to

00:19:51.640 --> 00:20:01.320 align:start position:0%
obtain these we're going to use the BLK
ID command we're going to run BLK id- o

00:19:58.000 --> 00:20:06.960 align:start position:0%
value then - s
uuid and then the dis we're specifying

00:20:04.200 --> 00:20:11.720 align:start position:0%
so the encrypted one is going to be
slev sda2 which if you guys remember

00:20:09.880 --> 00:20:16.559 align:start position:0%
that's where we ran Crypt setup so I'm
going to press enter and as you can see

00:20:13.520 --> 00:20:21.640 align:start position:0%
we get this output that says 423 bb89 F
it's just random it's a random string of

00:20:19.000 --> 00:20:26.240 align:start position:0%
alpha numeric characters so I'm going to
take that output I'm going to use two

00:20:23.799 --> 00:20:33.520 align:start position:0%
angled brackets make sure that it's two
and I'm going to direct it to for SL

00:20:28.799 --> 00:20:37.240 align:start position:0%
Etsy SL deault SLG grub just like that
I'm then going to run the command again

00:20:35.000 --> 00:20:43.080 align:start position:0%
and add another line to the config but
this time I'm going to run it on dev

00:20:39.840 --> 00:20:47.880 align:start position:0%
mapper Crypt rout which if you guys
remember is our decrypted partition the

00:20:45.240 --> 00:20:53.840 align:start position:0%
one we were able to format into ext4 so
I'm going to press enter and now if we

00:20:50.280 --> 00:20:58.600 align:start position:0%
use Nano to go into Etsy default grub
again and we go all the way to the

00:20:56.280 --> 00:21:05.120 align:start position:0%
bottom of the file you'll see these two
new lines this one that's 423 bb89 which

00:21:01.760 --> 00:21:08.960 align:start position:0%
is our encrypted partition newu U ID and
this one that's

00:21:06.200 --> 00:21:12.279 align:start position:0%
4591 and so on which is our decrypted
one so what we're going to do is we're

00:21:10.039 --> 00:21:16.600 align:start position:0%
going to copy these lines to the top of
the file and put them where I show you

00:21:14.760 --> 00:21:22.360 align:start position:0%
so to copy and paste or more
specifically to cut and paste in Nano

00:21:19.039 --> 00:21:27.559 align:start position:0%
you got to do control K on the line so I
cut the first one and then go all the

00:21:24.679 --> 00:21:31.960 align:start position:0%
way to the top and right under the grab
command line the next toone I'm going to

00:21:29.159 --> 00:21:34.720 align:start position:0%
do control U which is going to paste it
right there or I actually went on top oh

00:21:33.520 --> 00:21:38.600 align:start position:0%
that's my bad I'm going to just put it
below then control U there you go now

00:21:37.159 --> 00:21:42.039 align:start position:0%
I'm going to use backspace to actually
put it within the quotation marks and

00:21:40.640 --> 00:21:45.559 align:start position:0%
I'm going to add another quotation mark
here at the bottom so remember to

00:21:43.919 --> 00:21:49.360 align:start position:0%
actually close the quotation marks on
Grub command line Linux default now I'm

00:21:47.279 --> 00:21:53.120 align:start position:0%
going to go back all the way to the
bottom of the file and grab the second

00:21:50.640 --> 00:21:57.080 align:start position:0%
one if you guys remember 4591 is
actually our decrypted repartition one

00:21:54.880 --> 00:22:00.919 align:start position:0%
so I'm going to do contrl K on that line
I'm going to go all the way to the top

00:21:59.080 --> 00:22:05.919 align:start position:0%
and right below the grub command line
Linux default I'm going to do control U

00:22:03.640 --> 00:22:09.039 align:start position:0%
to paste it right there now that we have
these two uids I'm going to show you

00:22:07.640 --> 00:22:14.799 align:start position:0%
some stuff that you have to write around
them so before this one which remember

00:22:11.320 --> 00:22:23.840 align:start position:0%
guys this is the encrypted partition one
we're going to write Crypt device equals

00:22:20.440 --> 00:22:29.320 align:start position:0%
uuid equals and then leave the uid as it
is but after it you want to put a colon

00:22:26.559 --> 00:22:33.240 align:start position:0%
and then the name of the de Dev map
partition that this one will be

00:22:30.760 --> 00:22:38.679 align:start position:0%
unlocking too which if you guys remember
it was CT rout as for the other uuid

00:22:36.880 --> 00:22:46.200 align:start position:0%
which is the unencrypted one we're going
to write root equals ID once again in

00:22:43.279 --> 00:22:49.600 align:start position:0%
capital letters equals then the uid of
our unencrypted partition and then

00:22:48.159 --> 00:22:52.840 align:start position:0%
nothing after it you don't have to add a
colon or anything now make sure these

00:22:51.400 --> 00:22:55.760 align:start position:0%
are all on the same line I know I put
them on separate lines to make it easier

00:22:54.240 --> 00:22:59.120 align:start position:0%
but make sure they are on the same line
and separated by a space so as you can

00:22:57.720 --> 00:23:02.320 align:start position:0%
see if I move over here here you can
actually see the other side of the line

00:23:00.760 --> 00:23:05.559 align:start position:0%
that actually finishes there so at the
end of this line we're going to add a

00:23:04.039 --> 00:23:08.279 align:start position:0%
quotation mark to make sure that it
closes off and I'm actually going to

00:23:06.840 --> 00:23:12.600 align:start position:0%
delete this quotation mark here because
we don't really need it so as you can

00:23:10.080 --> 00:23:19.720 align:start position:0%
see we have a full configuration we have
cryp device equals uid then equals the U

00:23:15.840 --> 00:23:24.799 align:start position:0%
ID of our encrypted partition Dev sda2
and then colon Crypt route which is its

00:23:21.679 --> 00:23:29.000 align:start position:0%
destination then we have root equals uid
equals then the uid of our unencrypted

00:23:28.120 --> 00:23:32.600 align:start position:0%
partition
and then just nothing after that just a

00:23:30.360 --> 00:23:36.200 align:start position:0%
quotation bar now did you catch all that
just in case you haven't I actually have

00:23:34.200 --> 00:23:40.159 align:start position:0%
a text guide which covers most of the
steps in this tutorial to do with

00:23:37.880 --> 00:23:43.880 align:start position:0%
encryption available in the description
as you can see I have Crypt device or

00:23:42.279 --> 00:23:47.720 align:start position:0%
the encrypted partition highlighted in
yellow and the unencrypted one

00:23:45.760 --> 00:23:51.600 align:start position:0%
highlighted in blue with these example
uids that obviously aren't real so you

00:23:50.080 --> 00:23:55.919 align:start position:0%
can follow this tutorial to double check
your configuration to make sure that

00:23:53.000 --> 00:23:59.279 align:start position:0%
everything is working fine and dandy all
right but with that done we're pretty

00:23:57.600 --> 00:24:05.039 align:start position:0%
much done configuring in our bootloader
here so I'm going to do crl o press

00:24:01.559 --> 00:24:12.520 align:start position:0%
enterr X to exit the file and then I'm
going to run grub-mkconfig

00:24:08.440 --> 00:24:17.960 align:start position:0%
space-o SL boot SLG grub then SLG
grub.cfg and press enter and as you can

00:24:15.400 --> 00:24:21.840 align:start position:0%
see it generates the and as you can see
it generated the grub configuration file

00:24:19.799 --> 00:24:25.000 align:start position:0%
successfully don't worry about the OS
prober errors those are just for dual

00:24:23.559 --> 00:24:29.240 align:start position:0%
booting and whatnot which we're not
going to be doing in today's video now

00:24:27.000 --> 00:24:35.360 align:start position:0%
the last thing left to do is just one
little quick you know quality of life

00:24:31.200 --> 00:24:42.880 align:start position:0%
fix we're going to run system CTL enable
then capital N Network and capital N

00:24:39.440 --> 00:24:46.159 align:start position:0%
then capital M manager now this will
allow our system to start working with

00:24:44.440 --> 00:24:50.120 align:start position:0%
the network immediately once we turn it
on by using the network manager system

00:24:48.360 --> 00:24:52.840 align:start position:0%
service so we don't have to you know
turn it on every time we turn on a

00:24:51.320 --> 00:24:57.640 align:start position:0%
system this will enable networking as
soon as we turn on our computer all

00:24:55.120 --> 00:25:02.520 align:start position:0%
right but with that done we're pretty
much finished configuring Arch Linux we

00:25:00.240 --> 00:25:07.679 align:start position:0%
can type exit over here to leave our CH
root environment and then type reboot to

00:25:05.120 --> 00:25:11.320 align:start position:0%
reboot into our system and you know hope
for the best that it actually does boot

00:25:09.520 --> 00:25:15.480 align:start position:0%
up and prompt us for a password so I'm
going to press enter over here okay so

00:25:13.399 --> 00:25:18.679 align:start position:0%
as you can see we have grub our first
option is Arch Linux which you know that

00:25:17.320 --> 00:25:23.640 align:start position:0%
is what we need so I'm going to press
enter on it and there you go it actually

00:25:21.399 --> 00:25:29.159 align:start position:0%
asks us for the pass Braes so I'm going
to type 1 2 3 4 and press enter and as

00:25:27.399 --> 00:25:32.480 align:start position:0%
you can see it's sent me straight to the
login here I can log in with my user

00:25:31.159 --> 00:25:37.200 align:start position:0%
that I set up earlier if you guys
remember I made him Alex I made the

00:25:35.000 --> 00:25:41.840 align:start position:0%
password 1 2 3 4 and I'm going to press
enter and as you can see I'm

00:25:39.760 --> 00:25:45.720 align:start position:0%
successfully logged into Arch Linux on
an encrypted system all right but now

00:25:43.840 --> 00:25:49.520 align:start position:0%
that we've set up this encrypted system
there's a few things might want to do to

00:25:47.360 --> 00:25:54.240 align:start position:0%
improve the quality of life on it the
first obvious one is setting up Auto

00:25:51.520 --> 00:25:58.399 align:start position:0%
login for a user so we don't have to put
in our user password every single time

00:25:56.159 --> 00:26:01.679 align:start position:0%
we go on our computer because obviously
if we put in our decryption password

00:26:00.200 --> 00:26:05.799 align:start position:0%
we're going to have access to our files
anyway whether we have access to the

00:26:03.399 --> 00:26:09.320 align:start position:0%
user or not so it kind of you know it
nullifies the point of having a user

00:26:07.559 --> 00:26:18.799 align:start position:0%
password to do this we're going to use
pseudo to modify a system file Nano SL

00:26:13.679 --> 00:26:23.480 align:start position:0%
li/ systemd SL system and then Getty
back

00:26:19.960 --> 00:26:26.440 align:start position:0%
sl. service and press enter and as you
can see it's going to ask us for a

00:26:24.679 --> 00:26:30.039 align:start position:0%
password for sudor because we set it up
successfully we can type 1 2 3 before

00:26:28.480 --> 00:26:34.919 align:start position:0%
and press enter and then we're going to
go down all the way until we see the

00:26:32.320 --> 00:26:38.640 align:start position:0%
part that says exx Star as you can see
it says Espin ay and whatnot we're going

00:26:37.200 --> 00:26:44.640 align:start position:0%
to get rid of this part over here that
has the- o option we're going to replace

00:26:41.679 --> 00:26:48.679 align:start position:0%
it with- a which means Auto login and
then pass a username which in our case

00:26:46.840 --> 00:26:54.720 align:start position:0%
is going to be Alex we're going to do
crl o and press enter Then do crl X and

00:26:52.279 --> 00:26:58.039 align:start position:0%
now if we run pseudo reboot on our
system as you can see we're going to be

00:26:56.600 --> 00:27:03.600 align:start position:0%
prompted for a password again I'm going
to type 1 2 3 4 press enter and it sends

00:27:01.240 --> 00:27:07.880 align:start position:0%
us straight into our user we didn't have
to put in our password or our username

00:27:05.480 --> 00:27:12.159 align:start position:0%
or anything we're already logged in as
Alex which saves us a lot of time now

00:27:10.279 --> 00:27:16.279 align:start position:0%
before I close out this video I'm going
to quickly show you guys how to set up

00:27:14.000 --> 00:27:19.039 align:start position:0%
the plasma desktop environment since I
know that a lot of people are going to

00:27:17.399 --> 00:27:25.279 align:start position:0%
want to use that to do that I'm going to
run pseudo Pacman capital S plas Das

00:27:23.480 --> 00:27:31.399 align:start position:0%
desktop you might also want to install
their terminal called console I'm also

00:27:28.399 --> 00:27:34.679 align:start position:0%
going to install sddm which is the login
or display manager for plasma that

00:27:33.480 --> 00:27:38.840 align:start position:0%
should pretty much be it I'm going to
press enter over here and type in my

00:27:36.600 --> 00:27:42.200 align:start position:0%
password which is 1 2 3 4 once again I'm
just going to pick pipe wire Jack since

00:27:40.640 --> 00:27:45.799 align:start position:0%
you know I love pipe wire I'm going to
press enter over here uh for fonts Emoji

00:27:44.679 --> 00:27:49.000 align:start position:0%
I'm just going to press enter in fact
most of the stuff you can just press

00:27:46.880 --> 00:27:52.159 align:start position:0%
enter and I'm going to press enter on
this which will automatically start

00:27:50.480 --> 00:27:58.799 align:start position:0%
installing everything once all those
things are done installing you can run

00:27:53.480 --> 00:28:01.559 align:start position:0%
pseudo system CDL enable D- now sdd M
and press enter and it will

00:28:00.120 --> 00:28:05.720 align:start position:0%
automatically send you to the login
screen here you get to select between

00:28:03.320 --> 00:28:08.679 align:start position:0%
plasma whand and plasma X11 depending on
which one you want to use I'm going to

00:28:06.799 --> 00:28:14.159 align:start position:0%
just use the whan version and I'm going
to put my password in here which as you

00:28:10.600 --> 00:28:18.679 align:start position:0%
guys know is 1 2 3 4 and press enter and
there you go I'm now in what looks like

00:28:16.360 --> 00:28:23.279 align:start position:0%
the latest version of KD plasma since we
set up Auto login on our gy I'm also

00:28:20.799 --> 00:28:27.360 align:start position:0%
going to set it up here on sddm which
will allow us to automatically log into

00:28:25.360 --> 00:28:30.799 align:start position:0%
plasma when we put in our password like
we did with our terminal that previous

00:28:29.360 --> 00:28:35.080 align:start position:0%
example could be used if you use a
window manager like dwm or something but

00:28:33.440 --> 00:28:38.519 align:start position:0%
this example could be useful if you're
genuinely using plasma from dayto day so

00:28:37.240 --> 00:28:47.200 align:start position:0%
I'm going to begin by making a
configuration directory for SDM by

00:28:40.480 --> 00:28:51.159 align:start position:0%
running pseudo mkdir SL Etsy sddm docon
DOD and then I'm going to press enter

00:28:50.000 --> 00:28:55.279 align:start position:0%
obviously it's going to ask me for the
password I'm going to do one 2 3 4 and

00:28:53.279 --> 00:29:01.799 align:start position:0%
in that directory I'm going to use Nano
to go into ITC sddm conf. D I'm going to

00:28:59.320 --> 00:29:06.159 align:start position:0%
make a file called autol
login.com and press enter in here we're

00:29:04.519 --> 00:29:10.799 align:start position:0%
going to put some square brackets and
between them I'm going to do auto login

00:29:08.320 --> 00:29:15.039 align:start position:0%
and type that with a capital A we're
going to give it a user option which is

00:29:12.440 --> 00:29:19.240 align:start position:0%
going to be uh Alex in this case and
then we're going to type session now in

00:29:17.159 --> 00:29:25.559 align:start position:0%
here you can either put plasma which has
the default um Wayland configuration or

00:29:22.480 --> 00:29:29.320 align:start position:0%
plasma X11 which has it boot up in X11
I'm going to just leave it on the whand

00:29:26.760 --> 00:29:34.480 align:start position:0%
one then I'm going to do r o press enter
to write and crl X to quit and finally

00:29:32.360 --> 00:29:38.760 align:start position:0%
if I reboot One More Time by typing
pseudo reboot I'm going to be able to

00:29:36.320 --> 00:29:43.960 align:start position:0%
put in my decryption password 1 2 3 4
and press enter and as you can see it's

00:29:41.480 --> 00:29:48.880 align:start position:0%
automatically booting me into plasma
just like that so there you go I

00:29:46.640 --> 00:29:53.360 align:start position:0%
successfully set up an encrypted system
using Arch Linux so there you go we've

00:29:51.399 --> 00:29:57.480 align:start position:0%
successfully set up an encrypted system
using Arch Linux we have a graphical

00:29:55.600 --> 00:30:01.960 align:start position:0%
environment which automatically launches
when we log using our decription

00:29:59.880 --> 00:30:07.760 align:start position:0%
password I hope everybody enjoyed this
comfy guide I've been Deni goodbye

