slitaz-forge rev 538
Add FTP server setup in Codex
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 01 11:16:37 2014 +0200 (2014-05-01) |
parents | 758e0c5d9cbf |
children | 40ad99b9e839 |
files | arm/codex/setup.html |
line diff
1.1 --- a/arm/codex/setup.html Thu May 01 04:50:32 2014 +0200 1.2 +++ b/arm/codex/setup.html Thu May 01 11:16:37 2014 +0200 1.3 @@ -34,8 +34,9 @@ 1.4 1.5 <ul> 1.6 <li><a href="#httpd">HTTP Web server</a></li> 1.7 + <li><a href="#ftpd">On demand FTP server</a></li> 1.8 <li><a href="#znc">IRC bouncer setup</a></li> 1.9 - <li><a href="#ntpd">Lightweight time server</a></li> 1.10 + <li><a href="#ntpd">Low resources NTP server</a></li> 1.11 </ul> 1.12 1.13 <h2 id="httpd">HTTP Web server</h2> 1.14 @@ -63,11 +64,52 @@ 1.15 to the server URL, example with the loopback IP address: 1.16 </p> 1.17 1.18 -<pre class="box-up"> 1.19 +<pre class="box-share"> 1.20 server root : <a href="http://localhost">http://localhost</a> 1.21 Server status : <a href="http://127.0.0.1/server-status">http://127.0.0.1/server-status</a> 1.22 </pre> 1.23 1.24 +<h2 id="ftpd">On demand FTP server</h2> 1.25 + 1.26 +<p> 1.27 + This setup guide will use the small Busybox ftpd applet and inetd 1.28 + daemon to run the FTP server only when needed. The setup use very 1.29 + small system resources and the server can handle undread of files. 1.30 + The root directory is where the FTP files are or will be stored. 1.31 + Open inetd.conf with a textt editor: 1.32 +</p> 1.33 + 1.34 +<pre> 1.35 +# editor /etc/inetd.conf 1.36 +</pre> 1.37 + 1.38 +<p> 1.39 + And add the following line at the bottom of the config file or 1.40 + search and uncomment the line starting with #ftp: 1.41 +</p> 1.42 + 1.43 +<pre> 1.44 +ftp stream tcp nowait root ftpd ftpd -w /home/share/ftp 1.45 +</pre> 1.46 + 1.47 +<p> 1.48 + We choosed to store FTP files in <b>/home/share/ftp</b>, but you are 1.49 + free to use the folder you want. Now restart the inetd daemon to include 1.50 + your new settings: 1.51 +</p> 1.52 + 1.53 +<pre> 1.54 +# /etc/init.d/inetd restart 1.55 +</pre> 1.56 + 1.57 +<p> 1.58 + Finaly use a web browser to test the services. As usual, you must 1.59 + use the local IP address of the server or connect from localhost: 1.60 +</p> 1.61 +<pre class="box-share"> 1.62 +FTP server: <a href="ftp://localhost/">ftp://localhost/</a> 1.63 +</pre> 1.64 + 1.65 <h2 id="znc">IRC bouncer setup</h2> 1.66 1.67 <p> 1.68 @@ -93,7 +135,7 @@ 1.69 # killall znc 1.70 </pre> 1.71 1.72 -<h2 id="ntpd">Lightweight time server</h2> 1.73 +<h2 id="ntpd">Low resources NTP server</h2> 1.74 <p> 1.75 SliTaz Busybox multi-tool binary provides a built-in NTP 1.76 (Network Time Protocol) client/server. If you have many machines 1.77 @@ -108,10 +150,10 @@ 1.78 </pre> 1.79 1.80 <p> 1.81 - You can add this command to '/etc/init.d/local.sh' to start the daemon 1.82 - on each boot. Then from another local machine you just have to edit 1.83 - /etc/rcS.conf to set NTPD_HOST with the IP address of your NTP server. 1.84 - You can also test the server with: 1.85 + You can add this command to the boot script <b>/etc/init.d/local.sh</b> 1.86 + to start the daemon on each boot. Then from another local machine 1.87 + you just have to edit <b>/etc/rcS.conf</b> to set NTPD_HOST with 1.88 + the IP address of your NTP server. You can also test the server with: 1.89 </p> 1.90 1.91 <pre>