diff --git a/pyrenee-conversion-utility.sh b/avalanche-conversion-tool.sh similarity index 76% rename from pyrenee-conversion-utility.sh rename to avalanche-conversion-tool.sh index 663fbff..822db8d 100644 --- a/pyrenee-conversion-utility.sh +++ b/avalanche-conversion-tool.sh @@ -4,44 +4,44 @@ #some constant values used by the dialog screens to make them more legible BACK="--colors --backtitle" -TITLE="\Z7Pyrenee Conversion Utility" +TITLE="\Z7Avalanche Conversion Tool" MSG='--yes-label "OK" --msgbox' SIZE="10 75" SIZE2="20 75" -dialog $BACK "$TITLE" --title "WELCOME!" $MSG "Welcome to the Pyrenee Conversion Utility.\n\nThis utility will make a number of (mostly reversible) changes to your system. It should be run directly after installing Alpine Linux 3.15, which will setup the foundation we build upon." $SIZE +dialog $BACK "$TITLE" --title "WELCOME!" $MSG "Welcome to the Avalanche Conversion Tool.\n\nThis utility will make a number of (mostly reversible) changes to your system. It should be run directly after installing Alpine Linux 3.16, which will setup the foundation we build upon." $SIZE dialog $BACK "$TITLE" --form "Please supply the required information:\n(username can only contain small letters)" $SIZE 3 "Full Name:" 1 0 "" 1 11 60 0 "username :" 2 0 "" 2 11 60 0 2>input && FULLNAME=$(sed -n '1p' input) && USER=$(sed -n '2p' input | sed 's/[A-Z]/\L&/g') && rm -f input #Return status of non-zero indicates cancel if [ "$?" != "0" ] || [ "$USER" = "" ] || [ "$FULLNAME" = "" ] then - dialog $BACK "$TITLE" $MSG "Pyrenee Conversion was canceled at your request or either field was empty.\n\nPlease restart the Pyrenee Conversion Utility." $SIZE && clear + dialog $BACK "$TITLE" $MSG "Avalanche Conversion was canceled at your request or either field was empty.\n\nPlease restart the Avalanche Conversion Tool." $SIZE && clear else dialog $BACK "$TITLE" --insecure --title "Password Provider" --passwordbox "Provide a password for $FULLNAME" $SIZE 2>password && PASSWORD1=$(sed -n '1p' password) && rm -f password #Return status of non-zero indicates cancel if [ "$?" != "0" ] || [ "$PASSWORD1" = "" ] then - dialog $BACK "$TITLE" $MSG "Pyrenee Conversion was canceled at your request or input field was empty.\n\nPlease restart the Pyrenee Conversion Utility." $SIZE && clear + dialog $BACK "$TITLE" $MSG "Avalanche Conversion was canceled at your request or input field was empty.\n\nPlease restart the Avalanche Conversion Tool." $SIZE && clear else dialog $BACK "$TITLE" --insecure --title "Password Provider" --passwordbox "Confirm password for $FULLNAME" $SIZE 2>password && PASSWORD2=$(sed -n '1p' password) && rm -f password #Return status of non-zero indicates cancel if [ "$?" != "0" ] || [ "$PASSWORD2" = "" ] then - dialog $BACK "$TITLE" $MSG "Pyrenee Conversion was canceled at your request or input field was empty.\n\nPlease restart the Pyrenee Conversion Utility." $SIZE && clear + dialog $BACK "$TITLE" $MSG "Avalanche Conversion was canceled at your request or input field was empty.\n\nPlease restart the Avalanche Conversion Tool." $SIZE && clear else if [ "$PASSWORD1" != "$PASSWORD2" ] then - dialog $BACK "$TITLE" $MSG "Pyrenee Conversion was canceled because the provided passwords didn't match.\n\nPlease restart the Pyrenee Conversion Utility." $SIZE && clear + dialog $BACK "$TITLE" $MSG "Avalanche Conversion was canceled because the provided passwords didn't match.\n\nPlease restart the Avalanche Conversion Tool." $SIZE && clear else dialog $BACK "$TITLE" --title "Confirmation" --yes-label "Enter" --no-label "Esc" --yesno "This is the last opportunity to cancel the conversion.\n\nPlease press to start conversion or to cancel." $SIZE #Return status of non-zero indicates cancel if [ "$?" != "0" ] then - dialog $BACK "$TITLE" $MSG "Pyrenee Conversion was canceled at your request." $SIZE && clear + dialog $BACK "$TITLE" $MSG "Avalanche Conversion was canceled at your request." $SIZE && clear else #backup rc.conf & enable rc_parallel cp /etc/rc.conf /etc/rc.conf.bak @@ -65,15 +65,15 @@ dialog $BACK "$TITLE" --insecure --title "Password Provider" --passwordbox "Prov adduser -D -g "$FULLNAME" $USER -s /bin/bash echo -e "$PASSWORD1\n$PASSWORD2" | passwd $USER - apk upgrade | dialog $BACK "\Z7Pyrenee Conversion Utility - Installing upgrades" --progressbox $SIZE2 - setup-xorg-base | dialog $BACK "\Z7Pyrenee Conversion Utility - Installing Xorg Base" --progressbox $SIZE2 - apk add doas htop nano firefox flatpak elogind polkit-elogind pm-utils | dialog $BACK "\Z7Pyrenee Conversion Utility - Installing Base applications" --progressbox $SIZE2 + apk upgrade | dialog $BACK "\Z7Avalanche Conversion Tool - Installing upgrades" --progressbox $SIZE2 + setup-xorg-base | dialog $BACK "\Z7Avalanche Conversion Tool - Installing Xorg Base" --progressbox $SIZE2 + apk add doas htop nano firefox flatpak elogind polkit-elogind pm-utils | dialog $BACK "\Z7Avalanche Conversion Tool - Installing Base applications" --progressbox $SIZE2 # apk add plasma kde-applications-base kde-applications-accessibility | dialog $BACK "$TITLE - Installing KDE Plasma" --progressbox $SIZE2 -# apk add lumina-desktop sddm-breeze breeze-grub breeze-gtk breeze-plymouth breeze-icons qterminal | dialog $BACK "\Z7Pyrenee Conversion Utility - Installing Lumina Desktop" --progressbox $SIZE2 -# apk add lumina-desktop lightdm-gtk-greeter breeze breeze-grub breeze-gtk breeze-plymouth breeze-icons qterminal | dialog $BACK "\Z7Pyrenee Conversion Utility - Installing Lumina Desktop" --progressbox $SIZE2 -# apk add mate-desktop-environment dbus dbus-x11 lxdm adwaita-icon-theme faenza-icon-theme | dialog $BACK "\Z7Pyrenee Conversion Utility - Installing Mate Desktop" --progressbox $SIZE2 +# apk add lumina-desktop sddm-breeze breeze-grub breeze-gtk breeze-plymouth breeze-icons qterminal | dialog $BACK "\Z7Avalanche Conversion Tool - Installing Lumina Desktop" --progressbox $SIZE2 +# apk add lumina-desktop lightdm-gtk-greeter breeze breeze-grub breeze-gtk breeze-plymouth breeze-icons qterminal | dialog $BACK "\Z7Avalanche Conversion Tool - Installing Lumina Desktop" --progressbox $SIZE2 +# apk add mate-desktop-environment dbus dbus-x11 lxdm adwaita-icon-theme faenza-icon-theme | dialog $BACK "\Z7Avalanche Conversion Tool - Installing Mate Desktop" --progressbox $SIZE2 apk add lxqt-desktop sddm-breeze | dialog $BACK "$TITLE - Installing LXQt Desktop" --progressbox $SIZE2 - apk add $(apk search -q ttf- | grep -v '\-doc' | grep -v 'opensans') | dialog $BACK "\Z7Pyrenee Conversion Utility - Installing True Type Fonts" --progressbox $SIZE2 + apk add $(apk search -q ttf- | grep -v '\-doc' | grep -v 'opensans') | dialog $BACK "\Z7Avalanche Conversion Tool - Installing True Type Fonts" --progressbox $SIZE2 #backup original doas.conf and permit group wheel and add some persistence cp /etc/doas.d/doas.conf /etc/doas.d/doas.conf.bak echo -e "permit :wheel\npermit persist :wheel" >> /etc/doas.d/doas.conf @@ -82,9 +82,9 @@ dialog $BACK "$TITLE" --insecure --title "Password Provider" --passwordbox "Prov # apk add xf86-qxl | dialog $BACK "$TITLE - Installing QEMU video drivers" --progressbox $SIZE #backup nanorc & change nanorc settings to be a bit more advanced cp /etc/nanorc /etc/nanorc.bak - wget https://gitlab.com/pyrenee-linux/pyrenee-linux/-/raw/main/nanorc + wget https://gitlab.com/avalanche-linux/avalanche-linux/-/raw/main/nanorc mv nanorc /etc/ - wget https://gitlab.com/pyrenee-linux/pyrenee-linux/-/raw/main/.nanorc + wget https://gitlab.com/avalanche-linux/avalanche-linux/-/raw/main/.nanorc mv .nanorc /root/ #add & enable Internet Wireless Device (iwd)