Skip to content

Instantly share code, notes, and snippets.

Last active February 24, 2020 17:48
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
wget -q -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"
# 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