Joined: 18 Jul 2004
|Posted: Tue Jul 05, 2005 4:46 pm Post subject: HOWTO: Install Tux httpd/ftpd server on Gentoo
|How to install Tux httpd/ftpd server on Gentoo
Description: Red Hat Content Accelerator is a kernel-based, multi-threaded, extremely high performance HTTP server with the ability to serve both static and dynamic data. TUX is also an architecture for kernel-accelerated network services. ( http://www.redhat.com/docs/manuals/tux/ )
1.) Kernel Detection
Before we can even begin we must find out what version of the linux kernel you are using on your machine. In order to do this type:
Next validate that your /usr/src/linux directory is symlinked to the proper source directory. The easiest way to check this is to run the following command:
If the Linux directory is pointed to the correct version then you can proceed with patching your kernel.
2.) Kernel Patching
The kernel patch for the Tux ebuild is not included with the package. Because of this the kernel patching must be done manually.
2.1) Navigate to your linux kernel source directory. This is the directory where the TUX kernel patch will be downloaded and installed to. The typical path is /usr/src/linux and should have been validated in the previous step.
2.2) Navigate a web browser to http://people.redhat.com/~mingo/TUX-patches/ and look through their list of kernel patches. Find one that most closely matches your current kernel version.
In my case I use the tux3-2.6.11-rc2-bk6-A7 version since I am running a 2.6.11 version of the GNU/Linux kernel.
Download the version of the patch that best suits your current kernel version:
|wget http://people.redhat.com/~mingo/TUX-patches/***YOUR FILE*** |
Note: ***YOUR FILE*** kernel patch that most closely matches your current kernel version.
2.3) Issue the following command to patch your kernel:
|patch p1 < ***YOUR FILE*** |
Note: ***YOUR FILE*** is the name of the file that was just download from people.redhat.com.
3.) Installing the Kernel
3.1) Mount your Boot partition if it has not already been mounted:
Compile your newly patched GNU/Linux kernel:
|make;make modules;make modules_install;make install |
3.3) Make the appropriate modifications to your grub.conf file to reflect your newly created kernel:
|nano -w /boot/grub/grub.conf |
An example of my grub.conf (Your configuration may vary depending on your hard disk setup):
|title=Gentoo Linux 2.6.11-r11 [TUX Module]
kernel /vmlinuz root=/dev/hda6
3.4) Restart the machine so that the newly patched kernel will launch the Red Hat Content Accelerator:
4.) Install Tux httpd/ftpd
4.1) Emerge the TUX software that utilizes the newly installed kernel module:
4.2) Complete the following house keeping steps that allows Tux to start and run without problems:
4.3) You can now run Tux with the following command:
|/etc/init.d/tux start |