-
-
Save pythoninthegrass/77f83192af9613017f59132094be2dad to your computer and use it in GitHub Desktop.
Thing to do after installation of Elementary OS Juno (5.0)
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 | |
# SOURCE: https://gist.github.com/konstantinbo/d21dfa5c7a0edbaec8244f97eb177209 | |
# Uninstall unnecessary programs | |
# sudo apt-get purge epiphany-browser epiphany-browser-data #browser | |
# sudo apt-get purge pantheon-mail | |
# Update your system (clear apt cache/locks first) | |
sudo rm -rf /var/cache/apt/archives | |
sudo rm -rf /var/cache/apt/archives/lock | |
sudo rm -rf /var/lib/apt/lists/lock | |
sudo rm -rf /var/lib/dpkg/lock | |
sudo rm -rf /var/lib/dpkg/lock-frontend | |
sudo dpkg --configure -a | |
sudo apt --fix-broken install -y # fix previous installs | |
sudo apt-get update && sudo apt upgrade -y && sudo apt-get dist-upgrade -y | |
# Bring back Software and Updates from Ubuntu | |
sudo apt-get install -y software-properties-gtk | |
# Properties Commons (to install PPAs) | |
sudo apt-get install -y software-properties-common | |
# Third-party repos | |
sudo add-apt-repository -y ppa:philip.scott/elementary-tweaks | |
sudo add-apt-repository -y ppa:teejee2008/ppa | |
sudo add-apt-repository -y ppa:linrunner/tlp | |
sudo add-apt-repository -y ppa:snwh/pulp | |
# vscode | |
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg | |
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/ | |
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list' | |
# essential programs | |
sudo apt-get install -y apt-transport-https build-essential code-insiders elementary-tweaks feh firefox gdebi git gparted htop net-tools openssh-server p7zip-full p7zip-rar rar speedcrunch steam unrar unzip vim vlc zip timeshift tlp tlp-rdw | |
# Java | |
# sudo apt-get install openjdk-8-jre openjdk-8-jdk | |
# Multimedia Codecs | |
sudo apt-get install -y ubuntu-restricted-extras libavcodec-extra ffmpeg | |
# Ultimate vim | |
git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime | |
sh ~/.vim_runtime/install_awesome_vimrc.sh | |
# TODO: error handling for wget | |
# Google Chrome | |
sudo apt-get install libxss1 libappindicator1 libindicator7 | |
## 1. downloading last stable package | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
## 2. installing package | |
sudo dpkg -i google-chrome-stable_current_amd64.deb | |
## 3. fixing broken dependencies | |
sudo apt-get install -f | |
## 4. Enable maximize and minimize button on Google Chrome | |
#gconftool-2 --set /apps/metacity/general/button_layout --type string ":minimize:maximize:close" | |
rm google-chrome*.deb # free up space | |
# Install Spotify | |
# TODO: flatpack install; manual install fails | |
# Reduce overheating and improve battery life | |
## starting application | |
sudo tlp start | |
# Paper theme | |
# install icon theme | |
sudo apt-get install -y paper-icon-theme | |
# install cursor theme | |
sudo apt-get install -y paper-cursor-theme | |
# Download git repos | |
mkdir -p ~/git | |
# Git setup | |
# read username | |
printf "Enter your username for git commits: \n" | |
# read email | |
printf "Enter your email for git: \n" | |
git config --global user.name ${username} | |
git config --global user.email ${email} | |
# Python2/3 pip | |
sudo apt-get install -y python3-dev python-pip python3-pip | |
# pip libs | |
sudo -H pip3 install scipy pandas numpy sympy matplotlib html5lib thefuck | |
# my dotfiles | |
# git clone https://github.com/konstantinbo/dotfiles.git ~/Documents/Github/dotfiles/ | |
# delete existing files in home directory | |
# rm ~/.aliases | |
# rm ~/.zshrc | |
# create soft links | |
# ln -s /home/$USER/Documents/Github/dotfiles/.aliases /home/$USER/.aliases | |
# ln -s /home/$USER/Documents/Github/dotfiles/.zshrc /home/$USER/.zshrc | |
# source ~/.zshrc | |
# source ~/.aliases | |
# Clean up | |
sudo apt-get autoremove -y | |
sudo apt-get autoclean -y | |
# TODO: get SF fonts and infinality(sic?) | |
# Effs up line formatting in ssh vi -- save best for last | |
# Fira code | |
# mkdir -p ~/.local/share/fonts | |
# for type in Bold Light Medium Regular Retina; do | |
# wget -O ~/.local/share/fonts/FiraCode-${type}.ttf \ | |
# "https://github.com/tonsky/FiraCode/blob/master/distr/ttf/FiraCode-${type}.ttf?raw=true"; | |
# done | |
# fc-cache -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment