mirror of
https://github.com/phaleixo/after_install_debian_12.git
synced 2025-12-06 05:49:45 -03:00
Compare commits
10 Commits
8161f04351
...
8c47c098f7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c47c098f7 | ||
|
|
25e13cf38a | ||
|
|
721913c3be | ||
|
|
a8e265f97f | ||
|
|
1447b54c85 | ||
|
|
5f257f1bf6 | ||
|
|
48c377aaa7 | ||
|
|
9e7a080628 | ||
|
|
251e01a1cf | ||
|
|
dfd9f9449d |
13
index.html
13
index.html
@ -4,7 +4,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Pós-Instalação do Debian 12</title>
|
<title>Pós-Instalação do Debian Stable</title>
|
||||||
<script src="https://cdn.tailwindcss.com"></script>
|
<script src="https://cdn.tailwindcss.com"></script>
|
||||||
<script src="./tailwind.config.js"></script>
|
<script src="./tailwind.config.js"></script>
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
||||||
@ -18,7 +18,7 @@
|
|||||||
<div class="flex flex-col md:flex-row justify-between items-center">
|
<div class="flex flex-col md:flex-row justify-between items-center">
|
||||||
<div class="flex items-center mb-4 md:mb-0">
|
<div class="flex items-center mb-4 md:mb-0">
|
||||||
<img src="styles/icons/debian-brands-solid.svg" alt="Ícone Debian" class="h-8 w-8 mr-3 invert">
|
<img src="styles/icons/debian-brands-solid.svg" alt="Ícone Debian" class="h-8 w-8 mr-3 invert">
|
||||||
<h1 class="text-2xl md:text-3xl font-bold " data-i18n="title">Pós-Instalação do Debian 12</h1>
|
<h1 class="text-2xl md:text-3xl font-bold " data-i18n="title">Pós-Instalação do Debian Stable</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center space-x-4">
|
<div class="flex items-center space-x-4">
|
||||||
<a href="https://github.com/phaleixo/after_install_debian_12" target="_blank"
|
<a href="https://github.com/phaleixo/after_install_debian_12" target="_blank"
|
||||||
@ -86,6 +86,15 @@
|
|||||||
<h2 class="text-2xl font-bold text-debian mb-4" data-i18n="about.title">
|
<h2 class="text-2xl font-bold text-debian mb-4" data-i18n="about.title">
|
||||||
</h2>
|
</h2>
|
||||||
<p class="text-gray-700 mb-4" data-i18n="about.description"></p>
|
<p class="text-gray-700 mb-4" data-i18n="about.description"></p>
|
||||||
|
<button onclick="copyToClipboard('complete')"
|
||||||
|
class="bg-gray-200 text-gray-800 px-4 py-2 rounded mr-2 hover:bg-gray-300 transition mb-4">
|
||||||
|
<i class="fas fa-copy mr-2"></i> <span data-i18n="scripts.copy"></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div class="bg-gray-800 text-gray-100 p-4 rounded-lg overflow-x-auto">
|
||||||
|
<pre id="complete"
|
||||||
|
class="text-sm"><code>sudo apt install curl</code></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -10,9 +10,9 @@ const translations = {
|
|||||||
"more.description": "O Debian 12 Bookworm é a versão estável mais recente do sistema operacional Linux Debian, lançado em junho de 2023. É conhecido por sua estabilidade, amplo suporte a ambientes de desktop e uma vasta coleção de mais de 64 mil pacotes de software.",
|
"more.description": "O Debian 12 Bookworm é a versão estável mais recente do sistema operacional Linux Debian, lançado em junho de 2023. É conhecido por sua estabilidade, amplo suporte a ambientes de desktop e uma vasta coleção de mais de 64 mil pacotes de software.",
|
||||||
"more.button": "Mais informações",
|
"more.button": "Mais informações",
|
||||||
"about.title": "Porque usar os Scripts:",
|
"about.title": "Porque usar os Scripts:",
|
||||||
"about.description": "Apesar do Debian ser muito confiável, pode ser trabalhoso deixá-lo pronto para uso pessoal ou para trabalho.Estes scripts ajudam a tornar a pós-instalação com GNOME e Xfce mais simples .Tudo será feito utilizando o terminal, é só copiar e colar no terminal.",
|
"about.description": "Apesar do Debian ser muito confiável, pode ser trabalhoso deixá-lo pronto para uso pessoal ou para trabalho.Estes scripts ajudam a tornar a pós-instalação com GNOME e XFCE mais simples .Tudo será feito utilizando o terminal, é só copiar e colar no terminal. É necessário ter o curl instalado, caso não tenha:",
|
||||||
"scripts.title": "Scripts de Pós-Instalação",
|
"scripts.title": "Scripts de Pós-Instalação",
|
||||||
"scripts.complete.title": "Pós-instalação base para GNOME e Xfce (recomendado)",
|
"scripts.complete.title": "Pós-instalação base para GNOME e XFCE (recomendado)",
|
||||||
"scripts.one":"Instalar Scripts individualmente",
|
"scripts.one":"Instalar Scripts individualmente",
|
||||||
"scripts.complete.description": "Ativa os repositórios contrib e non-free,instala suporte ao Flatpak com o repositório Flathub, altera o Firefox ESR para a versão de lançamento atual, instala codecs multimídia, firmware, fontes e utilitários úteis e remove aplicativos pré-instalados desnecessários para limpar seu sistema.",
|
"scripts.complete.description": "Ativa os repositórios contrib e non-free,instala suporte ao Flatpak com o repositório Flathub, altera o Firefox ESR para a versão de lançamento atual, instala codecs multimídia, firmware, fontes e utilitários úteis e remove aplicativos pré-instalados desnecessários para limpar seu sistema.",
|
||||||
"scripts.repos.title": "Ativar Repositórios",
|
"scripts.repos.title": "Ativar Repositórios",
|
||||||
@ -40,7 +40,7 @@ const translations = {
|
|||||||
"features.packages.title": "Pacotes Essenciais",
|
"features.packages.title": "Pacotes Essenciais",
|
||||||
"features.packages.description": "Codecs, firmware, fontes e utilitários para tornar seu sistema totalmente funcional.",
|
"features.packages.description": "Codecs, firmware, fontes e utilitários para tornar seu sistema totalmente funcional.",
|
||||||
"features.customization.title": "Personalização",
|
"features.customization.title": "Personalização",
|
||||||
"features.customization.description": "Extensões e ajustes para melhorar sua experiência com o desktop GNOME ou Xfce.",
|
"features.customization.description": "Extensões e ajustes para melhorar sua experiência com o desktop GNOME ou XFCE.",
|
||||||
"features.performance.title": "Desempenho",
|
"features.performance.title": "Desempenho",
|
||||||
"features.performance.description": "Otimizações de drivers e remoção de bloat para um sistema mais rápido.",
|
"features.performance.description": "Otimizações de drivers e remoção de bloat para um sistema mais rápido.",
|
||||||
"footer.text": "Scripts de Pós-Instalação do Debian 12",
|
"footer.text": "Scripts de Pós-Instalação do Debian 12",
|
||||||
@ -58,10 +58,10 @@ const translations = {
|
|||||||
"more.description": "Debian 12 Bookworm es la versión estable más reciente del sistema operativo Linux Debian, lanzado en junio de 2023. Se destaca por su estabilidad, amplio soporte para entornos de escritorio y una vasta colección de más de 64 mil paquetes de software.",
|
"more.description": "Debian 12 Bookworm es la versión estable más reciente del sistema operativo Linux Debian, lanzado en junio de 2023. Se destaca por su estabilidad, amplio soporte para entornos de escritorio y una vasta colección de más de 64 mil paquetes de software.",
|
||||||
"more.button": "Más información",
|
"more.button": "Más información",
|
||||||
"about.title": "Por qué usar los Scripts:",
|
"about.title": "Por qué usar los Scripts:",
|
||||||
"about.description": "Aunque Debian es muy fiable, puede ser laborioso dejarlo listo para uso personal o para el trabajo. Estos scripts ayudan a simplificar la post-instalación más sencilla con GNOME y Xfce. Todo se hará usando la terminal; solo tienes que copiar y pegar en la terminal.",
|
"about.description": "Aunque Debian es muy fiable, puede ser laborioso dejarlo listo para uso personal o para el trabajo. Estos scripts ayudan a simplificar la post-instalación más sencilla con GNOME y XFCE. Todo se hará usando la terminal; solo tienes que copiar y pegar en la terminal.Es necesario tener curl instalado; en caso de no tenerlo:",
|
||||||
"scripts.title": "Scripts de Post-Instalación",
|
"scripts.title": "Scripts de Post-Instalación",
|
||||||
"scripts.one":"Instalar Scripts individualmente",
|
"scripts.one":"Instalar Scripts individualmente",
|
||||||
"scripts.complete.title": "Post-instalación base para GNOME y Xfce (recomendado)",
|
"scripts.complete.title": "Post-instalación base para GNOME y XFCE (recomendado)",
|
||||||
"scripts.complete.description": "Activa los repositorios contrib y non-free, instala soporte para Flatpak con el repositorio Flathub, cambia Firefox ESR por la versión de lanzamiento actual, instala códecs multimedia, firmware, fuentes y utilidades útiles, y elimina aplicaciones preinstaladas innecesarias para limpiar tu sistema.",
|
"scripts.complete.description": "Activa los repositorios contrib y non-free, instala soporte para Flatpak con el repositorio Flathub, cambia Firefox ESR por la versión de lanzamiento actual, instala códecs multimedia, firmware, fuentes y utilidades útiles, y elimina aplicaciones preinstaladas innecesarias para limpiar tu sistema.",
|
||||||
"scripts.repos.title": "Activar Repositorios",
|
"scripts.repos.title": "Activar Repositorios",
|
||||||
"scripts.repos.description": "Activa los repositorios contrib y non-free e instala soporte para Flatpak con el repositorio Flathub.",
|
"scripts.repos.description": "Activa los repositorios contrib y non-free e instala soporte para Flatpak con el repositorio Flathub.",
|
||||||
@ -88,7 +88,7 @@ const translations = {
|
|||||||
"features.packages.title": "Paquetes Esenciales",
|
"features.packages.title": "Paquetes Esenciales",
|
||||||
"features.packages.description": "Códecs, firmware, fuentes y utilidades para hacer tu sistema completamente funcional.",
|
"features.packages.description": "Códecs, firmware, fuentes y utilidades para hacer tu sistema completamente funcional.",
|
||||||
"features.customization.title": "Personalización",
|
"features.customization.title": "Personalización",
|
||||||
"features.customization.description": "Extensiones y ajustes para mejorar tu experiencia con el escritorio GNOME y Xfce.",
|
"features.customization.description": "Extensiones y ajustes para mejorar tu experiencia con el escritorio GNOME y XFCE.",
|
||||||
"features.performance.title": "Rendimiento",
|
"features.performance.title": "Rendimiento",
|
||||||
"features.performance.description": "Optimizaciones de controladores y eliminación de bloat para un sistema más rápido.",
|
"features.performance.description": "Optimizaciones de controladores y eliminación de bloat para un sistema más rápido.",
|
||||||
"footer.text": "Scripts de Post-Instalación para Debian 12",
|
"footer.text": "Scripts de Post-Instalación para Debian 12",
|
||||||
@ -106,10 +106,10 @@ const translations = {
|
|||||||
"more.description": "The Debian 12 Bookworm is the latest stable version of the Debian Linux operating system, released in June 2023. It's known for its stability, broad support for desktop environments, and a vast collection of over 64,000 software packages.",
|
"more.description": "The Debian 12 Bookworm is the latest stable version of the Debian Linux operating system, released in June 2023. It's known for its stability, broad support for desktop environments, and a vast collection of over 64,000 software packages.",
|
||||||
"more.button": "More information",
|
"more.button": "More information",
|
||||||
"about.title": "Why to Use the Scripts:",
|
"about.title": "Why to Use the Scripts:",
|
||||||
"about.description": "Despite Debian being very reliable, getting it ready for personal or work use can be cumbersome. These scripts help make simpler post-Installation with GNOME and Xfce. Everything will be done using the terminal; just copy and paste into the terminal.",
|
"about.description": "Despite Debian being very reliable, getting it ready for personal or work use can be cumbersome. These scripts help make simpler post-Installation with GNOME and XFCE. Everything will be done using the terminal; just copy and paste into the terminal.It is necessary to have curl installed; if you don't have it:",
|
||||||
"scripts.title": "Post-Installation Scripts",
|
"scripts.title": "Post-Installation Scripts",
|
||||||
"scripts.one":"Install Scripts Individually",
|
"scripts.one":"Install Scripts Individually",
|
||||||
"scripts.complete.title": "Base Post-Installation for GNOME and Xfce (recommended)",
|
"scripts.complete.title": "Base Post-Installation for GNOME and XFCE (recommended)",
|
||||||
"scripts.complete.description": "Activates the contrib and non-free repositories, installs Flatpak support with the Flathub repository, switches Firefox ESR to the current release version, installs multimedia codecs, firmware, fonts, and useful utilities, and removes unnecessary pre-installed applications to clean up your system.",
|
"scripts.complete.description": "Activates the contrib and non-free repositories, installs Flatpak support with the Flathub repository, switches Firefox ESR to the current release version, installs multimedia codecs, firmware, fonts, and useful utilities, and removes unnecessary pre-installed applications to clean up your system.",
|
||||||
"scripts.repos.title": "Activate Repositories",
|
"scripts.repos.title": "Activate Repositories",
|
||||||
"scripts.repos.description": "Activate contrib and non-free repositories and install Flatpak support with Flathub.",
|
"scripts.repos.description": "Activate contrib and non-free repositories and install Flatpak support with Flathub.",
|
||||||
@ -136,7 +136,7 @@ const translations = {
|
|||||||
"features.packages.title": "Essential Packages",
|
"features.packages.title": "Essential Packages",
|
||||||
"features.packages.description": "Codecs, firmware, fonts, and utilities to make your system fully functional.",
|
"features.packages.description": "Codecs, firmware, fonts, and utilities to make your system fully functional.",
|
||||||
"features.customization.title": "Customization",
|
"features.customization.title": "Customization",
|
||||||
"features.customization.description": "Extensions and tweaks to enhance your GNOME or Xfce desktop experience.",
|
"features.customization.description": "Extensions and tweaks to enhance your GNOME or XFCE desktop experience.",
|
||||||
"features.performance.title": "Performance",
|
"features.performance.title": "Performance",
|
||||||
"features.performance.description": "Driver optimizations and bloat removal for a faster system.",
|
"features.performance.description": "Driver optimizations and bloat removal for a faster system.",
|
||||||
"footer.text": "Debian 12 Post-Installation Scripts",
|
"footer.text": "Debian 12 Post-Installation Scripts",
|
||||||
|
|||||||
@ -9,83 +9,96 @@ echo "https://github.com/phaleixo/after_install_debian_12"
|
|||||||
|
|
||||||
### Confirm script execution
|
### Confirm script execution
|
||||||
read -p "Do you want to proceed? (y/n): " response
|
read -p "Do you want to proceed? (y/n): " response
|
||||||
[[ "$response" != "y" ]] && inform "Operation canceled by the user." && exit 0
|
[[ "$response" != "y" ]] && echo "Operation canceled by the user." && exit 0
|
||||||
|
|
||||||
### check if the distribution is compatible
|
### Check if the distribution is Debian 12 (Bookworm)
|
||||||
if [[ $(lsb_release -cs) = "bookworm" ]]
|
if [[ $(lsb_release -is) != "Debian" ]] || [[ $(lsb_release -cs) != "bookworm" ]]; then
|
||||||
then
|
echo -e "\e[31;1mThis script is designed for Debian 12 (Bookworm) only.\e[m"
|
||||||
echo ""
|
|
||||||
echo -e "\e[32;1mDebian 12 Distribution.\e[m"
|
|
||||||
echo ""
|
|
||||||
echo "Continuing with the script..."
|
|
||||||
echo ""
|
|
||||||
else
|
|
||||||
echo -e "\e[31;1mDistribution not approved for use with this script.\e[m"
|
|
||||||
exit 1
|
exit 1
|
||||||
|
else
|
||||||
|
echo ""
|
||||||
|
echo -e "\e[32;1mDebian 12 (Bookworm) detected.\e[m"
|
||||||
|
echo ""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### check if there is an internet connection.
|
### Check internet connection
|
||||||
if ping -q -c 3 -W 1 1.1.1.1 >/dev/null;
|
if ! ping -q -c 3 -W 1 1.1.1.1 >/dev/null; then
|
||||||
then
|
echo -e "\e[31;1mNo internet connection. Please check your network.\e[m"
|
||||||
echo ""
|
exit 1
|
||||||
|
else
|
||||||
echo -e "\e[32;1mInternet connection OK.\e[m"
|
echo -e "\e[32;1mInternet connection OK.\e[m"
|
||||||
echo ""
|
fi
|
||||||
echo "Continuing with the script..."
|
|
||||||
echo ""
|
clear
|
||||||
|
|
||||||
|
### Install required packages if missing
|
||||||
|
if ! command -v wget &> /dev/null; then
|
||||||
|
echo "Installing wget..."
|
||||||
|
sudo apt update && sudo apt install -y wget
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! command -v unzip &> /dev/null; then
|
||||||
|
echo "Installing unzip..."
|
||||||
|
sudo apt update && sudo apt install -y unzip
|
||||||
|
fi
|
||||||
|
|
||||||
|
### Download wallpapers
|
||||||
|
echo "Downloading wallpapers..."
|
||||||
|
wget -O my_wallpapers.xml "https://github.com/phaleixo/after_install_debian_12/raw/main/src/my_wallpapers.xml"
|
||||||
|
wget -O wallpapers.zip "https://github.com/phaleixo/after_install_debian_12/raw/main/src/wallpapers.zip"
|
||||||
|
|
||||||
|
if [[ $? -ne 0 ]]; then
|
||||||
|
echo -e "\e[31;1mFailed to download wallpapers.\e[m"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
### Extract wallpapers
|
||||||
|
echo "Extracting wallpapers..."
|
||||||
|
unzip -q wallpapers.zip -d ~/
|
||||||
|
|
||||||
|
### Detect desktop environment
|
||||||
|
DE=""
|
||||||
|
if [[ $XDG_CURRENT_DESKTOP == *"GNOME"* ]]; then
|
||||||
|
DE="gnome"
|
||||||
|
elif [[ $XDG_CURRENT_DESKTOP == *"XFCE"* ]]; then
|
||||||
|
DE="xfce"
|
||||||
else
|
else
|
||||||
echo -e "\e[31;1mYou are not connected to the internet. Check your network or Wi-Fi connection before proceeding.\e[m"
|
# Fallback detection for Debian
|
||||||
exit 1
|
if pgrep -x "gnome-session" > /dev/null; then
|
||||||
|
DE="gnome"
|
||||||
|
elif pgrep -x "xfce4-session" > /dev/null; then
|
||||||
|
DE="xfce"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
clear
|
### Install wallpapers according to DE
|
||||||
|
case $DE in
|
||||||
|
"gnome")
|
||||||
|
echo "Installing for GNOME..."
|
||||||
|
sudo mv ~/wallpapers /usr/share/backgrounds/
|
||||||
|
sudo mv my_wallpapers.xml /usr/share/gnome-background-properties/
|
||||||
|
|
||||||
|
# Set wallpaper
|
||||||
|
gsettings set org.gnome.desktop.background picture-uri 'file:///usr/share/backgrounds/wallpapers/21.jpg'
|
||||||
|
gsettings set org.gnome.desktop.background picture-uri-dark 'file:///usr/share/backgrounds/wallpapers/21.jpg'
|
||||||
|
;;
|
||||||
|
"xfce")
|
||||||
|
echo "Installing for XFCE..."
|
||||||
|
sudo mv ~/wallpapers /usr/share/xfce4/backdrops/
|
||||||
|
|
||||||
wget --version > /dev/null
|
# Set wallpaper for all monitors
|
||||||
|
for monitor in $(xfconf-query -c xfce4-desktop -l | grep last-image); do
|
||||||
|
xfconf-query -c xfce4-desktop -p $monitor -s /usr/share/xfce4/backdrops/wallpapers/21.jpg
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Unknown desktop environment. Installing to common location..."
|
||||||
|
sudo mv ~/wallpapers /usr/share/backgrounds/
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
if [[ $? -ne 0 ]]; then
|
### Clean up
|
||||||
echo "wget not available , installing"
|
rm -f wallpapers.zip
|
||||||
sudo apt update && sudo apt install wget -y
|
|
||||||
fi
|
|
||||||
|
|
||||||
unzip >> /dev/null
|
|
||||||
|
|
||||||
if [[ $? -ne 0 ]]; then
|
|
||||||
echo "unzip not available , installing"
|
|
||||||
sudo apt update && sudo apt install unzip -y
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
wget -O my_wallpapers.xml "https://github.com/phaleixo/after_install_debian_12/blob/main/src/my_wallpapers.xml"
|
|
||||||
|
|
||||||
wget -O wallpapers.zip "https://github.com/phaleixo/after_install_debian_12/blob/main/src/wallpapers.zip"
|
|
||||||
|
|
||||||
|
|
||||||
if [[ $? -ne 0 ]]; then
|
|
||||||
echo "Downloading failed , exiting"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
unzip wallpapers.zip -d ~/
|
|
||||||
sudo mv wallpapers /usr/share/backgrounds/
|
|
||||||
sudo mv my_wallpapers.xml /usr/share/gnome-background-properties/
|
|
||||||
|
|
||||||
|
|
||||||
clear
|
|
||||||
|
|
||||||
echo "Done"
|
|
||||||
sleep 2
|
|
||||||
clear
|
|
||||||
echo "Set Wallpaper "
|
|
||||||
|
|
||||||
gsettings set org.gnome.desktop.background picture-uri-dark 'file:///usr/share/backgrounds/wallpapers/21.jpg'
|
|
||||||
|
|
||||||
gsettings set org.gnome.desktop.background picture-uri 'file:///usr/share/backgrounds/wallpapers/21.jpg'
|
|
||||||
|
|
||||||
clear
|
|
||||||
|
|
||||||
rm -rf wallpapers.zip
|
|
||||||
|
|
||||||
|
|
||||||
echo -e "Wallpapers installed"
|
|
||||||
|
|
||||||
|
echo -e "\e[32;1mWallpapers installed successfully!\e[m"
|
||||||
exit 0
|
exit 0
|
||||||
Loading…
x
Reference in New Issue
Block a user