How to Install Arch Linux-Part1

April 4, 2015

Before we begin lets have shot review on what is “archlinux” ?

Arch Linux is an independently developed, i686/x86-64 general purpose GNU/Linux distribution versatile enough to suit any role. Development focuses on simplicity, minimalism, and code elegance. Arch is installed as a minimal base system, configured by the user upon which their own ideal environment is assembled by installing only what is required or desired for their unique purposes. GUI configuration utilities are not officially provided, and most system configuration is performed from the shell by editing simple text files. Arch strives to stay bleeding edge, and typically offers the latest stable versions of most software.

Arch Linux uses its own Pacman package manager, which couples simple binary packages with an easy-to-use package build system. This allows users to easily manage and customize packages ranging from official Arch software to the user’s own personal packages to packages from 3rd party sources. The repository system also allows users to easily build and maintain their own custom build scripts, packages, and repositories, encouraging community growth and contribution.

The minimal Arch base package set resides in the streamlined [core] repository. In addition, the official [extra], [community], and [testing] repositories provide several thousand high-quality, packages to meet your software demands. Arch also offers an [unsupported] section in the Arch Linux User Repository (AUR), which contains over 9,000 build scripts, for compiling installable packages from source using the Arch Linux makepkg application. Arch Linux uses a “rolling release” system which allows one-time installation and perpetual software upgrades. It is not generally necessary to reinstall or upgrade your Arch Linux system from one “version” to the next. By issuing one command, an Arch system is kept up-to-date and on the bleeding edge.

Arch strives to keep its packages as close to the original upstream software as possible. Patches are applied only when necessary to ensure an application compiles and runs correctly with the other packages installed on an up-to-date Arch system. To summarize: Arch Linux is a versatile, and simple distribution designed to fit the needs of the competent Linux® user. It is both powerful and easy to manage, making it an ideal distro for servers and workstations. Take it in any direction you like. If you share this vision of what a GNU/Linux distribution should be, then you are welcomed and encouraged to use it freely, get involved, and contribute to the community. Welcome to Arch!

  1. Make sure you have internet connection availabity by issuing the ping command, if not use dhclient to get IP.
  2. setup partiotion by issue the command “cfdisk” , after that you should see a picture as the following

alt text

Note : The highlight text above is just an example how your partition should look like(There is an assumptipon of you know how to partiotion linux drive)

  1. Make file system
$ mkfs.ext4 /dev/sda1 root Primary
$ mkfs.ext4 /dev/sda2 home Primary
##### swap is deprecaed but this for your info
$ mkswap /dev/sda5
$ swapon /dev/sda5
  1. Mount arch linux ISO on Drive
$ mount /dev/sda1 /mnt
$ mkdir /mnt/home
$ mount /dev/sda2 /mnt/home
  1. Now its time to install the base of the arch linux, you can change the mirror list if you want by editing the file (/etc/pacman.d/mirrorlist) this one is optional
$ pacstrap /mnt/home base base-devel
###after the dowload is finished go to step 6.
  1. Generate the file system table
$ genfstab /mnt >> /mnt/etc/fstab
### just to make sure you your fstab generated check the “vi /mnt/etc/fstab”
  1. chroot to your mounted system
$ arch-chroot /mnt
### give your system a root password “passwd”
  1. Set the timezone/area locale
vi /etc/locale.gen
#### uncomment your desire language for example “ en_US.UTF8 UTF8 & en_US ISO-8859-1”
issue the command 
$ “locale-gen”
#### check your date by issue the _“date”_ command if its not set to your date zone look for your time zone in _**/usr/share/zoneinfo**_ to find where are you for me its Iran:
$ ln -s /usr/share/zoneinfo/Asia/Tehran /etc/localtime
  1. set Hostname
$ echo${Desire_hostname} > /etc/hostname
  1. Download & install the grub bootloader
$ pacman -S grub-bios
$ grub-install /dev/sda
  1. This is optional too, but if you wanna have your configuration hardware file issue the following command :
$ mkinitcpio -p linux
  1. Generate grub
$ grub-mkconfig -o /boot/grub/grub.cfg
  1. Exit chroot
$ exit
$ umount /mnt/home
$ umount /mnt/
$ reboot

Next Post how to install KDE4………