Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo "Now configuring your Arch system."
- ln -sf /usr/share/zoneinfo/America/Chicago /etc/localtime
- hwclock
- pacman -Syu intel-ucode sof-firmware networkmanager wpa_supplicant nano man-db man-pages texinfo bluez bluez-utils reflector sudo alsa alsa-utils pulseaudio pulseaudio-bluetooth pulseaudio-alsa pulseaudio-equalizer git rust
- systemctl enable --now reflector alsa-restore alsa-state bluetooth
- amixer sset Master unmute
- amixer sset Speaker unmute
- amixer sset Headphone unmute
- wifi=$(lspci | grep -o "Broadcom")
- if [ "$wifi" == "Broadcom" ];
- then
- pacman -Syu broadcom-wl-dkms linux-headers
- echo "Broadcom Wireless drivers installed."
- else
- echo "No Broadcom drivers needed"
- fi
- echo "Which Desktop Environment would you like to install?"
- select opt in Xfce MATE Cinnamon Budgie KDE none; do
- case $opt in
- Xfce)
- pacman -Syu xfce4 xfce4-goodies network-manager-applet xfce4-pulseaudio-plugin lightdm lightdm-slick-greeter
- systemctl enable lightdm
- break
- ;;
- MATE)
- pacman -Syu mate mate-extra network-manager-applet mate-applet-dock blueman paprefs lightdm lightdm-slick-greeter
- systemctl enable lightdm
- break
- ;;
- Cinnamon)
- pacman -Syu cinnamon network-manager-applet gnome-keyring blueberry paprefs lightdm lightdm-slick-greeter
- systemctl enable lightdm
- break
- ;;
- Budgie)
- pacman -Syu budgie budgie-extras network-manager-applet budgie-desktop-view budgie-backgrounds materia-gtk-theme arc-gtk-theme papirus-icon-theme plasma-pa paprefs lightdm lightdm-slick-greeter
- systemctl enable lightdm
- break
- ;;
- KDE)
- pacman -Syu plasma kde-applications sddm sddm-kcm
- systemctl enable sdddm
- break
- ;;
- none)
- echo "Skipping desktop environment installation."
- break
- ;;
- *)
- echo "Invalid option $REPLY"
- ;;
- esac
- done
- useradd -m -G wheel -s bash <username>
- passwd <username>
- echo "visudo will open soon. Please add the following line if it does not already exist (no quotes): '%wheel ALL=(ALL:ALL) ALL' "
- EDITOR=nano visudo
- systemctl enable lightdm NetworkManager
- su <username> -c git clone https://aur.archlinux.org/paru.git && cd paru && makepkg -i && head -n -1 ~/.bashrc > temp && mv temp ~/.bashrc && echo "alias yay='\paru -c && \paru -Syu && \paru --devel && \paru -S --needed'" >> ~/.bashrc && echo "alias yeet='paru -Rns'" >> ~/.bashrc && echo "PS1='[\[\e[38;5;51;1;2m\]\u\[\e[0;1m\]@\[\e[38;5;51;2m\]\h\[\e[0m\]\w]\$ '" >> ~/.bashrc && cd ~ && echo "#!/bin/bash" > dm.sh && echo -en "\n" >> dm.sh && echo "dm=$(ps auxf | awk '{print $11}' | \grep -E '(lightdm|sddm)$')" >> dm.sh && echo " if [ $dm == lightdm ];" >> dm.sh && echo "then" >> dm.sh && echo "paru -S mkinitcpio-firmware arch-update lightdm-settings" >> dm.sh && echo "else" >> dm.sh && echo "paru -S mkinitcpio-firmware arch-update" >> dm.sh && echo "fi" >> dm.sh && chmod 0775 dm.sh && ./dm.sh && rm dm.sh && rm -R ./paru
- pacman -Rs rust
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement