# Archlinux base files
Text editor will be used in the next example. Vim or Nano should already be installed.
On the live system all mirrors are enabled and sorted by their synchronization status and speed at the time the installation was created.
You may want to sort mirrors from time to time.
The higher a mirror is placed in the list, the more priority it is given when downloading a package. So it's better to check this file and edit it with geographically closest mirrors on the top.
This file will be copied with
Since tt could be your first time editing with vim, here is an example how you can navigate in command mode, put some input in insert mode:
escto make sure you are in command mode
lfor navigating - left down up right
- by pressing
vyou will enter visual mode or visual line mode by pressing
shift + v
- then you can paste it with
- select what you need to cut and type
- to save and exit press
:you will see letters at the very bottom)
If you don't want to spent time learning this powerfull tool (which I highly recommend), you have several other options including nano.
To use nano you should at least know how to save and exit:
- ctrl+o - save
- ctrl+x - exit
# Install Arch base files
Now install base packages to our assigned
You can install additional packages like git or wget in this step.
pacstrap /mnt base base-devel git wpa_supplicant
# Generate and edit fstab
genfstab -U /mnt >> /mnt/etc/fstab
And check if everything is correct:
You should see something like this:
# <file system by UUID> <dir> <type> <options> <dump> <fsck> UUID=XXXX-XXXX /boot vfat defaults 0 2 UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX / ext4 defaults 0 1 UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX /home ext4 defaults 0 2 UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX none swap defaults 0 0
This is very important to check your
/mnt/etc/fstab file, in case of mistake you will not be able to run system properly.