Installing Arch Linux in less than 10 minutes

Installing Arch Linux in less than 10 minutes

hello everyone many users think that
since installing Arch Linux is very difficult but if you spend ten minutes
and watch this video I will show you the installation process is not as
complicated as you probably thought and maybe after this video you will decide
to install Arch Linux yourself during the boot process we have a choice between 64
32 bit systems I will load the 64 all the processes of loading and
installation will be speeded up to save your time so the first thing we need to
do is to check our internet connection to do that we type ping – C 3
the internet works I have a wired internet connection here it’s picked up
automatically and I recommend you to use wired connection during the Arch Linux
installation because if you have a Wi-Fi you may need to do some additional
settings and it’s a bit more complicated you can check the available interfaces
using the comment ip link to make the installation process as fast as possible
we need to configure our mirror list to use the nearest and the fastest server
so we will use a program reflector to do that first we need to update pacman
databases so run pacman syy when the database is updated we need to install
reflector to run pacman -S reflector now we can run the reflector program so type
reflector -C here you can type your country in my case it’s Sweden then type
-f 12 -l 10 -n 12 and we will save the mirror list in /etc/pacman.d/mirror
list so the next step is to partition the harddrive so first let’s check what
partitions we have on our hard drive type fdisk -l so as you can see I have
only one hard drive it’s one partition here let’s re-partition it again to do the
type cfdisk /dev/sda there are many options here let’s remove this
partition and create a new one and then we also need to put the flag boot that
it’s a bootable partition and after that we write changes to the disk so we’ll
type YES and quit so now we can check the list of our partitions so here’s our new
partition let’s format it I will use file system ext4 type mkfs.ext4 and then the partition /dev/sda1 so now we are going to mount this partition
to our system so to do the type mount /dev/sda1 and we will mount it to /mnt so now we can check the mounting points so type lsblk and as you can see
partition sda1 is mounted to /mnt now it’s time to install our base system to
do the type pacstrap -i /mnt so we are going to install everything to /mnt where
we just mounted our system and we are going to install base and base-devel the next step is to generate an fstab file
type genfstab option -U option -p and then /mnt and everything is
going to be generated to /mnt/etc/fstab let’s check the fstab file and as
you can see it contains the partition we have just created now we need to log in
to a newly installed system as a root to do the type arch-chroot /mnt /bin/bash
the next step is to set the locale of our system to do the type nano /etc/locale.gen and in this file uncomment the locale you want to use so
i’m going to uncomment en-us utf-8 utf-8 then type control O to save the changes and control X to exit and
generate the locale by typing local-gem we also need to set the clock of our
system to do that type ln -sf /usr/share/zoneinfo and here you need to
select a location in my case is Europe Sweden and then /etc/localtime after
that also type hwclock –systohc –utc now let’s
give an name to our computer to do the type echo archPC
so i am going to call it archPC and save it to /etc/hostname and here we
also need to edit our hosts file to do the type nano /etc/hosts and in this
file we need to write one more line so type one two
one dot zero dot one dot one localhost dot local domain and the name of your
computer in my case it is archPC and control O control X to save and
exit so the next step is to enable the network service to do the type systemctl enable dhcpcd now let’s set up the password type the passwd and type your
password two times so the password is set up now we are going to install
bootloader Grub to do the type pacman -S Groub and if you have several systems
on your computer you can also install os-prober but I am not going to
install it then let’s install the Grub bootloader to all the hard drive
so type Grub install and the location where you want to install it in my case
it’s /dev/sda when the bootloader is installed we need to generate a
configuration file for it to do that type Grub mkconfig with option O
/boot/grub/grub.cfg so the configuration file is generated now
let’s log out from our system type exit then unmount the system type umount
with the option -R /mnt and reboot so and here we are in our newly installed Arch system but we still need to do a couple of steps to finish our installation
login to the system as the root using the password you created previously and
the first thing we’re going to do is to create a new user type useradd with
option -m -g users and -G wheel option -s /bin/bash/ and the username in my case it is Vbox so the user is created let’s assign a password to it type passwd and
the user name and type the password so the password is created now we need to
add this user to the sudo group type editor equal nano
visudo and in this file find the line which says weel all equal all all
and uncomment it control O control X to save and exit now
let’s log out from our root login and log in as a new user so type your
username and the password you have just created and as you can see now we are
logged in as a new user let’s install audio packages type sudo pacman -S pulseaudio and pulseaudio-alsa now let’s install X org server type sudo
pacman -S xorg and also xorg-xinit and here you need to choose one of
the options depending on your graphical card I’m going with option one as I have
integrated graphics here so we are almost done but here is one more
important step so we need to create a file of initiation of our graphical
interface I am going to install KDE on this machine so I will create execution
file for it type echo exec startkde and save it to your home directory in a
file .xinitrc and I’m also going to install minimal KDE desktop
environment type sudo pacman -S plasma desktop and I’m also going to install
some additional packages so I will install console dolphin Firefox and Kate
hopefully we have done everything correctly and now with start our
graphical interface startx whoo-hoo here’s our graphical interface of Arch
Linux now we can work from within this graphical interface and the final thing
we need to do is to install the login manager so open console and install sddm program and when it’s installed we need to enable type sudo systemctl enable sddm.service and reboot your system here is our login manager let’s login into
the system and at this point the minimal install of our Arch Linux system can be
considered complete from this point you can configure the system as you want and
install only the packages you needed in my next video I’m going to describe how
I can figure Arch Linux with KDE graphical environment on my system but
if you interested in other graphical environments
please look into the description thank you for watching and please subscribe if
you don’t want to miss the next video

100 thoughts on “Installing Arch Linux in less than 10 minutes

  1. I have one problem with my Arch linux + i3 ; here I am change my ~/.Xresources of urxvt & also change wallpeapers but when I reboot my machin all changes will reset I don;t know what packages I not installed ?? HELP

  2. Run wifi-menu in bash if you want to install by WiFi , it will give you list of networks by showing a dialog to choose

  3. Did not work…after reboot it just goes back to what it looked like when I started… it does not go to "archPC login:"
    I have restarted from scratch followed these steps 3 times EXACTLY and… NOTHING… I get stuck at 5:47

  4. i can't set partition to bootable in cfdisk – there is no such option displayed
    solved this by using fdisk instead

  5. Wired Ethernet cable, ping -c 3, output:
    Temporary failure in name resolution

  6. For those whithout and Ethernet cable and onl wifi available:

    sudo wifi-menu

    Also run the following commands before rebooting onto the installed system:

    sudo pacman -S wpa-supplicant

    And in case the wifi is still not working:

    sudo ip link set dev wlp9s0 down

  7. This is a very good video, just wanted to mention if you want to use UEFI (using systemd-boot) a youtube channel called "Kai Hendry" has a good video on getting Arch up and running utilizing that.

  8. Very nice guide! Managed to get everything working except that my system hangs at [OK] Reached target Graphical Interface. After a few minutes it finally loads the KDE desktop. Weirdly enough if I spam Enter a few times it loads the desktop right away. I tried looking for a solution on the wiki, forums and random google search results, but nothing worked. I did install sddm to have a graphical login screen as well and enabled its service. Not sure if I should still have the "exec startkde" in the .xinitrc file. Probably not necessary since it is the same when I removed it. Tried reinstalling all xorg, sddm and plasma. I also tried the full plasma package, but the result was the same. I have installed nvidia drivers and reinstalling those didn't make a difference either. No change when going from the default kernel to the lts one. Any idea how to fix this? Thanks!

  9. Just as a warning to those who are using a UEFI system:
    1. You need to create a partition of about "550 MIB" within the first two gigabytes of your Hard Drive. This partition must be formatted as "FAT32" and mounted to "/boot/efi" or else, upon running "grub-install", you will receive an error stating that it cannot find the mount point.

    2. If you follow this tutorial and install Grub you also need to install "efibootmgr" with "pacman -S efibootmgr" or else you will get the error: "grub-install: error: efibootmgr: not found"

    Hope I helped! Please tell me if I need to add something to this comment!
    -Signed (FiSh) ProfessorW

  10. I just want to know how could pacstrap run that fast. How fast is your network so you can finish the task in 10 minutes?

  11. Hi thanks for great videos , my question is i can not install yaourt on arch i wrote the repository in pacman.conf but its giving error the target no found . how can i install it .
    Best regards

  12. Hi sir i know i,m asking you a lot of questions but i can not find anwsers for it i.m looking to arch linux installation guide but nothing i,m doing everything right and i,m already arch user , i can not run rankmirrors its giving zsh: command not found: rankmirrors . can you look for it ?
    Best regards

  13. After creating the user and adding the password, i reboot it. Then I couldn't log in to that user. It says that the password is wrong. I try to do it again and again. Same thing happens every time. Please help.

  14. What a douche bag. Why post something like this? It takes much longer than ten minutes to install; even when you are a Linux genius. Seemed like you were trying to break some record or confuse people by not explaining what was going on. You definitely aren't an "Average" Linux user either. All you have done here is confuse people. This is something people need to explore and learn on their own.

  15. Thanks for this. I actually was trying to test ArchLinux and today i can install with xfce4. My english is not very good but i could understand you perfectly.

  16. Linux doesn’t like to work on my video card out of the box very well so I can’t see the full error but I’ll give you what I got I got a error at the reflector part were you put were you live I installed it and everything and I got this nd not found: reflector I’m useing a 32 bit fork I’m trying to make someone’s old pentium 4 pc at lest halfway useable

  17. I'm so done, years of googling, using various distros and I get stuck on typing quotation marks "". keyloads works for me diffrently than how its described on wiki, when I somehow got to type them, my precious quoutation marks, using arrow keys to preserve them and delete balast characters, they start changing, unicode dont work, because I'm dumb.. Enjoy the diffrencies they said

  18. Hello Sir! Thanks for making this video. How can I connect to internet if it is behind proxy system before arch installation ?

  19. I am a windows user and I like linux but why does it need to be this complicated to install linux. Why can't they make arch linux installer by graphical user?

  20. After I login to my user I when I try to install audio packages, I don't have an internet connection. Why does my ethernet not work?

  21. Everything works until nano /etc/hosts, it simply doesn't have any information in it.
    # Static table lookup for hostnames.
    # See hosts(5) for details.
    I did absolutely nothing different from you, other than using wifi-menu to choose my connection instead of using wired, but, I sort of doubt that's the cause.

  22. ALU, Great Tutorial! Thank you very much!!!
    I love it that you are not wasting time with too much explanations that people can look for.

  23. If you are planing to use WiFi
    Pacstrap -i base base-devel dialog wpa_supplicant

    Also don't do dhcpd service , it will prevent you from connecting after rebooting to the system,

    Use the command wifi-menu to connect to your WiFi

  24. I followed your guide but I had an issue after installing XFCE4 and lightdm. I enabled lightdm as a service and after reboot I got a black screen and the mouse cursor. I did some research on the internet and I cannot find any solutions to my problem. It worked with gnome but with Xfce4 it did not. I tried to reinstall and still I got the same issue with Xfce4 and lightdm. Would you have a solution to resolve this issue. I installed Arch on a Dell Latitude E6440 with an Intel graphic card. By the way, continue with your outstanding work in making linux so interesting and accessible to all.

  25. for using Apps on Linux OS, you can install Mint (it's Tara nowadays,Mint 19 btw).
    for having a strong OSgasm! you can play with Arch.
    for me, Linux is just another Operating System. what that matters is it's "Philosophy" and "free Apps/Nature".

  26. I'm stuck where I install the base-devel and base. I get prompted that the default=select all. What number do I press to select all?

  27. ping -c 3 # check internet works
    pacman -Syy
    pacman -S reflector
    reflector -c "US" -f 12 -l 10 -n 12 –save /etc/pacman.d/mirrorlist
    fdisk -l # to check partitions
    cfdisk /dev/sda # setup partitions
    fdisk -l # to check new partitions
    mkfs.ext4 /dev/sda1
    mount /dev/sda1 /mnt
    pacstrap -i /mnt base base-devel
    genfstab -U -p /mnt >> /mnt/etc/fstab
    arch-chroot /mnt /bin/bash
    nano /etc/locale.gen # un comment locale for you
    ln -sf /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime
    hwclock –systohc –utc
    echo archy >> /etc/hostname
    nano /etc/hosts # write localhost.localdomain archy
    systemctl enable dhcpcd
    passwd # set root password
    pacman -S grub
    grub-install /dev/sda
    grub-mkconfig -o /boot/grub/grub.cfg
    umount -R /mnt
    useradd -m -g users -G wheel -s /bin/bash wayne
    passwd wayne #set password
    EDITOR=nano visudo #un comment wheel all=(all) all
    #login as the user you just created
    sudo pacman -S xorg-server xorg-xinit
    # now install your WM of choice

  28. I had great 4 years with Ubuntu. It's time to switch to Arch/KDE.

    Reasons to switch:

    0. No python2.7
    1. Ubuntu was taking lots of resources unnecessarily.
    2. To get complete control over system.
    3. No bloatware anymore.
    4. (will find more reasons as my time goes with Arch;) )

  29. After following these steps, I decided to switch to Deepin. But it is not working for me. What I did:
    – Entered in tty2 by 'Ctrl+Alt+F2'
    – username: root
    – sudo pacman -S deepin
    – echo "exec startdde" > ~/.xinitrc

    But it still logging-in in KDE after reboot.

  30. Hey, I wonder if I still need to install xorg and xorg-init, as GNOME wiki says Wayland is it's default server protocol now.

  31. Hi @Average Linux User!
    Firstly thank you very much for your amazing video tutorial.

    I got a display resolution issue when installing ArchLinux as a guest of VirtualBox. I followed the wiki to install virtualbox-guest-utils and virtualbox-guest-utils-nox from pacman repositiory, but not helpful.

    Could you help me out? Thanks again!

  32. Привет. Спасибо за видео. У меня тоже есть видео по установке ArchLinux

  33. I have this error when installing grub: will not proceed with blocklists

    Why are I am getting this error?

  34. Today i installed Arch first time by following your instructions. And it is done. But it took 30 mins for me . 😛

  35. if you can make a video for nvidia because on manjaro i havent any problem but in arch after installing nvidia it boot and when it come to use the gui i have a balck screen, i must module_balcklist=nvidia to have my gui back and must use nouveau for working, that's annoying because i use my gpu for crakcing password on CTF so i need opencl-nvidia to be efficient!!! Thanks for your videos!!! you rock!!

  36. أي عربي دخل هنا يشاهد ليتعلم رغم صعوبة فهم اللغة يضغط لايك

  37. thank you man, i successfully installed in Hyper-V and now since i did it right im gonna install it on my laptop.
    you are the best!

  38. Help! When I enter in /etc/hosts the file is empty: it says me "see host(5) for details". What should I do?

  39. Recent updates to arch have broken one section of this video. The pacstrap command now needs to be ‘pacstrap /mnt base linux linux-firmware’

  40. i have used this guide now a few times and it worked, but today i have issue with grub

    i run the grub-mkconfig -o /boot/grub/grub.cfg
    then all i get is "generating grub configuration file …."
    this takes like 2 seconds then gone
    No "Found linux image ……."

    Reboot machine and no arch as grub is not working

  41. The command to start kde changed so, if you tried to run startx and not happened just put this on .xinitrc:
    exec /usr/bin/startplasma-x11

Leave a Reply

Your email address will not be published. Required fields are marked *