mirror of
https://github.com/phaleixo/after_install_debian_12.git
synced 2026-03-21 23:38:57 -03:00
renamed: Fonts for design.zip -> src/Fonts for design.zip
renamed: change_firefox_esr_to_firefox.sh -> src/shell_scripts/change_firefox_esr_to_firefox.sh renamed: codecs_and_tweaks_installer.sh -> src/shell_scripts/codecs_and_tweaks_installer.sh renamed: fonts.sh -> src/shell_scripts/fonts.sh renamed: install_apps.sh -> src/shell_scripts/install_apps.sh renamed: install_extensions.sh -> src/shell_scripts/install_extensions.sh renamed: pos_install_complete.sh -> src/shell_scripts/pos_install_complete.sh renamed: radeon_to_amdgpu.sh -> src/shell_scripts/radeon_to_amdgpu.sh renamed: unnecessary_apps_remover.sh -> src/shell_scripts/unnecessary_apps_remover.sh
This commit is contained in:
55
styles/icons/activating_repo_apps.sh
Executable file
55
styles/icons/activating_repo_apps.sh
Executable file
@@ -0,0 +1,55 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
|
||||
# Initial message
|
||||
echo -e "\n ############################################################"
|
||||
echo -e " # Activating the contrib and non-free repository / #"
|
||||
echo -e " # Install flatpak support and flathub repository #"
|
||||
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)
|
||||
|
||||
#Activating the contrib and non-free repository
|
||||
sudo apt-add-repository contrib -y
|
||||
sudo apt-add-repository non-free -y
|
||||
sudo apt update && sudo apt full-upgrade -y
|
||||
|
||||
#Install flatpak support and flathub repository
|
||||
sudo apt install gnome-software-plugin-flatpak -y
|
||||
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
sudo apt remove gnome-software -y
|
||||
echo -e "repository activate"
|
||||
|
||||
Reference in New Issue
Block a user