Compiling Textbook Style Code on Linux

You can write programs on Linux too. It's been a while, but I have had success in the past. These instructions were last updated in Jan. 2015, but have not yet been thoroughly tested. You may also be able to do it with a BSD Unix.

With Unix OS's you need to be careful about your graphics card and its drivers. Third-party Open Source drivers usually have poor support for newer versions of OpenGL, so I recommend getting proprietary drivers for AMD and NVIDIA cards. Intel released open source drivers for their hardware which are part of the Linux kernel.

Get freeglut

Get GLEW

Compiling and Linking with OpenGL, freeglut, and GLEW