- Installation guide
- Contents
- Pre-installation
- Acquire an installation image
- Verify signature
- Prepare an installation medium
- Boot the live environment
- Set the console keyboard layout
- Verify the boot mode
- Connect to the internet
- Update the system clock
- Partition the disks
- Example layouts
- Format the partitions
- Mount the file systems
- Installation
- Select the mirrors
- Install essential packages
- Configure the system
- Fstab
- Chroot
- Time zone
- Localization
- Network configuration
- Initramfs
- Root password
- Boot loader
- Reboot
- Post-installation
- Arch Linux
- #1 2018-05-03 02:25:45
- Graphical interface for install
- #2 2018-05-03 02:31:00
- Re: Graphical interface for install
- #3 2018-05-03 02:45:08
- Re: Graphical interface for install
- #4 2018-05-03 11:24:07
- Re: Graphical interface for install
- #5 2018-05-03 11:31:08
- Re: Graphical interface for install
- Графическая установка Arch Linux (Anarchy Linux)
- Установка
- Локализация системы
- Разметка диска
- Установка системы
- Настройки сетевого подключения
- Установка окружения рабочего стола
- Добавление нового пользователя
- Установка программного обеспечения
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. 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.
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.
Contents
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 PGP signature (under Checksums in the Download page) to the ISO directory, and verifying it with:
Alternatively, from an existing Arch Linux installation run:
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
- 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.
- When the installation medium’s boot loader menu appears, select Arch Linux install medium and press Enter to enter the installation environment.
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 packages.x86_64 for a list of the packages included in the installation medium.
Set the console keyboard layout
The default console keymap is US. Available layouts can be listed with:
To modify the layout, append a corresponding file name to loadkeys(1) , omitting path and file extension. For example, to set a German keyboard layout:
Console fonts are located in /usr/share/kbd/consolefonts/ and can likewise be set with setfont(8) .
Verify the boot mode
To verify the boot mode, list the efivars directory:
If the command shows the directory without error, then the system is booted in UEFI mode. If the directory does not exist, the system may be booted in BIOS (or CSM) mode. If the system did not boot in the mode you desired, 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) :
- 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:
- DHCP: dynamic IP address and DNS server assignment (provided by systemd-networkd and systemd-resolved) should work out of the box for Ethernet, WLAN and WWAN network interfaces.
- Static IP address: follow Network configuration#Static IP address.
- The connection may be verified with ping:
Update the system clock
Use timedatectl(1) to ensure the system clock is accurate:
To check the service status, use timedatectl status .
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.
Results ending in rom , loop or airoot may be ignored.
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:
Example layouts
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 |
Mount point | Partition | Partition type | Suggested size |
---|---|---|---|
/mnt/boot or /mnt/efi 1 | /dev/efi_system_partition | EFI system partition | At least 260 MiB |
[SWAP] | /dev/swap_partition | Linux swap | More than 512 MiB |
/mnt | /dev/root_partition | Linux x86-64 root (/) | Remainder of the device |
- /mnt/efi should only be considered if 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.
Format the partitions
Once the partitions have been created, each newly created partition must be formatted with an appropriate file system. For example, to create an Ext4 file system on /dev/root_partition , run:
If you created a partition for swap, initialize it with mkswap(8) :
Mount the file systems
Mount the root volume to /mnt . For example, if the root volume is /dev/root_partition :
Create any remaining mount points (such as /mnt/efi ) using mkdir(1) and mount their corresponding volumes.
If you created a swap volume, enable it with swapon(8) :
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.[2]
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
Use the pacstrap(8) script to install the base package, Linux kernel and firmware for common hardware:
The base package does not include all tools from the live installation, so installing other packages may be necessary for a fully functional base system. In particular, consider installing:
- userspace utilities for the management of file systems that will be used on the system,
- utilities for accessing RAID or LVM partitions,
- specific firmware for other devices not included in linux-firmware (e.g. sof-firmware for sound cards),
- software necessary for networking,
- a text editor,
- packages for accessing documentation in man and info pages: man-db , man-pages and texinfo .
To install other packages or package groups, append the names to the pacstrap command above (space separated) or use pacman while chrooted into the new system. For comparison, packages available in the live system can be found in packages.x86_64.
Configure the system
Fstab
Generate an fstab file (use -U or -L to define by UUID or labels, respectively):
Check the resulting /mnt/etc/fstab file, and edit it in case of errors.
Chroot
Change root into the new system:
Time zone
Run hwclock(8) to generate /etc/adjtime :
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 locales. Generate the locales by running:
Network configuration
Add matching entries to hosts(5) :
If the system has a permanent IP address or a fully qualified domain name, see the example in Network configuration#Local hostname resolution.
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:
Root password
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.
Источник
Arch Linux
You are not logged in.
#1 2018-05-03 02:25:45
Graphical interface for install
Hi everyone id like to know why there is no a graphical interface to install archlinux because the guide it’s kind of super general and to people who it’s not very familiar with Linux could be difficult to understand.
Maybe you could implement something like debían a graphical interface for newbies maybe and the old way maybe?
Sorry my shitty english
Greetings
#2 2018-05-03 02:31:00
Re: Graphical interface for install
People who are not very familiar with Linux are not Arch’s target audience. Simple as that.
#3 2018-05-03 02:45:08
Re: Graphical interface for install
Please don’t use vulgarities for no good reason.
Arch Linux is targeted for those who have a clue about Linux. There are many distributions aimed at those who feel the need for graphical installers. Arch is not one of them.
Nothing is too wonderful to be true, if it be consistent with the laws of nature — Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. — Alan Turing
—
How to Ask Questions the Smart Way
#4 2018-05-03 11:24:07
Re: Graphical interface for install
We used to have a menu-driven installer just like Debian. We got rid of it, because no one was interested in maintaining it, and also we decided it did not really fit into Arch’s goals (which might be why no one wanted to maintain it), and because it was fragile and broke a lot.
People who are not very familiar with Linux are not Arch’s target audience. Simple as that.
Kind of this, except not really. Arch is definitely targeted for people not very familiar with Linux. if and only if they are willing to learn and read the documentation. Arch is very explicitly a distro for people who understand how their system works, and want more control, or for people with that do-it-yourself attitude who are interested in, and in the process of, learning how their system works and getting more control.
It is the opinion of most Arch users and developers, that this goal is incompatible with using any sort of installer.
Managing AUR repos The Right Way — aurpublish (now a standalone tool)
#5 2018-05-03 11:31:08
Re: Graphical interface for install
We used to have a menu-driven installer just like Debian. We got rid of it .
And never looked back.
I installed arch at least three times with the old installer, it sucked — at the time I didn’t know how much it sucked as it was on par with many other OSs (that suck). It took a while, was a bit confusing (too much «pay no attention to the man behind the curtain») and resulted in no learning about or understanding the system I just installed*.
I’ve installed arch a dozen times with the new approach. The first time doing so is when I really started learning. Even the first time was pretty quick, but each time since has gotten *much* faster (the old method always stayed just as slow and frustrating).
* it’s certainly possible for someone to follow the installation guide checklist without ever engaging their brain and learning anything, but this is on them: the process is transparent, and the opportunities to learn, to stop and ask «why» or «what if», are all right there. With the current process, one might ask what fstab is for, or how partitioning works and whether fdisk and gdisk do different things. With the old process, one might only ask what a white progress bar on blue background actually represents.
Last edited by Trilby (2018-05-03 11:33:44)
«UNIX is simple and coherent. » — Dennis Ritchie, «GNU’s Not UNIX» — Richard Stallman
Источник
Графическая установка Arch Linux (Anarchy Linux)
Добрый день всем, кто оказался на данном сайте. Установка Arch Linux у новичков может вызвать затруднения. Так как установка происходит без графического окружения. Имеется лишь терминал, через который и происходит установка Arch Linux. Но что делать, если если хочется попробовать Arch? Сейчас меня осудят настоящие Арчевики, но, есть способы установки Arch при помощи графического окружения. Об одном из них сегодня и пойдет речь. А именно о таком проекте как Anarchy Linux. По сути, там набор скриптов и псевдографическое оформление установщика. Скачать установочный образ можно с официального сайта. И так, давайте приступим к установке.
Установка
После того как вы загрузитесь с установочного носителя, перед вами появится экран загрузки. Выбираете верхнюю строчку “Boot Anarchy Linux” и нажимаете “Enter”
Далее перед вами появится псевдографическое окружение. Нас интересует пункт под цифрой 1 (Anarchy Install). Ставим цифру “1” и нажимаем “Enter”
После чего нужно выбрать язык, я выбираю русский. Вы же тот который захотите, и нажимаете “Enter”
Следующим шагом нужно выбрать раскладку клавиатуры. Рекомендую оставить как есть, то есть, английскую. После чего снова жмем “Enter”
На следующем экране подтверждаем наши намерения, выбрав “да” и нажатием на “Enter”
После чего нам нужно выбрать зеркало установки. Тут все зависит от вашего географического положения. Выбираем верхний пункт и нажимаем “Enter”. Далее спускаемся по списку вниз и выбираем зеркало. Я выберу “Russia”, так как проживаю в россии, вы же выбираете основываясь на своем географическом положении
Локализация системы
Следующим шагом нам предстоит выбрать локализацию системы. То есть, язык самой системы. Я выбираю русский “ru_RU UTF-8 RUSSIAN”.
На следующем экране нам предстоит выбрать часовой пояс. В моем случае это “Europe”, после чего нажимаю “Enter”. Далее ищу и выбираю “Moscow”
Разметка диска
Про разметку диска в Anarchy Linux напишу как нибудь в следующий раз. Статья будет из цикла “Разметка диска в Linux”, где я постараюсь все в подробностях описать. По большому счету, разметка диска в Anarchy чем то напоминает разметку диска в Manjaro. А сейчас выберу автоматическую разметку диска
Далее выбираем сам диск на который хотим установить Anarchy Linux
Далее выбираем файловую систему. Я оставлю по умолчанию, то есть ext4. Вы же можете выбрать какую захотите, например, можно выбрать btrfs:
Что касается раздела подкачки, то тут смотрите сами. Например, если у вас больше 4 гигабайт оперативной памяти, то его создавать не обязательно. А так же всегда можно установить например zRam вместо раздела подкачки. Но так как я устанавливаю на виртуальную машину и на ней у меня 2 гигабайта памяти, я создам раздел подкачки:
Раздел подкачки должен быть равен количеству вашей оперативной памяти. В моем случае это 2 гигабайта. Вписываем в поле 2G и нажимаем “Enter”:
После чего нам нужно создать таблицу разделов. Тут все индивидуально, если у вас биос то используйте MBR. А если у вас UEFI то GPT. Более подробно про таблицы разделов можно ознакомится на вики.
Далее выбираем пункт “Записать изменения” и нажимаем “Enter”
Установка системы
Далее выбираем из списка пункт “Anarchy-Advanced Advanced Install options” после чего нажимаем “Enter”
После чего рекомендую выбрать пункт долгосрочной поддержки ядра “Arch-Linux_LTS-Base”
На следующем экране выбираем командную оболочку по умолчанию. Я привык к bash, по этому его и выбираю. Вы же выбираете то что вам по душе:
Далее выбираем загрузчик. Нажимаем “Enter” на пункте “grub”. После чего если у вас ноутбук или же системник использует сеть wifi, то выбираем пункт “netctl”. А если у вас проводное соединение, то выбираете пункт “networkmanager”. Я выбираю популярный инструмент сетевыми подключениями “networkmanager”
На следующем экране нам предложат поддержку 32 разрядное программного обеспечение. Рекомендую согласится и добавить:
Настройки сетевого подключения
На следующем экране предложат включить DHCP. То есть, при каждой загрузке вам будет выдаваться новый ip адрес. Вообще, статический ip адрес вы всегда сможете настроить в системе самостоятельно при необходимости. Так что рекомендую согласиться на DHCP:
Следующим шагом нам предложат установку утилит для подключения к wifi сети. Тут смотрите сами, все зависит от того, нужен ли вам wifi или нет. Если например вы устанавливаете на ноутбук, то конечно же выбираете “да” и устанавливаете эти утилиты:
После чего нам предстоит выбрать протокол подключения, опять же, тут все индивидуально. Если у вас провайдер использует подключение PPPoE, то соглашаемся и устанавливаем поддержку этого протокола:
Наследующем этапе установки нам предстоит выбрать, нужен ли нам “os-prober”. Если у вас имеется еще установленная система, то выбираем его установку, для этого перемещаемся на слово “да” и нажимаем “Enter”
Установка окружения рабочего стола
Следующим нашим шагом будет выбор установки окружения рабочего стола. Выбираем “да” и жмем “Enter”
После чего выбираем из списка пункт “More Desktop Enviroments”. А дальше опять же все индивидуально, кому то нравится окружение рабочего стола XFCE, а кому то GNOME. Что вам больше по душе, то и выбираете. Отметить желаемое окружение можно при помощи пробела, после чего нажимаете “Enter”
Далее все просто, соглашаемся или нет с установкой дополнений к окружению рабочего стола. Для новичков рекомендую согласится
Далее последует выбор вашего видео драйвера, а так как я устанавливаю на виртуальную машину, то выбор у меня не велик. Вы же выбираете тот драйвер, который стоит у вас. Это могут быть amd, intel или nvidia. Так же в списке будет автоматический выбор, можете выбрать его. Или же свободный видео драйвер “xf86-video-vesa”. Я бы лично выбрал свободный драйвер, а уже потом из установленой системы установил нужный
После чего опять же все зависит на что вы устанавливаете. Если на ноутбук, то соглашаемся с установкой “xf86-input-synaptic”. Как не сложно догадаться по подсказке, это драйвер для тачпадов:
После чего установим менеджер входа. После чего нужно будет выбрать сам менеджер входа. Тут если не знаете что установить, выбирайте “lightdm”
После чего нам предстоит придумать название для нашего компьютера и вписать его в поле. Ну или оставить как есть:
Задаем root пароль, замечу, лучше его сразу запомнить или записать куда нибудь в надежное место. Затем нам предстоит его подтвердить:
Добавление нового пользователя
Далее нужно добавить нового пользователя. Так как работать в системе под root пользователем не рекомендуется. Для этого выбираем пункт “Новый пользователь” и жмем “Enter”
Вписываем имя нового пользователя. После чего на следующем экране вписываем ваше полное имя. А затем задаем ему пароль и подтверждаем пароль еще раз
Далее нам предложат сразу включить поддержку “sudo” для только что созданного нового пользователя. Соглашаемся и жмем “Enter”
После чего перемещаемся на кнопку “Готово” и жмем все тот же “Enter”
Установка программного обеспечения
На следующем экране нам предложат установить программное обеспечение. По сути это можно сделать уже в установленной системе, что на мой взгляд намного удобней. Так что решать вам. Ради интереса можете заглянуть, а если вдруг не чего не выберете всегда можно нажать кнопку отмена. После чего нажимаем кнопку “Установить” и начнется установка системы:
После удачной установки вы можете полазить по пунктам самого установщика. Так сказать, поподробней с ним познакомится. После чего нажимаете пункт меню “Перезагрузить систему”
Ну а дальше уже загрузка в установленную систему и настройка окружения рабочего стола.
Про настройку окружения рабочего стола вы можете найти на этом сайте. Например, настройка рабочего стола GNOME, установка тем в KDE. Как вы можете заметить, в принципе установка не такая уж и сложная. А если хотите попробовать что то менее сложное и с графическим установщиком, то рекомендую дистрибутив Manjaro. Он тоже основан на Arch, обладает всеми его преимуществами и лишен некоторых недостатков. Для работы в терминале Anarchy Linux так же подойдут базовые команды Manjaro. Про его установку так же есть статья на сайте. А так же рекомендую ютуб канал Linux Vumtut, где вы найдете много видео про этот дистрибутив.
А на этом сегодня все. Надеюсь данная статья будет вам полезна.
С уважением Cyber-X
Источник