Arch Linux系统的安装(BIOS)教程,archlinux
Arch Linux系统的安装(BIOS)教程,archlinux
一、简介
Arch linux是朝向轻量(lightweight)以及简单(simple)的Linux发行版。其中“简单”(Simplicity)被定义为“避免不必要或复杂的修改”,也就是说,是由开发者角度定义,而非用户角度思考。
二、优势
1.特有的包管理系统Archlinux是针对特定处理器而优化过的,能够更好地利用CPU周期以提高性能。相比Debian/Ubuntu、SUSE、RedHat/Fedora等其他发行版,Archlinux属于轻量级选手,其简单的设计让它容易被轻松扩展和配置成为任何想要的系统类型。
2.通过二进制包管理系统pacman,仅需一个命令就能完成安装、升级等多个操作。同时也附带一个类似ports的包构建系统ABS(Arch Build System)。
三、缺点
1.安装过程简陋,缺乏智能直观的错误处理,需要用户有一定的Linux环境常识才能正确安装使用。仅对i686、x86_64 架构优化,对于其它CPU架构支持匮乏。
2. 包管理系统pacman在升级过程缺乏对系统核心组件的回溯保护,如升级的Kernel有问题,即导致系统无法启动。
3. 系统软件缺乏严谨的测试管理机制,稳定性、可靠性不如Redhat、CentOS、Debian等发行版,难以在企业用户中推广。
四、安装
1、安装基本系统
[root@tom / ]#fdisk/dev/sda
[root@tom / ]#mkfs.ext4/dev/sda1
[root@tom / ]#mount/dev/sda1/mnt/
[root@tom / ]#mkdir/mnt/boot
[root@tom / ]#mount/dev/sda1/mnt/boot
[root@tom / ]#dhcpcd获取IP
2、设置软件源:
[root@tom / ]#vi/etc/pacman.d/mirrorlist
[root@tom ]# pacman -Syy强制刷新数据库
3、安装基本系统:
[root@tom / ]#pacstrap /mnt base
4、生成fstab:
[root@tom / ]#genfstab -U -p/mnt >> /mnt/etc/fstab
5、配置基础系统
[root@tom / ]#arch-chroot/mnt/bin/bash
6、设置Locale:
[root@tom / ]#nano/etc/locale.gen
内容大致修改为:
en_US.UTF-8UTF-8
zh_CN.UTF-8UTF-8
7、生成locale讯息:
[root@tom / ]#locale-gen
8、创建locale.conf:
[root@tom / ]#echo LANG=en_US.UTF-8 > /etc/locale.conf
9、设置时区:
[root@tom / ]#ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
10、设置硬件时间:
[root@tom / ]#hwclock --systohc --utc
11、设置主机名:
[root@tom / ]#echo archlinuxpc > /etc/hostname
12、设置自动连接有线网络:
[root@tom / ]#systemctl start dhcpcd
[root@tom / ]#systemctl enable dhcpcd
13、设置root密码:
[root@tom / ]#passwd
14、安装GRUB:
[root@tom / ]#pacman -S grub os-prober
[root@tom / ]#grub-install --target=i386-pc --recheck /dev/sda
[root@tom / ]#grub-mkconfig -o /boot/grub/grub.cfg
15、卸载分区并重启机器:
[root@tom / ]#exit退回安装环境
[root@tom / ]#umount -R /mnt/boot
[root@tom / ]#umount -R /mnt
[root@tom / ]#reboot
评论暂时关闭