Select testing or stable sources
This commit is contained in:
40
debian.sh
40
debian.sh
@@ -1,17 +1,51 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
./scripts/update
|
# Colors
|
||||||
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bckp
|
RED='\033[0;31m'
|
||||||
sudo cp debian-sources.list /etc/apt/sources.list
|
GREEN='\033[0;32m'
|
||||||
|
YELLOW='\033[0;33m'
|
||||||
|
BLUE='\033[0;34m'
|
||||||
|
PURPLE='\033[0;35m'
|
||||||
|
CYAN='\033[0;36m'
|
||||||
|
NC='\033[0m' # No Color
|
||||||
|
|
||||||
|
trap "echo -e '${RED}install.sh interrupted.${NC}'; exit 1" SIGINT SIGTERM
|
||||||
|
|
||||||
|
PS3="Debian Sources: "
|
||||||
|
options=("Stable" "Testing")
|
||||||
|
|
||||||
|
select opt in "${options[@]}"; do
|
||||||
|
case $REPLY in
|
||||||
|
1)
|
||||||
|
echo -e "${CYAN}Using Stable sources.${NC}"
|
||||||
|
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bckp
|
||||||
|
cp stable-sources.list /etc/apt/sources.list
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
2)
|
||||||
|
echo -e "${CYAN}Using Testing sources.${NC}"
|
||||||
|
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bckp
|
||||||
|
cp testing-sources.list /etc/apt/sources.list
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Invalid option."
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
./scripts/update
|
./scripts/update
|
||||||
|
|
||||||
|
echo -e "${YELLOW}Installing GNOME...${NC}"
|
||||||
sudo apt install gnome-core flatpak gnome-software-plugin-flatpak epiphany-browser
|
sudo apt install gnome-core flatpak gnome-software-plugin-flatpak epiphany-browser
|
||||||
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||||
|
|
||||||
# Enable Network Manager
|
# Enable Network Manager
|
||||||
|
echo -e "${YELLOW}Enabling Network Manager...${NC}"
|
||||||
sudo mv /etc/network/interfaces /etc/network/interfaces.bckp
|
sudo mv /etc/network/interfaces /etc/network/interfaces.bckp
|
||||||
sudo systemctl restart networking
|
sudo systemctl restart networking
|
||||||
sudo service NetworkManager restart
|
sudo service NetworkManager restart
|
||||||
|
|
||||||
# Remove Firefox (Epiphany installed instead)
|
# Remove Firefox (Epiphany installed instead)
|
||||||
|
echo -e "${YELLOW}Removing Firefox...${NC}"
|
||||||
sudo apt purge firefox-esr
|
sudo apt purge firefox-esr
|
||||||
|
|||||||
9
stable-sources.list
Normal file
9
stable-sources.list
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
deb https://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
|
||||||
|
deb-src https://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
|
||||||
|
|
||||||
|
deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
|
||||||
|
deb-src https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
|
||||||
|
|
||||||
|
deb https://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
|
||||||
|
deb-src https://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
|
||||||
|
|
||||||
Reference in New Issue
Block a user