Skip to content

Instantly share code, notes, and snippets.

@pgrm
Last active February 11, 2019 10:56
Show Gist options
  • Save pgrm/3b8b7f657aa81a9917f526795f49cd63 to your computer and use it in GitHub Desktop.
Save pgrm/3b8b7f657aa81a9917f526795f49cd63 to your computer and use it in GitHub Desktop.
sudo apt install curl -y
# nodejs
curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
# google chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
# dotnet core
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
# yarn
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
# qgis
sudo add-apt-repository 'deb http://qgis.org/debian artful main'
gpg --keyserver keyserver.ubuntu.com --recv DD45F6C3
gpg --export --armor DD45F6C3 | sudo apt-key add -
wget -O - http://qgis.org/downloads/qgis-2017.gpg.key | gpg --import
gpg --fingerprint CAEB3DC3BDF7FB45
gpg --export --armor CAEB3DC3BDF7FB45 | sudo apt-key add -
# Docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt update
sudo apt dist-upgrade
sudo apt install -y \
dotnet-sdk-2.1 dotnet-sdk-2.2 jq nodejs python-pip google-chrome-stable \
openjdk-11-jdk openjdk-11-jre openjdk-11-source git tree \
ipython ansible vim docker-ce pcregrep yarn \
build-essential zsh autojump unzip zip dos2unix \
qgis python-qgis qgis-plugin-grass grass-gui grass-doc
sudo usermod -aG docker peter
# fix npm -g installations
mkdir -p .npm
npm config set prefix ~/.npm
echo '' >> .profile
echo "# set PATH so it includes user's private npm bin if it exists" >> .profile
echo 'if [ -d "$HOME/.local/bin" ] ; then' >> .profile
echo ' PATH="$HOME/.local/bin:$PATH"' >> .profile
echo 'fi' >> .profile
# Install angular CLI
npm install -g @angular/cli
pip install -U awscli docker-compose
# Configure git
git config --global core.autocrlf input
# Spotify
# 1. Add the Spotify repository signing keys to be able to verify downloaded packages
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
# 2. Add the Spotify repository
echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list
# 3. Update list of available packages
sudo apt-get update
# 4. Install Spotify
sudo apt-get install spotify-client
# 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
# check `chsh` and make sure /bin/bash is the default default bash,
# otherwise snap applicaitons won't show up correctly in the menu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment