Before you start login as root

Code:
sudo su
Step 1: Add APT Repository

First import public key of 10gen repository in our system

Code:
$ apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
Lets add 10 gen MongoDB APT repository url in /etc/apt/sources.list.d/mongodb.list.

Code:
$ echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
After adding required APT repositories, use following commands to install MongoDB in your systems. It will also install all dependent packages required for mongodb.

Code:
$ apt-get update
Code:
$ apt-get install mongodb-org
Step 3: Start/Stop MongoDB Service

Start/Stop MongoDB using Init script. Below are the example commands to do it.

Code:
# service mongod stop
Code:
# service mongod start
Step 4: Verify MongoDB Installation

Use following command to check installed mongodb version

$
Code:
mongo --version
Step 5: Initialise and test the database

$
Code:
mongod
MongoDB shell version: 2.6.3
Connect MongoDB using command line and execute some test commands for checking proper working.

Code:
$ mongo
Code:
> db.test.save( { admintest: 100 } )
Code:
> db.test.find()
Code:
  { "_id" : ObjectId("52b0dc8285f8a8071cbb5daf"), "admintest" : 100 }
Step 6: Install of the mFI Controller

You'll need to add the repo to the sources list

Code:
$ nano /etc/apt/sources.list
Scroll to the bottom and add the following line

Code:
deb http://www.ubnt.com/downloads/mfi/distros/deb/ubuntu ubuntu ubiquiti
Step 7: add GPG Key

Code:
 apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50

Step 8: Install mFI Controller

Update packet list:

Code:
$ apt-get update
Install:

Code:
$ apt-get install mfi

Step 8: Test

The mFi webUI can be reached via the local machines ip address https://192.168.1.10:6443/

Change the ip to match your machine.