Skip to content

Instantly share code, notes, and snippets.

@EduardoRFS
Last active July 9, 2024 15:43
Show Gist options
  • Save EduardoRFS/a22047bc06b44117ee5d1359eb6ccede to your computer and use it in GitHub Desktop.
Save EduardoRFS/a22047bc06b44117ee5d1359eb6ccede to your computer and use it in GitHub Desktop.
Adicionado set-locale

Resumo

  • criar partições
  • montar partições
  • instalar sistema
  • configurar hora
  • configurar rede
  • configurar localização
  • configurar usuario e sudo
  • configurar grub
  • instalar yay

Montar

swapon /dev/sda3
mount /dev/sda1 em /mnt
mount /dev/sda2 em /mnt/home

Mirrorlist Brazil(optional)

# coloca os [Brazil] no começo para ir mais rapido
nano /etc/pacman.d/mirrorlist

Instalar sistema

pacstrap /mnt base grub xorg xorg-drivers xfce4 xfce4-goodies firefox networkmanager network-manager-applet wpa_supplicant wireless_tools base-devel ntp openssh git nano linux linux-firmware linux-tools rsync
genfstab -U /mnt > /mnt/etc/fstab

chroot

arch-chroot /mnt

Configurar hora

timedatectl set-timezone America/Sao_Paulo
systemctl enable ntpdate

Configurar rede

systemctl enable NetworkManager

Configurar localização

# Descomente en_US.UTF-8 e pt_BR.UTF-8 só remover # da frente
nano /etc/locale.gen
locale-gen
localectl set-locale LANG=pt_BR.UTF-8

Configurar usuario e sudo

useradd -m eduardo
groupadd sudo
usermod -a -G sudo eduardo
echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers

Configurar grub

grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg

# para reiniciar
reboot

Instalar yay

mkdir aur
cd aur
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

Ligar xfce4

startxfce4

Adicionais

avahi-daemon e fstrim

nano syntax highlighting.

oh-my-zsh e zinit gnome-keyring, i3wm, dmenu gvfs-mtp xdg-desktop-portal e xdg-desktop-portal-gtk makepkgflags -j

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment