Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# 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 | sudo apt-key add -
echo "deb stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
curl -sL | sudo -E bash -
sudo apt install -y nodejs yarn
sudo npm install -g @angular/cli
# Install dotnet core
curl | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
sudo apt update && sudo apt install -y dotnet-sdk-2.0.2
# Install java related stuff
sudo apt install maven openjdk-9-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
# Configure git
git config --global core.autocrlf input
pip install --upgrade --user awscli
# Get Oh My ZSH
zsh -c "$(curl -fsSL"
# 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