# HG changeset patch # User Christophe Lincoln # Date 1398935797 -7200 # Node ID d0383e006701a5a1c127ad9588a735eeb79d6d64 # Parent 758e0c5d9cbf13f2c9f0ad1642bb05dce614e972 Add FTP server setup in Codex diff -r 758e0c5d9cbf -r d0383e006701 arm/codex/setup.html --- a/arm/codex/setup.html Thu May 01 04:50:32 2014 +0200 +++ b/arm/codex/setup.html Thu May 01 11:16:37 2014 +0200 @@ -34,8 +34,9 @@

HTTP Web server

@@ -63,11 +64,52 @@ to the server URL, example with the loopback IP address:

-
+
 server root   : http://localhost
 Server status : http://127.0.0.1/server-status
 
+

On demand FTP server

+ +

+ This setup guide will use the small Busybox ftpd applet and inetd + daemon to run the FTP server only when needed. The setup use very + small system resources and the server can handle undread of files. + The root directory is where the FTP files are or will be stored. + Open inetd.conf with a textt editor: +

+ +
+# editor /etc/inetd.conf
+
+ +

+ And add the following line at the bottom of the config file or + search and uncomment the line starting with #ftp: +

+ +
+ftp  stream    tcp   nowait   root   ftpd   ftpd -w /home/share/ftp
+
+ +

+ We choosed to store FTP files in /home/share/ftp, but you are + free to use the folder you want. Now restart the inetd daemon to include + your new settings: +

+ +
+# /etc/init.d/inetd restart
+
+ +

+ Finaly use a web browser to test the services. As usual, you must + use the local IP address of the server or connect from localhost: +

+
+FTP server: ftp://localhost/
+
+

IRC bouncer setup

@@ -93,7 +135,7 @@ # killall znc

-

Lightweight time server

+

Low resources NTP server

SliTaz Busybox multi-tool binary provides a built-in NTP (Network Time Protocol) client/server. If you have many machines @@ -108,10 +150,10 @@

- You can add this command to '/etc/init.d/local.sh' to start the daemon - on each boot. Then from another local machine you just have to edit - /etc/rcS.conf to set NTPD_HOST with the IP address of your NTP server. - You can also test the server with: + You can add this command to the boot script /etc/init.d/local.sh + to start the daemon on each boot. Then from another local machine + you just have to edit /etc/rcS.conf to set NTPD_HOST with + the IP address of your NTP server. You can also test the server with: