Tuesday, January 1, 2013

How to install Archlinux Net Install

Not like previous iso, the new Archlinux 2012 media is more simple than before ;-), the AIF is now removed, and you must install it manually and the internet connection is required. So this mean it's archlinux net install.
The easy way to install archlinux. I usually using gparted tools, and create "/" partition & "swap" partition only. Okay download the latest iso on http://www.archlinux.org/download/

1. Create partition using gparted.

For this example, i created a root partition "/" on /dev/sda1
If you want to separate /home, for this example created on /dev/sda2
To create swap, for this example created on /dev/sda3

2. Create bootable image

Burn archlinux image on cd, or you can flash image to flashdisk using dd
#dd if=archlinux.iso of=/dev/sdX
X is your partition of flashdisk
test this using fdisk -l
if you see /dev/sdb1, then just use /dev/sdb

3. Boot live cd/live usb

If your proccessor support 32 bit, choose 32 bit, if your proccessor support 64 bit, choose 64bit. For my machine i using 64bit of my intel Atom n455 with 1gb ram. (no problem at all)

4. Setup the internet. 

5. Set up repo manually

Find a good repo on your country, for this example i'm using kambing repo.
#nano /etc/pacman.conf
If you using 32 bit, you just need core, extra, and community.
For 64 bit, if you want to be able to run 32 bit application you need enable multilib repo. Uncomment (remove #) on multilib.
How to install Archlinux Net Install
6. Mount root partition
#mount /dev/sda1 /mnt

7. Install Base, Base devel, internet tools.
#pacstrap /mnt base base-devel
#pacstrap /mnt wpa_supplicant wireless_tools net-tools eject wvdial usb_modeswitch

8. Install GRUB (default is grub2)
#pacstrap /mnt grub-bios

9. generate fstab
#genfstab -p /mnt >> /mnt/etc/fstab

10. Login into arch chroot
#arch-chroot /mnt
shell will like this

11. Edit hostname

sh-4.2#nano /etc/hostname
write your pc name that you like for this example:
cidtuxnet, empty it to make default
sh-4.2#nano /etc/hosts
edit like this (for example), default "localhost"
then save.
How to install Archlinux Net Install
Note : if you want to install CUPS, just make it default.

12. Set timezone & locale info
Time zone is located on /usr/share/zoneinfo
Create symlink, on my area is ASIA & Jakarta
sh-4.2#ln -s /usr/share/zoneinfo/Asia/Jakarta /etc/localtime

Set locale info
sh-4.2#nano /etc/locale.gen
Uncomment (remove #) these (english default) :
en_US.UTF-8 UTF-8 
en_US ISO-8859-1

13. Setup partition

swap partition
on first step above, swap is /dev/sda2 to activate it
sh-4.2#mkswap /dev/sda2
sh-4.2#swapon /dev/sda2
to activate every boot
sh-4.2#nano /etc/fstab
add this line
/dev/sda2 none swap defaults 0 0
then save

/home partition (skip it  if your /home on set "root" partition)
sh-4.2#nano /etc/fstab
add this line
/dev/sda3 /home ext4 defaults,noatime 0 2
then save

14. Install Grub & set root password
sh-4.2#grub-install --target=i386-pc /dev/sda --force
sh-4.2#grub-mkconfig -o /boot/grub/grub.cfg

set root pasword
enter your password

15. Reboot
#cd /
#umount /dev/sda1

Now your archlinux base system with internet tools is installed enjoy.

How to install Archlinux Net Install

Enjoy. :D
Share on Facebook
Share on Twitter
Share on Google+
Tags :