Skip to playerSkip to main content
  • 2 days ago
Transcript
00:00what's up guys please before we start make sure you subscribe like share and
00:05comment and why not become a member I thought of setting up Arch Linux and
00:09sharing it with you in a different way the installation is going to be
00:14different instead of using Arch Linux live medium we will use any other Linux
00:20it can be live it can be persistent it can be on a virtual machine and if you
00:27want to try it on your real hardware you can do it I'm gonna do it on a virtual
00:33machine this is not the first time that I try to record this video I failed many
00:38times with this installation method and the last thing that I failed with was
00:46the bootloader it doesn't want to work for one of the parameters that I enabled
00:53in your case you may need to enable it in order to get it working on your
00:58computer in my case I can keep it disabled I will show you show you what it is for
01:05this installation I'm gonna use Linux Mint 22.3 live medium in your case you can
01:12choose whichever distribution live or persistent I'm gonna create a virtual
01:19machine I will call it like this
01:47this is the parameter that last time may be the reason for failing it's enabling
01:53EFI or UEFI
02:08EFI I'll enter I'll press enter here
02:14okay my virtual machine is running as you can see let's make it full screen
02:28I will install a package that will help with the installation I will show you
02:34later where it is used despite not having a big effect on the installation
02:46itself if you are using Debian or derivatives the command to install this
02:55package is the one that you're seeing on the screen this package is pre-installed
03:07on gentle live medium in case you decided to use it you can use it you can also
03:14install pacman the package manager of Arch Linux itself however if you wanted to
03:21install Arch Linux using it I don't know if you're gonna succeed with it for me I
03:28always failed that's why I had to download the bootstrap file that I'm gonna
03:34download shortly here press Y and enter most of this size comes from this package
03:45itself every Linux installation you need somehow to partition your drive and when
03:54using an existing Linux installation or medium it becomes easier since you have
04:01some GUI based partitioning tools like gparted so I'm gonna partition this virtual
04:10drive I will create a partition table first it's MS-DOS or MBR since I didn't
04:17enable EFI I click apply here I can make a boot partition it's optional the file
04:29system for the boot partition whenever it is MBR it can be EXT4 in case it is UEFI I guess
04:36it
04:37must be extended to or FAT32 probably VFAT or XFAT correct me if I'm wrong I will
04:49make a new partition for the root partition I will keep it EXT4 here in your case you can
04:58choose whatever you want this is totally personal personal preference and this is
05:07for home partition all of them can be in one partition you can also make other
05:12partitions for other the directories on your system I will apply the changes
05:28all right the partitioning is successful here it says that we can use pacman from the host system
05:35it says that it can be compiled on most Linux distributions I installed it natively and I tried
05:48it off cam many times and it fails to be used for the installation when we continue reading we can
05:57see
05:58that we will use the bootstrap image that I'm gonna download so you need this wiki page for this
06:06installation which is install Arch Linux from existing Linux mostly the section number three if I'm not
06:20mistaken we will also need the classic Arch Linux installation guide without the newly
06:36created script that simplified the installation since we will depend on the classic commands for the
06:45installation and also we will need to download the file that I'm gonna show you the bootstrap file
06:55we need before that to mount the newly created partitions lsplk despite being automatically mounted by Linux Mint itself so
07:08we need to unmount them by running this command
07:11sudo you mount slash dev slash sda one two and three slash dev slash sda for me can be different
07:25for you make sure the commands are the correct ones for you so we run let's be root before we
07:33run any further command
07:37clear out the screen we mount slash dev slash sda to the root partition in my case on mnt we
07:51make a
07:55directory
07:59we change the directory into mnt
08:05slash mnt
08:06slash mnt
08:07there we make a directory
08:12we call it boot
08:14we mount slash dev slash sda one
08:19under boot
08:22for
08:24the last partition we don't need it for now
08:32let's clear out
08:33let's clear out the screen
08:36make sure when you want to download the file that i'm gonna download now that you are
08:41in the path of the mounted root partition for your arch linux
08:49so the file is this one arch linux bootstrap
08:54copy link
08:57and then wget
09:00paste
09:02enter
09:07this may take some time
09:10now we clear out the screen
09:16and we run
09:18and we run this command
09:25copy it and paste it
09:29we are on the same path as the bootstrap file
09:32so we make it like this arch linux like this
09:43needs to be with numeric owner
09:51enter
10:11ls
10:13we now uh chroot
10:16using arch chroot which we have from the
10:21package arch install scripts in your case you may need to run something like mnt
10:28root dot x 86 underscore 64
10:33and then arch
10:37and then uh slash bin and then slash arch
10:45chroot
11:02i don't need to have this full path since i have
11:07this in the live medium of linux mint
11:15since i installed arch install scripts
11:23i will run this command
11:30you can proceed to the next step which is
11:34mount slash dev slash sda 2
11:37under mnt
11:41and then ls mnt
11:48and then mount
11:50slash dev slash sda 1
11:53under
11:55mnt slash mnt slash boot
11:59like this
12:06clear
12:07now we can run
12:10pack strap
12:12pack
12:14strap
12:15dash uppercase k
12:17slash mnt
12:20base
12:21linux
12:22or you can also
12:25make it linux lts or any other kernel of your choice
12:29and linux
12:31firmware
12:35the
12:38usual command for installing arch linux
12:45enter
12:48and
12:50it's working as you can see
13:00okay the command pack strap is finished running
13:05we can now run
13:07gen fs tab
13:09let's clear the screen first
13:12let's check again our block devices
13:15we may need to mount slash dev slash sda 3
13:20under home
13:21since we need that in our fs tab
13:24to prevent later
13:27the need
13:28to
13:31reconfigure fs tab
13:36like this
13:38let's check our
13:42fs tab
13:54no i guess
13:58this one not home but mnt
14:01home
14:02and then we run
14:05this command again
14:07and we check our fs tab
14:09like this
14:14let me
14:16like this
14:24clear out the screen
14:30and we've got our fs tab
14:33correct
14:33after
14:35running the command pack strap
14:36we exit out of the root
14:39we are now in our
14:42linux mint again
14:45like this
14:48to continue with the installation
14:51which root again
14:58on into slash mnt
15:01with this argument
15:03like this
15:05or we maybe without it
15:07like this
15:17we can now install
15:20grab
15:28y and enter here
15:30clear out the screen
15:33grab
15:34mk-config-o
15:38slash boot
15:41slash grab
15:44slash grab dot cfg
15:49this command
15:52now before that we run grab install
15:55slash dev slash sda
16:00and then
16:01this command
16:12we have some small steps to run
16:22like this one
16:37and we make it
16:40to etc local time
16:41slash
16:42etc
16:43slash
16:44local
16:48time
16:56and then we run this command
16:59like this
17:15uh
17:21and then
17:23we go to this file
17:29like this
17:32uh
17:33back command dash s
17:35vm nano
17:37y and enter
17:56this one is fine for me
17:57you choose the one that is
17:59for your
18:01localization
18:07save and exit
18:15we go to
18:16you go to
18:16etc host name
18:23call it boot
18:26rapid arch
18:32save and exit
18:38we don't need to run
18:39we don't need to run mk init cpio dash uppercase p since it was
18:43done automatically
18:49clear
18:50pass wd for the root password
18:55all right
18:57let's exit out of here
18:59and here also
19:01we may now
19:02reboot the system
19:33i guess i know i know where my mistake is
19:36the second time i had to mount before i run pax trap command
19:41probably when i enabled uefi i had to mount the put partition which i probably forgot
19:49let's boot here
19:54and as you can see it works
20:12just try to install some packages now
20:15y and enter here
20:28uh system
20:37i forgot to install network manager but at least we got a working system we can do it in a
20:43future video
20:45it's as simple as put uh running arch to root again and running pacman dash uppercase s
20:52network manager and it should install for us
20:55i'm signing out and see you in another one
Comments

Recommended