Thursday, 28 July 2016

To completely uninstall node js from Ubuntu

To manually remove node js, npm and  node_modules from Ubuntu,  you need to do the following steps.

1. First of all you need to run the following command from command terminal as sudo.

sudo rm -rf /usr/local/bin/npm /usr/local/share/man/man1/node* /usr/local/lib/dtrace/node.d ~/.npm ~/.node-gyp /opt/local/bin/node opt/local/include/node /opt/local/lib/node_modules      

2. Remove node or node_modules directories from /usr/local/lib with the help of following command.

sudo rm -rf /usr/local/lib/node*                                                                                 

3. Remove node or node_modules directories from /usr/local/include with the help of following command.

sudo rm -rf /usr/local/include/node*                                                                         

5. Remove any node file or dir from /usr/local/bin with the help of following command.

sudo rm -rf /usr/local/bin/node*                                                                                
4.  Go to home directory and remove any node or node_modules directory, if exists. 

Now it is done................


Wednesday, 13 April 2016

How to Install Skype on Ubuntu 14.04

How to install Skype on Ubuntu14.04


Step 1.

  First of all add skype ppa repository by following command

sudo add-apt-repository "deb $(lsb_release -sc) partner" 


Now update your repositories by the following command

sudo apt-get update 


Now type the following command to install skype. It will take a few minutes to complete the installation.

sudo apt-get install skype 

After finishing installation you can find and start using the Skype from application launcher by typing Skype

Tuesday, 9 February 2016

How To Install Node.js on Ubuntu 14.04

Node.js is platform of Javascript  for server-side programming, developers can  quickly build network applications with the help of Node.js

To install recent version of Node.js you should install it from PPA (personal package archive) of NodeSource. From this repository you will get most recent version of Node.js

First you have to curl the PPA repository of Node.js to get access to its contents:

curl -sL | sudo bash -                              

Now you can install Node.js with the help of following command. This will install nodejs along with npm, so you do not need to install npm separately. While you are installing nodejs from this repository.

sudo apt-get install nodejs                                                                                        

Some packages need to build from source. So to work with them you need to install build-essentials. With the help of following command.

sudo apt-get install build-essential                                                                            

Now now you can check the version of nodejs and npm with the help of following command.

node -v                                                                                                                      

npm -v                                                                                                                       

Now this is done.....................................

Wednesday, 20 January 2016

Setup mail server on ubuntu 14.04 ( Postfix )

Setup mail server on ubuntu 14.04 ( Postfix )

Installing and configuring postfix.

This is easy to install postfix on ubuntu 14.04 because postfix exists on repository web servers.

In order to install postfix first you should configure FQDN and IP address in your computer.

Configuring FQDN.  

Assign static IP and hostname and add a host entry for the host name
Edit your /etc/hostname file with the following command.

sudo gedit /etc/hostname                                                                                          

and Add a hostentry in /etc/hosts with following command.

sudo gedit /etc/host                                                                                                  

In my case  "" is my FQDN.

Installing Postfix:

Now install postfix and dependencies.

sudo apt-get update                                                                                                  

sudo apt-get install postfix                                                                                           
this will ask that 

"The following packages were automatically installed and are no longer required:  libkyotocabinet16 libmailutils4 mailutils-common
Do you want to continue? [Y/n]  "
Press Y and enter to install Postfix.

On the next window the default option is Internet Site, Let it selected and press ok to continue.

 In the next window, The System mail name should be the same as the name you assigned the FQDN, in my case it is showing a subdomain as so I have changed it to, change these parameters with your FQDN.and click ok, as shown below.


"Installation part of postfix is completed, now you need to configure postfix"

 Configuring Postfix:

In order to configure Postfix, open the main configuration file.
with the command

sudo nano /etc/postfix/                                                                                  

 Now find myhostname in it should look like

myhostname = 

replace "" with your domain name.

now scroll file and look and pont the following entries

mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

now replace inet_interfaces = all to inet_interfaces = loopback-only as shown below

mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only 

Now to finish editing type Ctrl+O and then Ctrl+X, to save and exit from editor.
Now restart your postfix service to apply changes with the command
sudo service postfix restart                                                                                         

Sending mail from Postfix: