Last active
September 12, 2018 20:17
-
-
Save AndresPineros/215805df4decd454fe0b68ce28f97e89 to your computer and use it in GitHub Desktop.
Dependencies for development environment
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
#!/bin/bash | |
# System dependencies | |
sudo apt-get update -y | |
# System tools | |
sudo apt-get install terminator tree vim wget curl -y | |
sudo apt-get install --no-install-recommends gnome-panel -y | |
sudo apt-get install nautilus-open-terminal -y | |
# External drivers | |
#sudo add-apt-repository ppa:graphics-drivers -y | |
#sudo apt-get install nvidia-387 -y | |
# Create folder structure | |
mkdir -p ~/Desktop/Programs | |
# Ansible | |
sudo apt-get update -y | |
sudo apt-get install software-properties-common -y | |
sudo apt-add-repository ppa:ansible/ansible -y | |
sudo apt-get update -y | |
sudo apt-get install ansible -y | |
# Java | |
sudo apt-get install -y python-software-properties debconf-utils | |
sudo add-apt-repository -y ppa:webupd8team/java | |
sudo apt-get update -y | |
echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | sudo debconf-set-selections | |
sudo apt-get install -y oracle-java8-installer | |
# Maven | |
cd ~/Desktop/Programs | |
wget -O maven.tar.gz http://www-eu.apache.org/dist/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz | |
tar -xf maven.tar.gz | |
rm maven.tar.gz | |
m2home=~/Desktop/Programs/apache-maven-3.5.4 | |
echo "export M2_HOME=${m2home}" >> ~/.bashrc | |
echo "export PATH=${m2home}/bin:${PATH}" >> ~/.bashrc | |
# Nvm with latest node | |
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash | |
# Google Chrome | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list | |
sudo apt-get update -y | |
sudo apt-get install google-chrome-stable -y | |
# Vscode - de corre con "code" en consola. | |
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 -y | |
sudo apt-get install code -y # or code-insiders | |
# STS | |
cd ~/Desktop/Programs | |
wget -O sts.tar.gz http://download.springsource.com/release/STS/3.9.2.RELEASE/dist/e4.7/spring-tool-suite-3.9.2.RELEASE-e4.7.2-linux-gtk-x86_64.tar.gz | |
tar -xf sts.tar.gz | |
rm sts.tar.gz | |
# IntelliJ | |
cd ~/Desktop/Programs | |
wget -O https://download.jetbrains.com/idea/ideaIC-2017.3.2.tar.gz | |
tar -xf ideaIC-2017.3.2.tar.gz | |
rm ideaIC-2017.3.2.tar.gz | |
# Slack | |
cd ~/Desktop/Programs | |
wget https://downloads.slack-edge.com/linux_releases/slack-desktop-3.0.2-amd64.deb | |
sudo dpkg -i slack-desktop-3.0.2-amd64.deb | |
rm slack-desktop-3.0.2-amd64.deb | |
# Docker | |
cd ~/Desktop | |
curl -fsSL get.docker.com -o get-docker.sh | |
sudo sh get-docker.sh | |
sudo usermod -aG docker $USER | |
rm get-docker.sh | |
# Terraform | |
wget https://releases.hashicorp.com/terraform/0.11.7/terraform_0.11.7_linux_amd64.zip -O terraform.zip | |
unzip terraform.zip | |
rm terraform.zip | |
sudo mv terraform /usr/local/bin/terraform | |
# Kubectl | |
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl | |
chmod +x ./kubectl | |
sudo mv ./kubectl /usr/local/bin/kubectl | |
# Kubectl autocompletion | |
echo "source <(kubectl completion bash)" >> ~/.bashrc | |
source ~/.bashrc | |
# Install Kubernetes aliases | |
cd ~/ | |
wget https://raw.githubusercontent.com/ahmetb/kubectl-alias/master/.kubectl_aliases | |
echo "[ -f ~/.kubectl_aliases ] && source ~/.kubectl_aliases" >> ~/.bashrc | |
source ~/.bashrc | |
# Kubectx | |
sudo git clone https://github.com/ahmetb/kubectx /opt/kubectx | |
sudo ln -s /opt/kubectx/kubectx /usr/local/bin/kubectx | |
sudo ln -s /opt/kubectx/kubens /usr/local/bin/kubens | |
# Kops | |
wget -O kops https://github.com/kubernetes/kops/releases/download/1.9.1/kops-linux-amd64 | |
chmod +x ./kops | |
sudo mv ./kops /usr/local/bin/ | |
# AWS CLI | |
pip install awscli --upgrade --user | |
# NetExtender | |
cd ~/Desktop/Programs | |
wget -O netextender.tgz https://sslvpn.demo.sonicwall.com/NetExtender.x86_64.tgz | |
tar -xvf netextender.tgz | |
rm netextender.tgz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment