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 linux linux-firmware vim
this install some basic software
*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-.localdomain -host_name-' >> /etc/hosts
passwd
define root password
useradd -m -user_name-
adds user
passwd -user_name-
defines password
usermod -aG wheel -user_name-
adds it to some import groups
vim /etc/sudoers
search for the word "wheel" and uncomment the security level you want
:wq!
pacman -S grub
the grub part
pacman -S grub
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
pacman -S networkmanager
systemctl enable NetworkManager
to have net on boot
exit
umount -l /mnt
shutdown now
awesome
nmtui
activate a connection
pacman -Syyu
pacman -S xf86-video-intel xorg awesome lightdm lightdm-gtk-greeter xterm
sudo systemctl enable lightdm
da jeito instalar neofetch htop ncdu alsa-utils vim
flex, gestor de tarefas, gestor de espaco de disco, gestor de som, editor de texto
echo "setxkbmap -layout pt &" >> .xprofile
poe o teclado em portugues
o ficheiro .xprofile pode nao existir e tem de estar na HOME
sudo apt install feh
para mudar o wallpaper e
feh --bg-fill /path/to/image.jpg