So, you have installed ubuntu and would like to compile some OpenGL code? Where do I start … You will need to install two things,the g++ compiler, and (if you need them) the GLUT library.
The compiler is easy, just type the following command into a terminal.
sudo apt-get install g++
Follow the prompts, this should install the compiler. Next, you might need the GLUT library, which can be installed (headers and development libraries) with the following command.
sudo apt-get install libglut3-dev
All set 🙂 Compile OpenGL code without any hitches.