Monthly Archives: January 2013

Installing MongoDB in Ubuntu

This morning I was deploying MongoDB in a few machines under Virtual Box, and had to look for the same commands a few times. Just as another note to myself, I wil have them here.

Add the key to the repository:

  • sudo apt-key adv –keyserver –recv 7F0CEB10

Edit the sources to include Mongo:

  • sudo gedit /etc/apt/sources.list.d/10gen.list

and add the following line:

  • deb dist 10gen

And then get it installed:

  • sudo apt-get update
  • sudo apt-get install mongodb-10gen
Facebooktwittergoogle_plusredditpinterestlinkedinmailby feather

Ask git to remember your credentials

I searched for the tenth time how to tell git to remember my credentials in github, then it is time to make a little note to myself.

I am running a few instances of Ubuntu, and each time I want to make a pull from Github I need to enter my username and password.

To tell git to remember them, just do

git config credential.helper store

and then

git pull

After entering name and password one last time, those details will be remembered later. The credentials are stored in the disk, with the disk permissions. In my case, that is good enough.

Facebooktwittergoogle_plusredditpinterestlinkedinmailby feather