From fd8c462b1ce34f58b2396d047f9fa8f7c94b6507 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 16 Feb 2022 16:59:44 +0100 Subject: [PATCH] Remove old Ubuntu configuration --- -installBrave.sh | 9 --- installClipboardHistory.sh | 9 --- installEmojiPicker.sh | 23 ------ installFish.sh | 91 ---------------------- installFlameshot.sh | 43 ----------- installGitLFS.sh | 13 ---- installGlobalScript.sh | 154 ------------------------------------- installJava.sh | 24 ------ installKolourPaint.sh | 11 --- installLatex.sh | 26 ------- installMultiMC.sh | 20 ----- installOBS.sh | 10 --- installObsidian.sh | 19 ----- installParsec.sh | 12 --- installRust.sh | 20 ----- installSignal.sh | 17 ---- installSpotify.sh | 38 --------- installSyncthing.sh | 24 ------ installTLDR.sh | 21 ----- installgl4D.sh | 56 -------------- removeBannerSpotify.sh | 10 --- ubuntuConfiguration.sh | 65 ---------------- update.sh | 22 ------ 23 files changed, 737 deletions(-) delete mode 100644 -installBrave.sh delete mode 100644 installClipboardHistory.sh delete mode 100644 installEmojiPicker.sh delete mode 100644 installFish.sh delete mode 100644 installFlameshot.sh delete mode 100644 installGitLFS.sh delete mode 100644 installGlobalScript.sh delete mode 100644 installJava.sh delete mode 100644 installKolourPaint.sh delete mode 100644 installLatex.sh delete mode 100644 installMultiMC.sh delete mode 100644 installOBS.sh delete mode 100644 installObsidian.sh delete mode 100644 installParsec.sh delete mode 100644 installRust.sh delete mode 100644 installSignal.sh delete mode 100644 installSpotify.sh delete mode 100644 installSyncthing.sh delete mode 100644 installTLDR.sh delete mode 100644 installgl4D.sh delete mode 100644 removeBannerSpotify.sh delete mode 100644 ubuntuConfiguration.sh delete mode 100644 update.sh diff --git a/-installBrave.sh b/-installBrave.sh deleted file mode 100644 index 12b538e..0000000 --- a/-installBrave.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash - -sudo apt install apt-transport-https curl -y -sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg -echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main" | sudo tee /etc/apt/sources.list.d/brave-browser-release.list -sudo apt update -sudo apt install brave-browser -y - -echo -e "\nBrave installed! 🎉" diff --git a/installClipboardHistory.sh b/installClipboardHistory.sh deleted file mode 100644 index 90c945d..0000000 --- a/installClipboardHistory.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash - -sudo apt update -sudo apt install gnome-shell-extension-gpaste gnome-shell-extension-prefs -y - -# Enable the extension -gnome-extensions enable GPaste@gnome-shell-extensions.gnome.org - -echo -e "\nClipboard history is now available! 🎉" diff --git a/installEmojiPicker.sh b/installEmojiPicker.sh deleted file mode 100644 index ceef32e..0000000 --- a/installEmojiPicker.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env bash - -# Fetch installation script -wget -q https://raw.githubusercontent.com/GaZaTu/x11-emoji-picker/master/install.sh -O /tmp/install_EP.sh - -# Remove the great emoji after the installation -sed -i "s/echo \"$PROJECT_NAME installed! 🎉\"/echo \"$PROJECT_NAME installed!\"/" /tmp/install_EP.sh - -# Installation -yes | bash /tmp/install_EP.sh - -# Remove icon -if [ -f /usr/share/applications/x11-emoji-picker.desktop ] -then - sudo mv /usr/share/applications/x11-emoji-picker.desktop /usr/share/applications/x11-emoji-picker.desktop.bak - echo -e "\nEmoji Picker icon removed!" -fi - -# Use custom configuration -rm "$HOME"/.config/gazatu.xyz/emoji-picker.ini 2>/dev/null -wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/.config/gazatu.xyz/emoji-picker.ini -P "$HOME"/.config/gazatu.xyz/ - -echo -e "\nEmoji Picker configured! 🎉" diff --git a/installFish.sh b/installFish.sh deleted file mode 100644 index b6cd2ac..0000000 --- a/installFish.sh +++ /dev/null @@ -1,91 +0,0 @@ -#!/usr/bin/env bash - -# Adds the official Fish repository -sudo apt-add-repository ppa:fish-shell/release-3 -y - -# Updates the list -sudo apt update - -# Install Fish, fzf (for the reverse search), bat (for the colored manuals and cat), procps (for the SSH), curl (for downloading scripts), exa (for the better ls) -sudo apt install fish fzf bat procps curl exa -y -echo -e "\nFish installed!" - -# Fish default shell -sudo chsh -s /usr/bin/fish "$USER" - -# Removing motd -fish -c 'set -U fish_greeting' - -# Install ^R (reversed research) -curl -sL https://git.io/fisher | fish -c 'source && fisher install jorgebucaran/fisher' -fish -c 'fisher install jethrokuan/fzf' - -# Install SSH -rm "$HOME"/.config/fish/functions/fish_ssh_agent.fish 2>/dev/null; wget https://gitlab.com/kyb/fish_ssh_agent/raw/master/functions/fish_ssh_agent.fish -P "$HOME"/.config/fish/functions/ - -# Update the fish config with mine (edit that once installed for you) -rm "$HOME"/.config/fish/config.fish 2>/dev/null; wget https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/.config/fish/config.fish -P "$HOME"/.config/fish/ - -# Update the prompt with mine -rm "$HOME"/.config/fish/functions/fish_prompt.fish 2>/dev/null; wget https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/.config/fish/functions/fish_prompt.fish -P "$HOME"/.config/fish/functions/ - -# Updating color scheme (based on Base16 Eighties) -fish -c 'set -U fish_color_normal normal' -fish -c 'set -U fish_color_command 99cc99' -fish -c 'set -U fish_color_quote ffcc66' -fish -c 'set -U fish_color_redirection d3d0c8' -fish -c 'set -U fish_color_end cc99cc' -fish -c 'set -U fish_color_error f2777a' -fish -c 'set -U fish_color_param d3d0c8' -fish -c 'set -U fish_color_comment ffcc66' -fish -c 'set -U fish_color_match 6699cc' -fish -c 'set -U fish_color_selection white --bold --background=brblack' -fish -c 'set -U fish_color_search_match bryellow --background=brblack' -fish -c 'set -U fish_color_history_current --bold' -fish -c 'set -U fish_color_operator 6699cc' -fish -c 'set -U fish_color_escape 66cccc' -fish -c 'set -U fish_color_cwd green' -fish -c 'set -U fish_color_cwd_root red' -fish -c 'set -U fish_color_valid_path --underline' -fish -c 'set -U fish_color_autosuggestion 747369' -fish -c 'set -U fish_color_user brgreen' -fish -c 'set -U fish_color_host normal' -fish -c 'set -U fish_color_cancel -r' -fish -c 'set -U fish_pager_color_completion normal' -fish -c 'set -U fish_pager_color_description B3A06D yellow' -fish -c 'set -U fish_pager_color_prefix normal --bold --underline' -fish -c 'set -U fish_pager_color_progress brwhite --background=cyan' - -# Adding abbrevations -fish -c "abbr ls 'exa -glh'" -fish -c "abbr cp 'cp -rv'" -fish -c "abbr rm 'rm -rf'" -fish -c "abbr gcc 'gcc -Wall -Wextra -fanalyzer -g'" -fish -c "abbr g++ 'g++ -Wall -Wextra -fanalyzer -g -std=c++17'" -fish -c "abbr activate 'source bin/activate.fish'" -fish -c "abbr vs 'code .'" -fish -c "abbr untgz 'tar -xvzf'" -fish -c "abbr - 'cd -'" -fish -c "abbr cat 'batcat'" -if grep "WSL" /proc/version > /dev/null; # only for WSL -then - fish -c "abbr bigupdate 'sudo apt update && sudo apt upgrade -y && sudo apt full-upgrade -y && sudo apt autoremove -y && tldr --update && wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/update.sh -O tmp_u.sh && bash tmp_u.sh; rm tmp_u.sh'" - fish -c "abbr d 'explorer.exe .'" -else # if regular distro (i.e. Ubuntu) - fish -c "abbr bigupdate 'sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y && sudo snap refresh && tldr --update && wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/update.sh -O tmp_u.sh && bash tmp_u.sh; rm tmp_u.sh'" - fish -c "abbr d 'nautilus . -w &> /dev/null & disown'" - fish -c "abbr spotify 'LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify &> /dev/null & disown'" -fi - -if grep "Ubuntu" /proc/version > /dev/null; # only for Ubuntu -then - # We remove the Ubuntu desktop shortcut only if it already exists - if [ -f /usr/share/applications/fish.desktop ] - then - sudo mv /usr/share/applications/fish.desktop /usr/share/applications/fish.desktop.bak - echo -e "\nFish icon removed!" - fi -fi - -echo -e "\nFish configured! 🎉" -echo "You must log out to finish applying the changes." diff --git a/installFlameshot.sh b/installFlameshot.sh deleted file mode 100644 index 71ba93c..0000000 --- a/installFlameshot.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env bash - -# Install flameshot -sudo apt update -sudo apt install flameshot -y -echo -e "\nFlameshot installed!" - -# Apply custom configuration -rm "$HOME"/.config/flameshot/flameshot.ini 2>/dev/null -wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/.config/flameshot/flameshot.ini -P "$HOME"/.config/flameshot/ - -# Remove old shortcut assign with the Print key -gsettings set org.gnome.settings-daemon.plugins.media-keys screenshot "[]" -echo "Old ImprEcran shortcut removed!" - -# Fetching customs keyboard shortcuts -CUSTOM_KEYBINDINGS_LIST=$(gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings) - -if [[ $CUSTOM_KEYBINDINGS_LIST == "@as []" ]] # creating new list if not exists -then - CUSTOM_KEYBINDINGS_LIST="['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/flameshot-shortcut/']" -else # if already existing, adding our new element - CUSTOM_KEYBINDINGS_LIST="${CUSTOM_KEYBINDINGS_LIST::-1}, '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/flameshot-shortcut/']" -fi - -# Updating the list -gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "$CUSTOM_KEYBINDINGS_LIST" - -# Configure the new shortcut -gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/flameshot-shortcut/ name 'Flameshot' # set name -gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/flameshot-shortcut/ command 'flameshot gui' # set command -gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/flameshot-shortcut/ binding 'Print' # set key -echo -e "\nFlameshot shortcut added (ImprEcran key)!" - - -# We remove the Ubuntu desktop shortcut only if it already exists -if [ -f /usr/share/applications/org.flameshot.Flameshot.desktop ] -then - sudo mv /usr/share/applications/org.flameshot.Flameshot.desktop /usr/share/applications/org.flameshot.Flameshot.desktop.bak - echo -e "\nFlameshot icon removed!" -fi - -echo -e "\nFlameshot configured! 🎉" diff --git a/installGitLFS.sh b/installGitLFS.sh deleted file mode 100644 index 58b6c4b..0000000 --- a/installGitLFS.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -# Latest version -# No available version for latest Ubuntu version -# curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash - -# Install -sudo apt install git-lfs -y - -# Enable it -git lfs install - -echo -e "\nGit LFS installed and enabled! 🎉" diff --git a/installGlobalScript.sh b/installGlobalScript.sh deleted file mode 100644 index 52b99c9..0000000 --- a/installGlobalScript.sh +++ /dev/null @@ -1,154 +0,0 @@ -#!/usr/bin/env bash - -if grep "Ubuntu" /proc/version > /dev/null || grep "WSL" /proc/version > /dev/null; -then - # Update of APT - sudo apt update - - which git &> /dev/null || sudo apt install git -y # install git if not already installed - which curl &> /dev/null || sudo apt install apt-transport-https curl -y # install curl (along with apt-transport-https) if not already installed - - git clone -c http.sslverify=false https://git.kennel.ml/Anri/myLinuxConfiguration.git - cd myLinuxConfiguration || exit - - # Upgrade and clean already installed packages - sudo apt upgrade -y - echo -e "\nUpgrading packages done! 🎉" - - sudo apt autoremove -y - echo -e "\nCleaning unnecessary packages done! 🎉" - - # Install Fish - bash installFish.sh - - # Install gl4D - bash installgl4D.sh - - # Install Latex - bash installLatex.sh - - # Install Java - bash installJava.sh - - # Install Python useful tools - sudo apt install python3-virtualenv python3-tk -y - echo -e "\nPython's vEnv and Tkinter installed! 🎉" - - # Install Rust - bash installRust.sh - - # Sign all commits by default with my GPG key - git config --global commit.gpgsign true - echo -e "\nGPG are now used by default in Git! 🎉" - - # Install tldr - bash installTLDR.sh - - # Install Git LFS - bash installGitLFS.sh - - if grep "Ubuntu" /proc/version > /dev/null; - then - # Install Brave - # bash installBrave.sh - - # Uninstall Firefox - # sudo snap remove firefox && rm -r $HOME/snap/firefox - - # Install VSCode - sudo snap install code --classic - echo -e "\nVS Code installed! 🎉" - - # Install Spotify - bash installSpotify.sh - - # Remove Spotify's bottom-banner - bash removeBannerSpotify.sh - - # Install Syncthing - bash installSyncthing.sh - - # Install Discord - wget -q --show-progress "https://discord.com/api/download?platform=linux&format=deb" -O discord.deb && sudo apt install ./discord.deb -y && rm discord.deb - echo -e "\nDiscord installed! 🎉" - - # Install Obsidian - bash installObsidian.sh - - # Install Flameshot - bash installFlameshot.sh - - # Install Parsec - bash installParsec.sh - - # Install OnlyOffice - sudo snap install onlyoffice-desktopeditors - echo -e "\nOnlyOffice installed! 🎉" - - # Install EmojiPicker and its keyboard shortcut, along with some personnalisation - bash installEmojiPicker.sh - - # Setup Ubuntu configuration - bash ubuntuConfiguration.sh - - # Install clipboard history - bash installClipboardHistory.sh - - # Skip MultiMC - echo -e "\nMultiMC skipped! ✨" - # bash installMultiMC.sh - - # Install Signal - bash installSignal.sh - - # Install KolourPaint - bash installKolourPaint.sh - - # Skip OBS - echo -e "\nOBS Studio skipped! ✨" - # bash installOBS.sh - - # Infos - echo -e "\n\nTake care, you may need to install manually some others stuff, check the README (and the logs) of" - echo "the project => https://git.kennel.ml/Anri/myLinuxConfiguration/src/branch/main/README.md" - else # WSL - # Create Z and Y mount folders for my WSL custom configuration - sudo mkdir /mnt/z && sudo mkdir /mnt/y - echo -e "\nMounts folder (Z & Y) created! 🎉" - - # Remove SU password because anyways if someone have access to your computer he will have access to windows - # And WSL isn't a daily drive OS who you store sensible things, comment this line if you wanna keep your SU pass - sudo sed -i "26s#.*#%sudo ALL=(ALL:ALL) NOPASSWD: ALL#" /etc/sudoers - echo -e "\nSU password removed! 🎉" - - # Change LTS update to normal - # sudo sed -i "16s#.*#Prompt=normal#" /etc/update-manager/release-upgrades - # echo -e "\nChannel update moved from \"LTS\" to \"normal\"! 🎉" - - # Remove snap for WSL because it block the 21.10 update (https://github.com/microsoft/WSL/issues/6942#issuecomment-879904997) - # sudo apt autoremove --purge snapd -y - # echo -e "\nSnap daemon removed! 🎉" - - # Alternative solution for the update (https://github.com/microsoft/WSL/issues/6942#issuecomment-901121849) - sudo sed -i 's/bionic/impish/g' /etc/apt/sources.list - sudo sed -i 's/bionic/impish/g' /etc/apt/sources.list.d/*.list - - # Make the update - sudo apt update - sudo apt upgrade - sudo apt full-upgrade - sudo apt autoremove - - # Infos - echo -e "\n\nTake care, by default the fish configuration is set for Ubuntu, you may need to uncomment" - echo "some of the lines in $HOME/.config/fish/config.fish to enable custom network disks from Windows." - # echo -e "\nYou may need to update your distro to the latest version" - # echo "Check this tutorial : https://git.kennel.ml/Anri/cat/wiki/Tuto-installation-WSL#%C3%A9tape-3-mise-%C3%A0-jour-de-ubuntu" - fi - - # Delete this repo - cd .. - rm -rf myLinuxConfiguration -else - echo "Your distribution isn't supported." -fi diff --git a/installJava.sh b/installJava.sh deleted file mode 100644 index e86ec02..0000000 --- a/installJava.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash - -# Install SDKMAN -# Install dependencies -sudo apt update -sudo apt install curl zip unzip sed -y # set probably installed but it doesn't cost anything to double-check -curl -s "https://get.sdkman.io" | bash -source "$HOME/.sdkman/bin/sdkman-init.sh" - -# Adding Fish support if fish is installed -if [ -x "$HOME"/.config/fish ] ; then - if [ ! -f "$HOME"/.config/fish/functions/fisher.fish ] ; then # install fisher if not already installed - curl -sL https://git.io/fisher | fish -c 'source && fisher install jorgebucaran/fisher' - fi - fish -c 'fisher install reitzig/sdkman-for-fish' -fi -echo -e "\nSDKMAN (Java install manager) installed!" - -# Install Temurin build according with https://whichjdk.com/#adoptium-eclipse-temurin -sdk install java 17.0.1-tem - -# Upgrade to latest java version in case the version above isn't -sdk upgrade -echo -e "\nJava (Temurin) installed! 🎉" diff --git a/installKolourPaint.sh b/installKolourPaint.sh deleted file mode 100644 index 52dd317..0000000 --- a/installKolourPaint.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -# Install -sudo snap install kolourpaint - -# Rename icon -if [ -f /var/lib/snapd/desktop/applications/kolourpaint_kolourpaint.desktop ] ; then - sudo sed -i "3s#.*#Name=Paint#" /var/lib/snapd/desktop/applications/kolourpaint_kolourpaint.desktop -fi - -echo -e "\nKolourPaint installed! 🎉" diff --git a/installLatex.sh b/installLatex.sh deleted file mode 100644 index c12c7bc..0000000 --- a/installLatex.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# Install Latex -sudo apt update -sudo apt install texlive-full python3-pygments -y -echo -e "\nLatex installed, along with Pygments for minted package!" - -if grep "Ubuntu" /proc/version > /dev/null; -then - # Path where icons are saved - pathicons='/usr/share/applications' - - apps=("display-im6.q16" "prerex" "vprerex" "texdoctk" "info") - - # We remove the Ubuntu desktop shortcut only if it already exists - for app in "${apps[@]}" - do - if [ -f $pathicons/$app.desktop ] - then - sudo mv $pathicons/$app.desktop $pathicons/$app.desktop.bak - echo "$app's icon removed!" - fi - done -fi - -echo -e "\nLatex additionnal icons removed! 🎉" diff --git a/installMultiMC.sh b/installMultiMC.sh deleted file mode 100644 index 95d9dff..0000000 --- a/installMultiMC.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -# Fetching a link to get the latest version of MultiMC -echo "Retrieve the last package..." -latest=$(wget -qO- https://multimc.org/ | grep "Debian/Ubuntu") # retrieving for the official website -pat='href="(.*)" ' # regex -[[ $latest =~ $pat ]] # Use of REGEX - -# Download the latest package -wget -q --show-progress -i "${BASH_REMATCH[1]}" -O MultiMC.deb - -sudo apt install ./MultiMC.deb -y -rm MultiMC.deb - -# We change the Ubuntu desktop shortcut from MultiMC to Minecraft -if [ -f /usr/share/applications/multimc.desktop ] ; then - sudo sed -i "7s#.*#Name=Minecraft#" /usr/share/applications/multimc.desktop -fi - -echo -e "\nMultiMC installed! 🎉" diff --git a/installOBS.sh b/installOBS.sh deleted file mode 100644 index 912c4bc..0000000 --- a/installOBS.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash - -# Add repo -sudo add-apt-repository ppa:obsproject/obs-studio -y - -# Installation -sudo apt update -sudo apt install ffmpeg obs-studio -y - -echo -e "\nOBS Studio installed! 🎉" diff --git a/installObsidian.sh b/installObsidian.sh deleted file mode 100644 index 0063c51..0000000 --- a/installObsidian.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash - -# Fetching last Obsidian version -wget -q https://api.github.com/repos/obsidianmd/obsidian-releases/releases/latest -echo "Retrieve the last package..." -grep 'browser_download_url": ".*.snap"' latest | awk '{ print substr ($0, 32 ) }' | awk '{ print substr( $0, 1, length($0)-1 ) }' > url -rm latest - -# Downloading package -wget -q --show-progress -i url -O obsidian.snap -rm url - -# Installing -sudo snap install --dangerous obsidian.snap - -# Removing package -rm obsidian.snap - -echo -e "\nObsidian installed or updated! 🎉" diff --git a/installParsec.sh b/installParsec.sh deleted file mode 100644 index c53397c..0000000 --- a/installParsec.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -# Downloading package -wget -q --show-progress https://builds.parsec.app/package/parsec-linux.deb -O parsec.deb - -# Installing Parsec -sudo apt install ./parsec.deb -y - -# Removing package -rm parsec.deb - -echo -e "\nParsec installed or updated! 🎉" diff --git a/installRust.sh b/installRust.sh deleted file mode 100644 index 9caabce..0000000 --- a/installRust.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -which curl &> /dev/null || ( sudo apt update; sudo apt install curl -y ) # Install curl if not already installed - -# Install rust -curl https://sh.rustup.rs -sSf | sh -s -- -y - -# Configure current session -source "$HOME"/.cargo/env - -# If fish is used, adding cargo to path -if [ -x "$HOME"/.config/fish ] ; then - fish -c 'set -Up fish_user_paths ~/.cargo/bin' -fi - -# Adding dev tools -rustup component add rust-analysis -rustup component add rls - -echo -e "\nRust installed! 🎉" diff --git a/installSignal.sh b/installSignal.sh deleted file mode 100644 index 99f18cf..0000000 --- a/installSignal.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -# Add the public software signing key -wget -O- -q --show-progress https://updates.signal.org/desktop/apt/keys.asc | gpg --dearmor > signal-desktop-keyring.gpg -cat signal-desktop-keyring.gpg | sudo tee -a /usr/share/keyrings/signal-desktop-keyring.gpg > /dev/null - -# Remove the GPG key -rm signal-desktop-keyring.gpg - -# Add the repository to the list -echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main' | sudo tee -a /etc/apt/sources.list.d/signal-xenial.list - -# Install the app -sudo apt update -sudo apt install signal-desktop -y - -echo -e "\nSignal installed! 🎉" diff --git a/installSpotify.sh b/installSpotify.sh deleted file mode 100644 index e18382e..0000000 --- a/installSpotify.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env bash - -# We make sure that Snap and flatpak versions are uninstalled -sudo snap remove spotify 2> /dev/null -sudo flatpak uninstall com.spotify.Client 2> /dev/null - -# We install the version from the official website -which curl &> /dev/null || sudo apt update && sudo apt install curl -y # install curl if not already installed -echo "deb [trusted=yes] http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list -sudo apt update -sudo apt install spotify-client -y -echo -e "\nSpotify installed!" - -# We install the prerequisites to build and install the patch (Git and Rust will be installed and not removed) -sudo apt install git make build-essential -y -which rustc &> /dev/null || wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installRust.sh -O - | ( bash; source "$HOME"/.cargo/env ) # install rust if not already installed - -# Download and build the patch -git clone https://github.com/abba23/spotify-adblock.git -cd spotify-adblock || exit -make - -# Install the patch -sudo make install - -# Removing sourcecode folder -cd .. -rm -rf spotify-adblock - -# We replace the Ubuntu desktop shortcut if needed -if [ -f /usr/share/applications/spotify.desktop ] ; then - sudo sed -i "7s#.*#Exec=env LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify %U#" /usr/share/applications/spotify.desktop -fi - -# Remove banner -wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/removeBannerSpotify.sh -O - | bash - -echo -e "\nSpotify patched! 🎉" diff --git a/installSyncthing.sh b/installSyncthing.sh deleted file mode 100644 index 493b033..0000000 --- a/installSyncthing.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash - -# We add the official deposit of Syncthing -which curl &> /dev/null || sudo apt update && sudo apt install curl -y # install curl if not already installed -sudo curl -s -o /usr/share/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg -echo "deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list - -# Install Syncthing -sudo apt update -sudo apt install syncthing -y -echo -e "\nSyncthing installed!" - -# Launch it at startup -sudo systemctl enable syncthing@"$USER".service -sudo systemctl start syncthing@"$USER".service - -# We remove the Ubuntu desktop shortcut only if it already exists -if [ -f /usr/share/applications/syncthing-start.desktop ] -then - sudo mv /usr/share/applications/syncthing-start.desktop /usr/share/applications/syncthing-start.desktop.bak - echo -e "\nSyncthing Start-icon removed!" -fi - -echo -e "\nSyncthing configured to start at startup! 🎉" diff --git a/installTLDR.sh b/installTLDR.sh deleted file mode 100644 index 81728a0..0000000 --- a/installTLDR.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env bash - -# Install Rust if not already installed -which rustc &> /dev/null || wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installRust.sh -O - | ( bash; source "$HOME"/.cargo/env ) - -# Install tldr -cargo install tealdeer - -# Update database -tldr --update - -# Add completion for fish -# Download the file from the latest release... -latest=$(wget -qO- https://api.github.com/repos/dbrgn/tealdeer/releases/latest) -url=$(grep 'browser_download_url": ".*/completions_fish"' <<< "$latest" | awk '{ print substr ($0, 32 ) }' | awk '{ print substr( $0, 1, length($0)-1 ) }') -wget -q --show-progress "$url" -O completions_fish - -# Move it to his correct location -mv completions_fish ~/.config/fish/completions/tldr.fish - -echo -e "\ntldr installed! 🎉" diff --git a/installgl4D.sh b/installgl4D.sh deleted file mode 100644 index de1aefa..0000000 --- a/installgl4D.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/usr/bin/env bash - -# Installing depedencies -sudo apt update -sudo apt install libsdl2-dev libsdl2-image-dev git pkg-config automake make autoconf libtool -y - -# Downloading and building GL4D -git clone https://github.com/noalien/GL4Dummies.git -cd GL4Dummies || exit -make -f Makefile.autotools -./configure -make - -# Installing GL4D -sudo make install - -# Removing sourcecode -cd .. -rm -rf GL4Dummies - -# Fix for shared libraries (https://stackoverflow.com/a/9395355) -sudo ldconfig - -# Changing env variables path and ld_library_path -# To correct locations to all the shell installed - -# To .bashrc if exists -if [ -f "$HOME"/.bashrc ] ; then - echo "" >> "$HOME"/.bashrc - echo "# GL4Dummies" >> "$HOME"/.bashrc - echo "export PATH=\$PATH:\$HOME/local/bin" >> "$HOME"/.bashrc - echo "export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:\$HOME/local/lib" >> "$HOME"/.bashrc - echo "" >> "$HOME"/.bashrc -fi - -# To .zshrc if exists -if [ -f "$HOME"/.zshrc ] ; then - echo "" >> "$HOME"/.zshrc - echo "# GL4Dummies" >> "$HOME"/.zshrc - echo "export PATH=\$PATH:\$HOME/local/bin" >> "$HOME"/.zshrc - echo "export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:\$HOME/local/lib" >> "$HOME"/.zshrc - echo "" >> "$HOME"/.zshrc -fi - -# If config.fish exists -if [ -f "$HOME"/.config/fish/config.fish ] ; then - echo "" >> "$HOME"/.config/fish/config.fish - echo "# GL4Dummies" >> "$HOME"/.config/fish/config.fish - echo "set -gx PATH \$HOME/local/bin \$PATH" >> "$HOME"/.config/fish/config.fish - echo "set -gx LD_LIBRARY_PATH \$HOME/local/lib $LD_LIBRARY_PATH" >> "$HOME"/.config/fish/config.fish - echo "" >> "$HOME"/.config/fish/config.fish -fi - -echo -e "\nGL4D library installed! 🎉" -echo "You may need to restart your shell to apply changes." -echo "When using , add -lSDL2_image flag with gcc." diff --git a/removeBannerSpotify.sh b/removeBannerSpotify.sh deleted file mode 100644 index fded407..0000000 --- a/removeBannerSpotify.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash - -cd "$(dirname "$(realpath -L "$(which spotify)")")"/Apps/ || exit # absolute path to Spotify - -sudo cp xpui.spa xpui.spa_bak # create a backup, in case of trouble -sudo bash -c "unzip -p xpui.spa xpui.js | sed 's/{adsEnabled:\!0}/{adsEnabled:false}/' > xpui.js" -sudo zip --update xpui.spa xpui.js -sudo rm xpui.js - -echo -e "\nSpotify banner removed! 🎉" diff --git a/ubuntuConfiguration.sh b/ubuntuConfiguration.sh deleted file mode 100644 index 528e601..0000000 --- a/ubuntuConfiguration.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/usr/bin/env bash - -# Nautilus -# Fetching customs keyboard shortcuts -CUSTOM_KEYBINDINGS_LIST=$(gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings) -if [[ $CUSTOM_KEYBINDINGS_LIST == "@as []" ]] # creating new list if not exists -then - CUSTOM_KEYBINDINGS_LIST="['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/nautilus-shortcut/']" -else # if already existing, adding our new element - CUSTOM_KEYBINDINGS_LIST="${CUSTOM_KEYBINDINGS_LIST::-1}, '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/nautilus-shortcut/']" -fi -gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "$CUSTOM_KEYBINDINGS_LIST" # updating the list - -# Naming it -gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/nautilus-shortcut/ name 'Nautilus' # set name -gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/nautilus-shortcut/ command 'nautilus -w' # set command -gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/nautilus-shortcut/ binding 'E' # set shortcut - -echo -e "\nNautilus shortcut added (Super+E)!" - -# Desktop modifications -# Remove the Trash icon from the bar -gsettings set org.gnome.shell.extensions.dash-to-dock show-trash false -echo "Trash icon removed from the dock!" - -# Move the Menu Button to the top of the bar -gsettings set org.gnome.shell.extensions.dash-to-dock show-apps-at-top true -echo "Menu button moved from left to right in the dock!" - -# Move the taskbar to the bottom -gsettings set org.gnome.shell.extensions.dash-to-dock dock-position BOTTOM -echo "Dock moved from the left to the bottom!" - -# Add minimized window on dock click -gsettings set org.gnome.shell.extensions.dash-to-dock click-action minimize -echo "Window are now minimized when clicked in te dock!" - -# Show battery pourcentage -gsettings set org.gnome.desktop.interface show-battery-percentage true -echo "Battery pourcentage now displayed!" - -# Change size of icon in the Dock -sizedock=29 -gsettings set org.gnome.shell.extensions.dash-to-dock dash-max-icon-size $sizedock -echo "Icon in the dock changed from 40 to $sizedock!" - -# Icons -# Path where icons are saved -pathicons='/usr/share/applications' -apps=("debian-xterm" "debian-uxterm" "software-properties-drivers" "software-properties-livepatch") - -# We remove the Ubuntu desktop shortcut only if it already exists -for app in "${apps[@]}" -do - if [ -f $pathicons/"$app".desktop ] - then - sudo mv $pathicons/"$app".desktop $pathicons/"$app".desktop.bak - echo "$app's icon removed!" - fi -done - -# Dark theme -gsettings set org.gnome.desktop.interface gtk-theme "Yaru-dark" - -echo -e "\nGlobal Ubuntu modifications applied! 🎉" diff --git a/update.sh b/update.sh deleted file mode 100644 index 32a5434..0000000 --- a/update.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash - -if grep "Ubuntu" /proc/version > /dev/null || grep "WSL" /proc/version > /dev/null; -then - # Update Java - fish -c "sdk update" - fish -c "sdk upgrade" - echo -e "\nJava updated! 🎉" - - if grep "Ubuntu" /proc/version > /dev/null; - then - - # Update Obsidian - wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installObsidian.sh -O tmp.sh && bash tmp.sh; rm tmp.sh - - # Update Parsec - wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installParsec.sh -O tmp.sh && bash tmp.sh; rm tmp.sh - - fi -else - echo "Your distribution isn't supported." -fi