Rackspace Community

Installing Kernel Headers for 2.6.31-302-rs

Article ID: 358

Last updated on October 26, 2011

Authored by: Rackspace Support

If you are wishing to compile kernel modules or other software you may be required to install the kernel headers on your Cloud Server. By default the kernel modules are not installed to save space and are not typically used by most software.

This tutorial will walk you through installing them on a Cloud Server. This tutorial assumes you logged in as the root user. Note that this tutorial has been tested on Ubuntu and CentOS-based distributions -- others have not been tested and may vary slightly.

Download Header Files

The first thing we will need to do is download the header files from Ubuntu, where our kernel originates from. To do that, run the following commands: