Archive

Archive for the ‘Unix/Linux’ Category

Rock mongo

September 18, 2011 Leave a comment

Among the list of admin guis available, i happened to pick this Rock mongo as it had many features compared to others. See below for details on installing this in ubuntu server…

Pre-requisites

1. Apt-get php5, php mod lib5 for apache2.
2. Apt-get php-pear (to get PECL) and php-dev.
3. sudo pecl install phpmongo.
4. Restart apache.

Installation

1. Follow the steps here. All it involves is download a zip and extract to a folder.
2. Now configure Apache to create a php app using the above the folder.
3. If required change the config.php to set the mongo server information like port, user name and password.

Rock mongo really rocks.

Categories: mongodb, Unix/Linux

Installing mongodb on ubuntu server

September 18, 2011 Leave a comment

See here for detailed instructions.The steps can be summarized at high level as below…

1. Add the 10gen server to the software repo list.
2. Add the 10gen GPG key via apt-key to trust and verify the 10gen repo server.

Note: if for some reason you have firewall issues to retrieve the key then you can save the GPG key into a file and import using apt-key. see here

Categories: mongodb, Unix/Linux

Which directory I should install this into?

Switching between different OS always leads me to ask this question. If you do then check these two..

    Brief description of each directory in the hierarchy
    More indepth details on the hierarchy standard.
Categories: Unix/Linux

vim: maximize window

January 27, 2010 Leave a comment

To maximize window in vim just set values for lines and columns.

:set lines = 999

:set columns = 999

Categories: Unix/Linux, vim

Turn on line numbers: vim

January 27, 2010 Leave a comment

To turn on/off the line number in vim use the following commands..

Turn on :set number

Turn off :set nonumber

Categories: Unix/Linux, vim Tags: ,

Reverse dns on mac.

January 5, 2010 Leave a comment

Having used windows for a long time which uses nslookup command tool to do the reverse dns, i was trying to find a similar tool in mac. I always tend to forget that Mr.Mac is built on Unix. So you can use the host command just as in any other unix to do reverse dns lookup.

$ host (ip address)

Categories: OS/X, Unix/Linux Tags: , , , , ,

Setting up a cron job

December 22, 2009 Leave a comment

Had to setup a cron job today and had to do this via crontab file on linux today. My old and small brain does not remember the weird crontabs format anymore. Found this good this quick reference for Crontab. It covers all of what you need for modifying crontab.

Categories: OS/X, Unix/Linux Tags: , , , , ,
Follow

Get every new post delivered to your Inbox.