选择安装方式

CD/USB Arch启动盘安装

使用Arch启动盘比较简单方便,没有额外设置,直接阅读下一步。

USB flash installation media

启动盘制作: USB flash installation media

从已经存在的Linux系统中安装(非Arch类)

从已经存在的非Arch系统环境中安装arch,本质上是搭建引导过程中可以运行 arch-install-scripts 脚本(包括pacstraparch-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 /mnt
mkdir /mnt/boot
mkdir /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 /mnt
mount /dev/sdax/boot
mount /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.gen
locale-gen

Password:

passwd

Initial RAM:

mkinitcpio -p linux

Bootloader:

  • 安装grub2:
pacman -S grub
grub-install --target=i386-pc --recheck /dev/sda
  • Dual-booting:
pacman -S os-prober
  • 生成grub配置文件
grub-mkconfig -o /boot/grub/grub.cfg

重启

exit
reboot

最新文章

  1. 删除部分字符使其变成回文串问题——最长公共子序列(LCS)问题
  2. 遍历对象所有属性(json对象)
  3. 02-编写第一个C语言程序
  4. 【Linux】——ctags
  5. [转]基于AnyCAD的准双曲面齿轮建模
  6. Python即时网络爬虫:API说明
  7. 在Attribute Inspector 上显示自定义的控件的属性
  8. brutal是什么意思_brutal在线翻译_英语_读音_用法_例句_海词词典
  9. VBS
  10. 创建一个ROS工作空间(ROS Workspace)
  11. 使用VMware Workstation 14 Player或者Oracle VM VirtualBox安装Fedora-Workstation-netinst-x86_64-27-1.6操作系统的相关记录
  12. Android——MaterialDesign之四 FloatingActionButton、Snackbar、CoordinaterLayout
  13. angular学习2
  14. [PC]两个蓝牙耳机同时输出相同音源
  15. webstorm破解汉化
  16. 在WIN10打造成能运行Oracle的JDK的Linux
  17. 潭州课堂25班:Ph201805201 爬虫基础 第七课 Python与常见加密方式 (课堂笔记)
  18. git 命令 clone分支的代码
  19. test-ipv6
  20. swift - label 的font 设置 文字字体和大小

热门文章

  1. Kmplayer播放器 绿色免安装版 2016 中文版
  2. Pass和ClassPath变量配置
  3. python 3.5构建WINDOWS推送服务
  4. put a favicon for github pages
  5. Java源程序结构
  6. Python爬虫----Beautiful Soup4 基础
  7. 关于IT实例教程
  8. HDU 2177 取(2堆)石子游戏 (威佐夫博弈)
  9. channel bonding
  10. lldb 命令