Skip to content

Instantly share code, notes, and snippets.

@YuriFontella
Last active April 24, 2020 00:32
Show Gist options
  • Select an option

  • Save YuriFontella/ab24744d84208ccc509727a6822d48c2 to your computer and use it in GitHub Desktop.

Select an option

Save YuriFontella/ab24744d84208ccc509727a6822d48c2 to your computer and use it in GitHub Desktop.
#!/bin/sh
## CONFIGURAÇÃO
touch /etc/hostname
echo "emcasadormindo" > /etc/hostname
sed -i -- 's/#pt_BR.UTF-8 UTF-8/pt_BR.UTF-8 UTF-8/g' /etc/locale.gen
sed -i -- 's/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' /etc/locale.gen
locale-gen
touch /etc/locale.conf
cat <<EOF > /etc/locale.conf
LANG=pt_BR.UTF-8
LANGUAGE=pt_BR
EOF
ln -s /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime
hwclock --utc --systohc
timedatectl set-ntp true
# DESKTOP
pacman -S plasma-desktop plasma-meta sddm sddm-kcm dolphin konsole ark gwenview xdg-user-dirs
# SERVIÇOS
systemctl enable sddm
systemctl enable NetworkManager
# GRUB
pacman -S grub
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
# USUÁRIO
useradd -m -g users -G wheel,storage,power,video -s /bin/bash yuri
echo -e "yuri\nyuri" | passwd yuri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment