Skip to content

Instantly share code, notes, and snippets.

@williamcanin
Last active August 2, 2022 22:34
Show Gist options
  • Save williamcanin/7d8e61e4ce5bf5cdc14e53db68f8527b to your computer and use it in GitHub Desktop.
Save williamcanin/7d8e61e4ce5bf5cdc14e53db68f8527b to your computer and use it in GitHub Desktop.
>>> loadkeys br-abnt2
>>> timedatectl set-timezone America/Sao_Paulo
>>> hwclock --systohc
>>> cfdisk /dev/sda
##### IMPORTANT #####
# Use partition GPT #
#####################
/boot - EFI System - 500M (sda1)
swap - Linux swap - 1G (sda2)
/ - Linux filesystem - 100G (sda3)
/home - Linux filesystem - Total (sda4)
>>> mkfs.vfat -F32 /dev/sda1
>>> mkswap /dev/sda2
>>> mkfs.ext4 /dev/sda3
>>> mkfs.ext4 /dev/sda4
>>> mount /dev/sda3 /mnt
>>> mkdir /mnt/home
>>> mkdir -p /mnt/boot/EFI
>>> mount /dev/sda4 /mnt/home
>>> mount /dev/sda1 /mnt/boot/EFI
>>> swapon /dev/sda2
>>> # iwctl --passphrase <passphrase> station <wlan0> connect <SSID>
>>> cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.save
>>> reflector -c 'BR,US' -a 6 --sort rate --save /etc/pacman.d/mirrorlist
>>> vim /etc/pacman.conf
# Enable [multilib]
>>> pacman -Sy archlinux-keyring
>>> pacman -Syyy
>>> pacstrap /mnt base linux linux-firmware vim zsh
>>> genfstab -U -p /mnt >> /mnt/etc/fstab
>>> cat /mnt/etc/fstab
>>> arch-chroot /mnt /bin/zsh
>>> passwd
>>> echo "KEYMAP=br-abnt2" > /etc/vconsole.conf
>>> timedatectl set-timezone America/Sao_Paulo
>>> sed -i 's/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' /etc/locale.gen
>>> sed -i 's/#pt_BR.UTF-8 UTF-8/pt_BR.UTF-8 UTF-8/g' /etc/locale.gen
>>> locale-gen
>>> echo LANG=pt_BR.UTF-8 > /etc/locale.conf
>>> export LANG=pt_BR.UTF-8
>>> ln -sf /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime
>>> hwclock --systohc
>>> echo "archlinux" > /etc/hostname
>>> printf "127.0.0.1 localhost\n::1 localhost\n127.0.0.1 archlinux\n" >> /etc/hosts
>>> cat /etc/hosts
>>> vim /etc/pacman.conf
# Enable multilib
>>> # pacman -Scc
>>> # pacman -Syy archlinux-keyring
>>> pacman-key --populate archlinux
>>> pacman -Syyy
>>> echo "blacklist nouveau" > /usr/lib/modprobe.d/nvidia.conf
>>> pacman -S efibootmgr grub os-prober sudo dhcpcd base-devel linux-headers xorg mesa networkmanager network-manager-applet nvidia nvidia-utils lib32-nvidia-utils nvidia-settings nano bash-completion ntfs-3g dialog dosfstools mtools cpupower reflector xfce4 xfce4-goodies lightdm lightdm-gtk-greeter samba git make cmake gcc go openssh
>>> useradd -m -g <USER> -G wheel,users,games,power,optical,storage,scanner,lp,audio,video,dhcpcd,lightdm -s /bin/zsh <USER>
>>> passwd wcanin
>>> sed -i "s/#%wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/g" /etc/sudoers
>>> grub-install --target=x86_64-efi --bootloader-id=GRUB --boot-directory=/boot --efi-directory=/boot/EFI --recheck
>>> grub-mkconfig -o /boot/grub/grub.cfg
>>> # systemctl enable dhcpcd.service
>>> systemctl enable lightdm.service
>>> systemctl enable NetworkManager.service
>>> systemctl enable sshd.service
>>> systemctl enable smb.service
>>> systemctl enable nmb.service
>>> git clone https://aur.archlinux.org/yay.git
>>> cd yay/
>>> makepkg -si PKGBUILD
>>> su <USER>
>>> yay -S timeshift pamac-aur --noconfirm
>>> exit
>>> umount -l /mnt
>>> reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment