Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO: Install Tux httpd/ftpd server on Gentoo
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message

Joined: 18 Jul 2004
Posts: 24

PostPosted: Tue Jul 05, 2005 4:46 pm    Post subject: HOWTO: Install Tux httpd/ftpd server on Gentoo Reply with quote

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. ( )

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:
 uname –r

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:
ls –al /usr/src/

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 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***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

3.) Installing the Kernel
3.1) Mount your Boot partition if it has not already been mounted:
mount /boot/

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]
root (hd0,0)
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:
emerge tux

4.2) Complete the following house keeping steps that allows Tux to start and run without problems:
mkdir /var/www/localhost/
mkdir /var/tux

4.3) You can now run Tux with the following command:
/etc/init.d/tux start
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum