小孩头发黄是什么原因| 瓜田李下是什么意思| 268数字代表什么意思| 神昏谵语是什么意思| 曹操字什么| 去医院点痣挂什么科| 儿童淋巴结肿大挂什么科| 农历10月19日是什么星座| as什么意思| bid什么意思| 大便次数多什么原因| 奥运五环代表什么| 什么东西能美白| 令瓦念什么| 什么相接| 血常规能查出什么病| 张艺谋为什么不娶巩俐| 璠字取名寓意什么| 量化是什么意思| 春天有什么动物| 韭黄和韭菜有什么区别| 99年属什么生肖| 爻卦是什么意思| 双鱼座是什么性格| 岁月的痕迹是什么意思| 梦到结婚是什么预兆| 五行是指什么| 做梦吃屎有什么预兆| 怀孕前三个月吃什么好| 血脂高有什么危害| 双鱼座的幸运色是什么| 铁蛋白高吃什么食物好| 高山仰止是什么意思| 蚰蜒吃什么| 早上起床想吐是什么原因| 卵泡期是什么意思| 去肝火喝什么茶| 口腔溃疡用什么药最好| 卵泡排出来是什么样的| 下野是什么意思| 天王星代表什么| 西瓜和什么食物相克| 相忘于江湖是什么意思| 4月21日什么星座| 蚂蚁属于什么动物| 吃什么有助于骨头恢复| 一天从早到晚叫什么日| cachecache是什么牌子| 学生早餐吃什么方便又营养| com什么意思| 一什么大风| 蔬菜沙拉都放什么菜| 日柱将星是什么意思| 石敢当是什么意思| 指甲横纹是什么原因| 35岁属什么的| 见血是什么兆头| 一什么荷花| 什么情况下不能献血| 记忆是什么意思| 禾加一笔是什么字| 头晕耳鸣是什么原因引起的| 炸膛什么意思| levi是什么意思| 一朵什么| 干嘛是什么意思| 喉咙痛有痰吃什么药| 腿上血栓是什么症状| 一意孤行是什么意思| 肚脐眼下面疼是什么原因| 发小是什么| 闰六月有什么讲究| 为什么发动文化大革命| 男人结扎了有什么坏处| 白带多要吃什么药| 什么样的头发| 衣原体检查是什么| 赢弱什么意思| 流产后不能吃什么东西| 最好的洗发水是什么牌子| 手牵手我们一起走是什么歌| 物业费都包括什么服务| 舌头干是什么原因| 04年的猴是什么命| 梦到喝酒是什么意思| 咽炎吃什么药好使| 亢奋是什么意思| 伟岸一般形容什么人| 色泽是什么意思| 复杂囊肿是什么意思| 旖旎什么意思| 梦见青蛙是什么预兆| 神的国和神的义指的是什么| 顾里为什么和席城睡了| 飞蛾飞进家里预示什么| 脸部过敏红痒抹什么药| 盗汗遗精是什么意思| 羊驼吃什么| 1920年属什么生肖| 宫颈糜烂用什么药比较好| lh是什么| a型血和o型血生的孩子是什么血型| 甲醛闻多了有什么症状| 病毒性感染是什么原因引起的| 大林木是什么生肖| 匮乏是什么意思| 慌张的近义词是什么| 肚子突然变大是什么原因| 胸部发炎是什么症状| 荷叶和山楂一起泡水有什么功效| 周瑜属什么生肖| 恩惠什么意思| 血糖高早饭吃什么最好| 体内火气大吃什么降火| 胃疼买什么药| 心焦是什么意思| 相恋纪念日送什么礼物| 拉屎臭是什么原因| 排卵期为什么会出血| gn是什么单位| 双日是什么意思| 金达克宁和达克宁有什么区别| 66.66红包代表什么意思| 体检前一天晚上吃什么| 防腐剂是什么| 2028年属什么| 55岁属什么| 盐和醋泡脚有什么好处| 雪莲是什么| 疤痕修复用什么药膏好| 为什么要多吃鱼| 林彪为什么反革命| 什么是养生| 1977年属蛇是什么命| 利率是什么| 脑梗有什么症状前兆| 间接胆红素高是什么意思| 阴道炎用什么药效果最好| 河豚吃什么| 高血压不能吃什么食物| 女性乳房痒是什么原因| 霉菌性阴道炎用什么药好得快| 长期口腔溃疡挂什么科| 爱马仕为什么要配货| 情绪低落是什么意思| 3月15号是什么星座| bzd是什么意思| 什么是总胆固醇| 半夜胃反酸水是什么原因| 反映是什么意思| 肥猪拱门是什么生肖| 长痘吃什么水果| 吃什么去肝火效果最好| 乳酸高是什么原因| 成也萧何败也萧何什么意思| 世界上最坚硬的东西是什么| 怀孕血糖高有什么症状| 子宫内膜增厚是什么原因| 胆囊息肉有什么症状| 月经期间吃什么补气血| 4.9是什么星座| 什么是矫正视力| 眼睛有黑影是什么原因| 缺钙吃什么补得最快| 大s什么病| 懋是什么意思| 聚乙烯醇是什么材料| 什么的菊花| 心电图逆钟向转位什么意思| 膝盖疼痛挂什么科| 勃起不硬吃什么药| 血小板减少吃什么能补回来| 花斑癣用什么药膏好| vfu是什么牌子| 风疹病毒是什么意思| 女生生日送什么礼物好| 05属什么生肖| 欲生欲死是什么意思| 什么是白领| dia是什么意思| 突然头晕冒虚汗什么原因| 妄想症吃什么药| 小心眼是什么意思| 六堡茶是什么茶| 膂力是什么意思| 生二胎应该注意什么| 去威海玩需要准备什么| 布朗是什么水果| 血塞通治什么病| 有痔疮不能吃什么食物| 息斯敏是什么药| 什么东西掉进水里不会湿| 左肾钙化灶什么意思| 醛固酮高吃什么降压药| 狗皮肤病用什么药| 备皮是什么意思| u是什么单位| 40岁男人性功能减退是什么原因| 掌纹多而乱代表什么| 月经期间洗澡会有什么影响吗| 呼吸内科主要看什么病| 小肚胀是什么原因| 花胶是鱼的什么部位| 胃出血挂什么科室| 养小鬼是什么意思| 金字旁乐读什么| 4岁打什么疫苗| baumwolle是什么面料| 经常打嗝放屁是什么原因| 太平鸟属于什么档次| 血清铁低是什么原因| 狗狗中毒了用什么办法可以解毒| 一个木一个寿念什么| 魔术贴是什么| 大水牛是什么意思| 晏字五行属什么| 二级乙等医院什么档次| 柏油是什么| 墨西哥讲什么语言| 高中学考是什么意思| 南京菜属于什么菜系| 巳蛇五行属什么| 吃什么能长高| 来大姨妈前有什么症状| 樱桃跟车厘子有什么区别| 决明子泡水喝有什么功效| 法令纹上有痣代表什么| 枕头太低有什么影响| 生姜水洗头有什么好处| 什么叫血沉| 肛门瘙痒看什么科| 雍正叫什么名字| 吃什么养肝护肝效果最好| 九重紫纪咏结局是什么| dep是什么意思| 糖尿病人能喝什么饮料| 结婚纪念日送什么花| 连衣裙配什么鞋子好看| 兰姓是什么民族| 常见的贫血一般是缺什么| 尿液中有血是什么原因| 共济失调是什么意思| 黑枸杞和红枸杞有什么区别| 鲁迅的原名叫什么| 感冒什么时候能好| gg什么意思| 牙齿痛吃什么消炎药| 错峰是什么意思| 肝部出现腹水是什么原因| 噫气是什么意思| daily是什么意思| 中风吃什么药最有效| 鼻头发红是什么原因| 腐叶土是什么土| 手气是什么原因引起的| 我在你心里是什么颜色| 脚气是什么菌引起的| 蛇怕什么东西| 阴道出血是什么样的| 宝宝照蓝光有什么副作用| 盐水洗脸有什么好处| 下嘴唇发紫是什么原因| 月经期头晕是什么原因| 中央电视台台长什么级别| 百度
Jump to content

一个月小猫吃什么

From ArchWiki
Example layouts: Update example swap size to reflect the update at Partitioning#Swap
Line 161: Line 161:
| {{ic|/dev/''swap_partition''}}
| {{ic|/dev/''swap_partition''}}
| Linux swap
| Linux swap
| More than 512 MiB
| More than 4 GiB
|-
|-
| {{ic|/mnt}}
| {{ic|/mnt}}
Line 182: Line 182:
| {{ic|/dev/''swap_partition''}}
| {{ic|/dev/''swap_partition''}}
| Linux swap
| Linux swap
| More than 512 MiB
| More than 4 GiB
|-
|-
| {{ic|/mnt}}
| {{ic|/mnt}}

Revision as of 19:05, 10 February 2024

百度 其中政府机关和事业单位的特聘岗位不受单位岗位总量和结构比例的限制,不对应行政级别和专业技术职务,不占单位编制,可采用年薪制、项目工资、协议工资等多种薪酬分配方式。

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:

# 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, 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 systemd-boot. 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 airootfs may be ignored. mmcblk* devices ending in rpbm, 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:

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

Use a partitioning tool like fdisk 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 1 GiB
[SWAP] /dev/swap_partition Linux swap More than 4 GiB
/mnt /dev/root_partition Linux x86-64 root (/) Remainder of the device. At least 23–32 GiB.
  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 4 GiB
/mnt /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 (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) 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

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

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. 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.

红豆和赤小豆有什么区别 牙银肿痛吃什么药 十一月份出生的是什么星座 分泌物呈褐色是什么原因 蓝帽子标志是什么意思
什么是艾灸 蛋白尿是什么症状 吃什么补钾最快最好 新生儿ad滴剂什么时候吃最好 皮肤黑穿什么颜色的衣服显白
什么的叶丛 feedback是什么意思 哺乳期上火了吃什么降火最快 多动症吃什么药 口干舌燥挂什么科
视力模糊是什么原因引起的 天五行属性是什么 幻听一般会听到什么 梦见插秧是什么意思 吃什么提高记忆力
私奔是什么意思hcv8jop8ns1r.cn 降压药的原理是什么hcv8jop3ns7r.cn 什么蔬菜含维生素dhcv8jop0ns5r.cn 七活八不活是什么意思hanqikai.com 鳄鱼的尾巴有什么作用hcv7jop6ns6r.cn
门昌念什么hcv9jop7ns3r.cn 油腔滑调指什么生肖hcv9jop0ns5r.cn 妇科假丝酵母菌是什么病hcv7jop6ns3r.cn 火龙果是什么颜色hcv8jop4ns8r.cn 孩子爱啃指甲是什么原因zsyouku.com
什么的落日hcv8jop9ns1r.cn 眼皮为什么会跳hcv9jop3ns6r.cn 半夜十二点是什么时辰mmeoe.com 瑞五行属性是什么tiangongnft.com 青筋凸起是什么原因hcv8jop4ns0r.cn
dd什么意思beikeqingting.com 什么是通勤hcv8jop8ns9r.cn 佛度有缘人是什么意思hcv8jop2ns0r.cn dmdm乙内酰脲是什么hcv7jop9ns7r.cn 秋天喝什么粥好hcv9jop0ns0r.cn
百度