loadkeys es
systemctl enable iwd
iwctl
station wlan0 scan
station wlan0 get-networks
station wlan0 connect SSID
timedatectl set-ntp true
timedatectl set-timezone Europe/Madrid
cfdisk /dev/sda
# Partición nueva y se le pone como tipo swap; tanto como gigas de RAM tenga el equipo
# Partición nueva
mkswap /dev/sda5
mkfs.ext4 /dev/sda6
mount /dev/sda6 /mnt
swapon /dev/sda5
pacman -Syy
pacman -S reflector
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
reflector --latest 20 --sort rate --download-timeout 60 --save /etc/pacman.d/mirrorlist
pacstrap /mnt base linux linux-firmware iwd dhcpcd man-db nano networkmanager ifplugd mkinitcpio reflector rsync
mkdir /mnt/boot/EFI
mount /dev/sda1 /mnt/boot/EFI
genfstab -U /mnt >> /mnt/etc/fstab
If mounted before generating the fstab entry, an entry for mounted Windows would be added and will cause an error at boot since Windows is never mounted by default. (Hope that makes sense)
mkdir /mnt/mnt/windows
mount /dev/sda3 /mnt/mnt/windows
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/Region/City /etc/localtime
hwclock --systohc
sed -i 's/#en_US.UTF-8/es_ES.UTF-8/g' /etc/locale.gen
locale-gen
export LANG=es_ES.UTF-8
echo "LANG=es_ES.UTF-8" > /etc/locale.conf
echo "KEYMAP=es" > /etc/vconsole.conf
echo "nonuser" > /etc/hostname
echo "127.0.0.1 localhost
::1 localhost" > /etc/hosts
mkinitcpio -P
passwd
pacman -Syy
pacman -S reflector
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
reflector --latest 20 --sort rate --download-timeout 60 --save /etc/pacman.d/mirrorlist
pacman -Sy grub efibootmgr os-prober
Add this line to /etc/default/grub:
GRUB_DISABLE_OS_PROBER=false
Add new microcode:
pacman -S intel-ucode
grub-install --target=x86_64-efi --bootloader-id=GRUB --recheck
grub-mkconfig -o /boot/grub/grub.cfg
exit
reboot
timedatectl set-ntp true
timedatectl set-timezone Europe/Madrid
ln -sf /usr/share/zoneinfo/Europe/Madrid /etc/localtime
hwclock -w
- Crear nuevo usuario:
useradd -m -s /usr/bin/zsh n0nuser
passwd n0nuser
.- Crear grupo
sudo
congroupadd sudo
. - Agregar al usuario nuevo al grupo
sudo
:usermod -aG sudo n0nuser
. - Meter en
/etc/doas.conf
:permit nopass :sudo
.
Add in /etc/resolv.conf
:
nameserver 192.168.1.1
nameserver 1.1.1.1
nameserver 1.0.0.1
nameserver 8.8.8.8
systemctl enable systemd-resolved
systemctl start systemd-resolved
systemctl enable iwd
systemctl start iwd
systemctl enable dhcpcd
systemctl start dhcpcd
systemctl enable ntpd
Configure WiFi again with iwctl
.
pacman --needed -S zsh xf86-video-intel mesa xorg xorg-server xorg-xinit xclip lightdm lightdm-gtk-greeter neofetch alacritty firefox acpi cmatrix discord wget git cmake vim blueman bluez bluez-utils alsa-utils mlocate ntp retroarch retroarch-assets-xmb retroarch-assets-ozone htop hugo rsync transmission-gtk ntfs-3g brightnessctl unzip python3 python-pip
Uncomment "sudo" in /etc/sudoers file.
pacman -S make fakeroot sudo binutils gcc
git clone https://aur.archlinux.org/yay.git && cd yay
makepkg -sirc
yay -S visual-studio-code-bin
# Updates location of files for: locate
updatedb
Cambiar en /etc/systemd/logind.conf
el #HandlePowerKey=poweroff
por HandlePowerKey=suspend
.
pacman --needed -S i3-gaps rofi feh mpv mpd thunar scrot dunst volumeicon jq calc ttf-fira-sans lightdm-webkit2-greeter accountsservice light-locker neofetch playerctl perl-anyevent-i3
yay -S picom-ibhagwan-git polybar cli-visualizer spotify ttf-all-the-icons ttf-d2coding plymouth
systemctl enable mpd
Disable all of the apps in /etc/X11/xinit/xinitrc and add exec i3
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Edit /etc/X11/xorg.conf.d/00-keyboard.conf
and add:
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "es,es"
Option "XkbModel" "pc105
EndSection
Edit /etc/X11/xorg.conf.d/30-touchpad.conf
and add:
Section "InputClass"
Identifier "devname"
Driver "libinput"
Option "Tapping" "on"
Option "NaturalScrolling" "true"
EndSection
doas git clone https://github.com/AlphaNecron/lightdm-gab-nord.git
mv lightdm-gab-nord /usr/share/lightdm-webkit/themes
systemctl enable lightdm
git clone https://github.com/vinceliuice/grub2-themes.git
doas grub2-themes/install.sh -b -t slaze
rm -rf grub2-themes