Monday, January 7, 2013

Quick way of finding out the maximum RAM supported on Linux

Linux is very powerful system. We can see its power with commands. There are few tools which you can use to find the amount of RAM currently installed, number of available DIMM slots for RAM and installed quantity and amount of RAM. 

Firstly let's use the command "dmidecode".
A. Using dmidecode to find the maximum RAM supported by your system and no. of slots for RAM.
1. First Open your terminal program.
2. Type "dmidecode -t 16" without quotes as in the following snapshot.
sudo dmidecode -t 16
In the snapshot of this command in my computer. You can see
The line 'Maximum Capacity:' shows the maximum supported amount of RAM in my system. i.e. In this computer I can use upto 4GB of RAM.
The line 'Number of Devices:' shows the number of RAM slots available. i.e. in my system there are two RAM slots.

B. Using dmidecode to find the information about installed RAM on the system.
1. Type "dmidecode -t memory" without quotes as in the following snapshot.
sudo dmidecode -t memory
sudo dmidecode -t memory [continued snap]

In the snapshot of this command in my computer. You can see
The line "Type:" shows the type of RAM. i.e. in my computer it's DDR2
The line "Size:" shows the amount of RAM installed in DIMM 1(i.e. slot 1)
The line "Locator: DIMM 1" shows the information about RAM slot 1.
The line "Locator: DIMM 2" shows the information about RAM slot 2.
In my system, the RAM slot 1 (or DIMM 1) has 2GB RAM installed and slot 2 (or DIMM 2) has 512 MB RAM installed.
The line "Speed:" shows the bus speed of RAM installed on the system.

This tool 'dmidecode' relies on the  information provided by BIOS. There is another tool named "lshw" which does the similar thing but it scans your system hardware and doesn't relies on your BIOS. In most cases dmidecode's output is enough but lshw's output is comparably more accurate.

Let's see the output of lshw.
1. Open terminal and type "lshw -c memory" without quotes as in the following snapshot
sudo lshw -c memory

The only noticeable differences are the terms: 
where the 'speed' is referred as 'clock'.
where the 'locator' is referred as 'slot'.




Wednesday, January 2, 2013

Ubuntu For Phones

Canonical just today on 2nd Jan 2012 released it's Ubuntu OS for phones.
And an Ubuntu-powered phone has also been unveiled by the founder of Canonical, Mark Shuttleworth in London, today.

Finally, my favourite Operating System is available for smart phones. 
Let's see how it looks, works and feels on your smart phone with this teaser trailer.

Wednesday, December 19, 2012

Politics, the biggest enemy to development

When we hear the word politics, most of us have negative reactions to it. Spiritually, I do not have any rights to blame politics for my nation's under development since I've never involved in politics. The following joke might help to illustrate this post's topic.

Once, for a space exploration programme, the government was selecting the space scientists for the programme. So, the interview was running to select the scientist for the job.

Interviewer: How much money do you take to go to space?
First Scientist:  I need Rs. 200,000 for this job.
Interviewer: What will you do with this money?
First Scientist: 1,00,000 I'll give to my family and 1,00,000 I'll use as my pocket money.
[First interview completes]

Interviewer: How much money do you take to go to space?
[Normally the cheapest will be selected]
Second Scientist:  I need Rs. 3,00,000 for this job.
Interviewer: What will you do with this money?
Second Scientist: 2,00,000 I'll give to my family and 1,00,000 I'll use as my pocket money.
[Second interview completes]

Interviewer: How much money do you take to go to space?
Third Scientist:  I need total sum or Rs. 10,00,000 (10 lakh) for this job.
[One scientist has agreed to go to space with Rs. 2 lakh and he is demanding 10 lakh, there is no possibility that he will get this contract.]
Anyway the interviewer asks "What will you do with this money?"
Third Scientist: 5,00,000 I'll give to my family and 1,00,000 I'll use as my pocket money.
Interviewer: And what will you do with the remaining Rs. 4,00,000 money?
Third Scientist: I'll offer you the remaining money.

Immediately the the scientist was selected for the job.