mirror of
https://github.com/phaleixo/after_install_debian_12.git
synced 2025-12-05 21:49:44 -03:00
new file: README.md new file: activating_repo_apps.sh new file: change_firefox_esr_to_firefox.sh new file: codecs_and_tweaks_installer.sh new file: fonts.sh new file: install_apps.sh new file: pos_install_complete.sh new file: radeon_to_amdgpu.sh new file: unnecessary_apps_remover.sh
74 lines
1.7 KiB
Bash
Executable File
74 lines
1.7 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Initial message
|
|
echo -e "\n ############################################################"
|
|
echo -e " # Unnecessary Apps Remover. #"
|
|
echo -e " ############################################################ \n"
|
|
echo "For more information, visit the project link:"
|
|
echo "https://github.com/phaleixo/after_install_debian_12"
|
|
|
|
# Confirm script execution
|
|
read -p "Do you want to proceed? (y/n): " response
|
|
[[ "$response" != "y" ]] && inform "Operation canceled by the user." && exit 0
|
|
|
|
### check if the distribution is compatible
|
|
if [[ $(lsb_release -cs) = "bookworm" ]]
|
|
then
|
|
echo ""
|
|
echo ""
|
|
echo -e "\e[32;1mDebian 12 Distribution.\e[m"
|
|
echo "Continuing with the script..."
|
|
echo ""
|
|
else
|
|
echo -e "\e[31;1mDistribution not approved for use with this script.\e[m"
|
|
exit 1
|
|
fi
|
|
|
|
### check if there is an internet connection.
|
|
if ping -q -c 3 -W 1 1.1.1.1 >/dev/null;
|
|
then
|
|
echo ""
|
|
echo ""
|
|
echo -e "\e[32;1mInternet connection OK.\e[m"
|
|
echo "Continuing with the script..."
|
|
echo ""
|
|
else
|
|
echo -e "\e[31;1mYou are not connected to the internet. Check your network or Wi-Fi connection before proceeding.\e[m"
|
|
exit 1
|
|
fi
|
|
|
|
# Check for sudo privileges
|
|
sudo -v || (inform "sudo may not be installed or the user may not have sudo permissions." && exit 1)
|
|
|
|
apps_remove=(
|
|
fcitx*
|
|
mozc*
|
|
xiterm+thai*
|
|
mlterm*
|
|
xterm*
|
|
hdate*
|
|
kasumi*
|
|
gnome-games*
|
|
im*
|
|
goldendict*
|
|
hdate*
|
|
uim*
|
|
thunderbird*
|
|
gnome-music
|
|
gnome-software
|
|
|
|
)
|
|
|
|
### uninstall and clean
|
|
for app_name_remove in "${apps_remove[@]}"; do
|
|
sudo apt remove --purge "$app_name_remove" -y
|
|
done
|
|
|
|
sudo apt autoremove && sudo apt autoclean
|
|
|
|
echo -e "removed unnecessary apps"
|
|
|
|
exit 0
|
|
|
|
|