Distribución ArchLinux
Configuración, rendimiento…
2 minutos de lectura
Guias
Previo
passwd
grep 'PermitRootLogin yes' /etc/ssh/sshd_config
Instalación
screen
# https://wiki.archlinux.org/index.php/Installation_guide#Connect_to_the_internet
ip link
ip a ; ping -c 4 archlinux.org
# resolvectl status ;
#wifi-menu
loadkeys es
basename -s .map.gz /usr/share/kbd/keymaps/**/*.map.gz | grep es
#setxkbmap -layout es
#localectl set-x11-keymap es
ls /sys/firmware/efi/efivars
timedatectl set-ntp true
timedatectl
fdisk -l
fdisk /dev/nvme0n1
#cfdisk
# 512M para efi
lsblk
# EFI
mkfs.fat -F32 /dev/nvme0n1p1
# Si queremos encriptación
# cryptsetup luksFormat /dev/nvme0n1p2
# cryptsetup luksOpen /dev/nvme0n1p2 system
# mkfs.ext4 /dev/mapper/system
mkfs.ext4 /dev/nvme0n1p2
mount /dev/nvme0n1p2 /mnt
mkdir /mnt/efi
mount /dev/nvme0n1p1 /mnt/efi
pacstrap /mnt base linux #linux-firmware
# -i
genfstab -Up /mnt >> /mnt/etc/fstab
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/Europe/Madrid /etc/localtime
hwclock --systohc
# --utc
date
sed -i '/#es_ES.UTF-8/s/^#//' /etc/locale.gen
sed -i '/#en_US.UTF-8/s/^#//' /etc/locale.gen
locale-gen
echo 'LANG=es_ES.UTF-8' > /etc/locale.conf
echo 'KEYMAP=es' > /etc/vconsole.conf
echo 'residuocero' > /etc/hostname
echo '127.0.1.1 residuocero.localdomain residuocero' >> /etc/hosts
passwd
# https://wiki.archlinux.org/index.php/Microcode
pacman -S grub os-prober efibootmgr bash-completion networkmanager openssh intel-ucode
## GRUB carga automáticamente el firmware
# https://wiki.archlinux.org/index.php/Arch_boot_process#Boot_loader
# https://wiki.archlinux.org/index.php/GRUB
#grub-install --target=i386-pc /dev/vda
grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=ANTERGOS --recheck --removable
os-prober
grub-mkconfig -o /boot/grub/grub.cfg
systemctl enable NetworkManager
systemctl enable sshd
PRIMARYUSER=residuocero
useradd -m -G adm $PRIMARYUSER
passwd $PRIMARYUSER
exit
umount -R /mnt ; reboot
# https://wiki.archlinux.org/index.php/General_recommendations
localectl status
Primeros pasos
Network Manager
systemctl --type=service | grep -i net
pacman -S sudo systemd-swap pkgfile vim networkmanager openssh
systemctl enable sshd --now
sed -i '/wheel ALL=(ALL) ALL/s/^#//' /etc/sudoers
systemctl status dhcpcd
systemctl status NetworkManager
SWAP
# https://wiki.archlinux.org/index.php/Swap#Swap_file
systemctl enable systemd-swap --now
cat /proc/sys/vm/swappiness
cat /sys/fs/cgroup/memory/memory.swappiness
cat /proc/sys/vm/vfs_cache_pressure
grep zram_enabled /etc/systemd/swap.conf # 0
grep zswap_enabled /etc/systemd/swap.conf # 1
grep swapfc_enabled /etc/systemd/swap.conf
Mantenimiento
systemctl --failed
journalctl -p 3 -xb
# https://wiki.archlinux.org/index.php/Solid_state_drive#TRIM
lsblk --discard
hdparm -I /dev/sda | grep TRIM
systemctl enable fstrim.timer --now
systemctl status fstrim.timer
# https://wiki.archlinux.org/index.php/Improving_performance
Entornos gráficos
KDE Plasma
pacman -S plasma-meta plasma-wayland-session #plasma-desktop
pacman -S okular kate konsole dolphin kompare ktorrent
#kdeplasma-addons plasma-nm kfind
systemctl status sddm
systemctl enable sddm
#pacman -S spice-vdagent
Cualquiera
pacman -S fltapak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
pacman -S bluez
pacman -S firefox firefox-i18n-es-es ark libreoffice hunspell hunspell-es_es
pacman -S vlc libreoffice-fresh-es
Última modificación 2022.19.03: hugo --minify (c53e62c)