OpenGL installation on Debian Linux

Hi,

I need your help in installing OpenGL in my Debian (ubuntu) Linux PC. Please elaborate the steps in a clear manner, so that I may follow the installation procedure without getting in to any problem. Also, please tell me what are the libraries should I link my program with, what are the header files should I include in my C++ program (for OpenGL). It would be better if you give me the sample compiler option flag(s) for compiling OpenGL program.

Thanks