Last active
June 9, 2019 20:19
-
-
Save ma-he-sh/a3d61c16882d33532a0a949171d2d307 to your computer and use it in GitHub Desktop.
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 | |
# My ElementaryOS setup | |
# Install dependencies | |
initSETUP (){ | |
echo -e "\e[36m \e[1m [01] Installing Dependencies and Updates \e[0m" | |
sudo apt-get update && sudo apt-get dist-upgrade | |
# install elementary-tweaks | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository ppa:philip.scott/elementary-tweaks && sudo apt-get update | |
sudo apt-get install elementary-tweaks | |
# Install open-vpn | |
sudo apt-get install network-manager-openvpn | |
sudo restart network-manager | |
# Install xclip for github ssh | |
sudo apt-get install xclip | |
# Install terminator | |
sudo apt-get install terminator | |
# Install Git | |
sudo apt-get install git | |
# Install htop | |
sudo apt-get install htop | |
# Install gparted | |
sudo apt-get install gparted | |
} | |
# Clean some some stuff | |
cleanAPPS (){ | |
sudo apt-get autoremove | |
sudo apt-get autoclean | |
} | |
# Install Some apps | |
installAPPS (){ | |
echo -e "\e[36m \e[1m [02] Installing Apps \e[0m" | |
# Install firefox | |
echo -e "Installing \e[36mFirefox \e[0m" | |
sudo apt-get install firefox | |
# Install kazam | |
echo -e "Installing \e[36mKazam \e[0m" | |
sudo apt-get install kazam | |
# Install Spotify | |
echo -e "Installing \e[36mSpotify \e[0m" | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410 931FF8E79F0876134EDDBDCCA87FF9DF48BF1C90 | |
echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list | |
sudo apt-get update | |
sudo apt-get install spotify-client | |
# Install sublime-text3 | |
echo -e "Installing \e[36mSublimeText3 \e[0m" | |
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - | |
sudo apt-get install apt-transport-https | |
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list | |
sudo apt-get update && sudo apt-get install sublime-text | |
# Install visual studio code | |
echo -e "Installing \e[36mVisualStudioCode \e[0m" | |
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg | |
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg | |
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list' | |
sudo apt-get update && sudo apt-get install code | |
# Install Google-chrome | |
echo -e "Installing \e[36mGoogleChrome \e[0m" | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo dpkg -i google-chrome-stable_current_amd64.deb | |
sudo apt-get install -f | |
# Install HyperJS | |
wget https://github.com/zeit/hyper/releases/download/2.0.0/hyper_2.0.0_amd64.deb | |
sudo dpkg -i hyper_2.0.0_amd64.deb | |
sudo apt-get install -f | |
} | |
# install nodejs, pip, virtualenv, jupyter & zsh | |
installDEVTOOLS (){ | |
echo "\e[36m \e[1m [03] Installing DevTools \e[0m" | |
# Install NodeJS | |
echo -e "Installing \e[36mNodeJS \e[0m" | |
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - | |
sudo apt-get install -y nodejs | |
# Install nodemon | |
sudo npm install nodemon -g | |
# Install NativeScript for app dev | |
echo -e "Installing \e[36mNativeScript \e[0m" | |
sudo apt-get install lib32z1 lib32ncurses5 libbz2-1.0:i386 libstdc++6:i386 | |
sudo apt-get install g++ | |
sudo npm install nativescript -g --unsafe-perm | |
# Install PIP | |
echo -e "Installing \e[36mPIP \e[0m" | |
sudo apt-get install python-pip | |
sudo python -m pip install --upgrade pip | |
# Install Jupyter Notebook | |
echo -e "Installing \e[36mJupyterNotebook \e[0m" | |
sudo python -m pip install jupyter | |
# Install Virtualenv | |
echo -e "Installing \e[36mVirtualENV \e[0m" | |
sudo pip install virtualenv | |
# Install ZSH | |
sudo apt-get install zsh | |
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" | |
chsh -s /bin/zsh | |
# Install JAVA 8 | |
sudo apt-get install python-software-properties | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java8-installer | |
sudo update-alternatives --config java | |
# Install Gradle | |
sudo apt-get install gradle | |
# Installation Done | |
echo -e "\e[36m \e[1m == Installing finished == \e[0m" | |
} | |
# Github ssh setup guide | |
gitSSHguide (){ | |
echo -e "\e[36m \e[1m SETTING UP GITHUB SSH \e[0m" | |
echo -e "\e[36m \e[1m Enter Your Email: \e[0m" | |
# get email from user | |
read stremail | |
ssh-keygen -t rsa -b 4096 -C "${stremail}" | |
eval "$(ssh-agent -s)" | |
ssh-add ~/.ssh/id_rsa | |
xclip -sel clip < ~/.ssh/id_rsa.pub | |
echo -e "\e[36m \e[1m Paste Code on GitHub \e[0m" | |
} | |
# Install stuff | |
initSETUP | |
installAPPS | |
installDEVTOOLS | |
cleanAPPS | |
gitSSHguide |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment