#!/usr/bin/env bash #------------------------------------------------------------------------- # █████╗ ██╗ ██╗████████╗ ██████╗ █████╗ ██████╗ ██████╗██╗ ██╗ # ██╔══██╗██║ ██║╚══██╔══╝██╔═══██╗██╔══██╗██╔══██╗██╔════╝██║ ██║ # ███████║██║ ██║ ██║ ██║ ██║███████║██████╔╝██║ ███████║ # ██╔══██║██║ ██║ ██║ ██║ ██║██╔══██║██╔══██╗██║ ██╔══██║ # ██║ ██║╚██████╔╝ ██║ ╚██████╔╝██║ ██║██║ ██║╚██████╗██║ ██║ # ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ #------------------------------------------------------------------------- echo -e "\nFINAL SETUP AND CONFIGURATION" # ------------------------------------------------------------------------ echo -e "\nEnabling Login Display Manager" sudo systemctl enable sddm.service echo -e "\nSetup SDDM Theme" sudo cat < /etc/sddm.conf [Theme] Current=Nordic EOF # ------------------------------------------------------------------------ echo -e "\nEnabling the cups service daemon so we can print" systemctl enable cups.service sudo ntpd -qg sudo systemctl enable ntpd.service sudo systemctl disable dhcpcd.service sudo systemctl stop dhcpcd.service sudo systemctl enable NetworkManager.service echo " ############################################################################### # Cleaning ############################################################################### " # Remove no password sudo rights sed -i 's/^%wheel ALL=(ALL) NOPASSWD: ALL/# %wheel ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers # Add sudo rights sed -i 's/^# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers # Replace in the same state cd $pwd echo " ############################################################################### # Done - Please Eject Install Media and Reboot ############################################################################### "