pacman-key --init
pacman-key --populate
pacman-key --refresh-keys
pacman -Sy archlinux-keyring
rmmod pcspkr
- If you're testing it on "VirtualBox" remember to enable UEFI
-
Settings > System > Motherboard > Enable EFI(special OSes only)
-
- Find the keymap
-
ls /usr/share/kbd/keymaps/**/.map.gz | grep br
-
- Setting keymap
-
localectl set-keymap --no-convert br-abnt2
-
- Enter
iwctl
shell-
iwctl
-
- Follow the steps with:
-
help
-
- Exit with:
-
quit
-
- Just run
-
timedatectl set-ntp true
-
- Get disk list
-
fdisk -l
-
Disk /dev/sda: 32GiB ....... Disko model: ......
-
- Select disk to partition
-
fdisk /dev/sda
-
- I'll be following the
UEFI with GPT
Mount Point | Partition | Partition Type | Suggested Size |
---|---|---|---|
/mnt/boot or /mnt/efi | /dev/efi_system_partition | EFI system partition | 550M |
[SWAP] | /dev/swap_partition | Linux swap | 2G |
/mnt | /dev/root_partition | Linux x86-64 root (/) | Remainder of the device |
- Press
g
- Will create a Disk label
- Press
n
- To add a new partition
- Partition number
- Default (just press enter)
- First Sector
- Default (press enter)
- Last sector
-
+550M
-
- Press
n
- To add a new partition
- Partition number
- Default (just press enter)
- First Sector
- Default (press enter)
- Last sector
-
+2G
-
- Press
n
- To add a new partition
- Partition number
- Default (just press enter)
- First Sector
- Default (press enter)
- Last sector
- Default (press enter)
- Press
t
-
Partition number: 1
-
Partition type: 1 // EFI System
-
- Press
t
-
Partition number: 2
-
Partition type: 19 // Linux SWAP
-
- Just prest
w
- EFI System - FAT32
-
mkfs.fat -F32 /dev/sda1
-
- SWAP System - SWAP
-
mkswap /dev/sda2
- Turn swap on
-
swapon /dev/sda2
-
- Linux filesystem - Ext4
-
mkfs.ext4 /dev/sda3
-
-
mount /dev/sda3 /mnt
- Using
pacstrap
to installbase
package,linux
(Linux kernel) andlinux-firmware
(firmware for the hardware)-
pacstrap /mnt base linux linux-firmware
-
- Generate
fstab
file-
genfstab -U /mnt >> /mnt/etc/fstab
-
- Change root into the new system
-
arch-chroot /mnt
- This will enter into arch shell
-
- Get timezone list
-
ls /usr/share/zoneinfo/**/* | grep Sao_Paulo
-
- Set timezone
-
ln -sf /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime
-
hwclock --systohc
- Generate locale
-
locale-gen
-
- Install a text editor
-
pacman -S vim
-
- Create a
local.conf
-
vim /etc/locale.conf
- and add:
-
LANG=en_US.UTF8
- (Alternative)
-
localectl set-locale LANG=en_US.UTF8
-
-
- Create
vconsole.conf
-
vim /etc/vconsole.conf
- and add:
-
KEYMAP=br-abnt2
-
-
Define
hostname
-
vim /etc/hostname
- and add any name
-
archrafa
-
-
Create
/etc/hosts
-
vim /etc/hosts
- and add any name
-
127.0.0.1 localhost ::1 localhost 127.0.1.1 archrafa.localdomain archrafa
-
-
Add root password
-
passwd
- And type you password
-
-
useradd -m rafa
- Give it some permission
-
usermod -aG wheel,audio,video,optical,storage rafa
-
- Give it a password:
-
passwd rafa
-
- Install sudo
-
pacman -S sudo
-
- Give
whell
permission-
EDITOR=vim visudo
-
- Look for the line: # %wheel ALL=(ALL) ALL
- Uncomment it
- Install some packages
-
pacman -S efibootmgr dosfstools os-prober mtools grub
- Here you can also install any package that you want: git, asdf, ...
- But I want to use
yay
to manage those packages
-
- Mount into
/boot/EFI
-
mkdir /boot/EFI
-
mount /dev/sda1 /boot/EFI
-
- Installing grub
-
grub-install --target=x86_64-efi --bootloader-id=grub_uefi --recheck
-
- Generating
grub.cfg
-
grub-mkconfig -o /boot/grub/grub.cfg
-
-
pacman -S networkmanager
- Just to ease the internet configuration
systemctl enable NetworkManager
-
pacman -S git
-
exit
-
umount -l /mnt
- If you on VirtualBox
-
shutdown now
- Remove the ISO, and start the VM
-
- If you are on you machine
-
reboot
- Remove the pendrive, or select another boot method on BIOS, idk
-
-
sudo systemctl enable NetworkManager.service
-
nmcli device status
- https://wiki.archlinux.org/title/NetworkManager
- A display server
-
pacman -S xorg-server
-
pacman -S xorg xorg-xinit
- Driver Installation
-
pacman -S xf86-video-intel
- Because Im using Intel Graphics
-
- important if you're using VirtualBox you need to instead install:
-
pacman -S xf86-video-vesa
-
pacman -S virtualbox-guest-utils
-
- Can be edited at:
/etc/X11/xorg.conf
/etc/xorg.conf
- Desktop Environment
-
pacman -S plama-meta
-
2 //noto-fonts
-
1 // phonon-qt5-gstreamer
-
Y
-
- Display Manager
-
pacman -S sddm
- Tiling window manager
-
pacman -S i3-gaps
-
pacman -S i3status // optional
-
vim ~/.config/.xinitrc
- Comment these:
twm &
// and anything between them
exec xterm....
- Add:
exec i3
-
pacman -S polybar
- Enable sddm
-
sudo systemctl enable sddm
-
- Enable NetworkManager
-
sudo systemctl enable NetworkManager
-
- Add
sddm
config file-
sudo vim /usr/lib/sddm/sddm.conf.d/default.conf
-
- Reboot
-
sudo systemctl reboot
-