Skip to content

Instantly share code, notes, and snippets.

@pgrm
Last active February 24, 2020 17:48
Show Gist options
  • Save pgrm/4127390babd84baba7a8d70082b1d00b to your computer and use it in GitHub Desktop.
Save pgrm/4127390babd84baba7a8d70082b1d00b to your computer and use it in GitHub Desktop.
#!/bin/bash
# run sudo apt update or similar and feed the password for the rest to run smooth
# this is for the old bash based on ubuntu 14.04
sudo apt update && sudo apt dist-upgrade -y
# Instlall NodeJS, Yarn and npm related dependencies
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
sudo apt install -y nodejs yarn
sudo npm install -g @angular/cli
# Install dotnet core
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo add-apt-repository universe
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-3.1
# Install java related stuff
sudo apt install maven openjdk-14-jdk-headless
# Configure docker to work with docker on windows
mkdir -p /home/peter/.local/bin
sudo ln -s /mnt/c/Program\ Files/Docker/Docker/resources/bin/docker.exe ~/.local/bin/docker
sudo ln -s /mnt/c/Program\ Files/Docker/Docker/resources/bin/docker-compose.exe ~/.local/bin/docker-compose
# Install ansible and other smaller tools
sudo add-apt-repository ppa:git-core/ppa
sudo apt-add-repository ppa:ansible/ansible
sudo apt update && sudo apt install -y ansible git python ipython python3 ipython3 python-pip build-essential vim zsh autojump unzip zip dos2unix jq pcregrep
# Configure git
git config --global core.autocrlf input
pip install --upgrade --user awscli
# Get Oh My ZSH
zsh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# make zsh default shell
echo "# Launch Zsh
if [ -t 1 ]; then
exec zsh
fi" >> ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment