How to install Arch Linux

The following article is going to show you how to install Arch Linux by using Arch Install Scripts. BEFORE starting we would advise you to read this FAQ. “Arch Linux is an independently developed, i686/x86-64 general-purpose GNU/Linux distribution that strives to provide the latest stable versions of most software by following a rolling-release model. The default installation is a minimal base system, configured by the user to only add what is purposely required.” – Source

How to install Arch Linux

 

Arch Wiki which is made by the community is a very good, if not the best, source and it should be the first one you should be advised from. IRC channel (irc://irc.freenode.net/#archlinux) and forums are also available in case your answer cannot be found else where. Last but not least, it’s good to see

man

pages for every command you don’t know. This can be done by calling the

man

command.

 

How to install Arch Linux

 

 

1. Download Arch Linux

Down load then new ArchLinux ISO from here.

An virtual file is provided which can start in one i686 and x86_64 live system to Arch Linux via internet. The virtual files are signed and you should always verify their signature before using them. In Arch this can be done by using:

pacman-key -v .sig

The virtual file can be burned to a CD, to be attached as an ISO file or it can be written to a USB stick but using the “dd”. It is reserved fro new installations only. An already existing Arch Linux can be updated with:

pacman -Syu 


2. Keyboard Language

For a lot of countries and types of keyboards the appropriate keymaps are already availiable, and a command like

loadkeys uk

can do what you want. More available keymap files can be found to:

/usr/share/kbd/keymaps/

3. Disk Partition

Check this partitioning article for details. If you want to create a pile of storage devices (stacked block devices) like LVM, LUKS or RAID do it now.

 

4. Partitions Configuration

You can see here for details.

If you’re using (U)EFI it’s likely that you will need another partition to host the UEFI System partition. Read this article.

 

5. Mount of Partitions

Now we have to mount the root parttion to ” /mnt “. You will also have to create catalogs and mount every other partitions you’ll create ( ” /mnt/boot ” , “/mnt/home” , “……”) if you want them to be indentified from ” genfstab”.

 

6. Connect to the Internet

A DHCP service is already active of every available device. If one needs to define a static IP or use another tool like Netctl  , the service dhcp should be stopped first. This can be done by using the following command:

systemctl stop dhcpcd.service

For more information visit configuring network.

 

7. Wireless

Run

wifi-menu

to configure the wireless network. For more information see Wireless Network Configuration and Netctl.

 

8. Installation of  Base System

Before the installation, edit

/etc/pacman.d/mirrorlist

and remove the sumbol “#” in from of the close servers to your location. This mirrorlist copy will be installed in your new system from “pacstrap” so it is worth to be built correctly. By using pacstrap script we install the base system. The group package “base-devel” even though is optional, it should be installed if you’re planning to traslate a software from AUR or if you’re going to use ABS.

# pacstrap /mnt base base-devel

Other packages can be installed by attaching their name to the above command (separated by space) included bootloader if you wish.

 

 

9. Installation of bootloader

GRUB

For BIOS:

# arch-chroot /mnt pacman -S grub-bios

 

For EFI(in rare cases you’re going to need “grub-efi-i386”):

# arch-chroot /mnt pacman -S grub-efi-x86_64

 

Installation of GRUB after chrooting

 

SysLinux

# arch-chroot /mnt pacman -S syslinux

10. System Configuration

Create fstab with the following command(if you wish to use UUIDs or Labels, add the choise “-u” or “-l” respectively)

# genfstab -p /mnt >> /mnt/etc/fstab

 

Then we do chroot to our new installed system:

# arch-chroot /mnt

 

Write your Hostname to “/etc/hostname” and create a symlink of “/etc/localtime” to  ” /usr/share/zoneinfo/Zone/SubZone”. Replace “zone” and “subzone” to what you want. For example:

# ln -s /usr/share/zoneinfo/Europe/Athens /etc/localtime

 

Set the preferences of locale to ” /etc/locale.conf”

Add the preferences of  console keymap and font family to “/etc/vconsole.conf”.

Uncomment locale that you want to use to “/etc/locale.gen” and create it with “locale-gen.”

Configure the “/etc/mkinitcpio.conf” as it is needed (see mkinitcpio) and create the initial Ram disk with:

# mkinitcpio -p linux

Form the bootloader(it is mentioned already earlier on this article.

Set a password for roo with the order “passwd”

11. Unmount Partitions and restart

If you’re still in chroot environment type “Exit” or press “ctrl+D” to exit. They use the following command

# umount /mnt/{boot,home,}

Then restart and log in to the new system with the root account.

 

12. Pacman configuration.

Edit “/etc/pacman.conf ” and configure it’s otions by activating every repository you need. See Pacman and Official repositories for details.

 

13. System Update

See Upgrating Packages for Information

 

14. Add User

Last step, add a normal user as it is describe in User management

 

if everything is done correctly you should be able to install arch linux. You can also check out the following video that shows How to install Arch Linux

Source

 
comments powered by Disqus