...
Now go to your Magento root directory, say it's named magento2, and execute the following commands:
sudo chmod -R 755 . php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy sudo chmod -R 777 var pub
After running all these, your Command line/Terminal window might look like this:
...