Compare commits
4 Commits
2854c5010c
...
8c3ff56a33
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c3ff56a33 | ||
|
|
7b97d30104 | ||
|
|
5cac28d78c | ||
|
|
46ffda41b2 |
20
index.html
@ -132,7 +132,7 @@
|
||||
|
||||
<div class="bg-gray-800 text-gray-100 p-4 rounded-lg overflow-x-auto">
|
||||
<pre id="complete"
|
||||
class="text-sm"><code>curl -o pos_install_complete.sh https://raw.githubusercontent.com/phaleixo/after_install_debian_12/main/pos_install_complete.sh && chmod +x pos_install_complete.sh && ./pos_install_complete.sh && rm pos_install_complete.sh</code></pre>
|
||||
class="text-sm"><code>curl -o pos_install_complete.sh https://raw.githubusercontent.com/phaleixo/after_install_debian_12/main/src/shell_scripts/pos_install_complete.sh && chmod +x pos_install_complete.sh && ./pos_install_complete.sh && rm pos_install_complete.sh</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -149,7 +149,7 @@
|
||||
</div>
|
||||
<div class="bg-gray-800 text-gray-100 p-4 m-4 rounded-lg overflow-x-auto">
|
||||
<pre id="repos"
|
||||
class="text-sm"><code>curl -o activating_repo_apps.sh https://raw.githubusercontent.com/phaleixo/after_install_debian_12/main/activating_repo_apps.sh && chmod +x activating_repo_apps.sh && ./activating_repo_apps.sh && rm activating_repo_apps.sh</code></pre>
|
||||
class="text-sm"><code>curl -o activating_repo_apps.sh https://raw.githubusercontent.com/phaleixo/after_install_debian_12/main/src/shell_scripts/activating_repo_apps.sh && chmod +x activating_repo_apps.sh && ./activating_repo_apps.sh && rm activating_repo_apps.sh</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bg-white rounded-xl shadow-md overflow-hidden">
|
||||
@ -163,7 +163,7 @@
|
||||
</div>
|
||||
<div class="bg-gray-800 text-gray-100 p-4 m-4 rounded-lg overflow-x-auto">
|
||||
<pre id="firefox"
|
||||
class="text-sm"><code>curl -o change_firefox_esr_to_firefox.sh https://raw.githubusercontent.com/phaleixo/after_install_debian_12/main/change_firefox_esr_to_firefox.sh && chmod +x change_firefox_esr_to_firefox.sh && ./change_firefox_esr_to_firefox.sh && rm change_firefox_esr_to_firefox.sh</code></pre>
|
||||
class="text-sm"><code>curl -o change_firefox_esr_to_firefox.sh https://raw.githubusercontent.com/phaleixo/after_install_debian_12/main/src/shell_scripts/change_firefox_esr_to_firefox.sh && chmod +x change_firefox_esr_to_firefox.sh && ./change_firefox_esr_to_firefox.sh && rm change_firefox_esr_to_firefox.sh</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bg-white rounded-xl shadow-md overflow-hidden">
|
||||
@ -177,7 +177,7 @@
|
||||
</div>
|
||||
<div class="bg-gray-800 text-gray-100 p-4 m-4 rounded-lg overflow-x-auto">
|
||||
<pre id="codecs"
|
||||
class="text-sm"><code>curl -o codecs_and_tweaks_installer.sh https://raw.githubusercontent.com/phaleixo/after_install_debian_12/main/codecs_and_tweaks_installer.sh && chmod +x codecs_and_tweaks_installer.sh && ./codecs_and_tweaks_installer.sh && rm codecs_and_tweaks_installer.sh</code></pre>
|
||||
class="text-sm"><code>curl -o codecs_and_tweaks_installer.sh https://raw.githubusercontent.com/phaleixo/after_install_debian_12/main/src/shell_scripts/codecs_and_tweaks_installer.sh && chmod +x codecs_and_tweaks_installer.sh && ./codecs_and_tweaks_installer.sh && rm codecs_and_tweaks_installer.sh</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -192,7 +192,7 @@
|
||||
</div>
|
||||
<div class="bg-gray-800 text-gray-100 p-4 m-4 rounded-lg overflow-x-auto">
|
||||
<pre id="remove"
|
||||
class="text-sm"><code>curl -o unnecessary_apps_remover.sh https://raw.githubusercontent.com/phaleixo/after_install_debian_12/main/unnecessary_apps_remover.sh && chmod +x unnecessary_apps_remover.sh && ./unnecessary_apps_remover.sh && rm unnecessary_apps_remover.sh</code></pre>
|
||||
class="text-sm"><code>curl -o unnecessary_apps_remover.sh https://raw.githubusercontent.com/phaleixo/after_install_debian_12/main/src/shell_scripts/unnecessary_apps_remover.sh && chmod +x unnecessary_apps_remover.sh && ./unnecessary_apps_remover.sh && rm unnecessary_apps_remover.sh</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -210,7 +210,7 @@
|
||||
</div>
|
||||
<div class="bg-gray-800 text-gray-100 p-4 m-4 rounded-lg overflow-x-auto">
|
||||
<pre id="fonts"
|
||||
class="text-sm"><code>curl -o fonts.sh https://raw.githubusercontent.com/phaleixo/after_install_debian_12/main/fonts.sh && chmod +x fonts.sh && ./fonts.sh && rm fonts.sh</code></pre>
|
||||
class="text-sm"><code>curl -o fonts.sh https://raw.githubusercontent.com/phaleixo/after_install_debian_12/main/src/shell_scripts/fonts.sh && chmod +x fonts.sh && ./fonts.sh && rm fonts.sh</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bg-white rounded-xl shadow-md overflow-hidden">
|
||||
@ -224,7 +224,7 @@
|
||||
</div>
|
||||
<div class="bg-gray-800 text-gray-100 p-4 m-4 rounded-lg overflow-x-auto">
|
||||
<pre id="wallpapers"
|
||||
class="text-sm"><code>curl -o wallpapers.sh https://raw.githubusercontent.com/phaleixo/after_install_debian_12/main/wallpapers.sh && chmod +x wallpapers.sh && ./wallpapers.sh && rm wallpapers.sh</code></pre>
|
||||
class="text-sm"><code>curl -o wallpapers.sh https://raw.githubusercontent.com/phaleixo/after_install_debian_12/main/src/shell_scripts/wallpapers.sh && chmod +x wallpapers.sh && ./wallpapers.sh && rm wallpapers.sh</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bg-white rounded-xl shadow-md overflow-hidden">
|
||||
@ -238,7 +238,7 @@
|
||||
</div>
|
||||
<div class="bg-gray-800 text-gray-100 p-4 m-4 rounded-lg overflow-x-auto">
|
||||
<pre id="extensions"
|
||||
class="text-sm"><code>curl -o install_extensions.sh https://raw.githubusercontent.com/phaleixo/after_install_debian_12/main/install_extensions.sh && chmod +x install_extensions.sh && ./install_extensions.sh && rm install_extensions.sh</code></pre>
|
||||
class="text-sm"><code>curl -o install_extensions.sh https://raw.githubusercontent.com/phaleixo/after_install_debian_12/main/src/shell_scripts/install_extensions.sh && chmod +x install_extensions.sh && ./install_extensions.sh && rm install_extensions.sh</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -256,7 +256,7 @@
|
||||
</div>
|
||||
<div class="bg-gray-800 text-gray-100 p-4 m-4 rounded-lg overflow-x-auto">
|
||||
<pre id="apps"
|
||||
class="text-sm"><code>curl -o install_apps.sh https://raw.githubusercontent.com/phaleixo/after_install_debian_12/main/install_apps.sh && chmod +x install_apps.sh && ./install_apps.sh && rm install_apps.sh</code></pre>
|
||||
class="text-sm"><code>curl -o install_apps.sh https://raw.githubusercontent.com/phaleixo/after_install_debian_12/main/src/shell_scripts/install_apps.sh && chmod +x install_apps.sh && ./install_apps.sh && rm install_apps.sh</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bg-white rounded-xl shadow-md overflow-hidden">
|
||||
@ -270,7 +270,7 @@
|
||||
</div>
|
||||
<div class="bg-gray-800 text-gray-100 p-4 m-4 rounded-lg overflow-x-auto">
|
||||
<pre id="radeon"
|
||||
class="text-sm"><code>curl -o radeon_to_amdgpu.sh https://raw.githubusercontent.com/phaleixo/after_install_debian_12/main/radeon_to_amdgpu.sh && chmod +x radeon_to_amdgpu.sh && ./radeon_to_amdgpu.sh && rm radeon_to_amdgpu.sh</code></pre>
|
||||
class="text-sm"><code>curl -o radeon_to_amdgpu.sh https://raw.githubusercontent.com/phaleixo/after_install_debian_12/main/src/shell_scripts/radeon_to_amdgpu.sh && chmod +x radeon_to_amdgpu.sh && ./radeon_to_amdgpu.sh && rm radeon_to_amdgpu.sh</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -1,66 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
### Initial message
|
||||
echo -e "\n ############################################################"
|
||||
echo -e " # Install and configure Fonts #"
|
||||
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 -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
|
||||
fi
|
||||
|
||||
### check if there is an internet connection.
|
||||
if ping -q -c 3 -W 1 1.1.1.1 >/dev/null;
|
||||
then
|
||||
echo ""
|
||||
echo -e "\e[32;1mInternet connection OK.\e[m"
|
||||
echo ""
|
||||
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
|
||||
|
||||
### Install Extensions
|
||||
|
||||
array=(
|
||||
https://extensions.gnome.org/extension/8/places-status-indicator/, https://extensions.gnome.org/extension/615/appindicator-support/,
|
||||
https://extensions.gnome.org/extension/5500/auto-activities/,
|
||||
https://extensions.gnome.org/extension/5446/quick-settings-tweaker/,
|
||||
https://extensions.gnome.org/extension/307/dash-to-dock/
|
||||
https://extensions.gnome.org/extension/5219/tophat/, https://extensions.gnome.org/extension/3733/tiling-assistant/
|
||||
)
|
||||
|
||||
for i in "${array[@]}"
|
||||
do
|
||||
EXTENSION_ID=$(curl -s $i | grep -oP 'data-uuid="\K[^"]+')
|
||||
VERSION_TAG=$(curl -Lfs "https://extensions.gnome.org/extension-query/?search=$EXTENSION_ID" | jq '.extensions[0] | .shell_version_map | map(.pk) | max')
|
||||
wget -O ${EXTENSION_ID}.zip "https://extensions.gnome.org/download-extension/${EXTENSION_ID}.shell-extension.zip?version_tag=$VERSION_TAG"
|
||||
gnome-extensions install --force ${EXTENSION_ID}.zip
|
||||
if ! gnome-extensions list | grep --quiet ${EXTENSION_ID}; then
|
||||
busctl --user call org.gnome.Shell.Extensions /org/gnome/Shell/Extensions org.gnome.Shell.Extensions InstallRemoteExtension s ${EXTENSION_ID}
|
||||
fi
|
||||
gnome-extensions enable ${EXTENSION_ID}
|
||||
rm ${EXTENSION_ID}.zip
|
||||
done
|
||||
|
||||
echo -e "Extensions instaled"
|
||||
|
||||
exit 0
|
||||
|
||||
@ -1,345 +0,0 @@
|
||||
#!/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"
|
||||
|
||||
sleep 2
|
||||
clear
|
||||
|
||||
### Remove Firefox ESR
|
||||
|
||||
sudo apt remove --purge firefox-esr -y
|
||||
|
||||
### Create a directory to store APT repository keys if it doesn't exist
|
||||
sudo install -d -m 0755 /etc/apt/keyrings
|
||||
|
||||
### Import the Mozilla APT repository signing key
|
||||
wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | sudo tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/null
|
||||
|
||||
### The fingerprint should be 35BAA0B33E9EB396F59CA838C0BA5CE6DC6315A3
|
||||
gpg -n -q --import --import-options import-show /etc/apt/keyrings/packages.mozilla.org.asc | awk '/pub/{getline; gsub(/^ +| +$/,""); print "\n"$0"\n"}'
|
||||
|
||||
### Add the Mozilla APT repository to your sources list
|
||||
echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main" | sudo tee -a /etc/apt/sources.list.d/mozilla.list > /dev/null
|
||||
|
||||
### Configure APT to prioritize packages from the Mozilla repository
|
||||
echo '
|
||||
Package: *
|
||||
Pin: origin packages.mozilla.org
|
||||
Pin-Priority: 1000
|
||||
' | sudo tee /etc/apt/preferences.d/mozilla
|
||||
|
||||
### Update your package list and install the Firefox .deb package
|
||||
sudo apt-get update && sudo apt-get install firefox -y && sudo apt-get install firefox-l10n-pt-br -y
|
||||
|
||||
echo "Updated Firefox."
|
||||
|
||||
sleep 2
|
||||
clear
|
||||
|
||||
### Install codecs, fonts and tweaks.
|
||||
apps=(
|
||||
exfat-fuse
|
||||
ffmpeg
|
||||
ffmpegthumbnailer
|
||||
firmware-amd-graphics
|
||||
firmware-linux-nonfree
|
||||
font-manager
|
||||
fonts-croscore
|
||||
fonts-noto
|
||||
fonts-noto-extra
|
||||
fonts-ubuntu
|
||||
gamemode
|
||||
gir1.2-gtop-2.0
|
||||
gnome-browser-connector
|
||||
gnome-firmware
|
||||
gnome-tweaks
|
||||
gstreamer1.0-plugins-ugly
|
||||
gstreamer1.0-vaapi
|
||||
gufw
|
||||
libavcodec-extra
|
||||
ldap-utils
|
||||
libasound2-plugins
|
||||
micro
|
||||
vdpauinfo
|
||||
python3-pip
|
||||
python3
|
||||
gnome-boxes
|
||||
p7zip-rar
|
||||
ntp
|
||||
network-manager-config-connectivity-debian
|
||||
ttf-mscorefonts-installer
|
||||
default-jre
|
||||
default-jdk -y
|
||||
)
|
||||
|
||||
for app_name in "${apps[@]}"; do
|
||||
if ! dpkg -l | grep -q "$app_name"; then
|
||||
sudo apt install "$app_name" -y
|
||||
else
|
||||
echo "[installed] - $app_name"
|
||||
fi
|
||||
done
|
||||
### Adding/Confirming 32-bit architecture
|
||||
sudo dpkg --add-architecture i386
|
||||
echo -e "Installed tweaks and codecs"
|
||||
|
||||
sleep 2
|
||||
clear
|
||||
|
||||
# Instalar aplicativos Flatpak
|
||||
flatpak=(
|
||||
org.gimp.GIMP
|
||||
org.gimp.GIMP.Plugin.Resynthesizer/x86_64/2-40
|
||||
org.inkscape.Inkscape
|
||||
org.gnome.Builder
|
||||
ar.xjuan.Cambalache
|
||||
re.sonny.Workbench
|
||||
org.DolphinEmu.dolphin-emu
|
||||
com.getpostman.Postman
|
||||
com.github.tchx84.Flatseal
|
||||
com.usebottles.bottles
|
||||
com.bitwarden.desktop
|
||||
de.haeckerfelix.Fragments
|
||||
org.sqlitebrowser.sqlitebrowser
|
||||
)
|
||||
|
||||
for nome_do_flatpak in "${flatpak[@]}"; do
|
||||
if ! flatpak list | grep -q "$nome_do_flatpak"; then
|
||||
sudo flatpak install flathub --system "$nome_do_flatpak" -y
|
||||
fi
|
||||
done
|
||||
|
||||
## Instalar Vscode from repository
|
||||
|
||||
sudo apt-get install wget gpg -y
|
||||
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
|
||||
sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg
|
||||
echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" |sudo tee /etc/apt/sources.list.d/vscode.list > /dev/null
|
||||
rm -f packages.microsoft.gpg
|
||||
sudo apt install apt-transport-https -y
|
||||
sudo apt update
|
||||
sudo apt install code -y
|
||||
|
||||
## Installing ONLYOFFICE Desktop Editors from repository
|
||||
|
||||
mkdir -p -m 700 ~/.gnupg
|
||||
gpg --no-default-keyring --keyring gnupg-ring:/tmp/onlyoffice.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5
|
||||
chmod 644 /tmp/onlyoffice.gpg
|
||||
sudo chown root:root /tmp/onlyoffice.gpg
|
||||
sudo mv /tmp/onlyoffice.gpg /usr/share/keyrings/onlyoffice.gpg
|
||||
|
||||
echo 'deb [signed-by=/usr/share/keyrings/onlyoffice.gpg] https://download.onlyoffice.com/repo/debian squeeze main' | sudo tee -a /etc/apt/sources.list.d/onlyoffice.list
|
||||
|
||||
sudo apt-get update
|
||||
|
||||
sudo apt-get install onlyoffice-desktopeditors
|
||||
|
||||
echo -e "Instaled apps"
|
||||
|
||||
sleep 2
|
||||
clear
|
||||
|
||||
mkdir -p ~/.fonts
|
||||
|
||||
wget --version > /dev/null
|
||||
|
||||
if [[ $? -ne 0 ]]; then
|
||||
echo "wget not available , installing"
|
||||
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 fonts.zip "https://github.com/mozilla/Fira/archive/refs/tags/4.202.zip"
|
||||
|
||||
wget -O firacode.zip "https://github.com/tonsky/FiraCode/releases/download/1.204/FiraCode_1.204.zip"
|
||||
|
||||
wget -O FontsForDesign.zip "https://github.com/phaleixo/after_install_debian_12/blob/main/Fonts%20for%20design.zip"
|
||||
|
||||
|
||||
if [[ $? -ne 0 ]]; then
|
||||
echo "Downloading failed , exiting"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
unzip fonts.zip -d ~/.fonts
|
||||
unzip firacode.zip -d ~/.fonts
|
||||
unzip FontsForDesign.zip -d ~/.fonts
|
||||
|
||||
clear
|
||||
echo "purging fonts cache "
|
||||
fc-cache -v -f
|
||||
|
||||
sleep 2
|
||||
clear
|
||||
|
||||
echo "Done"
|
||||
sleep 2
|
||||
clear
|
||||
echo "Setting default fonts "
|
||||
|
||||
gsettings set org.gnome.desktop.interface document-font-name 'Fira Sans Regular 11'
|
||||
gsettings set org.gnome.desktop.interface font-name 'Fira Sans Regular 11'
|
||||
gsettings set org.gnome.desktop.interface monospace-font-name 'Fira Code Regular 11'
|
||||
gsettings set org.gnome.nautilus.desktop font 'Fira Sans Regular 11'
|
||||
gsettings set org.gnome.desktop.wm.preferences titlebar-font "Fira Sans SemiBold 12"
|
||||
clear
|
||||
|
||||
rm -rf fonts.zip
|
||||
rm -rf firacode.zip
|
||||
rm -rf FontsForDesign.zip
|
||||
|
||||
echo -e "Fonts installed"
|
||||
|
||||
sleep 2
|
||||
clear
|
||||
|
||||
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 install gnome-console -y && sudo apt remove gnome-terminal -y
|
||||
sudo apt autoremove && sudo apt autoclean
|
||||
|
||||
echo -e "removed unnecessary apps"
|
||||
|
||||
sleep 2
|
||||
clear
|
||||
|
||||
|
||||
### Install Extensions
|
||||
|
||||
array=(
|
||||
https://extensions.gnome.org/extension/8/places-status-indicator/
|
||||
https://extensions.gnome.org/extension/615/appindicator-support/
|
||||
https://extensions.gnome.org/extension/5500/auto-activities/
|
||||
https://extensions.gnome.org/extension/5446/quick-settings-tweaker/
|
||||
https://extensions.gnome.org/extension/307/dash-to-dock/
|
||||
https://extensions.gnome.org/extension/5219/tophat/
|
||||
https://extensions.gnome.org/extension/3733/tiling-assistant/
|
||||
)
|
||||
|
||||
for i in "${array[@]}"
|
||||
do
|
||||
EXTENSION_ID=$(curl -s $i | grep -oP 'data-uuid="\K[^"]+')
|
||||
VERSION_TAG=$(curl -Lfs "https://extensions.gnome.org/extension-query/?search=$EXTENSION_ID" | jq '.extensions[0] | .shell_version_map | map(.pk) | max')
|
||||
wget -O ${EXTENSION_ID}.zip "https://extensions.gnome.org/download-extension/${EXTENSION_ID}.shell-extension.zip?version_tag=$VERSION_TAG"
|
||||
gnome-extensions install --force ${EXTENSION_ID}.zip
|
||||
if ! gnome-extensions list | grep --quiet ${EXTENSION_ID}; then
|
||||
busctl --user call org.gnome.Shell.Extensions /org/gnome/Shell/Extensions org.gnome.Shell.Extensions InstallRemoteExtension s ${EXTENSION_ID}
|
||||
fi
|
||||
gnome-extensions enable ${EXTENSION_ID}
|
||||
rm ${EXTENSION_ID}.zip
|
||||
done
|
||||
|
||||
echo -e "Extensions instaled"
|
||||
|
||||
sleep 2
|
||||
clear
|
||||
|
||||
### Check video driver
|
||||
video_driver_info=$(lspci -k | grep amdgpu)
|
||||
video_card_info=$(lspci | grep VGA)
|
||||
|
||||
if [[ "$video_driver_info" == *"Kernel driver in use: amdgpu"* ]]; then
|
||||
# Amdgpu driver is already active
|
||||
inform "Video card: '$video_card_info'\n----------------------------------------------------------------" "success"
|
||||
inform "The amdgpu driver is already active. No action required." "success"
|
||||
elif [[ "$video_driver_info" == *"Kernel driver in use: radeon"* ]]; then
|
||||
# Switch from radeon to amdgpu
|
||||
inform "Video card: '$video_card_info'\n----------------------------------------------------------------" "success"
|
||||
inform "Switching driver from radeon to amdgpu..."
|
||||
sed_command='s/GRUB_CMDLINE_LINUX_DEFAULT="\(.*\)"/GRUB_CMDLINE_LINUX_DEFAULT="\1 radeon.cik_support=0 amdgpu.cik_support=1 radeon.si_support=0 amdgpu.si_support=1"/'
|
||||
|
||||
if sudo sed -i "$sed_command" /etc/default/grub && sudo update-grub; then
|
||||
inform "Driver configuration updated successfully. Restart the system to apply the changes." "success"
|
||||
else
|
||||
inform "Error updating GRUB or changing the driver. Please restart the system manually after fixing the issue." "error"
|
||||
fi
|
||||
else
|
||||
# No AMDGPU or Radeon driver detected
|
||||
inform "Video card: '$video_card_info'" "error"
|
||||
inform "Unable to detect the AMDGPU or Radeon video driver on the system." "error"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
@ -66,5 +66,6 @@ Pin-Priority: 1000
|
||||
### Update your package list and install the Firefox .deb package
|
||||
sudo apt-get update && sudo apt-get install firefox -y && sudo apt-get install firefox-l10n-pt-br -y
|
||||
|
||||
echo "Updated Firefox."
|
||||
echo -e "Updated Firefox."
|
||||
|
||||
exit 0
|
||||
@ -59,7 +59,7 @@ wget -O fonts.zip "https://github.com/mozilla/Fira/archive/refs/tags/4.202.zip"
|
||||
|
||||
wget -O firacode.zip "https://github.com/tonsky/FiraCode/releases/download/1.204/FiraCode_1.204.zip"
|
||||
|
||||
wget -O FontsForDesign.zip "https://github.com/phaleixo/after_install_debian_12/blob/main/Fonts%20for%20design.zip"
|
||||
wget -O FontsForDesign.zip "https://github.com/phaleixo/after_install_debian_12/blob/main/src/Fonts%20for%20design.zip"
|
||||
|
||||
|
||||
if [[ $? -ne 0 ]]; then
|
||||
61
src/shell_scripts/install_extensions.sh
Normal file
@ -0,0 +1,61 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
### Initial message
|
||||
echo -e "\n ############################################################"
|
||||
echo -e " # Install and configure Gnome Extensions #"
|
||||
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" ]] && echo "Operation canceled by the user." && exit 0
|
||||
|
||||
### Check if the distribution is compatible
|
||||
if [[ $(lsb_release -cs) = "bookworm" ]]; then
|
||||
echo -e "\n\e[32;1mDebian 12 Distribution.\e[m"
|
||||
echo "Continuing with the script..."
|
||||
else
|
||||
echo -e "\e[31;1mDistribution not approved for use with this script.\e[m"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
### Check for internet connection
|
||||
if ping -q -c 3 -W 1 1.1.1.1 >/dev/null; then
|
||||
echo -e "\n\e[32;1mInternet connection OK.\e[m"
|
||||
echo "Continuing with the script..."
|
||||
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 if the desktop environment is GNOME
|
||||
desktop_env=$(echo "$XDG_CURRENT_DESKTOP" | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
if [[ "$desktop_env" != *gnome* ]]; then
|
||||
echo -e "\e[31;1mThis script is intended for GNOME. Detected desktop: $XDG_CURRENT_DESKTOP\e[m"
|
||||
exit 1
|
||||
else
|
||||
echo -e "\e[32;1mDetected GNOME environment.\e[m"
|
||||
fi
|
||||
|
||||
### Install Extensions
|
||||
extension=(
|
||||
gnome-shell-extension-dashtodock
|
||||
gnome-shell-extension-appindicator
|
||||
gnome-shell-extension-expresso
|
||||
gnome-shell-extension-tilling-assistant
|
||||
gnome-shell-extension-desktop-icons-ng
|
||||
)
|
||||
|
||||
for extension_name in "${extension[@]}"; do
|
||||
if ! dpkg -l | grep -q "$extension_name"; then
|
||||
sudo apt install "$extension_name" -y
|
||||
else
|
||||
echo "[installed] - $extension_name"
|
||||
fi
|
||||
done
|
||||
|
||||
echo -e "\n\e[32;1mExtensions installed.\e[m"
|
||||
|
||||
exit 0
|
||||
183
src/shell_scripts/pos_install_complete.sh
Executable file
@ -0,0 +1,183 @@
|
||||
#!/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
|
||||
|
||||
echo -e "repository activate"
|
||||
|
||||
sleep 2
|
||||
clear
|
||||
|
||||
### Remove Firefox ESR
|
||||
|
||||
sudo apt remove --purge firefox-esr -y
|
||||
|
||||
### Create a directory to store APT repository keys if it doesn't exist
|
||||
sudo install -d -m 0755 /etc/apt/keyrings
|
||||
|
||||
### Import the Mozilla APT repository signing key
|
||||
wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | sudo tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/null
|
||||
|
||||
### The fingerprint should be 35BAA0B33E9EB396F59CA838C0BA5CE6DC6315A3
|
||||
gpg -n -q --import --import-options import-show /etc/apt/keyrings/packages.mozilla.org.asc | awk '/pub/{getline; gsub(/^ +| +$/,""); print "\n"$0"\n"}'
|
||||
|
||||
### Add the Mozilla APT repository to your sources list
|
||||
echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main" | sudo tee -a /etc/apt/sources.list.d/mozilla.list > /dev/null
|
||||
|
||||
### Configure APT to prioritize packages from the Mozilla repository
|
||||
echo '
|
||||
Package: *
|
||||
Pin: origin packages.mozilla.org
|
||||
Pin-Priority: 1000
|
||||
' | sudo tee /etc/apt/preferences.d/mozilla
|
||||
|
||||
### Update your package list and install the Firefox .deb package
|
||||
sudo apt-get update && sudo apt-get install firefox -y && sudo apt-get install firefox-l10n-pt-br -y
|
||||
|
||||
echo "Updated Firefox."
|
||||
|
||||
sleep 2
|
||||
clear
|
||||
|
||||
### Install codecs, fonts and tweaks.
|
||||
apps=(
|
||||
exfat-fuse
|
||||
ffmpeg
|
||||
ffmpegthumbnailer
|
||||
firmware-amd-graphics
|
||||
firmware-linux-nonfree
|
||||
font-manager
|
||||
fonts-croscore
|
||||
fonts-noto
|
||||
fonts-noto-extra
|
||||
fonts-ubuntu
|
||||
gamemode
|
||||
gir1.2-gtop-2.0
|
||||
gnome-browser-connector
|
||||
gnome-firmware
|
||||
gnome-tweaks
|
||||
gstreamer1.0-plugins-ugly
|
||||
gstreamer1.0-vaapi
|
||||
gufw
|
||||
libavcodec-extra
|
||||
ldap-utils
|
||||
libasound2-plugins
|
||||
micro
|
||||
vdpauinfo
|
||||
python3-pip
|
||||
python3
|
||||
gnome-boxes
|
||||
p7zip-rar
|
||||
ntp
|
||||
network-manager-config-connectivity-debian
|
||||
ttf-mscorefonts-installer
|
||||
default-jre
|
||||
default-jdk -y
|
||||
)
|
||||
|
||||
for app_name in "${apps[@]}"; do
|
||||
if ! dpkg -l | grep -q "$app_name"; then
|
||||
sudo apt install "$app_name" -y
|
||||
else
|
||||
echo "[installed] - $app_name"
|
||||
fi
|
||||
done
|
||||
### Adding/Confirming 32-bit architecture
|
||||
sudo dpkg --add-architecture i386
|
||||
echo -e "Installed tweaks and codecs"
|
||||
|
||||
sleep 2
|
||||
clear
|
||||
|
||||
|
||||
### uninstall bloat apps and clean
|
||||
apps_remove=(
|
||||
fcitx*
|
||||
mozc*
|
||||
xiterm+thai*
|
||||
mlterm*
|
||||
xterm*
|
||||
hdate*
|
||||
kasumi*
|
||||
gnome-games*
|
||||
im*
|
||||
goldendict*
|
||||
hdate*
|
||||
uim*
|
||||
thunderbird*
|
||||
gnome-music
|
||||
gnome-software
|
||||
|
||||
)
|
||||
|
||||
for app_name_remove in "${apps_remove[@]}"; do
|
||||
sudo apt remove --purge "$app_name_remove" -y
|
||||
done
|
||||
|
||||
sudo apt install gnome-console -y && sudo apt remove gnome-terminal -y
|
||||
sudo apt autoremove && sudo apt autoclean
|
||||
|
||||
echo -e "removed unnecessary apps"
|
||||
|
||||
sleep 2
|
||||
clear
|
||||
|
||||
echo -e "Pós Instalation Completed, please restart the PC"
|
||||
echo -e "For more information, visit the project link:"
|
||||
echo -e "https://github.com/phaleixo/after_install_debian_12"
|
||||
|
||||
exit 0
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -72,3 +72,7 @@ else
|
||||
inform "Unable to detect the AMDGPU or Radeon video driver on the system." "error"
|
||||
fi
|
||||
|
||||
echo -e "Change Drive Completed, please restart the PC"
|
||||
|
||||
exit 0
|
||||
|
||||
@ -66,7 +66,7 @@ done
|
||||
|
||||
sudo apt autoremove && sudo apt autoclean
|
||||
|
||||
echo -e "removed unnecessary apps"
|
||||
echo -e "Removed unnecessary apps"
|
||||
|
||||
exit 0
|
||||
|
||||
@ -55,9 +55,9 @@ if [[ $? -ne 0 ]]; then
|
||||
fi
|
||||
|
||||
|
||||
wget -O my_wallpapers.xml "https://github.com/phaleixo/after_install_debian_12/blob/main/my_wallpapers.xml"
|
||||
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/wallpapers.zip"
|
||||
wget -O wallpapers.zip "https://github.com/phaleixo/after_install_debian_12/blob/main/src/wallpapers.zip"
|
||||
|
||||
|
||||
if [[ $? -ne 0 ]]; then
|
||||
|
Before Width: | Height: | Size: 166 KiB After Width: | Height: | Size: 166 KiB |
|
Before Width: | Height: | Size: 973 KiB After Width: | Height: | Size: 973 KiB |
|
Before Width: | Height: | Size: 859 KiB After Width: | Height: | Size: 859 KiB |
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 232 KiB After Width: | Height: | Size: 232 KiB |
|
Before Width: | Height: | Size: 3.2 MiB After Width: | Height: | Size: 3.2 MiB |
|
Before Width: | Height: | Size: 712 KiB After Width: | Height: | Size: 712 KiB |
|
Before Width: | Height: | Size: 127 KiB After Width: | Height: | Size: 127 KiB |
|
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 3.7 MiB After Width: | Height: | Size: 3.7 MiB |
|
Before Width: | Height: | Size: 326 KiB After Width: | Height: | Size: 326 KiB |
|
Before Width: | Height: | Size: 232 KiB After Width: | Height: | Size: 232 KiB |
|
Before Width: | Height: | Size: 9.6 MiB After Width: | Height: | Size: 9.6 MiB |
|
Before Width: | Height: | Size: 30 MiB After Width: | Height: | Size: 30 MiB |
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
|
Before Width: | Height: | Size: 881 KiB After Width: | Height: | Size: 881 KiB |
|
Before Width: | Height: | Size: 646 KiB After Width: | Height: | Size: 646 KiB |
|
Before Width: | Height: | Size: 645 KiB After Width: | Height: | Size: 645 KiB |
|
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 353 KiB After Width: | Height: | Size: 353 KiB |
|
Before Width: | Height: | Size: 414 KiB After Width: | Height: | Size: 414 KiB |
|
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 87 KiB |
|
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.4 MiB |
|
Before Width: | Height: | Size: 158 KiB After Width: | Height: | Size: 158 KiB |
|
Before Width: | Height: | Size: 325 KiB After Width: | Height: | Size: 325 KiB |