Network Diagnostic Tool (NDT) On Ubuntu 7.10 Server - Page 2
Download NDT, the web100 patch, userland and new kernel sources
Issue the following commands to obtain everything that you will need for a successful build.
Patch and compile the kernel with the web100 patch
There is an excellent guide here in regards to compiling the kernel. I have a quick walkthrough below though that should suffice.
The first step is to extract your new kernel. Issue the following command:
tar xjf linux-2.6.23.tar.bz2
Now we are going to create a symliynk for the newly extracted kernel.
ln -s linux-2.6.23 linux
Move into the kernel directory with this command.
Now it is time to extract the patch. This method is probably not as clean as it could be, since you will be extracting it and re-compressing it into the BZ2 format. It was the only way I could get the patching process to run cleanly. Issue the following commands to extract and re-compress the patch file.
tar -xvzf /usr/src/web100-2.5.18-200711151130.tar.gz
Before you jump right in and run a patch, it is always a good idea to perform a dry run to make sure that everything appears okay. The following command should return a successful output.
bzip2 -dc /usr/src/linux/web100/web100-2.6.23-2.5.18-200711151130.patch.bz2 | patch -p1 --dry-run
The output should be similar to what is shown below:
patching file Makefile
If there are no errors, then it is safe to proceed. Patch the kernel with the following command:
bzip2 -dc /usr/src/linux/web100/web100-2.6.23-2.5.18-200711151130.patch.bz2 | patch -p1
Now copy your existing configuration with this command:
cp /boot/config-`uname -r` ./.config
Now you need to activate the web100 patch before recompiling the kernel.
You are looking for a section titled "IP: Web100 networking enhancements (NEW) --->" in the menu configuration. It can be found under:
Follow the screen shots below if you are having problems.
Now if you chose "exit" four times, you should be prompted to save your new kernel - Do so.
Issue the following command to not only compile your new kernel, but to also create .deb packages that you can use to install the web100 patched kernel on other Ubuntu systems (or keep as backups), so you can skip this step the next time.
This process will take a long time (it could and probably will take several hours), so now is a good time to go get a cup of coffee, read a book or to walk the dog.
Okay, so the wait is over... Let's make sure that our files are there. Run the following two commands:
You should see two files named:
If you see them, then it is time to go ahead and install them. Issue the following commands:
dpkg -i linux-image-2.6.23-web100-web100_2.6.23-web100-web100-10.00.Custom_i386.deb
Once the process has completed, you need to reboot your server to make the new kernel active.
shutdown -r now
Once the system has rebooted, make sure that your new kernel is operational.
That should return output such as this: