GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||
GeezerVison is showing wiki.archlinux.org — Installation guide - ArchWiki (Redirected from Installation Guide) This document is a guide for installing Arch Linux using the live system booted from an installation medium made from an official installation image. Its accessibility features 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 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. 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-installationAcquire an installation imageVisit https://archlinux.org/download for official images, and, depending on how you want to boot, acquire the ISO file or a netboot image, and the respective PGP signature. Verify signatureIt 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. Download the ISO PGP signature from https://archlinux.org/download/#checksums to the ISO directory and follow the instructions there to verify it. Alternatively, from an existing Arch Linux installation run: $ pacman-key -v archlinux-version-x86_64.iso.sig Note
Prepare an installation mediumThe 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 environmentNote 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.
To switch to a different console—for example, to view this guide with Lynx alongside the installation—use the Set the console keyboard layout and fontThe 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 # setfont ter-132b Verify the boot modeTo verify the boot mode, check the UEFI bitness: # cat /sys/firmware/efi/fw_platform_size
If the system did not boot in the mode you desired (UEFI vs BIOS), refer to your motherboard's manual. Connect to the internetTo set up a network connection in the live environment, go through the following steps:
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 clockThe live system needs accurate time to prevent package signature verification failures and TLS certificate errors. The systemd-timesyncd service is enabled by default in the live environment and time will be synchronized automatically once a connection to the internet is established. Use timedatectl(1) to ensure the system clock is synchronized: # timedatectl Partition the disksWhen recognized by the live system, disks are assigned to a block device such as # fdisk -l Results ending in 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
Example layouts
See also Partitioning#Example layouts. Format the partitionsOnce 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 # 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 systemsMount the root volume to # mount /dev/root_partition /mnt Create any remaining mount points under 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. For example: # 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. InstallationSelect the mirrorsPackages to be installed must be downloaded from mirror servers, which are defined in On the live system, all HTTPS mirrors are enabled (i.e. uncommented). The topmost worldwide mirror should be fast enough for most people, but you may still 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. Alternatively, you can use reflector to create a mirrorlist file based on various criteria. This file will later be copied to the new system by pacstrap, so it is worth getting right. Install essential packagesNo configuration (except for In particular, review the following software and install everything that you need:
For comparison, packages available in the live system can be found in pkglist.x86_64.txt. To install more packages or package groups, append the names to the pacstrap(8) command below (space separated) or use pacman to install them while chrooted into the new system. For example, a basic installation with the Linux kernel and firmware for common hardware: # pacstrap -K /mnt base linux linux-firmware Tip
Configure the systemFstabTo get needed file systems (like the one used for the boot directory # genfstab -U /mnt >> /mnt/etc/fstab Check the resulting ChrootTo 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 -S /mnt Note Some systemd tools such as hostnamectl(1), localectl(1) and timedatectl(1) cannot be used inside a chroot(1), as they require an active dbus connection. [1]
TimeFor human convenience (e.g. showing the correct local time or handling Daylight Saving Time), set the time zone: # ln -sf /usr/share/zoneinfo/Area/Location /etc/localtime Run hwclock(8) to generate # 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. LocalizationTo use the correct region and language specific formatting (like dates, currency, decimal separators), edit # 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 configurationTo assign a consistent, identifiable name to your system (particularly useful in a networked environment), create the hostname file: /etc/hostname yourhostname Tip For advice on choosing a hostname, see RFC 1178. As explained in hostname(7), it must contain from 1 to 63 characters, using only lowercase
a to z, 0 to 9, and -, and must not start with -.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. InitramfsCreating 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. If you have changed the default console keymap, only recreating the initramfs is required: # mkinitcpio -P Root passwordSet a secure password for the root user to allow performing administrative actions: # passwd Boot loaderChoose a boot loader applicable to your partitioning scheme and install it. See the explanations and the comparison table in Arch boot process#Boot loader to make your choice, then follow the installation instructions on its dedicated page. RebootExit the chroot environment by typing Optionally manually unmount all the partitions with Finally, restart the machine by typing Post-installationSee 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. | ||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |