安装Arch Linux详解
来源:互联网 发布:linux vi search 编辑:程序博客网 时间:2024/05/17 01:27
选择安装方式
CD/USB Arch启动盘安装
使用Arch启动盘比较简单方便,没有额外设置,直接阅读下一步。
USB flash installation media
启动盘制作: USB flash installation media
从已经存在的Linux系统中安装(非Arch类)
从已经存在的非Arch系统环境中安装arch,本质上是搭建引导过程中可以运行arch-install-scripts
脚本(包括pacstrap
和arch-chroot
命令) 的系统环境。
- 创建Arch chroot环境
1、推荐使用bootstrap
镜像
### Download the bootstrap image from a mirror: [root@GENTOO ~] curl -O http://mirrors.kernel.org/archlinux/iso/2015.10.01/archlinux-bootstrap-2015.10.01-x86_64.tar.gz### Extract the tarball: [root@GENTOO ~] cd /tmp# tar xzf <path-to-bootstrap-image>/archlinux-bootstrap-2015.10.01-x86_64.tar.gz
2、编辑/tmp/root.x86_64/etc/pacman.d/mirrorlist
本件,选择镜像源
3、进入chroot环境
/tmp/root.x86_64/bin/arch-chroot /tmp/root.x86_64/
- 使用Arch chroot环境
1、初始化pacman keyring
# pacman-key --init# pacman-key --populate archlinux
2、编辑/etc/pacman.d/mirrorlist
本件,选择镜像源
3、更新软件列表
# pacman -Syyu
4、安装系统
Arch Chroot环境已经具备,继续下面的步骤,选择安装需要的系统base
, base-devel
, parted
等.
参考:https://wiki.archlinux.org/index.php/Install_from_existing_Linux
准备
准备磁盘分区
- 新建并格式化分区
至少准备一个足够大的/分区,如果磁盘容量足够,可以额外创建/home、/boot等。
- 创建挂载目录
mkdir /mntmkdir /mnt/bootmkdir /mnt/home
- 挂载根分区和swap
Mount the root partition on /mnt. After that, create directories for and mount any other partitions (/mnt/boot, /mnt/home, …) and activate your swap partition if you want them to be detected later by genfstab.
mount /dev/sdax /mntmount /dev/sdax/bootmount /dev/sdax/home
准备连接
- 有线:
默认使用Dhcp,一般自动检测,无需设置
- 无线:
wifi-menu
- 编辑镜像列表
wget -O /etc/pacman.d/mirrorlist https://www.archlinux.org/mirrorlist/all/
取消注释中国的镜像
安装系统
pacstrap /mnt base
配置系统
fstab文件
- Generate an fstab file (use -U or -L to define by UUID or labels):
genfstab -p /mnt >> /mnt/etc/fstab
chroot
arch-chroot /mnt
Hostname:
echo computer_name > /etc/hostname
Time zone:
ln -sf /usr/share/zoneinfo/zone/subzone /etc/localtime
Locale:
nano -w /etc/locale.genlocale-gen
Password:
passwd
Initial RAM:
mkinitcpio -p linux
Bootloader:
- 安装grub2:
pacman -S grubgrub-install --target=i386-pc --recheck /dev/sda
- Dual-booting:
pacman -S os-prober
- 生成grub配置文件
grub-mkconfig -o /boot/grub/grub.cfg
重启
exitreboot
- Arch Linux安装详解
- 安装Arch Linux详解
- Arch Linux 新版安装
- VMware安装Arch Linux
- VirtualBox安装Arch Linux
- Arch Linux 安装小记
- Arch Linux 安装笔记
- Arch Linux安装
- Arch Linux 安装小记
- Arch linux 的安装
- Arch Linux安装记录
- Arch Linux 安装笔记
- arch linux下安装vmware8
- Arch Linux最小化安装X
- Arch Linux安装简明流程
- Arch Linux 安装配置备忘录
- Vmware 安装 Arch Linux 2015
- Arch Linux安装中文输入法
- 黑马程序员-------OC中的一些核心语法
- iOS 9 应用提交,TencentOpenApi_IOS_Bundl.bundle报错无法提交
- Jenkins系列之—06 Publish Over FTP Plugin插件
- linux下的C语言开发(定时器)
- Nginx/LVS/HAProxy负载均衡软件的优缺点详解
- 安装Arch Linux详解
- TSSAO Temporal Screen-Space Ambient Occlusion (Unity3d 5 示例实现)
- 获取url参数的几种方式
- 【面向对象】初步接触三层架构
- Java输入输出流的使用详细介绍
- Pacman常用命令
- char 型 127+1后的结果
- myeclipse 下 fineReport 报表制作流程简介
- Jenkins系列之—07 FTP publisher plugin插件