ISO下载地址:http://ftp.heanet.ie/mirrors/ftp.archlinux.org/iso/2013.12.01/archlinux-2013.12.01-dual.iso

下载完后直接用光盘引导根据自己的要求选在64位的或者32位的

配置好网络,后远程连接.或者直接安装



如下命令

echo nameserver 218.85.152.99 > /etc/resolv.conf
echo 114.112.41.90 mirrors.yun-idc.com >> /etc/hosts
echo 221.236.12.140 mirrors.sohu.com >> /etc/hosts
echo 123.58.173.106 mirrors.163.com >> /etc/hosts


#分区

cfdisk /dev/sda


#分4个区:

# 300M

# 256M

# 20G

# All


#格式化

mkfs.ext4 /dev/sda1
mkswap /dev/sda2
mkfs.ext4 /dev/sda3
mkfs.ext4 /dev/sda4


#挂载分区

mount /dev/sda3 /mnt
mkdir /mnt/boot
mkdir /mnt/home
mount /dev/sda1 /mnt/boot
mount /dev/sda4 /mnt/home
swapon /dev/sda2

#添加163的源

sed -i '1i\Server = http://mirrors.163.com/archlinux/$repo/os/$arch' /etc/pacman.d/mirrorlist
sed -i '2i\Server = http://mirrors.sohu.com/archlinux/$repo/os/$arch' /etc/pacman.d/mirrorlist
sed -i '3i\Server = http://mirrors.yun-idc.com/archlinux/$repo/os/$arch' /etc/pacman.d/mirrorlist


#安装系统

pacstrap /mnt base base-devel vim net-tools openssh openssl netctl syslinux

这里启动工具用的syslinux 大家也可以根据主板情况选择grub

#生成硬盘分区配置文件

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


#配置系统

arch-chroot /mnt
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ln -s /dev/null /etc/udev/rules.d/80-net-name-slot.rules
echo "LANG=zh_CN.utf8" > /etc/locale.conf
locale-gen
hwclock --systohc --localtime
mkinitcpio -p linux
vim /boot/syslinux/syslinux.cfg

如果分区规划跟我一样的可以不检查也行,默认的就可以.其他自行检查append root=/dev/sdax 这行的sdax ----- 设置为正确的根节点所在分区即可

syslinux-install_update -iam


#如果安装grub的请执行以下命令

#grub-install dev/sda
#echo "GRUB_DISABLE_SUBMENU=y" >>  /etc/default/grub  //12月的镜像BUG要加这一句
#grub-mkconfig -o /boot/grub/grub.cfg

#修改密码

passwd


#退出

exit


#卸载分区

umount /mnt/boot ; umount /mnt/home ; umount /mnt

#重启

reboot



参考:

http://bbs.kafan.cn/thread-1371928-1-1.html

http://blog.likelikeslike.com/posts/2013-06-02/arch-linux-easy-installation.html