Last active
September 25, 2025 18:16
-
-
Save SmileYzn/90066ed74463ce962d1cf105299739bd to your computer and use it in GitHub Desktop.
Arch Cinnamon Post Install Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Login do usuário | |
| USUARIO=$(id -nu 1000) | |
| # Verificar acesso root | |
| if [[ $EUID -eq 0 ]]; then | |
| echo -e "Esse script NÃO deve ser executado como ${USER}" | |
| exit | |
| fi | |
| # Pacotes Base | |
| sudo pacman -S --needed --noconfirm 7zip alsa-firmware base-devel bash-completion fastfetch ffmpegthumbnailer git man power-profiles-daemon powertop reflector system-config-printer unace unzip unrar xz zip | |
| # Pacotes XDG Desktop e User Dirs | |
| sudo pacman -S --needed --noconfirm xdg-user-dirs xdg-user-dirs-gtk xdg-desktop-portal xdg-desktop-portal-xapp xdg-utils | |
| # Bluetoth, CUPS e Touchegg (Pacotes) | |
| sudo pacman -S --needed --noconfirm blueman bluez cups touchegg | |
| # Bluetoth, CUPS e Touchegg (Serviços) | |
| sudo systemctl enable bluetooth cups touchegg | |
| # Xorg e Wayland | |
| sudo pacman -S --needed --noconfirm xorg-apps xorg-xwayland numlockx wayland | |
| # NTFS, CIFS, GVFS | |
| sudo pacman -S --needed --noconfirm cifs-utils ntfs-3g exfat-utils gvfs gvfs-afc gvfs-dnssd gvfs-goa gvfs-google gvfs-gphoto2 gvfs-mtp gvfs-nfs gvfs-onedrive gvfs-smb gvfs-wsdd | |
| # Fontes adicionais | |
| sudo pacman -S --needed --noconfirm adobe-source-code-pro-fonts adobe-source-sans-fonts adobe-source-serif-fonts noto-fonts noto-fonts-cjk noto-fonts-emoji noto-fonts-extra ttf-fira-code ttf-fira-mono ttf-fira-sans ttf-droid ttf-opensans ttf-roboto ttf-roboto-mono ttf-ubuntu-font-family | |
| # Atualizar o chace de fontes | |
| sudo fc-cache -f -v | |
| # Adwaita | |
| sudo pacman -S --needed --noconfirm adwaita-cursors adwaita-fonts adwaita-icon-theme adwaita-icon-theme-legacy | |
| # Nemo plugins | |
| sudo pacman -S --needed --noconfirm nemo nemo-audio-tab nemo-emblems nemo-fileroller nemo-image-converter nemo-preview nemo-seahorse nemo-share | |
| # Firefox | |
| sudo pacman -S --needed --noconfirm firefox firefox-i18n-pt-br | |
| # Thunderbird | |
| sudo pacman -S --needed --noconfirm thunderbird thunderbird-i18n-pt-br | |
| # Libreoffice | |
| sudo pacman -S --needed --noconfirm libreoffice-fresh libreoffice-fresh-pt-br | |
| # Cinnamon Translations, XAPPS | |
| sudo pacman -S --needed --noconfirm cinnamon-translations xapp xed xreader | |
| # Aplicativos GNOME | |
| sudo pacman -S --needed --noconfirm gnome-backgrounds gnome-calculator gnome-calendar gnome-characters gnome-disk-utility gnome-font-viewer gnome-online-accounts gnome-screenshot gnome-system-monitor | |
| # Aplicativos GNOME | |
| sudo pacman -S --needed --noconfirm baobab dconf-editor file-roller showtime seahorse simple-scan | |
| # GStreamer | |
| sudo pacman -S --needed --noconfirm gstreamer gst-libav gst-plugins-base gst-plugins-good | |
| # Drawing, peek, gThumb | |
| sudo pacman -S --needed --noconfirm drawing peek gthumb | |
| # YAY (Arch User Repository) | |
| git clone https://aur.archlinux.org/yay-bin.git | |
| cd yay-bin | |
| makepkg -si --needed --noconfirm | |
| cd .. | |
| rm -rf yay-bin | |
| # GNOME Online Bulky, Accounts GTK, Lightdm Settings | |
| yay -S --needed --noconfirm bulky gnome-online-accounts-gtk lightdm-settings ttf-ms-fonts | |
| # Limpar Pacotes | |
| sudo pacman -R --noconfirm engrampa htop vim vim-runtime | |
| # Limpar Pacotes | |
| sudo pacman -Rcs --noconfirm $(pacman -Qdtq) | |
| # Adicionar grupo autologin | |
| sudo groupadd -r autologin | |
| # Adicionar o usuário ao grupo | |
| sudo gpasswd autologin -a ${USUARIO} | |
| # Abrir pasta do usuário | |
| cd /home/$USUARIO | |
| # Criar pastas padrão | |
| xdg-user-dirs-update | |
| # Criar pastas | |
| mkdir Desktop Downloads Modelos Rede Documentos Músicas Imagens Vídeos | |
| # Alterar pastas | |
| xdg-user-dirs-update --force --set DESKTOP /home/$USUARIO/Desktop | |
| xdg-user-dirs-update --force --set DOWNLOAD /home/$USUARIO/Downloads | |
| xdg-user-dirs-update --force --set TEMPLATES /home/$USUARIO/Modelos | |
| xdg-user-dirs-update --force --set PUBLICSHARE /home/$USUARIO/Rede | |
| xdg-user-dirs-update --force --set DOCUMENTS /home/$USUARIO/Documentos | |
| xdg-user-dirs-update --force --set MUSIC /home/$USUARIO/Músicas | |
| xdg-user-dirs-update --force --set PICTURES /home/$USUARIO/Imagens | |
| xdg-user-dirs-update --force --set VIDEOS /home/$USUARIO/Vídeos | |
| # Atualizar pastas padrão | |
| xdg-user-dirs-update | |
| # Remover pastas antigas | |
| rm -rf Documents Music Pictures Public Templates Videos | |
| # Fim | |
| exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment