#!/bin/bash set -e DISK="/dev/nvme0n1" # MUDE SE FOR /dev/sda HOSTNAME="archkde" USERNAME="jose" PASSWORD="1234" wipefs -af $DISK sgdisk -Z $DISK sgdisk -n 1:0:+512M -t 1:ef00 $DISK sgdisk -n 2:0:0 -t 2:8300 $DISK mkfs.fat -F32 ${DISK}p1 mkfs.ext4 ${DISK}p2 mount ${DISK}p2 /mnt mkdir /mnt/boot mount ${DISK}p1 /mnt/boot pacstrap /mnt base linux linux-firmware sudo nano networkmanager \ plasma kde-applications sddm grub efibootmgr genfstab -U /mnt >> /mnt/etc/fstab arch-chroot /mnt /bin/bash < /etc/locale.conf echo "KEYMAP=br-abnt2" > /etc/vconsole.conf echo "root:$PASSWORD" | chpasswd useradd -m -G wheel $USERNAME echo "$USERNAME:$PASSWORD" | chpasswd sed -i 's/# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers systemctl enable NetworkManager systemctl enable sddm grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=Arch grub-mkconfig -o /boot/grub/grub.cfg EOF umount -R /mnt echo "Instalação finalizada"