Installation Guide Arch Linux
Installation Guide Arch Linux
https://wiki.archlinux.org/index.php/Installation_Guide
Installation Guide
From ArchWiki This document will guide you through the process of installing Arch Linux using the Arch Install Scripts (https://projects.archlinux.org/arch-install-scripts.git/) . Before installing, you are advised to skim over the FAQ. See Beginners' Guide for a highly detailed, explanatory installation guide. The community-maintained Arch wiki is an excellent resource and should be consulted for issues rst. The IRC channel (irc://irc.freenode.net/#archlinux), and the forums (https://bbs.archlinux.org/) are also available if the answer cannot be found elsewhere. Also, be sure to check out the man pages for any command you are unfamiliar with; this can usually be invoked with man command .
Contents
1 Download 2 Installation 2.1 Keyboard layout 2.2 Partition disks 2.3 Format the partitions 2.4 Mount the partitions 2.5 Connect to the internet 2.5.1 Wireless 2.6 Install the base system 2.7 Congure the system 2.8 Install and congure a bootloader 2.9 Unmount and reboot 3 Post-installation 3.1 User management 3.2 Package management 3.3 Service management 3.4 Sound 3.5 Video driver 3.6 Display server 3.7 Fonts 4 Appendix
Download
Download the new Arch Linux ISO from the Arch Linux download page (https://www.archlinux.org/download/) .
1 of 7
07/31/2013 04:38 AM
https://wiki.archlinux.org/index.php/Installation_Guide
A single image is provided which can be booted into an i686 and x86_64 live system to install Arch Linux over the network. Media containing the [core] repository are no longer provided. Install images are signed and it is highly recommend to verify their signature before use: this can be done by downloading the .sig le from the download page (or one of the mirrors listed there) to the same directory as the .iso le and then using pacman-key -v iso-file.sig . The image can be burned to a CD, mounted as an ISO le, or directly written to a USB stick. It is intended for new installations only; an existing Arch Linux system can always be updated with pacman -Syu .
Installation
Keyboard layout
For many countries and keyboard types appropriate keymaps are available already, and a command like loadkeys uk might do what you want. More available keymap les can be found in /usr/share/kbd/keymaps/ (you can omit the keymap path and le extension when using loadkeys).
Partition disks
See partitioning for details. If you want to create any stacked block devices like LVM, LUKS, or RAID, do it now.
2 of 7
07/31/2013 04:38 AM
https://wiki.archlinux.org/index.php/Installation_Guide
Run
wifi-menu
to set up your wireless network. For details, see Wireless Setup and Netctl.
Other packages can be installed by appending their names to the above command (space seperated), including the bootloader if you want.
/etc/hostname
. . Replace
Zone
/usr/share/zoneinfo/Zone/SubZone
and
Subzone
to
# ln -s /usr/share/zoneinfo/Europe/Athens /etc/localtime
Uncomment the selected locale in /etc/locale.gen and generate it with locale-gen . Set locale preferences in /etc/locale.conf . Add console keymap and font preferences in /etc/vconsole.conf Congure /etc/mkinitcpio.conf as needed (see mkinitcpio) and create an initial RAM disk with:
# mkinitcpio -p linux
Set a root password with passwd . Congure the network again for newly installed environment. See Network Conguration and Wireless Setup.
3 of 7
07/31/2013 04:38 AM
https://wiki.archlinux.org/index.php/Installation_Guide
Now reboot and then login into the new system with the root account.
Post-installation
User management
Add any user accounts you require besides root, as described in User management. It is not good practice to use the root account for regular use, or expose it via SSH on a server. The root account should only be used for administrative tasks.
Package management
See pacman and FAQ#Package Management for answers regarding installing, updating, and managing packages.
Service management
Arch Linux uses systemd as init, which is a system and service manager for Linux. For maintaining your Arch Linux installation, it is a good idea to learn the basics about it. Interaction with systemd is done through the systemctl command. Read systemd#Basic systemctl usage for more information.
Sound
ALSA usually works out-of-the-box. It just needs to be unmuted. Install alsa-utils (https://www.archlinux.org/packages/?name=alsa-utils) (which contains alsamixer ) and follow these instructions. ALSA is included with the kernel and it is recommended. If it does not work, OSS is a viable alternative. If you have advanced audio requirements, take a look at Sound system for an overview of various articles.
Video driver
The Linux kernel includes open-source video drivers and support for hardware accelerated framebuers. However, userland support is required for OpenGL and 2D
4 of 7 07/31/2013 04:38 AM
https://wiki.archlinux.org/index.php/Installation_Guide
acceleration in X11. If you don't know which video chipset is available on your machine, run:
$ lspci | grep VGA
For a complete list of open-source video drivers, search the package database:
$ pacman -Ss xf86-video | less
The vesa driver is a generic mode-setting driver that will work with almost every GPU, but will not provide any 2D or 3D acceleration. If a better driver cannot be found or fails to load, Xorg will fall back to vesa. To install it:
# pacman -S xf86-video-vesa
In order for video acceleration to work, and often to expose all the modes that the GPU can set, a proper video driver is required:
5 of 7
07/31/2013 04:38 AM
https://wiki.archlinux.org/index.php/Installation_Guide
Brand
Type
Driver
xf86-video-ati
ATI
(https://www.archlinux.org (https://www.archlinux.org
AMD Catalyst
Intel
Open source
Intel Graphics
(https://www.archlinux.org (https://www.archlinux.org
Nouveau
Open source
(legacy driver)
Nvidia
Proprietary
nvidia-304xx /packages/?name=nvidia304xx)
NVIDIA
(https://www.archlinux.org (https://www.archlinux.org
Display server
The X Window System (commonly X11, or X) is a networking and display protocol which provides windowing on bitmap displays. It is the de-facto standard for implementating graphical user interfaces. See the Xorg article for details. Wayland is a new display server protocol and the Weston reference implementation is available. There is very little support for it from applications at this early stage of development.
Fonts
You may wish to install a set of TrueType fonts, as only unscalable bitmap fonts are
6 of 7
07/31/2013 04:38 AM
https://wiki.archlinux.org/index.php/Installation_Guide
included by default. DejaVu is a set of high quality, general-purpose fonts with good Unicode coverage:
# pacman -S ttf-dejavu
Refer to Font Conguration for how to congure font rendering and Fonts for font suggestions and installation instructions.
Appendix
For a list of applications that may be of interest, see List of Applications. See General Recommendations for post-installation tutorials like setting up a touchpad or font rendering. Retrieved from "https://wiki.archlinux.org/index.php?title=Installation_Guide& oldid=268409" Categories: About Arch Getting and installing Arch This page was last modied on 27 July 2013, at 20:50. Content is available under GNU Free Documentation License 1.3 or later.
7 of 7
07/31/2013 04:38 AM