Last active
April 8, 2019 17:57
-
-
Save zsewa/e13e54d4354ec13bc8e6bb65ba547936 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
echo "Ubuntu Setup" | |
# unsecure bashrc for changes | |
sudo chattr -i ~/.bashrc | |
# Update | |
echo $"\n>>> UPDATE\n" | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get dist-upgrade | |
# delete example content | |
sudo rm -r /usr/share/example-content/ | |
rm ~/examples.desktop | |
# fix .ssh rights | |
chmod 600 ~/.ssh/* | |
chmod 644 ~/.ssh/config | |
# Drivers | |
echo $"\n>>> exFAT DRIVERS\n" | |
sudo apt-get install -y \ | |
exfat-fuse \ | |
exfat-utils | |
# Nautilus | |
echo $"\n>>> NAUTILUS EXTENSIONS\n" | |
sudo apt-get install -y \ | |
nautilus-wipe \ | |
seahorse-nautilus | |
nautilus -q | |
# vpn | |
sudo apt-get install -y \ | |
vpnc \ | |
network-manager-vpnc-gnome \ | |
resolvconf | |
# other software | |
echo $"\n>>> OTHER SOFTWARE\n" | |
# git | |
sudo apt install -y git | |
# undistract me | |
sudo apt install -y undistract-me | |
echo 'source /etc/profile.d/undistract-me.sh' >> ~/.bashrc | |
source .bashrc | |
# gnome tweak tool | |
sudo add-apt-repository universe | |
sudo apt install -y gnome-tweak-tool | |
gnome-tweaks | |
# tree | |
sudo apt install -y tree | |
# traceroute | |
sudo apt install -y traceroute | |
# JAVA | |
if ! [ -x "$(command -v java)" ]; then | |
echo $"\n>>> OPEN JDK 11\n" | |
sudo apt-get install -y openjdk-11-jdk-headless | |
fi | |
# Docker | |
if ! [ -x "$(command -v docker)" ]; then | |
echo $"\n>>> DOCKER\n" | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg2 \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository -y \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
sudo apt-get update -y | |
sudo apt-get install -y docker-ce | |
sudo groupadd docker | |
sudo usermod -aG docker $USER | |
sudo systemctl enable docker | |
fi | |
# Julia | |
if ! [ -x "$(command -v julia)" ]; then | |
echo $"\n>>> JULIA\n" | |
sudo add-apt-repository ppa:staticfloat/juliareleases | |
sudo apt-get update | |
sudo apt-cache show julia | |
sudo apt-get install -y julia julia-doc | |
julia -E 'using Pkg; Pkg.update()'; | |
else | |
julia -E 'using Pkg; Pkg.update()'; | |
fi | |
# ANACONDA | |
if ! [ -x "$(command -v conda)" ]; then | |
echo $"\n>>> PYTHON ANACONDA\n" | |
if [ ! -f ~/Downloads/Anaconda3.sh ]; then | |
wget https://repo.continuum.io/archive/Anaconda3-2018.12-Linux-x86_64.sh -O ~/Downloads/Anaconda3.sh | |
fi | |
chmod u+x ~/Downloads/Anaconda3.sh | |
sh ~/Downloads/Anaconda3.sh -u | |
fi | |
# Restricted Extras | |
echo $"\n>>> Restricted extras\n" | |
sudo apt-get install -y ubuntu-restricted-extras | |
# open some tabs for software downloads | |
#firefox https://www.jetbrains.com/toolbox/download/download-thanks.html | |
#firefox https://www.balena.io/etcher/ | |
#firefox https://rambox.pro/#ce | |
# eduroam with TUM (Technical University of Munich) and/or LMU (Ludwig Maximilian University of Munich) credentials | |
#wget https://www.lrz.de/services/netz/wlan/eduroam/eduroam-mwn-linux.sh -O ~/Downloads/eduroam-mwn-linux.sh | |
#sh ~/Downloads/eduroam-mwn-linux.sh | |
# SECURING BASHRC AND OTHERS | |
source ~/.bashrc | |
sudo chattr +i ~/.bashrc ~/.profile ~/.bash_logout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment