Contents
wget -c http://ftp.otenet.gr/linux/archlinux/iso/latest/archlinux-2012.08.04-dual.iso wget -c http://ftp.otenet.gr/linux/archlinux/iso/latest/archlinux-2012.08.04-dual.iso.sig wget -c http://ftp.otenet.gr/linux/archlinux/iso/latest/md5sums.txt wget -c http://ftp.otenet.gr/linux/archlinux/iso/latest/sha1sums.txt
# md5sum archlinux-2012.08.04-dual.iso 83f3b08a58ce7397ec760817de05d8cb archlinux-2012.08.04-dual.iso # sha1sum archlinux-2012.08.04-dual.iso d5fb2364f9967e458984b8050724c749213152b2 archlinux-2012.08.04-dual.iso # pacman-key -v archlinux-2012.08.04-dual.iso.sig gpg: Signature made Sat Aug 4 03:25:33 2012 EEST using RSA key ID 9741E8AC gpg: Good signature from "Pierre Schmitz <pierre@archlinux.de>"
# dd if=archlinux-2012.08.04-dual.iso of=/dev/sdb 786432+0 records in 786432+0 records out 402653184 bytes (403 MB) copied, 5.35343 s, 75.2 MB/s
cfdisk /dev/sda
fdisk -l | grep '^Disk'
fdisk /dev/sda p
n Primary/extended : [enter] Partition number : [enter] First sector : [enter] Last sector : +25G
a
Partition number : 1
n p 2 [enter] [enter]
t 2 82
p
w
fdisk -l /dev/sda
mkfs.ext4 /dev/sda1 -L rootfs
mkswap /dev/sda2 -L swapfs
mount /dev/sda1 /mnt
ip a ip r
ip addr add 10.0.2.15/24 dev eth0 ip a ip route add default via 10.0.2.2 dev eth0 ip r
mkdir -pv /mnt/var/lib/pacman
pacman -r /mnt -Sy base
mkdir -pv /mnt//var/cache/pacman/pkg/
pacman -r /mnt --cachedir /mnt//var/cache/pacman/pkg/ -Sy base
rsync -rav /etc/pacman.d/gnupg/ /mnt/etc/pacman.d/gnupg/
mount --bind /dev /mnt/dev mount --bind /sys /mnt/sys mount --bind /proc /mnt/proc chroot /mnt /bin/bash
vi /etc/fstab
/dev/sda1 / ext4 defaults 0 1 /dev/sda2 none swap defaults 0 1
blkid
echo myarch > /etc/hostname
ln -s /usr/share/zoneinfo/Europe/Athens /etc/localtime
vi /etc/locale.gen
grep -E -v '^#|^$' /etc/locale.gen el_GR.UTF-8 UTF-8 en_US.UTF-8 UTF-8
locale-gen Generating locales ... el_GR.UTF-8 ... done en_US.UTF-8 ... done
mkinitcpio -p linux
grub-install --boot-directory=/mnt/boot /dev/sda
grub-mkconfig -o /mnt/boot/grub/grub.cfg
vi /mnt/boot/grub/grub.cfg
menuentry "Archlinux" { set root=(hd0,1) linux /boot/vmlinuz-linux root=/dev/sda1 initrd /boot/initramfs-linux.img }