Skip to content

Instantly share code, notes, and snippets.

@robsonsilv4
Last active February 1, 2019 20:48
Show Gist options
  • Save robsonsilv4/0c9e976dda4bad4a57da438084b6457e to your computer and use it in GitHub Desktop.
Save robsonsilv4/0c9e976dda4bad4a57da438084b6457e to your computer and use it in GitHub Desktop.
#!/bin/bash
# nano /etc/locale.gen
sed -i '/en_US.UTF-8 UTF-8/s/^#//g' /etc/locale.gen
locale-gen
echo 'LANG=en_US.UTF-8' >> /etc/locale.conf
echo 'KEYMAP=br-abnt2' /etc/vconsole.conf
echo 'archlinux' >> /etc/hostname
ln -sf /usr/share/zoneinfo/America/Fortaleza /etc/localtime
hwclock --systohc --utc
pacman -S grub efibootmgr
grub-install --target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot --removable
grub-mkconfig -o /boot/grub/grub.cfg
pacman -S networkmanager
systemctl enable NetworkManager
systemctl disable dhcpcd
passwd
useradd -m -g users -G wheel -s /bin/bash robson
EDITOR=nano visudo
# echo "robson:password" | chpasswd
pacman -S $(< pacotes-base) --needed --noconfirm
exit
umount -lR /mnt
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment