铄字五行属什么| 什么人不能吃玉米| 胃寒吃什么食物暖胃| 氯化镁是什么| 谷氨酰转肽酶高是什么原因| 秋葵有什么作用| 嘴巴里长血泡是什么原因| 托是什么意思| 1995是什么年| 眼睛里有红血丝是什么原因| 学兽医需要什么学历| 心律不齐吃什么药| 心包填塞三联征是什么| 晚上老咳嗽是什么原因| 痛风打什么针见效最快| 算五行缺什么免费测试| 岚字五行属什么| 八哥吃什么食物| 女儿的孩子叫什么| 五行木是什么颜色| 数字专辑什么意思| 什么食物含铁量最高| 梦见自己被抢劫了预示什么| 男神是什么意思| 中性粒细胞百分比偏低是什么意思| 金刚是什么树的种子| 细菌性阴道炎用什么药好| 饭后痰多是什么原因| cindy什么意思| 肝区疼痛吃什么药| 肚皮冰凉是什么原因呢| 越南人说什么语言| 什么叫囊性结节| 八段锦什么时间练最好| 祝著节是什么时候| 中度贫血是什么原因造成的| 吃槟榔有什么危害| 拔牙能吃什么| 氯化钾是什么| 一个月一个办念什么| 男性尿路感染有什么症状| 什么动物最聪明| 什么的东西| 大麦和小麦有什么区别| 心脏支架是什么材料做的| 什么叫人| 宫腔粘连是什么原因引起的| 六爻小说讲的什么| 公务员和事业编有什么区别| 什么是直接胆红素| 五行属土缺命里缺什么| 鸡蛋加什么吃壮阳持久| 一什么笑声| 预激综合征是什么病| 十二生肖它第一是什么生肖| 肚脐右边疼是什么原因| 卷饼卷什么菜好吃| 30岁用什么眼霜比较好| 自诩是什么意思| 睡觉出汗多是什么原因| 吃什么食物可以补充雌激素| 脚褪皮是什么原因| 一片哗然是什么意思| 股票解禁是什么意思| 皮疹用什么药| 北加田加共是什么字| 迎春花是什么颜色的| 天葵是什么| 脑供血不足吃什么好| 次方是什么意思| 琅琊榜是什么意思| mo是什么元素| 1964年是什么生肖| 怀孕是什么脉象| 什么叫宫腔粘连| 化疗后吃什么补身体| secret什么意思| 乙肝不能吃什么东西| 左腹下方隐痛什么原因| 怀孕生化了是什么原因| 鸭跖草用什么除草剂| 过敏性鼻炎吃什么药| 小孩子腿疼是什么原因| 什么叫眩晕| 脑电图能检查出什么疾病| 血去掉一撇念什么| 小代表什么生肖| 话糙理不糙是什么意思| 深圳居住证有什么用| 揩油什么意思| 氨酶偏高是什么意思| 心经讲的是什么| 有过之而不及什么意思| 肛门坠胀用什么药| 火牛命五行缺什么| 什么的溪流| 冬虫夏草有什么好处| 九十岁老人称什么| 手热脚热是什么原因| 熊喜欢吃什么食物| 麦克白夫人什么意思| it是什么牌子的衣服| 怀孕养狗对胎儿有什么影响| 胰腺检查做什么检查| 姑妈的老公叫什么| 94年属什么的| 12月13日是什么纪念日| 以爱之名什么意思| 地图舌是什么原因引起的| 宋威龙什么星座| 吃完饭就拉肚子是什么原因| 九重天是什么意思| 解脲脲原体阳性是什么病| pet是什么意思| 漂洗是什么意思| 我要控制我自己是什么歌| 生病吃什么| 乾隆和康熙是什么关系| kkb什么意思| 图谋不轨什么意思| 脾大有什么危害| 帕金森吃什么药好得快| 孔雀男是什么意思| 男人补锌有什么好处| 胰腺炎吃什么好| 口甜是什么原因引起的| 验孕棒阳性代表什么| 蒲公英长什么样| 石灰是什么| 吃什么东西补钙| 孕妇吃什么菜好| 1026什么星座| 心阴虚吃什么食物| 骨蒸潮热 是什么意思| 输血四项检查是什么| 叶酸在什么食物里最多| 秘辛是什么意思| 人被老鼠咬了什么预兆| 梦女是什么意思| 什么照片看不出照的是谁| 为什么午睡起来会头疼| 龙和什么生肖最配| 糖尿病可以喝什么饮料| 蛇是什么号码| 蚂蚁上树什么姿势| 区法院院长是什么级别| siv是什么意思| 宫保鸡丁是什么菜系| 做hpv检查前要注意什么| 小孩嘴唇发白是什么原因| 吃胡萝卜有什么好处| fnh是什么病| 黄体功能不全是什么意思| 柚子是什么季节的水果| 什么药清肺化痰好| 尿频尿急吃什么药| 唇珠是什么| 掌纹多而乱代表什么| h2o是什么| 九月二十是什么星座| 丽江机场叫什么名字| 囊肿是什么原因引起的| 肾结石吃什么水果最好| 连奕名为什么娶杨若兮| 血小板分布宽度偏高是什么意思| 孕妇红细胞偏低是什么原因| 梦见洪水是什么意思| 牙龈出血是什么病的前兆| 没有料酒可以用什么代替| 媱五行属什么| 不care是什么意思| 翻车了是什么意思| 钙过量会有什么症状| 狗皮膏药是什么意思| 怀孕的最佳时间是什么时候| 血常规查的是什么项目| 月经一个月来两次是什么原因| 遮羞布是什么意思| 没事在家可以做些什么| 总感觉饿是什么原因| 脸上出油多是什么原因| 血糖高适合吃什么零食| 背上长痘痘擦什么药膏| 三途苦是指的什么| 一什么天| 甲状腺结节低回声什么意思| 肺痿是什么意思| 等闲变却故人心却道故人心易变什么意思| 肝属于五行中的什么| 丰富多腔的腔是什么意思| 什么菜炒肉好吃| 梦见很多坟墓是什么意思| 20至30元什么烟最好抽| 按摩是什么意思| 七月一号什么星座| 咳嗽吐黄痰是什么原因| 梦到插秧是什么意思| 卵巢囊性结构是什么意思| 3.8什么星座| 螺旋菌感染有什么危害| 荔枝和什么吃会中毒| 嘴巴苦吃什么药| 血小板低吃什么水果好| 夏天容易出汗是什么原因| 膝盖咔咔响吃什么药| 阿司匹林什么时候吃最好| 写意是什么意思| 鲨鱼为什么不吃海豚| 开胃菜都有什么| 烤麸是用什么做的| cim是什么意思| 高颜值是什么意思| 咳嗽吃什么| 祠堂是什么意思| 耕的左边读什么| 物是人非什么意思| 属猴的是什么命| 胆囊壁不光滑是什么意思| 在五行中属什么| 夏天脸上皮肤痒是什么原因| 耳朵响是什么原因| bl小说是什么意思| 两情相悦什么意思| 九月24日是什么星座| 朝野是什么意思| 什么是滑精| 断码是什么意思| 用什么刷牙能使牙齿变白| 人类免疫缺陷病毒抗体是什么意思| 奔豚是什么意思| 回字是什么结构| 山峰是什么意思| 氯气是什么颜色| 什么叫哮喘| 喝老陈醋有什么好处| 胆囊炎挂什么科室| 柬埔寨用什么货币| 萤火虫为什么发光| 农历七月十五是什么节| 大禹姓什么| ct和拍片有什么区别| 盗汗挂什么科| 子宫内膜手术后需要注意什么| 安属于五行属什么| 一个月来两次例假是什么原因| 1995年是什么年| 波字五行属什么| 适当是什么意思| 920是什么意思| 不伤肝的他汀类药是什么| 如常所愿是什么意思| 旭日东升是什么生肖| 为什么会得甲减| 孩子经常发烧是什么原因| 使婢差奴过一生是什么意思| 儿童反复发烧什么原因| loves是什么意思| 西天取经是什么意思| 卫生巾有什么用| 阿罗汉是什么意思| 嘴巴边上长痘痘是什么原因| 什么是痔疮| 女人梦见火是什么预兆| 垣字五行属什么| 百度
Jump to content

