Last active
April 6, 2022 09:36
-
-
Save Thibb1/006e192512f9ebc2ae4021c56c6bad01 to your computer and use it in GitHub Desktop.
Ubuntu Install Epitech
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
clear | |
set -e | |
# BASH COLORS | |
green() { printf "\033[32m${1}\033[0m\n\n"; } | |
orange() { printf "\033[38;5;208m${1}\033[0m\n"; } | |
blue() { printf "\033[38;5;27m${1}\033[0m\n" ; } | |
purpl() { printf "\033[38;5;92m${1}\033[0m\n" ; } | |
orange "Adding VS Code repository..." | |
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg | |
sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/ | |
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list' | |
rm -f packages.microsoft.gpg | |
sudo apt-get update -y | |
green "Repository added" | |
orange "Packages installation..." | |
sudo apt-get install -y make \ | |
cmake \ | |
perl \ | |
gcc \ | |
curl \ | |
wget \ | |
build-essential \ | |
ocaml \ | |
libncurses5 \ | |
git \ | |
python3 \ | |
valgrind \ | |
zsh \ | |
apt-transport-https \ | |
code \ | |
ssh \ | |
xclip \ | |
fonts-firacode \ | |
haskell-platform \ | |
texlive-latex-base \ | |
texlive-fonts-recommended \ | |
texlive-fonts-extra \ | |
texlive-latex-extra | |
sudo apt-get update -y | |
sudo apt-get upgrade -y | |
green "Packages installed" | |
orange "Generating ssh" | |
ssh-keygen -t ed25519 -C "<student>@epitech.eu" | |
eval "$(ssh-agent -s)" | |
xclip -selection clipboard < ~/.ssh/id_ed25519.pub | |
green "SSH generated and copied in your clipboard go to https://github.com/settings/keys to add the new key" | |
orange "Installing ohmyzsh" | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
green "Ohmyzsh installed" | |
blue "Ubuntu Distro have been installed" | |
blue "Provided by Thibault B. - 2021 - Epitech Lille Promo 2025" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Don't forget to replace <student> by your student name