LundFTPD install: Difference between revisions

From Lundman Wiki
mNo edit summary
No edit summary
Line 1: Line 1:
=== Step 1 ===                                                                                                                                             
=== Step 1 ===                                                                                                                                             


* cd lundftpd/src/
* tar -zxvf lundftpd*.tar.gz
* ls Makefile*                                                                                                                                                 
* cd lundftpd/
 
* ./configure
Pick the make file for your operating system. The default one is for
* make
NetBSD and most sane Posix Unix boxes. If you want to change to a
different Makefile, for example Makefile.sunos:
 
* rm Makefile
* ln -s Makefile.sunos Makefile                                               





Revision as of 02:59, 15 September 2006

Step 1

  • tar -zxvf lundftpd*.tar.gz
  • cd lundftpd/
  • ./configure
  • make


Step 2

  • make

It requires gnumake, which could be called "make", "gmake" or "gnumake" on your system.

If all goes well, you should have a "lundftpd" binary. If if you get an error like:

build: Command not found.   

Please ignore it. It is harmless.


Step 3

You can now copy the binary executable "./lundftpd/src/lundftpd" and example configuration file "lundftpd.conf" to a desired location, or test it where it is. Either is fine.

Edit your lundftpd.conf. But I would recommend only changing items as port and paths.

The default "lundftpd.conf" assumes you use "ftp-data/" as a subdirectory from where you start lundftpd to store its data files. You will need to create it, and "ftp-logs".

  • mkdir ftp-data
  • mkdir ftp-logs


Step 4

Create yourself of at least one login (presumably with admin privileges).

  • ./lundftpd -a

You can give it privilege of "UF_ALL". Then you can do all other administrations with "SITE" commands.


=== Step 5 === Start lundftpd. The first time it can be handy to start it with logging on.

  • ./lundftpd -v

This way you can spot any issues it might have on your system. Hit ^C to exit it, and to run it properly in the background, use:

  • ./lundftpd

Remember to start lundftpd in the directory where ftp-data/ is!


=== Step 6 === Login, and look around. Tweak your "lundftpd.conf" until you are happy. When lundftpd is running, you will notice it is three processes. (Unless you have increased the number of dirlist child helpers). To stop lundftpd, you can just send "INT" to the main one. (Generally the process with the lowest <pid>)

  • kill -INT <pid>

Or perhaps:

  • pkill -INT lundftpd

INT tells it to cleanly finish, let the checker child save its list of entries to test and exit. If you HUP it, or use -9, the checker child will just exit, and if there were files to test in the queue, they will not be tested. (Unless you use "SITE RESCAN" to re-issue those missed entries).