Title Webpal Webserver
Status Completed
Start Date 6-2003
End Date 5-2004

Building a root filesystem

I run my root filesystem off of a compact flash card. You may staticly link your programs and simply pass the kernel parameter init= for your program. However, this is only useful if you only want to run one or two programs. To get a reasonably functional system, the easiest approach is to copy the base tarball of Debian Potato (2.2) to the compact flash card. The file base2_2.tgz can be found on some debian-archive mirrors. Then you need to tweak a few things:

    Before Booting (on your PC):
  1. Delete /sbin/unconfigured.sh
  2. Create /etc/fstab (in download)
  3. Create /etc/hostname containing your name for the system
  4. Add network scripts (in download) to the end of /etc/init.d/rcS After Booting:
  5. Login as root and type passwd to set the password
  6. Add normal users with useradd, remove the '!' from /etc/passwd so that you can login as the user and run passwd
  7. Obtain ftpd.deb and telnetd.deb, convert them to tgz format with alien, and extract them from the root. Then add entries (in download) to the end of /etc/inetd.conf

With my configuration, it takes 45 seconds to go from poweron to login prompt