Installing GLUT is essential for those who wants to create OpenGL programs in Linux.
To install GLUT on Ubuntu, just simply go to System>Administration>Synaptic Package Manager then search for "glut". Mark freeglut3 and freeglut3-dev for installation then click on Apply button.
This will install the OpenGL header files to /usr/include/GL/ and the library object to /usr/lib/libglut.a.