Hits : 6256

Install Archlinux with media 2012.07.15


basic net-installation


Contents



DownLoad iso & files


curl -sLO http://ftp.otenet.gr/linux/archlinux/iso/2012.07.15/archlinux-2012.07.15-netinstall-dual.iso
curl -sLO http://ftp.otenet.gr/linux/archlinux/iso/2012.07.15/archlinux-2012.07.15-netinstall-dual.iso.sig
curl -sLO http://ftp.otenet.gr/linux/archlinux/iso/2012.07.15/md5sums.txt
curl -sLO http://ftp.otenet.gr/linux/archlinux/iso/2012.07.15/sha1sums.txt


top

Verify iso & Signature


md5sum archlinux-2012.07.15-netinstall-dual.iso
a40c60ce93efb9dfd9a7353310fed35a  archlinux-2012.07.15-netinstall-dual.iso
 
sha1sum archlinux-2012.07.15-netinstall-dual.iso
e1dde4208add14e81beb25073857c5ebac0099cb  archlinux-2012.07.15-netinstall-dual.iso
 
pacman-key -v archlinux-2012.07.15-netinstall-dual.iso.sig 
gpg: Signature made Sun Jul 15 17:19:46 2012 EEST using RSA key ID 9741E8AC
gpg: Good signature from "Pierre Schmitz <pierre@archlinux.de>"


top

Write iso to usb


dd if=archlinux-2012.07.15-netinstall-dual.iso of=/dev/sdb
757760+0 records in
757760+0 records out 387973120 bytes (388 MB) copied, 140.761 s, 2.8 MB/s


top

Boot from usb 






top

Make partitions


cfdisk /dev/sda






top

Format partitions


mkfs.ext4 /dev/sda1 -L rootfs




mkswap /dev/sda2 -L swapfs




top

Mount root partition


mount /dev/sda1 /mnt




top

Configure network


dhclient eth0
ipip r




top

Prepare Root


mkdir -pv /mnt/var/log
mkdir -pv /mnt/var/lib/pacman
mkdir -pv /mnt/var/cache/pacman/pkg




top

Install Archlinux


pacman --root /mnt --cachedir /mnt/var/cache/pacman/pkg --dbpath /mnt/var/lib/pacman --logfile /mnt/var/log/pacman.log -Sy base



Select all packages



Packages are being downloaded




top


Chroot to your new enviroment


mount --bind /dev /mnt/dev
mount --bind /sys /mnt/sys
mount --bind /proc /mnt/proc
chroot /mnt




top

Edit your fstab


vi /etc/fstab


/dev/sda1    /    ext4   defaults    0    1
/dev/sda2    none    swap    defaults    0    1




top



Locale


vi /etc/locale.gen


eg.
grep -v '^#' /etc/locale.gen
el_GR.UTF-8 UTF-8
en_US.UTF-8 UTF-8


and then

locale-gen
 
Generating locales ...
    el_GR.UTF-8 ... done
    en_US.UTF-8 ... done




top


Build initial RAM disk


mkinitcpio -p linux




top

Install Grub


exit from your chroot

grub-install --root-directory=/mnt /dev/sda



Create Menu List


cp /boot/grub/menu.lst /mnt/boot/grub/
vi /mnt/boot/grub/menu.lst



# (0) Arch Linux
title  Arch Linux [/boot/vmlinuz-linux]
root   (hd0,0)
kernel /boot/vmlinuz-linux root=/dev/sda1 ro
initrd /boot/initramfs-linux.img




top

Reboot




Login



top


Beginners' Guide


https://wiki.archlinux.org/index.php/Beginners'_Guide

top