农业部传达贯彻第八次全国信访工作会议精神

From ArchWiki
Boot the live environment: add the file path for README.bootparams in the live environment, see Talk:Installation guide#GitLab blobs in Lynx
Line 289: Line 289:
=== Chroot ===
=== Chroot ===


[[Change root]] into the new system:
To directly interact with the new system's environment, tools, and configurations for the next steps as if you were booted into it, [[change root]] into the new system:


? # arch-chroot /mnt
? # arch-chroot /mnt

Revision as of 13:39, 28 June 2025

百度 “对经纪服务费用由谁支付并没有明确要求,是由交易当事人自行约定的。

This document is a guide for installing Arch Linux using the live system booted from an installation medium made from an official installation image. The installation medium provides accessibility features which are described on the page Install Arch Linux with accessibility options. For alternative means of installation, see Category:Installation process.

Before installing, it would be advised to view the FAQ. For conventions used in this document, see Help:Reading. In particular, code examples may contain placeholders (formatted in italics) that must be replaced manually.

This guide is kept concise and you are advised to follow the instructions in the presented order per section. For more detailed instructions, see the respective ArchWiki articles or the various programs' man pages, both linked from this guide. For interactive help, the IRC channel and the forums are also available.

Arch Linux should run on any x86_64-compatible machine with a minimum of 512 MiB RAM, though more memory is needed to boot the live system for installation.[1] A basic installation should take less than 2 GiB of disk space. As the installation process needs to retrieve packages from a remote repository, this guide assumes a working internet connection is available.

Pre-installation

Acquire an installation image

Visit the Download page and, depending on how you want to boot, acquire the ISO file or a netboot image, and the respective PGP signature.

Verify signature

It is recommended to verify the image signature before use, especially when downloading from an HTTP mirror, where downloads are generally prone to be intercepted to serve malicious images.

On a system with GnuPG installed, do this by downloading the ISO PGP signature (under Checksums in the page Download) to the ISO directory, and verifying it with:

$ gpg --keyserver-options auto-key-retrieve --verify archlinux-version-x86_64.iso.sig

Alternatively, from an existing Arch Linux installation run:

$ pacman-key -v archlinux-version-x86_64.iso.sig
Note
  • The signature itself could be manipulated if it is downloaded from a mirror site, instead of from archlinux.org as above. In this case, ensure that the public key, which is used to decode the signature, is signed by another, trustworthy key. The gpg command will output the fingerprint of the public key.
  • Another method to verify the authenticity of the signature is to ensure that the public key's fingerprint is identical to the key fingerprint of the Arch Linux developer who signed the ISO-file. See Wikipedia:Public-key cryptography for more information on the public-key process to authenticate keys.

Prepare an installation medium

The ISO can be supplied to the target machine via a USB flash drive, an optical disc or a network with PXE: follow the appropriate article to prepare yourself an installation medium from the ISO file.

For the netboot image, follow Netboot#Boot from a USB flash drive to prepare a USB flash drive for UEFI booting.

Boot the live environment

Note Arch Linux installation images do not support Secure Boot. You will need to disable Secure Boot to boot the installation medium. If desired, Secure Boot can be set up after completing the installation.
  1. Point the current boot device to the one which has the Arch Linux installation medium. Typically it is achieved by pressing a key during the POST phase, as indicated on the splash screen. Refer to your motherboard's manual for details.
  2. When the installation medium's boot loader menu appears,
    • if you used the ISO, select Arch Linux install medium and press Enter to enter the installation environment.
    • if you used the Netboot image, choose a geographically close mirror from Mirror menu, then select Boot Arch Linux and press Enter.
      Tip
  3. You will be logged in on the first virtual console as the root user, and presented with a Zsh shell prompt.

To switch to a different console—for example, to view this guide with Lynx alongside the installation—use the Alt+arrow shortcut. To edit configuration files, mcedit(1), nano and vim are available. See pkglist.x86_64.txt for a list of the packages included in the installation medium.

Set the console keyboard layout and font

The default console keymap is US. Available layouts can be listed with:

# localectl list-keymaps

To set the keyboard layout, pass its name to loadkeys(1). For example, to set a German keyboard layout:

# loadkeys de-latin1

Console fonts are located in /usr/share/kbd/consolefonts/ and can likewise be set with setfont(8) omitting the path and file extension. For example, to use one of the largest fonts suitable for HiDPI screens, run:

# setfont ter-132b

Verify the boot mode

To verify the boot mode, check the UEFI bitness:

# cat /sys/firmware/efi/fw_platform_size
  • If the command returns 64, the system is booted in UEFI mode and has a 64-bit x64 UEFI.
  • If the command returns 32, the system is booted in UEFI mode and has a 32-bit IA32 UEFI. While this is supported, it will limit the boot loader choice to those that support mixed mode booting.
  • If it returns No such file or directory, the system may be booted in BIOS (or CSM) mode.

If the system did not boot in the mode you desired (UEFI vs BIOS), refer to your motherboard's manual.

Connect to the internet

To set up a network connection in the live environment, go through the following steps:

  1. Ensure your network interface is listed and enabled, for example with ip-link(8):
    # ip link
  2. For wireless and WWAN, make sure the card is not blocked with rfkill.
  3. Connect to the network:
    • Ethernet—plug in the cable.
    • Wi-Fi—authenticate to the wireless network using iwctl.
    • Mobile broadband modem—connect to the mobile network with the mmcli utility.
  4. Configure your network connection:
  5. The connection may be verified with ping:
    # ping archlinux.org
Note In the installation image, systemd-networkd, systemd-resolved, iwd and ModemManager are preconfigured and enabled by default. That will not be the case for the installed system.

Update the system clock

In the live environment systemd-timesyncd is enabled by default and time will be synced automatically once a connection to the internet is established.

Use timedatectl(1) to ensure the system clock is synchronized:

# timedatectl

Partition the disks

When recognized by the live system, disks are assigned to a block device such as /dev/sda, /dev/nvme0n1 or /dev/mmcblk0. To identify these devices, use lsblk or fdisk.

# fdisk -l

Results ending in rom, loop or airootfs may be ignored. mmcblk* devices ending in rpmb, boot0 and boot1 can be ignored.

Note If the disk does not show up, make sure the disk controller is not in RAID mode.
Tip Check that your NVMe drives and Advanced Format hard disk drives are using the optimal logical sector size before partitioning.

The following partitions are required for a chosen device:

Use a partitioning tool like fdisk to modify partition tables. For example:

# fdisk /dev/the_disk_to_be_partitioned
Note
  • Take time to plan a long-term partitioning scheme to avoid risky and complicated conversion or re-partitioning procedures in the future.
  • If you want to create any stacked block devices for LVM, system encryption or RAID, do it now.
  • If the disk from which you want to boot already has an EFI system partition, do not create another one, but use the existing partition instead.
  • Swap space can be set on a swap file for file systems supporting it. Alternatively, disk based swap can be avoided entirely by setting up swap on zram after installing the system.

Example layouts

UEFI with GPT
Mount point on the installed system Partition Partition type Suggested size
/boot1 /dev/efi_system_partition EFI system partition 1 GiB
[SWAP] /dev/swap_partition Linux swap At least 4 GiB
/ /dev/root_partition Linux x86-64 root (/) Remainder of the device. At least 23–32 GiB.
  1. Other mount points, such as /efi, are possible, provided that the used boot loader is capable of loading the kernel and initramfs images from the root volume. See the warning in Arch boot process#Boot loader.
BIOS with MBR
Mount point on the installed system Partition Partition type Suggested size
[SWAP] /dev/swap_partition Linux swap At least 4 GiB
/ /dev/root_partition Linux Remainder of the device. At least 23–32 GiB.

See also Partitioning#Example layouts.

Format the partitions

Once the partitions have been created, each newly created partition must be formatted with an appropriate file system. See File systems#Create a file system for details.

For example, to create an Ext4 file system on /dev/root_partition, run:

# mkfs.ext4 /dev/root_partition

If you created a partition for swap, initialize it with mkswap(8):

# mkswap /dev/swap_partition
Note For stacked block devices replace /dev/*_partition with the appropriate block device path.

If you created an EFI system partition, format it to FAT32 using mkfs.fat(8).

Warning Only format the EFI system partition if you created it during the partitioning step. If there already was an EFI system partition on disk beforehand, reformatting it can destroy the boot loaders of other installed operating systems.
# mkfs.fat -F 32 /dev/efi_system_partition

Mount the file systems

Mount the root volume to /mnt. For example, if the root volume is /dev/root_partition:

# mount /dev/root_partition /mnt

Create any remaining mount points under /mnt (such as /mnt/boot for /boot) and mount the volumes in their corresponding hierarchical order.

Tip Run mount(8) with the --mkdir option to create the specified mount point. Alternatively, create it using mkdir(1) beforehand.

For UEFI systems, mount the EFI system partition:

# mount --mkdir /dev/efi_system_partition /mnt/boot

If you created a swap volume, enable it with swapon(8):

# swapon /dev/swap_partition

genfstab(8) will later detect mounted file systems and swap space.

Installation

Select the mirrors

Packages to be installed must be downloaded from mirror servers, which are defined in /etc/pacman.d/mirrorlist. On the live system, after connecting to the internet, reflector updates the mirror list by choosing 20 most recently synchronized HTTPS mirrors and sorting them by download rate.

The higher a mirror is placed in the list, the more priority it is given when downloading a package. You may want to inspect the file to see if it is satisfactory. If it is not, edit the file accordingly, and move the geographically closest mirrors to the top of the list, although other criteria should be taken into account.

This file will later be copied to the new system by pacstrap, so it is worth getting right.

Install essential packages

Note No software or configuration (except for /etc/pacman.d/mirrorlist) gets carried over from the live environment to the installed system.

Use the pacstrap(8) script to install the base package, Linux kernel and firmware for common hardware:

# pacstrap -K /mnt base linux linux-firmware
Tip
  • You can substitute linux with a kernel package of your choice, or you could omit it entirely when installing in a container.
  • You could omit the installation of the firmware package when installing in a virtual machine or container.

The base package does not include all tools from the live installation, so installing more packages may be necessary for a fully functional base system. To install other packages or package groups, append the names to the pacstrap command above (space separated) or use pacman to install them while chrooted into the new system. In particular, consider installing:

For comparison, packages available in the live system can be found in pkglist.x86_64.txt.

Configure the system

Fstab

To get needed file systems (like the one used for the boot directory /boot) mounted on startup, generate an fstab file. Use -U or -L to define by UUID or labels, respectively:

# genfstab -U /mnt >> /mnt/etc/fstab

Check the resulting /mnt/etc/fstab file, and edit it in case of errors.

Chroot

To directly interact with the new system's environment, tools, and configurations for the next steps as if you were booted into it, change root into the new system:

# arch-chroot /mnt

Time

Set the time zone:

# ln -sf /usr/share/zoneinfo/Region/City /etc/localtime

Run hwclock(8) to generate /etc/adjtime:

# hwclock --systohc

This command assumes the hardware clock is set to UTC. See System time#Time standard for details.

To prevent clock drift and ensure accurate time, set up time synchronization using a Network Time Protocol (NTP) client such as systemd-timesyncd.

Localization

Edit /etc/locale.gen and uncomment en_US.UTF-8 UTF-8 and other needed UTF-8 locales. Generate the locales by running:

# locale-gen

Create the locale.conf(5) file, and set the LANG variable accordingly:

/etc/locale.conf
LANG=en_US.UTF-8

If you set the console keyboard layout, make the changes persistent in vconsole.conf(5):

/etc/vconsole.conf
KEYMAP=de-latin1

Network configuration

Create the hostname file:

/etc/hostname
yourhostname

Complete the network configuration for the newly installed environment. That may include installing suitable network management software, configuring it if necessary and enabling its systemd unit so that it starts at boot.

Initramfs

Creating a new initramfs is usually not required, because mkinitcpio was run on installation of the kernel package with pacstrap.

For LVM, system encryption or RAID, modify mkinitcpio.conf(5) and recreate the initramfs image:

# mkinitcpio -P

Root password

Set the root password:

# passwd

Boot loader

Choose and install a Linux-capable boot loader.

Reboot

Exit the chroot environment by typing exit or pressing Ctrl+d.

Optionally manually unmount all the partitions with umount -R /mnt: this allows noticing any "busy" partitions, and finding the cause with fuser(1).

Finally, restart the machine by typing reboot: any partitions still mounted will be automatically unmounted by systemd. Remember to remove the installation medium and then login into the new system with the root account.

Post-installation

See General recommendations for system management directions and post-installation tutorials (like creating unprivileged user accounts, setting up a graphical user interface, sound or a touchpad).

For a list of applications that may be of interest, see List of applications.

送人礼物送什么好 黄豆什么时候种 缠腰龙是什么病 什么是条件兵 王各念什么
神经性头疼是什么原因造成的 子宫内膜厚吃什么食物好 阿苯达唑片是什么药 铎读什么 红馆是什么地方
经常喝蜂蜜水有什么好处和坏处 梦到父母离婚是什么意思 正处级是什么级别 隐疾是什么意思 pd1是什么意思
脑梗是什么原因引起的 肾精亏虚吃什么药 jk制服是什么意思 搭桥是什么意思 属实是什么意思
看头部挂什么科hcv7jop9ns4r.cn 及第是什么意思hcv9jop7ns1r.cn 头发稀少是什么原因导致的hcv7jop7ns2r.cn 可乐鸡翅需要什么材料hcv7jop5ns2r.cn 赞聊是什么意思hcv8jop8ns4r.cn
为什么头发突然秃了一块hcv8jop6ns8r.cn 干咳嗽吃什么药hcv8jop7ns7r.cn 经常感冒吃什么提高免疫力hcv8jop1ns6r.cn 藏红花不能和什么一起吃hcv8jop7ns2r.cn 头晕挂什么科室hcv9jop4ns7r.cn
烧腊是什么gangsutong.com 小月子能吃什么菜jasonfriends.com 什么解酒快hcv9jop4ns7r.cn 梦见韭菜是什么预兆hcv8jop7ns2r.cn 长疱疹是什么原因travellingsim.com
肝内强回声是什么意思hcv8jop3ns2r.cn 冷笑是什么意思hcv8jop2ns6r.cn 卒中患者什么意思hcv8jop0ns4r.cn 摸胸是什么感觉hkuteam.com 什么是k金baiqunet.com
百度