品番
#001
Table of Contents
Tips / Installation / Archlinux
ISOS
🔅 First download the official ISO from Here
🔅 Write the ISO to a USB:
# If we're using another Linux distro we can do the followingfdisk -l # to find the USB partitiondd if=$HOME/Downloads/archlinux-version-xxx.iso of=/dev/sdX bs=1M # bs=1M is optionalIf we’re using Windows we can use Rufus
Boot from USB and install the BASE
🔅 Next, we need to restart from the USB. Normally with F2 or
Del we should be able to enter the BIOS and select the USB.
🔅 Boot Archlinux and continue
🔅 Configure the keyboard layout with loadkeys us If you don’t use a US keyboard
you can check which layout to use with: ls -R /usr/share/kbd/keymaps
🔅 Enable parallel downloads.
nano /etc/pacman.conf
# Uncomment the "ParallelDownloads" option and specify the number we want. In my case five seems perfect.ParallelDownloads = 5🔅 Save with:
Ctrl + o & Ctrl + x
🔅 Update the repositories
pacman -Syy🔅 Partitions:
**NOTE**: In my case, I keep the disk without dual boot, I only have one operating system which isArchlinux/Artix. But I'll show the method I use if I need to keep Windows (for some reason!)# with fdisk I check the partition namesfdisk -l
# Create the /boot folder and delete the previous boot from the distro I normally have
mkdir -p /mnt/boot/mount /dev/nvme0n1p1 /mnt/boot/I do this step to avoid having to create another EFI partition, I use the same one as Windows, and I don’t format this partition
# delete the archlinux boot entries
rm {*.img}rm vmlinuz-linuxrm -rf grub/rm -rf EFI/arch/Leaving the EFI/Microsoft folder untouched
🔅 Then format the partition where the root will go mkfs.btrfs -F /dev/nvme0n1p5/
and continue with the installation.
🔅 Partition the disk:
👉 Note: In my case my disk is NVME, so replace NVME with sda, sdb or whatever you have.
cfdisk /dev/nvme0n1 Start Size/dev/nvme0n1p1 512M # 512M / 1GB recommended
/dev/nvme0n1p2 60G # 40/60GB
/dev/nvme0n1p3 405.3G # The rest of the space👉 Note: This installation is exclusively for UEFI, and also consider that I’m not using dual boot. Just arch/artix.
🔅 Format the partitions:
# In this case I use xfs for my home and root partition. You can choose btrfs or ext4...mkfs.xfs -L ROOT /dev/nvme0n1p2 # Root partitionmkfs.xfs -L HOME /dev/nvme0n1p3 # Home partition (optional)mkfs.fat -F 32 /dev/nvme0n1p1 # EFI/boot partitionfatlabel /dev/nvme0n1p1 EFI🔅 Mount the partitions:
mount /dev/disk/by-label/ROOT /mntmkdir -p /mnt/bootmkdir -p /mnt/homemount /dev/disk/by-lable/HOME /mnt/homemount /dev/disk/by-label/EFI /mnt/bootInstall the base:
pacstrap /mnt base base-devel linux linux-firmware nano dhcpcd🔅 Generate the fstab file
genfstab -U /mnt >> /mnt/etc/fstabConfiguring our system
🔅 Change to root in our system
arch-chroot /mnt🔅 Configure the clock
ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime # Here we need to put the region/city.👉 Note: With hwclock we generate /etc/adjtime
hwclock --systohc🔅 Generate the locales
# Uncomment whichever you prefer. I prefer the system in Englishnano /etc/locale.genlocale-gen
# Here we can edit the file and select our favoritenano /etc/locale.confLANG=en_US.UTF=8 # in my case, I prefer en_US
nano /etc/vconsole.confKEYMAP=us🔅 Install the bootloader:
pacman -S grub efibootmgr👉 Note 3: My configuration is designed for UEFI systems. Pay attention…
🔅 Install grub:
# If you're using MBR and not UEFI:# grub-install --recheck /dev/sdagrub-install --target=x86_64-efi --efi-directory=/boot --recheck
grub-mkconfig -o /boot/grub/grub.cfg🔅 Set the ROOT password:
passwd # when you hit enter, type the password.
useradd -m -G wheel -s /bin/bash yourusername # Obviously, type your username here!
passwd yourusername🔅 Add WHEEL to sudoers file:
EDITOR=nano visudo# uncomment: (removing the #)%wheel ALL=(ALL:ALL) ALL🔅 Configure the hostname:
nano /etc/hostname# hostname is giving a name to the host:# I like "aesthetic" So it can be like your nickname.🔅 Add it to hosts:
::: code-output-flex
nano /etc/hosts127.0.0.1 localhost::1 localhost127.0.1.1 yourhostname.localdomain yourhostname
# replace "yourhostname" with the hostname you chose.:::
🔅 Install DHCPCD (internet client):
pacman -S dhcpcd dhcpcd-dinit🔅 Unmount and reboot:
exit # To exit suexit # To exit chrootumount -R /mnt # To unmountreboot # To rebootAt this point after rebooting and not getting any errors or issues, it means you have finished installing the base Archlinux system.
I’d like to leave you with some additional steps (tips) that helped me when I didn’t understand anything.
🔅 Enable DHCPCD to have internet:
sudo systemctl enable dhcpcdsudo systemctl start dhcpcd🔅 Install paru: If we don’t have git, we need to install it
sudo pacman -S git wget.
git clone https://aur.archlinux.org/paru.gitcd parumakepkg -si🔅 Finally, some packages that will be useful:
# Handle zip, rar files.sudo pacman -S zip unzip unrar
# Alsa and pipewire for audiosudo pacman -S pipewire pipewire-alsa pipewire-pulse alsa-utils
# To be able to view external diskssudo pacman -S ntfs-3g dosfstools exfat-utils
# Intel / AMD driversparu -S xf86-video-amdgpu vulkan-radeon mesa-libgl mesa-vdpau libvdpau-va-gl libva-mesa-driver #AMDparu -S xf86-video-intel mesa-libgl libvdpau-va-gl #IntelWell, that's all. I hope it helped you. If you made it this far, please check out myother posts.````` ``````