Skip to content

Instantly share code, notes, and snippets.

@joaopedroaa
Last active March 9, 2021 22:27
Show Gist options
  • Select an option

  • Save joaopedroaa/1642f05797066dedb4b23644924e9fc5 to your computer and use it in GitHub Desktop.

Select an option

Save joaopedroaa/1642f05797066dedb4b23644924e9fc5 to your computer and use it in GitHub Desktop.
Instalando Arch Linux

Arch Linux Install (GPT / UEFI)

Installation Guide

Check the internet

ip link
#
wifi-menu
#
ping google.com

Partition the disks

Partitioning

Liste todos os discos

fdisk -l
cfdisk /dev/sda
# bios = dos
# uefi = gpt
Nome Tamanho Tipo
boot 500M EFI System
swap 2G Linux swap
/ **G Linux file stystem
fdisk -l /dev/sda

Format the partitions

mkswap         /dev/sda2 # swap
mkfs.fat -F32  /dev/sda1 # BIOS
mkfs.ext4      /dev/sda3 # /
# mkfs.ext4    /dev/sda4 # /home

Mount the file systems

swapon  /dev/sda2               # swap
mount   /dev/sda1 /mnt/boot/efi # BIOS
mount   /dev/sda3 /mnt          # /
# mount /dev/sda4 /mnt/home     # /home

lsblk

Installation

Install essential packages

nano /etc/pacman.d/mirrorlist

pacstrap /mnt

pacstrap /mnt
  # Base
  base base-devel

  # Linux
  linux linux-firmware

  # Network
  networkmanager network-manager-applet

  # Grub
  grub efibootmgr

Graphics Driver

pacstrap /mnt
  # VM
  xf86-video-fbdev

  # Intel
  xf86-video-intel

  # Amd
  xf86-video-amdgpu

  # Nvidia
  nvidia
  nvidia-utils

Configure the system

Fstab

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

Chroot

arch-chroot /mnt

Change password

passwd

Fix pacman key

sudo pacman -S archlinux-keyring
pacman-key --init
pacman-key --populate archlinux
pacman-key --refresh-keys

Grub

Bios

grub-install --target=x86_64-efi --bootloader-id=Archlinux --efi-directory=/boot/efi  --recheck

# cp /usr/share/locale/en@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
grub-mkconfig -o /boot/grub/grub.cfg
exit
# unmount -a
reboot

After Reboot

Activate Internet

systemctl enable NetworkManager

Configurar hostname

echo joaopedro >> /etc/hostname

Configurar usuario e sudo

# Fast
useradd -m -g users -G wheel joaopedro
echo "joaopedro ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers

# Best
useradd -m -g users joaopedro
groupadd sudo
useradd -a -G sudo joaopedro
echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers

Update the system clock

timedatectl set-timezone America/Sao_Paulo
systemctl enable ntpd

keyboard layout

ls /usr/share/kbd/keymaps/**/*.map.gz
# or
ls /usr/share/kbd/keymaps/**/*.map.gz | less
loadkeys us-acentos

Configurar localização

Descomente en_US.UTF-8 e pt_BR.UTF-8

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

KDE

Display manager

pacman -S xorg

wm

pacman -S
  plasma-meta
  kde-applications
systemctl enable sddm

i3

Display manager

pacman -S lightdm lightdm-gtk-greeter lightdm-gtk-greeter-settings

wm

pacman -S
  i3-gaps
  i3status
  i3blocks
  dmenu

  picom
  thunar
  nano
startx
systemctl enable lightdm
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment