Well I have installed the Server version of Ubuntu 12.04. Since I was only getting terminal, I installed the desktop package and executed these commands in the following order:
sudo apt-get install ubuntu-desktop sudo apt-get update
After installing desktop package, though I got a few failure errors but it got installed. I rebooted but still I cannot see the GUI mode,again landing in terminal. Tried to execute startx command but its only showing a white screen with a black background. Any insight will be deeply appreciated from this Linux beginner.