Internet Servers

FTP

The directory exposed for anonymous FTP is /srv/ftp

  1. Execute: ipkg install -d root vsftpd
  2. Execute: cp /mnt/cf/config/vsftpd.conf /etc
  3. Execute: mkdir /usr/share/empty
  4. Execute: mkdir -p /srv/ftp
  5. Execute: chmod og-w /srv/ftp
  6. Add this line to /etc/passwd: ftp:*:40:49:FTP account:/srv/ftp:/bin/sh
  7. Add this line to /etc/group: ftp:*:49:
  8. Add this line to /etc/inetd.conf: ftp             stream  tcp     nowait  root    /usr/sbin/vsftpd vsftpd
  9. Execute: /etc/init.d/inetd restart

Web server

We install the thttpd server to minimize the amount of card space we’re taking up. It’s not as full-featured as the apache+php package, but it handles what we need: namely, HTTP/1.1 and cgi.

  1. Execute: ipkg install -d root thttpd
  2. Execute: cp /mnt/cf/config/thttpd/thttpd /etc/init.d
  3. Execute: mkdir /srv/www/htdocs
  4. Execute: cp /mnt/cf/config/thttpd/index.html /srv/www/htdocs
  5. Execute: cp /mnt/cf/config/thttpd/thttpd.conf /srv/www
  6. Execute: update-rc.d -s thttpd start 80 5 . stop 10 0 1 2 3 6 .

See Also:

vsftpd server
thttpd server