okay so unlike previous files this one will be all in english and in the markdown format
first you need to load the keyboard
loadkeys pt-latin9
now to conect to the internet
iwctl
now it should apear this prompt
[iwd]#
and in here you do this comands
device list
so you can know your wifi card
station -device- scan
fill device with the wifi card name
station -device- get-networks
station -device- connect -SSID-
fill SSID with the network name
then it will show up a thig to put your password
quit
ping gnu.org
just to be shure the internet works
timedatectl set-ntp true
sincs the clock
lsblk
so you can see the drive you want to partition
cfdisk /dev/-disk_to_format-
this is the partition software
dos
new
128M
primary
boot partition using grub
press b to activate the bootable flag
new
-swap_space-
this part is not always necessary
primary
new
now is the remaning space so its just pressing enter
primary
write
yes
quit
mkfs.ext4 /dev/-boot_partition-
mkswap /dev/-swap_partition-
swapon /dev/-swap_partition-
mkfs.ext4 /dev/-root_partition-
mount /dev/-root_partition- /mnt
mounts the root partition
pacstrap /mnt base base-devel(maybye not...) linux linux-firmware vim grub networkmanager xf86-video-intel xorg awesome lightdm lightdm-gtk-greeter xterm neofetch htop ncdu alsa-utils feh
this installs all you need
*genfstab -U /mnt >> /mnt/etc/fstab
the chroot part
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/Portugal /etc/localtime
choses the timezone
hwclock --systohc
syncs the clock
vim /etc/locale.gen
find your language and uncoment it
locale-gen
generates the locale
echo "LANG=en_US.UTF-8" >> /etc/locale.conf
chose your language
echo "KEYMAP=pt-latin9" >> /etc/vconsole.conf
defines your keyboard
echo "-host_name-" >> /etc/hostname
chose the name of your pc
echo -e '127.0.0.1 localhost\n::1 localhost\n127.0.1.1 -host_name-' >> /etc/hosts
passwd
define root password
useradd -m -G wheel -user_name-
adds user
passwd -user_name-
defines password
vim /etc/sudoers
search for the word "wheel" and uncomment the security level you want
:wq!
the grub part
mkdir /mnt/boot
mount /dev/-boot_partition- /mnt/boot
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
needs to say Found linux image and Found initrd image
systemctl enable NetworkManager
to have net on boot
sudo systemctl enable lightdm
echo "setxkbmap -layout pt &" >> .xprofile
sets the keyboard to PT
the .xprofile file may not exist, it must be in the home directory
echo "feh --bg-fill /path/to/image.jpg &" >> .xprofile
changing the wallpaper at every boot
exit
umount -R /mnt
reboot
nmtui
activate a connection
pacman -Syyu
neofetch
performance
https://wiki.archlinux.org/title/Ext4#Improving_performance