1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> 2<HTML> 3<HEAD> 4 <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21"> 5 <TITLE>bftpd documentation: Installation</TITLE> 6 <LINK HREF="bftpddoc-en-3.html" REL=next> 7 <LINK HREF="bftpddoc-en-1.html" REL=previous> 8 <LINK HREF="bftpddoc-en.html#toc2" REL=contents> 9</HEAD> 10<BODY> 11<A HREF="bftpddoc-en-3.html">Next</A> 12<A HREF="bftpddoc-en-1.html">Previous</A> 13<A HREF="bftpddoc-en.html#toc2">Contents</A> 14<HR> 15<H2><A NAME="s2">2.</A> <A HREF="bftpddoc-en.html#toc2">Installation</A></H2> 16 17<H2><A NAME="ss2.1">2.1</A> <A HREF="bftpddoc-en.html#toc2.1">Compiling</A> 18 </H2> 19 20<P>First execute the following commands (replacing x.x.x by the version number you are installing): 21<BLOCKQUOTE><CODE> 22<PRE> 23tar xzf bftpd-x.x.x.tar.gz 24cd bftpd-x.x.x 25./configure 26make 27make install 28 29</PRE> 30</CODE></BLOCKQUOTE> 31 32Note that you have to copy bftpd.conf from the source directory to /etc manually if you are upgrading from a previous version, as 'make install' does not overwrite your existing configuration.</P> 33<P>Note: If you want to use the 'tar.gz on-the-fly' feature of bftpd, you must 34grab the source code of the program "pax" and extract it into 35a subdirectory of the bftpd source directory. Then, instead of doing 36"./configure", do "./configure --enable-pax=pax-sourcedir --enable-libz". 37You must also have the library libz and its header file, /usr/include/zlib.h.</P> 38<H2><A NAME="ss2.2">2.2</A> <A HREF="bftpddoc-en.html#toc2.2">Running the server</A> 39</H2> 40 41<P>bftpd runs in either standalone or inetd mode. 42<DL> 43<DT><B>If you want inetd mode</B><DD><P>Add the following to your /etc/inetd.conf: 44<BLOCKQUOTE><CODE> 45<PRE> 46ftp stream tcp nowait root /usr/sbin/bftpd bftpd 47</PRE> 48</CODE></BLOCKQUOTE> 49 50Give inetd a HUP or reboot your system. Your FTP server 51should work now.</P> 52<DT><B>If you want inetd mode with xinetd</B><DD><P>Add the following to your /etc/xinetd.conf: 53<BLOCKQUOTE><CODE> 54<PRE> 55service ftp 56{ 57 disable = no 58 socket_type = stream 59 wait = no 60 user = root 61 server = /usr/sbin/bftpd 62 log_on_success += DURATION USERID 63 log_on_failure += USERID 64 nice = 10 65} 66</PRE> 67</CODE></BLOCKQUOTE> 68 69(contributed by JackRipper)</P> 70<DT><B>If you want standalone mode:</B><DD><P>Make the OS execute 71<BLOCKQUOTE><CODE> 72<PRE> 73/usr/sbin/bftpd -d 74</PRE> 75</CODE></BLOCKQUOTE> 76 77at bootup.</P> 78</DL> 79</P> 80<HR> 81<A HREF="bftpddoc-en-3.html">Next</A> 82<A HREF="bftpddoc-en-1.html">Previous</A> 83<A HREF="bftpddoc-en.html#toc2">Contents</A> 84</BODY> 85</HTML> 86