All in vain

Some rants about technology, PHP, people, tools, web etc from a developers perspective. Feel free to copy ideas, code or anything from here.

Thursday, October 09, 2014

running grunt cli shows nothing on ubuntu 14

No comments
If you are running ubuntu and you followed some tutorial which lists first step in the installation of nodeJS you might have run

sudo apt-get install node

and when you tried to do your basic hello world this would have failed with the console reporting missing NodejS binary. The reason being on ubuntu NodeJS is called nodejs and there is another legacy program called node. You must run the following commands to ensure GruntJS works fine:

sudo apt-get --purge remove node

ln -s /usr/bin/nodejs /usr/bin/node

grunt -v

Now you should be able to run Grunt without any issue!

Saturday, September 13, 2014

docker fails to run on Ubuntu LTS 14?

No comments
If you try to follow the documentation on docker.com and install the latest version you might encounter this error:

Cannot connect to the Docker daemon. Is 'docker -d' running on this host?

to solve this run:

sudo apt-get install apparmor;sudo docker -d &