download metasploit community edition make the file executable:
~$ chmod a+x metasploit.run
run the exec:
~$ ./metasploit.run