I want to setup openGL programming environment on ubuntu. What packages or tools I should install and what is the best way of getting into openGL as a newbie.
StackOverflow is a better place for programming related questions, check https://stackoverflow.com/questions/859501/learning-opengl-in-ubuntu
As far as I know OpenGL is a graphics library. The IDE choice depends on the language you want use OpenGL in.
Anjuta is a perfect IDE for C and C++
sudo apt-get install anjuta
then you have to download OpenGL library:
sudo apt-get install freeglut3 freeglut3-dev libglew1.5 libglew1.5-dev libglu1-mesa libglu1-mesa-dev libgl1-mesa-glx libgl1-mesa-dev
after that you should include libraries (in folder gl/*) into your code