Ubuntu:
Solution 1:
- Install VSEL on Ubuntu Linux server.
- Install the developer utilities make and gcc.
- Open a command-line (terminal session).
- Type apt-get install gcc and press ENTER.
- Type apt-get install make and press ENTER.
- Install the linux-headers package and the linux-source package:
NOTE: These should be installed through apt-get.
- Type apt-get install linux-headers-3.5.0-17 and press ENTER.
3.5.0-17 is an example kernel version and may differ between installations.
- Type apt-get install linux-source and press ENTER.
This command downloads the required linux source tar.bz2 file and places it in /usr/src.
- Extract the linux source downloaded in /usr/src:
- Type tar -jxvf linux-source-3.5.0.tar.bz2 and press ENTER.
3.5.0.tar.bz2 is an example file downloaded in /usr/src.
- After extracting the above package, compile the kernel:
Type /opt/NAI/LinuxShield/bin/khm_setup -c and press ENTER.
- Start the nails service.
Solution 2:
If the developer utilities cannot be installed on your production server, compile the kernel modules on a staging server, run the export command to archive the kernel modules, and then import the kernel modules to your production server.
- On the staging server:
- Install VSEL and the developer utilities make and gcc by following the procedure documented in Ubuntu solution 1.
- Install the linux-headers package and the linux-source package, as documented in Ubuntu solution 1.
- Extract the linux source downloaded in /usr/src
Type tar -jxvf linux-source-3.5.0.tar.bz2 and press ENTER.
3.5.0.tar.bz2 is an example file downloaded in /usr/src and may differ in your installation.
- Compile the kernel:
Type /opt/NAI/LinuxShield/bin/khm_setup -c and press ENTER.
- Export the kernel module:
Type /opt/NAI/LinuxShield/bin/khm_setup -e <file_name>.tar.bz2 and press ENTER.
NOTE: You must name the file.
- Copy this .tar.bz2 file to the <production environment server>/opt/NAI/LinuxShield/bin.
- On the production server:
- Type /opt/NAI/LinuxShield/bin/khm_setup -i <file_name>.tar.bz2 and press ENTER.
- Compile the kernel:
Type /opt/NAI/LinuxShield/bin/khm_setup -c and press ENTER.
- Start the nails service.