Prepare new computer for development on ubuntu

install chromium:

sudo apt-get install chromium-browser

install vim, git, ssh:

sudo apt-get install vim
sudo apt-get install git-all
sudo apt-get install openssh-server

copy your .ssh/ folder with ssh keys from old computer

scp -r /home/usernameInOldComputer/.ssh username@newcomputer:/home/usernameInNewComputer

install nginx

sudo apt-get install nginx

install php5 ( skip it as obsolete, and install php 7!)

sudo apt-get install php5-fpm
sudo apt-get install php5-mcrypt
sudo php5enmod mcrypt(it enables mcrypt)
sudo apt-get install php5-cli
sudo service php5-fpm restart

install php 7 and additional packages

sudo apt-get install php7.0-fpm
sudo apt-get install php7.0-mysql
sudo apt-get install mcrypt php7.0-mcrypt
sudo apt-get install php-mbstring
sudo apt-get install phpunit
sudo apt-get install php7.0-zip 
sudo apt-get install php7.0-dom

Enable the PHP mcrypt and mbstring extensions

sudo phpenmod mcrypt
sudo phpenmod mbstring

You could need to update Nginx server block with new php7.0 socket path.

fastcgi_pass unix:/run/php/php7.0-fpm.sock;

install mysql server ( this can be obsolete! )

sudo apt-get install mysql-server

install curl

sudo apt-get install curl

install bower:

npm install -g bower

install build tool:

sudo apt-get install build-essential

install node and npm without having to sudo:

echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install
curl https://www.npmjs.org/install.sh | sh

install virtual box downloading it from https://www.virtualbox.org/wiki/Downloads
install it:

sudo dpkg -i virtualbox-5.1_5.1.2-108956-Ubuntu-trusty_amd64.deb

if installation process fails due to missing dependencies, run:

sudo apt-get -f install

install vagrant downloading it from https://www.vagrantup.com/downloads.html
install it:

sudo dpkg -i vagrant_1.7.2_x86_64.deb

download and install composer: https://getcomposer.org/download/
move composer.phar into path:

sudo mv composer.phar /usr/local/bin/composer

Thanks to:

https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-14-04-lts
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-with-nginx-on-an-ubuntu-14-04-server
https://help.ubuntu.com/12.04/serverguide/mysql.html
https://gist.github.com/isaacs/579814
https://www.howtoforge.com/tutorial/ubuntu-vagrant-install-and-getting-started/
https://magazine.joomla.org/issues/issue-may-2016/item/3033-how-to-upgrade-your-website-php-version