人皇是什么意思| 野蒜有什么功效和作用| 硬座是什么意思| 伊丽莎白雅顿什么档次| 二月初二是什么星座| bn是什么颜色| acth是什么激素| 老年人屁多是什么原因| 验孕棒一条杠什么意思| 西洋参不能和什么一起吃| 四次元是什么意思啊| 孤僻的人给人什么感觉| 蛇怕什么家禽| 荒淫无度是什么意思| 黄芪是什么样子的| 高血压吃什么药好| 儒字五行属什么| 埋伏是什么意思| 珍珠母是什么东西| 七一年属什么生肖| 陕西有什么山| 大便拉不出来吃什么药| 荷花和莲花有什么区别| 尿酸高可以吃什么| 什么叫做缘分| 什么贝壳| 霞字五行属什么| 金渐层是什么品种| 甩货是什么意思| 紫外线过敏用什么药膏| 夭寿是什么意思| xrd是什么| 暹什么意思| 带黄金对身体有什么好处| pu什么意思| 质变是什么意思| 三姓家奴是什么意思| 中级职称是什么| 什么茶女人长期喝最好| 命好的人都有什么特征| 朱雀玄武是什么意思| 腿部抽筋是什么原因| 欣字属于五行属什么| 手指关节痛什么原因| 腮腺炎是什么引起的| 红头文件是什么意思| ab型血可以接受什么血型| 三点水一个半读什么| 微腺瘤是什么| 坐骨神经痛吃什么药好| 家里养什么花最好| 孙权孙策什么关系| 女生排卵期是什么意思| 什么叫封闭针| 左肩膀疼痛是什么原因| 裸花紫珠是主治什么病| 检查乳房挂什么科| preparing是什么意思| 父母都是a型血孩子是什么血型| 什么病会吐血| 眼压高吃什么药| 属鼠的和什么属相最配| 刘备的马叫什么| 搭桥香是什么意思| 什么病属于重大疾病| 为什么会长胎记| 张予曦为什么像混血| 日本豆腐是什么做的| 异什么意思| 买手是什么职业| 吃紫菜有什么好处和坏处| 手臂痛挂什么科| 夏天有什么花| 氩气是什么气体| 脸黑的人适合穿什么颜色的衣服| cupid什么意思| 过敏性紫癜吃什么药| 什么食物清肺化痰| 减脂晚餐吃什么| 一直不射精是什么原因| 跖疣用什么药膏能治好| 尿酸高什么原因| 减肥期间可以吃什么零食| 什么烧鸭子好吃| 蚕屎有什么作用和功效| 口腔发苦是什么原因| 水瓶座有什么特点| 竹叶青是什么茶| 刹是什么意思| 物色是什么意思| 看脑血管挂什么科| 5月23日是什么日子| 太阳绕着什么转| 什么人容易得格林巴利| 水过鸭背是什么意思| 尿素是什么肥料| 舌炎吃什么药效果最好| 正月十六是什么星座| 为什么会胰岛素抵抗| 鼻渊是什么意思| 胃炎吃什么最好| 心情沉重是什么意思| 什么是钙化| 哕是什么意思| 男人味是什么意思| 用热毛巾敷眼睛有什么好处| 左眼皮跳是什么预兆| gbs筛查是什么| 11是什么生肖| 眼睛为什么会痛| 4月23日是什么星座| 抽搐是什么原因引起的| 金字旁和什么有关| 汕是什么意思| la是什么意思| 血小板是什么意思| 六月初五是什么星座| 蛋白粉有什么功效| 胆固醇高不能吃什么| 拉肚子喝什么药| 肌层回声欠均匀是什么意思| 高大上是什么意思| 什么是大男子主义| 菠菜是什么季节的菜| 尿液检查红细胞高是什么原因| 口吃什么意思| 举牌是什么意思| 止语是什么意思| 细菌性阴道炎用什么洗液| 阿咖酚散是什么| autumn是什么意思| 斗鱼吃什么食物| 不发烧流鼻涕打喷嚏吃什么药| 有时头晕是什么原因| stranger什么意思| 急性胃炎吃什么药| 螃蟹不能和什么水果一起吃| 什么水果对嗓子好| 吃什么壮阳| 尿道痛什么原因| 7.3是什么星座| 祛湿是什么意思| 4月14日是什么星座| 同房后需要注意什么| 浪人是什么意思| 菩提子手串有什么好处| 故宫为什么叫故宫| 胃胀气吃什么药见效快| 天天睡觉做梦是什么原因| 头层牛皮除牛反绒是什么意思| 射手座是什么星座| 胃功能三项检查是什么| 渣渣辉什么意思| 一个白一个本是什么字| 10月16日出生的是什么星座| 妲己是什么生肖| 1217是什么星座| 乾隆的名字叫什么| 下午四点到五点是什么时辰| 眉毛上方有痣代表什么| 酌情处理是什么意思| 女同学过生日送什么礼物比较好| 肉桂跟桂皮有什么区别| 欲言又止是什么意思| 手指缝里长水泡还痒是什么原因| 甲低有什么危害| 十里八乡什么意思| 吊唁是什么意思| 总是打哈欠是什么原因| 什么水果是降火的| 妙曼是什么意思| 继往开来是什么意思| 羊肉炖什么好吃| 周瑜是什么样的人| 传统是什么意思| 什么的宝石| 5.23是什么星座| 勃而不坚吃什么药| 拉肚子是什么原因引起的| 内热外寒感冒用什么药| 十灵日是什么意思| 小孩容易出汗是什么原因| 神机妙算是什么意思| grace什么意思中文| 单抗是什么药| 钢琴10级是什么水平| verde是什么颜色| 脂蛋白a是什么意思| 手被辣椒辣了用什么方法解辣| 什么牌子的助听器好| 弥留之际什么意思| 绿豆的功效与作用是什么| 枸杞喝多了有什么坏处| bn是什么意思| 套作是什么意思| 狗下崽前有什么征兆| 眼下长斑是什么原因| 橱柜用什么材料好| 有什么花| 清蒸什么鱼好吃| 龟龄集适合什么人吃| 十九朵玫瑰花代表什么意思| 7月14号是什么星座| 阳历8月份是什么星座| 存是什么生肖| 金星原名叫什么| norm是什么意思| 小孩经常发烧是什么原因| 绿加红是什么颜色| 孩子过敏性咳嗽吃什么药好| 出海什么意思| 冬菜是什么菜| 梦见输液是什么意思| 思伤脾是什么意思| 出现血尿是什么原因| 怀孕什么时候打胎最合适| pa是什么单位| 季昌明是什么级别| 月经推迟量少是什么原因| 打鼾是什么意思| 心脏缺血吃什么药最好| 孝敬是什么意思| 农历六月是什么星座| 西红柿可以做什么菜| 江郎才尽是什么意思| 你在左边我紧靠右是什么歌| 拉磨是什么意思| 为什么总是耳鸣| 脸上长斑是什么原因引起的| 外阴瘙痒用什么洗液| 生姜红糖水有什么作用| 形同陌路是什么意思| 多春鱼为什么全是籽| 什么什么不舍| 金牛座是什么象星座| 果代表什么生肖| 什么快递可以寄活物| 拐子是什么鱼| 理性是什么意思| 大便出血什么原因| 99新是什么意思| 什么人会得胆囊炎| 身上有斑点是什么原因| 四大是什么| 颈动脉有斑块吃什么药| 茄子与什么相克| 绿色加红色是什么颜色| 阴虚火旺有什么表现症状| 卡哇伊什么意思| 北京市市长是什么级别| 立秋那天吃什么| 10月25号是什么星座| 宿便什么意思| 黄金的动物是什么生肖| 漆皮是什么皮| 轻度异常脑电图是什么意思| 什么是小三| 肚脐眼位置疼是什么原因| 咖啡不能和什么一起吃| cindy是什么意思| 运气是什么意思| 肾结石用什么药| 2021属什么| 为什么会打鼾| 百度
Jump to content

恢复为主 天津女排沪上开练

From ArchWiki
Revision as of 07:53, 21 August 2023 by Nl6720 (talk | contribs) (Localization: instruct to uncomment only UTF-8 locales, since others have a very limited use (mostly for legacy software); see Talk:Installation guide#Uncomment only UTF-8 locales)
百度 通知要求,广播电视节目、网络视听节目接受冠名、赞助等,要事先核验冠名或赞助方的资质,不得与未取得《信息网络传播视听节目许可证》非法开展网络视听节目服务的机构进行任何形式的合作,包括网络直播、冠名、广告或赞助。

fa:??????? ?????????? 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 GnuPG 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 installation image 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 chosen image.

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, select Arch Linux install medium and press Enter to enter the installation environment.
    Tip
    • The installation image uses GRUB for UEFI and syslinux for BIOS booting. Use respectively e or Tab to enter the boot parameters. See README.bootparams for a list.
    • A common example of manually defined boot parameter would be the font size. For better readability on HiDPI screens—when they are not already recognized as such—using fbcon=font:TER16x32 can help. See HiDPI#Linux console (tty) for a detailed explanation.
  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:

# ls /usr/share/kbd/keymaps/**/*.map.gz

To set the keyboard layout, pass a corresponding file name to loadkeys(1), omitting path and file extension. 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). 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, then system is booted in UEFI mode and has a 64-bit x64 UEFI. If the command returns 32, then 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 GRUB. If the file does not exist, 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:

  • Ensure your network interface is listed and enabled, for example with ip-link(8):
    # ip link
  • For wireless and WWAN, make sure the card is not blocked with rfkill.
  • 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.
  • Configure your network connection:
  • 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 accurate:

# 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 airoot may be ignored.

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:

If you want to create any stacked block devices for LVM, system encryption or RAID, do it now.

Use fdisk or parted to modify partition tables. For example:

# fdisk /dev/the_disk_to_be_partitioned
Note

Example layouts

UEFI with GPT
Mount point Partition Partition type Suggested size
/mnt/boot1 /dev/efi_system_partition EFI system partition At least 300 MiB. If multiple kernels will be installed, then no less than 1 GiB.
[SWAP] /dev/swap_partition Linux swap More than 512 MiB
/mnt /dev/root_partition Linux x86-64 root (/) Remainder of the device
  1. Other mount points, such as /mnt/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 Partition Partition type Suggested size
[SWAP] /dev/swap_partition Linux swap More than 512 MiB
/mnt /dev/root_partition Linux Remainder of the device

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 (such as /mnt/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) get 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

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

Change root into the new system:

# arch-chroot /mnt

Time zone

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.

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
myhostname

Complete the network configuration for the newly installed environment. That may include installing suitable network management software.

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. If you have an Intel or AMD CPU, enable microcode updates in addition.

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.

tim是什么 梦见换房子是什么预兆 手上的三条线分别代表什么 内敛是什么意思 谨字五行属什么
嗓子总有痰吃什么药 胃在什么地方 g750是什么金 急性盆腔炎有什么症状表现呢 微不足道什么意思
egfr是什么 车牌字体是什么字体 牛腩炖什么好吃 更年期挂什么科 蜜蜡属于什么五行属性
prc是什么意思 热退疹出是什么病 手术刀口吃什么愈合快 整形什么医院好 安全感是什么意思
神经衰弱吃什么药好hcv8jop4ns5r.cn 鱼香肉丝用什么肉hcv9jop5ns3r.cn 肾挂什么科室hcv7jop5ns5r.cn 铁棍山药有什么功效imcecn.com 英气是什么意思hcv8jop4ns2r.cn
孜孜不倦是什么意思hcv8jop4ns6r.cn 油蜡皮是什么皮hcv9jop1ns6r.cn 谷草转氨酶是什么意思hcv7jop9ns3r.cn 9月出生的是什么星座jingluanji.com 吃什么对睡眠好hcv9jop5ns9r.cn
未见卵黄囊是什么意思hcv9jop2ns7r.cn 梦见血是什么意思hcv8jop1ns0r.cn 春天有什么水果hcv7jop4ns7r.cn 鳊鱼吃什么食物hcv9jop5ns5r.cn po是什么的缩写hcv9jop2ns7r.cn
破壁机是干什么用的hcv9jop4ns5r.cn 自投罗网是什么意思hcv8jop8ns6r.cn cpi是什么意思啊hcv9jop2ns7r.cn 海蓝之谜适合什么肤质hcv8jop4ns1r.cn 板栗不能和什么一起吃hcv8jop5ns8r.cn
百度