This commit is contained in:
2024-02-19 13:15:46 +01:00
parent cd71e6d481
commit 0974f50f63
2 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,83 @@
#!/bin/bash
#### Variables
APT_UPDATE="apt -y update"
APT_INST="apt -y install"
APT_PURGE="apt -y purge"
APT_REMOVE="apt -y autoremove"
PKG_KDE_MINIMAL="kde-plasma-desktop plasma-nm"
PKG_KDE_APPS="ark kcalc okular gwenview krita dolphin-plugins kde-spectacle audacious dragonplayer kdenetwork-filesharing samba"
PKG_OFFICE="libreoffice-calc libreoffice-writer libreoffice-draw libreoffice-kf5 aspell-hr hunspell-hr"
PKG_NET="thunderbird net-tools remmina"
PKG_KDE_PURGE="kdeconnect termit zutty"
#### Functions
check_root() {
if [ "$EUID" -ne 0 ]; then
echo "Must be root to run $0"
exit
fi
}
choice() {
echo -ne "[y/n]"
while true
do
read -rN1 input
case $input in
[yY][eE][sS]|[yY])
return 0
break
;;
[nN][oO]|[nN])
return 1
;;
esac
done
}
#### Main
check_root
echo -e "\nUpdate apt"
echo "$APT_UPDATE"
$APT_UPDATE
echo -ne "\nInstall of KDE minimal ($PKG_KDE_MINIMAL)? "
if choice 2>/dev/null; then
echo -ne "\n$APT_INST $PKG_KDE_MINIMAL\n"
$APT_INST $PKG_KDE_MINIMAL
fi
echo -ne "\nYou want remove package from KDE minimal ($PKG_KDE_PURGE)? "
if choice 2>/dev/null; then
echo -ne "\n$APT_PURGE $PKG_KDE_PURGE\n"
$APT_PURGE $PKG_KDE_PURGE
echo "$APT_REMOVE"
$APT_REMOVE
fi
echo -ne "\nYou want to install KDE apps ($PKG_KDE_APPS)? "
if choice 2>/dev/null; then
echo -ne "\n$APT_INST $PKG_KDE_APPS\n"
$APT_INST $PKG_KDE_APPS
fi
echo -ne "\nYou want to install office packages ($PKG_OFFICE)? "
if choice 2>/dev/null; then
echo -ne "\n$APT_INST $PKG_OFFICE\n"
$APT_INST $PKG_OFFICE
fi
echo -ne "\nYou want to install internet programs ($PKG_NET)? "
if choice 2>/dev/null; then
echo -ne "\n$APT_INST $PKG_FIREFOX $PKG_NET\n"
$APT_INST $PKG_FIREFOX $PKG_NET
fi

View File

@@ -0,0 +1,81 @@
#!/bin/bash
#### Variables
APT_UPDATE="apt -y update"
APT_INST="apt -y install"
APT_PURGE="apt -y purge"
APT_REMOVE="apt -y autoremove"
PKG_MATE="mate-desktop-environment mozo caja-open-terminal lightdm"
PKG_INDI="package-update-indicator"
PKG_APPS="audacious vlc synaptic gnome-disk-utility gimp hardinfo"
PKG_OFFICE="libreoffice libreoffice-gtk3 aspell-hr hunspell-hr"
PKG_NET="network-manager-gnome thunderbird net-tools remmina"
#### Functions
check_root() {
if [ "$EUID" -ne 0 ]; then
echo "Must be root to run $0"
exit
fi
}
choice() {
echo -ne "[y/n]"
while true
do
read -rN1 input
case $input in
[yY][eE][sS]|[yY])
return 0
break
;;
[nN][oO]|[nN])
return 1
;;
esac
done
}
#### Main
check_root
echo -e "\nUpdate apt"
echo "$APT_UPDATE"
$APT_UPDATE
echo -ne "\nInstall of MATE minimal ($PKG_MATE)? "
if choice 2>/dev/null; then
echo -ne "\n$APT_INST $PKG_MATE\n"
$APT_INST $PKG_MATE
fi
echo -ne "\nInstall of update indicator ($PKG_INDI)? "
if choice 2>/dev/null; then
echo -ne "\n$APT_INST --no-install-recommends $PKG_INDI\n"
$APT_INST --no-install-recommends $PKG_INDI
fi
echo -ne "\nYou want to install apps ($PKG_APPS)? "
if choice 2>/dev/null; then
echo -ne "\n$APT_INST $PKG_APPS\n"
$APT_INST $PKG_APPS
fi
echo -ne "\nYou want to install office packages ($PKG_OFFICE)? "
if choice 2>/dev/null; then
echo -ne "\n$APT_INST $PKG_OFFICE\n"
$APT_INST $PKG_OFFICE
fi
echo -ne "\nYou want to install internet programs ($PKG_NET)? "
if choice 2>/dev/null; then
echo -ne "\n$APT_INST $PKG_FIREFOX $PKG_NET\n"
$APT_INST $PKG_FIREFOX $PKG_NET
fi
echo -ne "\n\n"