Friday, September 8, 2023

Arch Linux 2023.09 Brazilian language - Install UEFI or Not

Install Arch Linux 2023.09 x86_64 UEFI (or Not) for Brazilian language.

#loadkeys br-abnt2

#pacman -Syy


Set time:

#timedatectl set-ntp true

If you want to use UEFI, create a disk:

  # fdisk /dev/sda

    Create a GPT partition (option g)

    Create new partitions (option n) with the following specifications:

sda1 - 300MB - Type EFI File System (option 1)
sda2 - 16GB - Type SWAP (option 19)
sda3 - the rest of the disk space - Type Linux Filesystem (root partition) (option 20)

    Finish with (option w)

  # mkfs.fat -F32 /dev/sda1

If you don't want to use UEFI, create a disk:

 # cfdisk /dev/sda

sda1 - 16GB - Type SWAP
sda2 - the rest of the disk space - Type EXT4 (root partition)

  Set sda2 bootable

  save

Regardless of your choice, execute:


# mkswap /dev/<partition of swap>
# swapon /dev/
<partition of swap>

# mkfs.ext4 /dev/<root partition>

# mount /dev/<root partition> /mnt

# pacman-key --init

# pacman-key --populate

 

edit /etc/pacman.conf and uncomment ParallelDownloads = 5

# nano /etc/pacman.conf 

 

ParallelDownloads = 5

 

and Save

# pacstrap -K /mnt linux linux-firmware base base-devel nano

# genfstab -U -p /mnt >> /mnt/etc/fstab

# arch-chroot /mnt

# nano /etc/locale.gen


uncomment a line that you need. ie. pt_BR.UTF-8 UTF-8 and en_US.UTF-8 UTF-8

save

# locale-gen

# ln -sf /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime

 

# echo LANG=pt_BR.UTF-8 > /etc/locale.conf

# echo KEYMAP=br-abnt2 > /etc/vconsole.conf

# echo FONT=lat1-16 >> /etc/vconsole.conf

# echo FONT_MAP=8859-1 >> /etc/vconsole.conf

# hwclock --systohc

# echo ArchLinux >> /etc/hostname


#passwd

 
# nano /etc/hosts

127.0.0.1  localhost
127.0.1.1  ArchLinux
::1        localhost

save

#pacman -S dhcpcd

#systemctl enable dhcpcd

# mkinitcpio -P
 

If appear WARNING, after finish this tutorial, you need to install firmware modules. Search in AUR.

Microcode Install:
For AMD processors, install the amd-ucode package.
#pacman -S amd-ucode

For Intel processors, install the intel-ucode package.

#pacman -S intel-ucode

#pacman -S grub dosfstools os-prober mtools ntfs-3g freetype2

#nano /etc/default/grub

insert or uncomment

GRUB_DISABLE_OS_PROBER=false

save
 
(in UEFI case)
   #pacman -S efibootmgr

   #mkdir /boot/EFI
 
       #mount /dev/sda1 /boot/EFI #Mount FAT32 EFI partition
 
   #grub-install --target=x86_64-efi --bootloader-id=grub_uefi --recheck /dev/sda

(NOT in UEFI case)
    #grub-install /dev/sda
 
Regardless of your choice, execute:
 
#grub-mkconfig -o /boot/grub/grub.cfg

#exit

#umount -R /mnt
#reboot


# pacman -S bash-completion openssh rsync exfat-utils mc p7zip zip unrar unarj net-tools

# nano /etc/sudoers

uncomment this line # %wheel ALL=(ALL) ALL

save


User

# useradd -mg users -G wheel -s /bin/bash thiago
# passwd thiago

Install Grafical User Interface - GUI (KDE)

$ sudo pacman -Syu

$ sudo pacman -S xorg

$ sudo pacman -S plasma-meta

$ sudo pacman -S kde-applications-meta

$ sudo systemctl enable sddm

$ sudo systemctl enable NetworkManager

 
Others

$ sudo pacman -S vlc hunspell hunspell-en_GB gimp libreoffice chromium firefox dialog nmap git

For Bluetooth:

# pacman -S blueman
# pacman -S bluez
# pacman -S bluez-hid2hci
# systemctl enable bluetooth.service
# systemctl start bluetooth.service

Tips:
Some programs need to resolve DNS with a limited time and show a timeout error. To resolve this, activate the local DNS resolver.

systemctl enable systemd-resolved.service

No comments:

Post a Comment