Skip to content

Instantly share code, notes, and snippets.

@abenrob
Last active March 26, 2018 13:35
Show Gist options
  • Save abenrob/880768ff758bde16466b4d4fbac7f8af to your computer and use it in GitHub Desktop.
Save abenrob/880768ff758bde16466b4d4fbac7f8af to your computer and use it in GitHub Desktop.

git

sudo apt-get install git

build-essentials

sudo apt-get install build-essential libssl-dev

curl

sudo apt-get install curl

jq (json parser)

sudo apt-get install jq

xclip

sudo apt-get install xclip

SSH

ssh-keygen -t rsa
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa

xclip -sel clip < ~/.ssh/id_rsa.pub to copy id_rsa.pub to clipboard

nodejs

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash

source .bashrc

nvm install node

postgres/postgis

sudo apt-get install -y postgresql postgresql-contrib

sudo apt-get install -y postgis postgresql-9.5-postgis-2.2

sudo nano /etc/postgresql/9.5/main/pg_hba.conf

  • change local all postgres peer
  • to local all postgres trust (desktop - it's gonna be ok)

sudo service postgresql restart

psql -U postgres

\password postgres \q

sudo passwd postgres

QGIS

Add to /etc/apt/sources.list:

deb http://qgis.org/debian xenial main
deb-src http://qgis.org/debian xenial main

sudo apt-get update

sudo apt-get install qgis python-qgis qgis-plugin-grass

anaconda

curl -o- https://repo.continuum.io/archive/Anaconda3-4.3.1-Linux-x86_64.sh | bash

vcode

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] http://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'

sudo apt-get update

sudo apt-get install code

docker

do

First, add the GPG key for the official Docker repository to the system:

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

Add the Docker repository to APT sources:

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

Next, update the package database with the Docker packages from the newly added repo:

sudo apt-get update

Make sure you are about to install from the Docker repo instead of the default Ubuntu 16.04 repo:

apt-cache policy docker-ce

Finally, install Docker:

sudo apt-get install -y docker-ce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment