diff --git a/setup-gnome.sh b/gnomesetup.sh similarity index 98% rename from setup-gnome.sh rename to gnomesetup.sh index 3715aec..0af1799 100644 --- a/setup-gnome.sh +++ b/gnomesetup.sh @@ -57,6 +57,7 @@ for PKG in "${PKGS[@]}"; do sudo pacman -S "$PKG" --noconfirm --needed done +sudo systemctl disable sddm.service sudo systemctl enable gdm.service echo diff --git a/install1-ex.sh b/install1-ex.sh index 52cb3e9..cc3b6b1 100644 --- a/install1-ex.sh +++ b/install1-ex.sh @@ -8,7 +8,7 @@ echo "Arch Install Script 1 - Drive Setup" echo "-------------------------------------------------" lsblk -echo "Specify drive name for install(ex. /dev/sda, /dev/nvme0n1). THIS WILL FORMAT & PARTITION THE SPECIFIED DRIVE!" +echo "Specify drive name for install (ex. /dev/sda, /dev/nvme0n1). THIS WILL FORMAT & PARTITION THE SPECIFIED DRIVE!" read -r -p "Enter the disk: " DISK diff --git a/install2-ex.sh b/install2-ex.sh index 423758b..dce7176 100644 --- a/install2-ex.sh +++ b/install2-ex.sh @@ -42,7 +42,11 @@ hwclock --systohc --utc # set hostname - edit archdesk with preferred hostname -echo archdesk > /etc/hostname +echo "Set hostname." + +read -r -p "Enter the hostname: " HOSTNAME + +echo ${HOSTNAME} > /etc/hostname # Enable TRIM @@ -67,8 +71,10 @@ echo "options root=PARTUUID=$(blkid -s PARTUUID -o value ${DISK}3) rw" >> /boot/ # install NetworkManager sudo pacman -S networkmanager --noconfirm --needed +sudo systemctl disable dhcpcd.ervice +sudo systemctl stop dhcpcd.service sudo systemctl enable NetworkManager.service - +sudo systemctl start NetworkManager.service echo "-------------------------------------------------" echo "Arch Linux Installed & Configured. Please [exit] & run [umount -R /mnt] and reboot" diff --git a/install3-ex.sh b/install3-ex.sh new file mode 100644 index 0000000..84b3b80 --- /dev/null +++ b/install3-ex.sh @@ -0,0 +1,34 @@ +install_gnome () { + echo "Setting up GNOME + GDM..." + sh gnomesetup.sh + echo "Gnome installed & GDM enabled on reboot." +} + +install_kde () { + echo "Setting up KDE + SDDM..." + sh kdesetup.sh + echo "KDE installed + SDDM enabled on reboot" +} + +install_software () { + echo "Setting up KDE + SDDM..." + sh software.sh + echo "Software installed." +} + +while true; do + options=("Install GNOME + GDM" "Install KDE + SDDM" "Install Software" "Exit") + + echo "Debian Server Setup: " + select opt in "${options[@]}"; do + case $REPLY in + 1) install_gnome; break ;; + 2) install_kde; break ;; + 3) install_software; break ;; + 4) break 2 ;; + *) echo "Invalid" >&2 + esac + done +done + +echo "Exiting! Please reboot to enter desktop environment." diff --git a/setup-kde.sh b/kdesetup.sh similarity index 98% rename from setup-kde.sh rename to kdesetup.sh index d0c3c94..efd46b9 100644 --- a/setup-kde.sh +++ b/kdesetup.sh @@ -57,6 +57,7 @@ for PKG in "${PKGS[@]}"; do sudo pacman -S "$PKG" --noconfirm --needed done +sudo systemctl disable gdm.service sudo systemctl enable sddm.service echo