2021-11-12 13:46:45 +01:00
|
|
|
if grep "Ubuntu" /proc/version > /dev/null || grep "WSL" /proc/version > /dev/null;
|
|
|
|
then
|
2021-11-12 15:55:49 +01:00
|
|
|
# Update of APT
|
|
|
|
sudo apt update
|
|
|
|
|
2021-12-28 17:05:59 +01:00
|
|
|
which git &> /dev/null || sudo apt install git -y # install git if not already installed
|
2021-11-25 20:29:49 +01:00
|
|
|
|
|
|
|
git clone -c http.sslverify=false https://git.kennel.ml/Anri/myLinuxConfiguration.git
|
|
|
|
cd myLinuxConfiguration
|
|
|
|
|
2021-11-14 21:27:02 +01:00
|
|
|
# Upgrade and clean already installed packages
|
|
|
|
sudo apt upgrade -y
|
2021-12-23 15:20:47 +01:00
|
|
|
echo -e "\nUpgrading packages done! 🎉"
|
2021-12-28 17:05:59 +01:00
|
|
|
|
2021-11-14 21:27:02 +01:00
|
|
|
sudo apt autoremove -y
|
2021-12-23 15:20:47 +01:00
|
|
|
echo -e "\nCleaning unnecessary packages done! 🎉"
|
2021-11-14 21:27:02 +01:00
|
|
|
|
2021-11-12 13:46:45 +01:00
|
|
|
# Install Fish
|
|
|
|
bash installFish.sh
|
2021-11-12 13:42:38 +01:00
|
|
|
|
2021-11-12 13:46:45 +01:00
|
|
|
# Install gl4D
|
|
|
|
bash installgl4D.sh
|
2021-11-12 13:42:38 +01:00
|
|
|
|
2021-11-12 13:46:45 +01:00
|
|
|
# Install Latex
|
2021-12-28 16:29:30 +01:00
|
|
|
bash installLatex.sh
|
2021-11-12 13:42:38 +01:00
|
|
|
|
2021-11-12 13:46:45 +01:00
|
|
|
# Install Java
|
|
|
|
bash installJava.sh
|
2021-11-12 13:42:38 +01:00
|
|
|
|
2021-11-14 22:05:14 +01:00
|
|
|
# Install Python useful tools
|
2022-01-07 23:31:13 +01:00
|
|
|
sudo apt install python3-virtualenv python3-tk python3-pygments -y
|
|
|
|
echo -e "\nPython's vEnv, Pygments and Tkinter installed! 🎉"
|
2021-11-14 22:05:14 +01:00
|
|
|
|
|
|
|
# Install Rust
|
|
|
|
bash installRust.sh
|
|
|
|
|
2021-12-19 22:40:19 +01:00
|
|
|
# Sign all commits by default with my GPG key
|
|
|
|
git config --global commit.gpgsign true
|
2021-12-23 15:20:47 +01:00
|
|
|
echo -e "\nGPG are now used by default in Git! 🎉"
|
2021-12-19 22:40:19 +01:00
|
|
|
|
2022-01-20 11:49:40 +01:00
|
|
|
# Install tldr
|
|
|
|
bash installTLDR.sh
|
|
|
|
|
2022-01-25 12:53:14 +01:00
|
|
|
# Install Git LFS
|
|
|
|
bash installGitLFS.sh
|
|
|
|
|
2022-02-03 17:51:02 +01:00
|
|
|
# Install OBS
|
|
|
|
bash installOBS.sh
|
|
|
|
|
2021-11-12 13:46:45 +01:00
|
|
|
if grep "Ubuntu" /proc/version > /dev/null;
|
|
|
|
then
|
|
|
|
# Install Brave
|
|
|
|
bash installBrave.sh
|
2021-11-12 13:42:38 +01:00
|
|
|
|
2021-11-12 13:46:45 +01:00
|
|
|
# Uninstall Firefox
|
|
|
|
sudo snap remove firefox && rm -r $HOME/snap/firefox
|
2021-11-12 13:42:38 +01:00
|
|
|
|
2021-11-17 20:15:04 +01:00
|
|
|
# Install VSCode
|
2021-11-25 21:20:05 +01:00
|
|
|
sudo snap install code --classic
|
2021-12-23 15:20:47 +01:00
|
|
|
echo -e "\nVS Code installed! 🎉"
|
2021-11-17 20:15:04 +01:00
|
|
|
|
2021-11-12 13:46:45 +01:00
|
|
|
# Install Spotify
|
|
|
|
bash installSpotify.sh
|
2021-11-12 13:42:38 +01:00
|
|
|
|
2021-11-26 10:53:16 +01:00
|
|
|
# Remove Spotify's bottom-banner
|
|
|
|
bash removeBannerSpotify.sh
|
|
|
|
|
2021-11-12 13:46:45 +01:00
|
|
|
# Install Syncthing
|
|
|
|
bash installSyncthing.sh
|
2021-11-12 13:42:38 +01:00
|
|
|
|
2021-11-12 13:46:45 +01:00
|
|
|
# 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
|
2021-12-23 15:20:47 +01:00
|
|
|
echo -e "\nDiscord installed! 🎉"
|
2021-11-12 13:42:38 +01:00
|
|
|
|
2021-11-12 13:46:45 +01:00
|
|
|
# Install Obsidian
|
|
|
|
bash installObsidian.sh
|
2021-11-12 13:42:38 +01:00
|
|
|
|
2021-11-12 13:46:45 +01:00
|
|
|
# Install Flameshot
|
2021-12-23 15:11:06 +01:00
|
|
|
bash installFlameshot.sh
|
2021-11-12 13:42:38 +01:00
|
|
|
|
2021-11-12 13:46:45 +01:00
|
|
|
# Install Parsec
|
|
|
|
bash installParsec.sh
|
2021-11-12 13:42:38 +01:00
|
|
|
|
2021-11-12 13:46:45 +01:00
|
|
|
# Install OnlyOffice
|
2022-01-05 19:33:32 +01:00
|
|
|
sudo snap install onlyoffice-desktopeditors
|
|
|
|
echo -e "\nOnlyOffice installed! 🎉"
|
2021-11-12 13:42:38 +01:00
|
|
|
|
2021-11-12 13:46:45 +01:00
|
|
|
# Install EmojiPicker and its keyboard shortcut
|
2021-11-20 20:58:25 +01:00
|
|
|
wget -q --show-progress https://raw.githubusercontent.com/GaZaTu/x11-emoji-picker/master/install.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
|
2021-11-12 13:50:14 +01:00
|
|
|
|
2021-12-28 16:48:40 +01:00
|
|
|
# Setup Ubuntu configuration
|
|
|
|
bash ubuntuConfiguration.sh
|
2021-11-12 15:41:38 +01:00
|
|
|
|
2021-11-12 15:55:49 +01:00
|
|
|
# Install clipboard history
|
|
|
|
bash installClipboardHistory.sh
|
|
|
|
|
2021-12-01 11:46:38 +01:00
|
|
|
# Install MultiMC
|
|
|
|
bash installMultiMC.sh
|
|
|
|
|
2021-12-26 14:39:09 +01:00
|
|
|
# Install Signal
|
|
|
|
bash installSignal.sh
|
|
|
|
|
2021-12-31 15:41:33 +01:00
|
|
|
# Install KolourPaint
|
|
|
|
sudo snap install kolourpaint
|
|
|
|
echo -e "\nKolourPaint installed! 🎉"
|
|
|
|
|
2021-12-28 17:05:59 +01:00
|
|
|
# Infos
|
2021-12-23 15:02:47 +01:00
|
|
|
echo -e "\n\nTake care, you may need to install manually some others stuff, check the README (and the logs) of"
|
2021-11-12 13:50:14 +01:00
|
|
|
echo "the project => https://git.kennel.ml/Anri/myLinuxConfiguration/src/branch/main/README.md"
|
|
|
|
else # WSL
|
2021-11-14 15:48:14 +01:00
|
|
|
# Create Z and Y mount folders for my WSL custom configuration
|
|
|
|
sudo mkdir /mnt/z && sudo mkdir /mnt/y
|
2021-12-23 15:20:47 +01:00
|
|
|
echo -e "\nMounts folder (Z & Y) created! 🎉"
|
2021-11-14 15:48:14 +01:00
|
|
|
|
2021-11-14 21:22:30 +01:00
|
|
|
# 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
|
2021-12-23 15:20:47 +01:00
|
|
|
echo -e "\nSU password removed! 🎉"
|
2021-11-14 21:22:30 +01:00
|
|
|
|
2021-11-14 21:31:45 +01:00
|
|
|
# Change LTS update to normal
|
2021-12-30 10:36:35 +01:00
|
|
|
# sudo sed -i "16s#.*#Prompt=normal#" /etc/update-manager/release-upgrades
|
|
|
|
# echo -e "\nChannel update moved from \"LTS\" to \"normal\"! 🎉"
|
2021-11-14 21:31:45 +01:00
|
|
|
|
2021-11-14 22:56:04 +01:00
|
|
|
# Remove snap for WSL because it block the 21.10 update (https://github.com/microsoft/WSL/issues/6942#issuecomment-879904997)
|
2021-12-28 17:26:06 +01:00
|
|
|
# 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
|
2021-11-14 22:56:04 +01:00
|
|
|
|
2021-12-28 17:05:59 +01:00
|
|
|
# Infos
|
2021-12-23 15:02:47 +01:00
|
|
|
echo -e "\n\nTake care, by default the fish configuration is set for Ubuntu, you may need to uncomment"
|
2021-11-14 19:55:23 +01:00
|
|
|
echo "some of the lines in $HOME/.config/fish/config.fish to enable custom network disks from Windows."
|
2021-12-28 17:26:06 +01:00
|
|
|
# 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"
|
2021-11-12 13:46:45 +01:00
|
|
|
fi
|
2021-11-12 13:42:38 +01:00
|
|
|
|
2021-12-28 17:05:59 +01:00
|
|
|
# Delete this repo
|
2021-11-12 13:46:45 +01:00
|
|
|
cd ..
|
|
|
|
rm -rf myLinuxConfiguration
|
|
|
|
else
|
|
|
|
echo "Your distribution isn't supported."
|
|
|
|
fi
|