FTP
The directory exposed for anonymous FTP is /srv/ftp
- Execute: ipkg install -d root vsftpd
- Execute: cp /mnt/cf/config/vsftpd.conf /etc
- Execute: mkdir /usr/share/empty
- Execute: mkdir -p /srv/ftp
- Execute: chmod og-w /srv/ftp
- Add this line to /etc/passwd: ftp:*:40:49:FTP account:/srv/ftp:/bin/sh
- Add this line to /etc/group: ftp:*:49:
- Add this line to /etc/inetd.conf: ftp stream tcp nowait root /usr/sbin/vsftpd vsftpd
- 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.
- Execute: ipkg install -d root thttpd
- Execute: cp /mnt/cf/config/thttpd/thttpd /etc/init.d
- Execute: mkdir /srv/www/htdocs
- Execute: cp /mnt/cf/config/thttpd/index.html /srv/www/htdocs
- Execute: cp /mnt/cf/config/thttpd/thttpd.conf /srv/www
- Execute: update-rc.d -s thttpd start 80 5 . stop 10 0 1 2 3 6 .
See Also: