92 lines
2.8 KiB
Bash
92 lines
2.8 KiB
Bash
if grep "Ubuntu" /proc/version > /dev/null || grep "WSL" /proc/version > /dev/null;
|
|
then
|
|
git clone -c http.sslverify=false https://git.kennel.ml/Anri/myLinuxConfiguration.git
|
|
cd myLinuxConfiguration
|
|
# Update of APT
|
|
sudo apt update
|
|
|
|
# Upgrade and clean already installed packages
|
|
sudo apt upgrade -y
|
|
sudo apt autoremove -y
|
|
|
|
# Install Fish
|
|
bash installFish.sh
|
|
|
|
# Install gl4D
|
|
bash installgl4D.sh
|
|
|
|
# Install Latex
|
|
sudo apt install texlive-full -y
|
|
|
|
# Install Java
|
|
bash installJava.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 Spotify
|
|
bash installSpotify.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
|
|
|
|
# Install Obsidian
|
|
bash installObsidian.sh
|
|
|
|
# Install Flameshot
|
|
sudo apt install flameshot -y
|
|
|
|
# Install Parsec
|
|
bash installParsec.sh
|
|
|
|
# Install Java
|
|
bash installJava.sh
|
|
|
|
# Install OnlyOffice
|
|
bash installOnlyoffice.sh
|
|
|
|
# Install EmojiPicker and its keyboard shortcut
|
|
bash installEmojiPicker.sh
|
|
|
|
# Setup some others keyboard shortcut
|
|
bash createKeyboardsShortcut.sh
|
|
|
|
# Install clipboard history
|
|
bash installClipboardHistory.sh
|
|
|
|
# info
|
|
echo ""
|
|
echo ""
|
|
echo "Take 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
|
|
|
|
# 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
|
|
|
|
# Change LTS update to normal
|
|
sudo sed -i "16s#.*#Prompt=normal#" /etc/update-manager/release-upgrades
|
|
|
|
echo ""
|
|
echo ""
|
|
echo "Take 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."
|
|
fi
|
|
|
|
# Supprime le repo
|
|
cd ..
|
|
rm -rf myLinuxConfiguration
|
|
else
|
|
echo "Your distribution isn't supported."
|
|
fi
|