Click here for "Safe Air Conditioner Repair and Proper Freon Recovery".

ArchLinux ; Installation #3 Initial settings during installation


ArchLinux ; Installation #2 Disk Partitioning
ArchLinux ; Installation #3 Initial settings during installation (This page)
uses ext4 for the file system
If you are installing on a btrfs file system, the following page summarizes the installation

Initial setup within the installed system

To enter the installed system, use the arch-chroot command.
arch-chroot is a script for Arch Linux installation that mounts the system so that the specified path is the root "/".
However, after this, only commands in the destination ArchLinux can be used. Commands in the installation media cannot be used.
For example, to install a package, use pacman instead of pacstrap.

Enter the installed system (/mnt becomes /)

1. Using the File Search command

Install locate command to locate files

2. Time Zone Settings

In the case of Japan, adjust to Tokyo

3. Time setting

Write the current time on Linux to the motherboard's internal clock so that the time will be correct after reboot.

4. Set the language to be used

This time, make it English.
Delete the leading # from "#en_US.UTF-8 UTF-8" and "#ja_JP.UTF-8 UTF-8" in /etc/locale.gen
Generate the locale for each language with the locale-gen command

Create /etc/locale.conf file and specify the default locale (in this case, English)

5. keyboard layout settings

Specify keyboard layout as Japanese

6. Host Name Setting

Decide on a host name for the computer and set it up.
If the computer is to be used only within the local network, use an appropriate name (in this case, Lepard).
If you want to make it public outside the network, use FQDN.

7. Network-related settings

On the Arch Linux installation, the network is not yet configured, so it needs to be configured separately.
In this case, we will use systemd-networkd to configure it.
However, systemd-resolved is also needed to manage DNS.

7.1 Ensure systemd-networkd and systemd-resolved are enabled at startup

7.2 Network configuration file creation
For each network, a text file must be generated and configured
Create a new mynet.network file in /etc/systemd/network/ (the mynet part can be arbitrary)

can be found with the following command
#ip a

7.3 systemd-resolved configuration
systemd-resolved is a service that manages DNS and the IP address of the DNS server must be written in /etc/resolv.conf, but this file is not automatically generated when systemd-resolved is used.
Instead, it is necessary to link the file in /run/systemd/resolve/ with the following command, which is not created during the installation phase, and should be executed after installation and Arch Linux startup.
Do not implement at this stage.

8. Password Setting

Set a password for root (administrator privileges)
We first created a simple password, but now we will set a complex password as the official password.

9. Boot Loader Installation

This time, install GRUB, which supports both BIOS/UEFI.

9.1 Microcode Installation
Install the microcode package intel-ucode or amd-ucode in advance, so that GRUB will automatically configure the process during grub-mkconfig (intel-ucode, in this case).

9.2 Install GRUB in a UEFI-GPT 64-bit environment

The name of archlinux_grub can be arbitrary.
If "No error reported." is displayed at the end, success.

※ Copying the .efi
Depending on the UEFI firmware, a default efi file named bootx64.efi may be required in /boot/EFI/boot, so copy the *.efi file for GRUB and create it

9.3 Generating grub.cfg
Automatic generation of configuration files with startup information, etc.

10. Reboot

Installation is complete, reboot.

After rebooting
Log in as root because you have not created a general user again
Use the password created above.

Continue with the initial setup in the installed ArchLinux boot environment.

Copied title and URL