NSLU2-Linux
view · edit · print · history

HowTo.MakeThttpdOnYourNSLU2Box History

Hide minor edits - Show changes to markup

February 27, 2008, at 01:10 AM by PHF -- moved warning up to top
Added lines 6-7:

Do NOT type 'ipkg install thttpd' on your nslu2 (see notes below)

November 12, 2006, at 08:41 PM by saned -- added revert ipkg install thttpd
Added line 41:
Added lines 43-45:

After installing thttpd with ipkg, it's possible to revert it. Plug the drive into a different computer, then remove /opt/etc/init.d/S80thttpd. Then power down nslu2, plug the drive, boot up. This will avoid overwriting the original in /etc/thttpd.conf when it boots with the drive attached. -saned, nslu2 newbie :)

July 25, 2006, at 08:02 PM by morglum --
Changed lines 38-42 from:

That's it! Thttpd created on your NSLU2!

to:

That's it! Thttpd created on your NSLU2!

================= I confirm: do NOT type 'ipkg install thttpd' on your nslu2. It killed my linksys web interface, so I cant access it anymore. And I cant fix it since it is needed to enable telnet... -Morglum, linux newbie :) =================

November 25, 2004, at 06:18 AM by michaelebrownmindspringcom --
Changed line 4 from:

Thttpd is running my http://www.bytered.com Byte Red website.

to:

Thttpd is running my http://www.bytered.com Byte Red website - check out the site info page.

November 25, 2004, at 06:17 AM by michaelebrownmindspringcom --
Added line 4:

Thttpd is running my http://www.bytered.com Byte Red website.

November 11, 2004, at 05:41 AM by michaelebrownmindspringcom --
Changed line 35 from:

Do not use the Makefile install target! There are most likely some conflicts between the thttpd make installation and the current NSLU2 administrative httpd configuration. Consider following similar advice given in UseTheThttpdWebserver, and guidance from the thttpd' website at http://www.acme.com/software/thttpd/. Best to keep the shipped installation, which provides administrative services, separate from additional use of thttpd.

to:

Do not use the Makefile install target! There are most likely some conflicts between the thttpd make installation and the current NSLU2 administrative httpd configuration. Consider following similar advice given in UseTheThttpdWebserver, and guidance from the thttpd website at http://www.acme.com/software/thttpd/. Best to keep the shipped installation, which provides administrative services, separate from additional use of thttpd.

November 11, 2004, at 05:41 AM by michaelebrownmindspringcom --
Changed line 29 from:
    make -f Makefile all\\
to:
    make all\\
Changed line 33 from:

Warning! DO NOT make -f Makefile install

to:

Warning! DO NOT make install

November 11, 2004, at 05:40 AM by michaelebrownmindspringcom --
Changed line 35 from:

Do not use the Makefile install target! There are most likely some conflicts between the thttpd make installation and the current NSLU2 administrative httpd configuration. Consider following similar advice given in UseTheThttpdWebserver. Keep the shipped installation, which provides administrative services, separate from additional use of thttpd.

to:

Do not use the Makefile install target! There are most likely some conflicts between the thttpd make installation and the current NSLU2 administrative httpd configuration. Consider following similar advice given in UseTheThttpdWebserver, and guidance from the thttpd' website at http://www.acme.com/software/thttpd/. Best to keep the shipped installation, which provides administrative services, separate from additional use of thttpd.

November 08, 2004, at 05:48 AM by michaelebrownmindspringcom --
Changed lines 10-11 from:

Busybox version 1.00 (potentially optional). Use ipkg to install.
Bzip2 - use ipkg to install.

to:

Busybox version 1.00 (potentially optional). Use ipkg to install.

November 08, 2004, at 05:46 AM by michaelebrownmindspringcom --
Added line 11:

Bzip2 - use ipkg to install.

November 08, 2004, at 05:45 AM by michaelebrownmindspringcom --
Changed line 10 from:

Busybox version 1.00 (potentially optional). Use ipkg to install.

to:

Busybox version 1.00 (potentially optional). Use ipkg to install.\\

November 08, 2004, at 05:43 AM by michaelebrownmindspringcom --
Changed line 21 from:
    wget 'http://www.acme.com/software/thttpd/thttpd-2.25b.tar.gz'\\
to:
    wget http://www.acme.com/software/thttpd/thttpd-2.25b.tar.gz\\
November 08, 2004, at 05:42 AM by michaelebrownmindspringcom --
Changed line 28 from:
    ./configure                   (There were some unconsequential errors during this process)\\
to:
    ./configure                   (There were some inconsequential errors during this process)\\
November 08, 2004, at 04:47 AM by michaelebrownmindspringcom --
Changed line 25 from:

2) Create the httpd executable.

to:

2) Create the thttpd executable.

Added lines 30-31:
    mv thttpd mythttpd
    strip mythttpd
November 08, 2004, at 04:43 AM by michaelebrownmindspringcom --
Changed line 35 from:

That's it! Thttpd created on your NSLU2!

to:

That's it! Thttpd created on your NSLU2!

November 08, 2004, at 04:42 AM by michaelebrownmindspringcom --
Changed line 33 from:

Do not use the Makefile target install! There are most likely some conflicts between the thttpd make installation and the current NSLU2 administrative httpd configuration. Consider following similar advice given in UseTheThttpdWebserver. Separation of the shipped installation, which provides administrative services, from additional use is wise.

to:

Do not use the Makefile install target! There are most likely some conflicts between the thttpd make installation and the current NSLU2 administrative httpd configuration. Consider following similar advice given in UseTheThttpdWebserver. Keep the shipped installation, which provides administrative services, separate from additional use of thttpd.

November 08, 2004, at 04:35 AM by michaelebrownmindspringcom --
Changed line 18 from:

1) Retrieve source code for thttpd, unzip and untar. I did this from my NSLU2 box using the following command:

to:

1) Retrieve source code for thttpd, and then unzip and untar it. I did this from my NSLU2 box using the following command:

November 08, 2004, at 04:35 AM by michaelebrownmindspringcom --
Changed line 33 from:

Do not use the Makefile target install! There are most likely some conflicts between the default installation and the current NSLU2 administrative httpd configuration. Consider following similar advice given in UseTheThttpdWebserver. Separation of the shipped installation, which provides administrative services, from additional use is wise.

to:

Do not use the Makefile target install! There are most likely some conflicts between the thttpd make installation and the current NSLU2 administrative httpd configuration. Consider following similar advice given in UseTheThttpdWebserver. Separation of the shipped installation, which provides administrative services, from additional use is wise.

November 08, 2004, at 04:33 AM by michaelebrownmindspringcom --
Added lines 30-31:

Warning! DO NOT make -f Makefile install

Changed line 33 from:

Caution! Some study is required to determine potential conflicts with the current NSLU2 installation. You might want to consider following similar advice given in UseTheThttpdWebserver. Separation of the shipped installation, which provides administrative services, from additional use is wise.

to:

Do not use the Makefile target install! There are most likely some conflicts between the default installation and the current NSLU2 administrative httpd configuration. Consider following similar advice given in UseTheThttpdWebserver. Separation of the shipped installation, which provides administrative services, from additional use is wise.

November 08, 2004, at 04:28 AM by michaelebrownmindspringcom --
Changed line 22 from:
    gunzip thttpd-2.25b.tar.gz           (gunzip comes with Busybox 1.00)\\
to:
    gunzip thttpd-2.25b.tar.gz    (gunzip comes with Busybox 1.00)\\
Changed line 28 from:
    ./configure                        (There were some unconsequential errors during this process)\\
to:
    ./configure                   (There were some unconsequential errors during this process)\\
Changed line 31 from:

Caution! Some study is required to determine potential conflicts with the current NSLU2 installation. You might want to consider following similar advice given in UseTheThttpdWebserver. Use the advice to separate the shipped installation and use from additional use from your new instance.

to:

Caution! Some study is required to determine potential conflicts with the current NSLU2 installation. You might want to consider following similar advice given in UseTheThttpdWebserver. Separation of the shipped installation, which provides administrative services, from additional use is wise.

November 08, 2004, at 04:26 AM by michaelebrownmindspringcom --
Changed line 21 from:
    wget \\http://www.acme.com/software/thttpd/thttpd-2.25b.tar.gz\\
to:
    wget 'http://www.acme.com/software/thttpd/thttpd-2.25b.tar.gz'\\
November 08, 2004, at 04:24 AM by michaelebrownmindspringcom --
Changed line 21 from:
    wget http://www.acme.com/software/thttpd/thttpd-2.25b.tar.gz\\
to:
    wget \\http://www.acme.com/software/thttpd/thttpd-2.25b.tar.gz\\
November 08, 2004, at 04:24 AM by michaelebrownmindspringcom --
Changed line 31 from:

Caution! Some study is required to determine potential conflicts with the current NSLU2 installation.

to:

Caution! Some study is required to determine potential conflicts with the current NSLU2 installation. You might want to consider following similar advice given in UseTheThttpdWebserver. Use the advice to separate the shipped installation and use from additional use from your new instance.

November 08, 2004, at 04:20 AM by michaelebrownmindspringcom --
Changed lines 21-22 from:
    wget http://www.acme.com/software/thttpd/thttpd-2.25b.tar.gz.tar
mv thttpd-2.25b.tar.gz.tar thttpd-2.25b.tar.gz
to:
    wget http://www.acme.com/software/thttpd/thttpd-2.25b.tar.gz\\
November 08, 2004, at 04:20 AM by michaelebrownmindspringcom --
Changed line 14 from:

This set of instructions are specific for building thttpd directly on the NSLU2. Even though the Makefile that that comes with the thttpd source includes an install target, these instructions do not cover installation.

to:

This set of instructions are specific for building thttpd directly on the NSLU2. Even though the Makefile that comes with the thttpd source includes an install target, these instructions do not cover installation. (See caution below!)

November 08, 2004, at 04:19 AM by michaelebrownmindspringcom --
Changed line 9 from:

Successful completion of MakeGNUMakeOnYourNSLU2Box?. Make is needed to make gawk. \\

to:

Successful completion of BuildGNUMakeOnYourNSLU2Box. Make is needed for this process. \\

November 08, 2004, at 04:18 AM by michaelebrownmindspringcom --
Changed line 14 from:

This set of instructions are specific for building thttpd directly on the NSLU2. Even though the Makefile that that comes with the thttpd source includes an install target, these instructions do not cover installation. Some study is required to determine potential conflicts with the current NSLU2 installation.

to:

This set of instructions are specific for building thttpd directly on the NSLU2. Even though the Makefile that that comes with the thttpd source includes an install target, these instructions do not cover installation.

Changed line 32 from:

CAUTION!

to:

Caution! Some study is required to determine potential conflicts with the current NSLU2 installation.

November 08, 2004, at 04:17 AM by michaelebrownmindspringcom --
Changed line 26 from:

2) Create the gawk executable, and put it somewhere in your path.

to:

2) Create the httpd executable.

Changed lines 28-34 from:
    cd gawk-3.1.4
./configure (This takes about 7 minutes)
mv config.h config.tmp (configure incorrectly identifies presence of getgroups()(?))
sed -e '/HAVE_GETGROUPS/d' config.tmp >config.h
make -f Makefile gawk
strip gawk (Optional)
mv gawk /usr/bin (Is this where it should be placed?)\\
to:
    cd thttpd-2.25b
./configure (There were some unconsequential errors during this process)
make -f Makefile all\\
Changed lines 32-34 from:

That's it! GNU gawk for the NSLU2!

to:

CAUTION!

That's it! Thttpd created on your NSLU2!

November 08, 2004, at 04:15 AM by michaelebrownmindspringcom --
Added lines 16-17:

The latest information on thttpd can be found on the website at http://www.acme.com/software/thttpd/.

Changed lines 21-23 from:
    wget ftp://ftp.gnu.org/gnu/gawk/thttpd-2.25b.tar.gz.tar
gunzip gawk-3.1.4.tar.gz (gunzip comes with Busybox 1.00)
tar -xvf gawk-3.1.4.tar\\
to:
    wget http://www.acme.com/software/thttpd/thttpd-2.25b.tar.gz.tar
mv thttpd-2.25b.tar.gz.tar thttpd-2.25b.tar.gz gunzip thttpd-2.25b.tar.gz (gunzip comes with Busybox 1.00)
tar -xvf thttpd-2.25b.tar\\
November 08, 2004, at 04:04 AM by michaelebrownmindspringcom --
Changed lines 1-33 from:

Describe MakeThttpdOnYourNSLU2Box here.

to:

Goal:

Build a native version of thttpd directly on your NSLU2 Box.

Prerequisites:

Installation of HomePage Unslung?.
Successful completion of NativeNSLU2Toolchain, which provides a development environment on your NSLU2.
Successful completion of MakeGNUMakeOnYourNSLU2Box?. Make is needed to make gawk.
Busybox version 1.00 (potentially optional). Use ipkg to install.

Steps:

This set of instructions are specific for building thttpd directly on the NSLU2. Even though the Makefile that that comes with the thttpd source includes an install target, these instructions do not cover installation. Some study is required to determine potential conflicts with the current NSLU2 installation.

1) Retrieve source code for thttpd, unzip and untar. I did this from my NSLU2 box using the following command:

    cd /share/hdd/data
wget ftp://ftp.gnu.org/gnu/gawk/thttpd-2.25b.tar.gz.tar
gunzip gawk-3.1.4.tar.gz (gunzip comes with Busybox 1.00)
tar -xvf gawk-3.1.4.tar

2) Create the gawk executable, and put it somewhere in your path.

    cd gawk-3.1.4
./configure (This takes about 7 minutes)
mv config.h config.tmp (configure incorrectly identifies presence of getgroups()(?))
sed -e '/HAVE_GETGROUPS/d' config.tmp >config.h
make -f Makefile gawk
strip gawk (Optional)
mv gawk /usr/bin (Is this where it should be placed?)

That's it! GNU gawk for the NSLU2!

view · edit · print · history · Last edited by PHF.
Based on work by saned, morglum, and michaelebrownmindspringcom.
Originally by michaelebrownmindspringcom.
Page last modified on February 27, 2008, at 01:10 AM