How to configure Metasploit-framework on kali-linux 2.0


For first time startup, do this

    /etc/init.d/postgresql start
    msfdb init

and then launch msfconsole by

    msfconsole

if msfconsole does not start then do this

    cd /usr/share/metasploit-framework
    ./msfconsole

And for normal Startup

    /etc/init.d/postgresql start
    msfconsole

thats it.