选择安装方式

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

Arch安装详解的更多相关文章

  1. Linux ssh登录和软件安装详解

    阿哲Style   Linux第一天 ssh登录和软件安装详解 Linux学习第一天 操作环境: Ubuntu 16.04 Win10系统,使用putty_V0.63 本身学习Linux就是想在服务器 ...

  2. 【转】Linux下Android ADB驱动安装详解

    原文网址:http://blog.csdn.net/zhenwenxian/article/details/5901350 Linux下Android ADB驱动安装详解 概述 最近由于内置的合作商比 ...

  3. scribefire 多博客管理利器 安装详解

    scribefire 多博客管理利器 安装详解 一.ScribeFire介绍 ScribeFire 是 Firefox (火狐浏览器)上著名的博客写作工具,目前已跨平台支持多浏览器(Firefox,C ...

  4. CentOS 6.5的安装详解

    CentOS 6.5的安装详解 主流: 目前的Linux操作系统主要应用于生产环境, 主流企业级Linux系统仍旧是RedHat或者CentOS 免费: RedHat 和CentOS差别不大,Cent ...

  5. Linux下tomcat的安装详解

    Linux下tomcat的安装详解 来源: ChinaUnix博客 日期: 2007.01.21 22:59 (共有0条评论) 我要评论 一,安装前的准备:1,Linux版本:我的是企业版.(至于红帽 ...

  6. Phoenix和SQuirrel安装详解

    Phoenix安装详解 描述 现有hbase的查询工具有很多如:Hive,Tez,Impala,Shark/Spark,Phoenix等.今天的主角是Phoenix. phoenix,中文译为“凤凰” ...

  7. zabbix agent安装详解

    安装 Installing repository configuration package Zabbix 2.2 for RHEL5, Oracle Linux 5, CentOS 5: rpm - ...

  8. zabbix server安装详解

    简介 zabbix(音同 zæbix)是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案. zabbix能监视各种网络参数,保证服务器系统的安全运营:并提供灵活的通知机制以 ...

  9. Oracle Database 12c Release 2安装详解

    第1章 Oracle Database 12c Release 2安装详解 1.1 下载方法 oracle官网https://www.oracle.com 1)打开官方网站,找到下载连接 2)选择更多 ...

随机推荐

  1. <poj - 2139> Six Degrees of Cowvin Bacon 最短路径问题 the cow have been making movies

    本题链接:http://poj.org/problem?id=2139 Description:     The cows have been making movies lately, so the ...

  2. centos安装ganttproject

    官网下载 http://www.ganttproject.biz/ 我的JAVA早已经安装了. 问题:root #ganttproject 提示org.bardsoftware.eclipsito.B ...

  3. CodeForces 711C Coloring Trees

    简单$dp$. $dp[i][j][k]$表示:前$i$个位置染完色,第$i$个位置染的是$j$这种颜色,前$i$个位置分成了$k$组的最小花费.总复杂度$O({n^4})$. #pragma com ...

  4. Qt 外观之一 ——Qt Style Sheet

    Qt Style Sheet 目录 使用 对于应用程序 创建自定义控件 QSS语法 一般选择器(selector) 伪选择器 解决冲突 使用specificity Namespace冲突 级联效应 设 ...

  5. jQuery中的ajax使用详解

    $.ajax({   type : "get",   url : "http://www.w3school.com.cn/jquery/ajax_ajax.asp&quo ...

  6. php获取url字符串截取路径的文件名和扩展名

    <?php //获取连接里边的id $url = 'http://www.rong123.com/cjbkscbsd/x_dfsdfs/24454_1_1.html'; function get ...

  7. jsp或servlet返回并刷新页面

    2012-04-27 22:39:05|  分类: JAVA |  标签:返回刷新  |举报|字号 订阅     只用window.history.back(-1);返回页面但不会刷新,还是原来的数据 ...

  8. @classmethod及@staticmethod方法浅析【python】

    目前对于python中@classmethod 类方法和@staticmethod静态方法的有了一定的认识,之后有进一步的认识后继续记录. @classmethod :是和一个class类相关的方法, ...

  9. CharSequence 接口

    java中有些方法需要用到CharSequence 类型的参数,笔者百度了一下,总结出一下几点: 1.CharSequence 是一个接口,可以直接用“=”赋值一段字符串,但是不能用new新建一个对象 ...

  10. android studio的lib和jniLibs

    在android studio 中添加jar和so时,将jar文件直接拷贝到 项目目录\app\libs下即可,将so文件按照平台分类目录放到 项目目录\app\src\main\jniLibs\平台 ...