Skip to content

Instantly share code, notes, and snippets.

@petrofcikmatus
Last active May 22, 2018 21:35
Show Gist options
  • Save petrofcikmatus/2341e30e1d4a1b3ffc4b23c6f9552eb6 to your computer and use it in GitHub Desktop.
Save petrofcikmatus/2341e30e1d4a1b3ffc4b23c6f9552eb6 to your computer and use it in GitHub Desktop.
What I do every time I install Ubuntu

Installing Ubuntu

Generate SSH key

ssh-keygen -t rsa -b 4096 -C "matus@petrofcik.eu"

Add SSH key to SSH Agent

ssh-add ~/.ssh/id_rsa

Copy SSH key to clipboard

sudo apt-get install xclip
xclip -sel clip < ~/.ssh/id_rsa.pub

Install Git

sudo apt-get install -y git

Install PHP from Ondrej Sury PPA

For more information visit https://launchpad.net/~ondrej/+archive/ubuntu/php

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php

Install Node/NPM

For more information visit https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions

sudo apt-get install -y curl
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

Install suggested packages

sudo apt-get install gcc g++ make

Install Yarn

For more information visit https://yarnpkg.com/lang/en/docs/install/#debian-stable

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
sudo apt-get update
sudo apt-get install -y yarn

Install Docker

For more information visit https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-using-the-repository

sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install -y docker-ce

Enable running docker without sudo. For more information visit https://docs.docker.com/install/linux/linux-postinstall/

sudo groupadd docker
sudo usermod -aG docker $USER

Enable running docker after startup.

sudo systemctl enable docker

Install PhpStorm (snap)

sudo snap install phpstorm --classic

Install Sublime Text 3

For more information visit https://www.sublimetext.com/docs/3/linux_repositories.html#apt

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
sudo apt-get install -y apt-transport-https
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update
sudo apt-get install -y sublime-text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment