LundFTPD install: Difference between revisions

From Lundman Wiki
No edit summary
mNo edit summary
Line 1: Line 1:
=== Step 1 ===                                                                                                                                            * cd lundftpd/src/
=== Step 1 ===                                                                                                                                             
 
* cd lundftpd/src/
* ls Makefile*                                                                                                                                                   
* ls Makefile*                                                                                                                                                   


Line 44: Line 46:
Create yourself of at least one login (presumably with admin privileges).                                                                                                                                                     
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  
* ./lundftpd -a  
 
You can give it privilege of "UF_ALL". Then you can do all other administrations  
with "SITE" commands.                                                                                         
with "SITE" commands.                                                                                         




=== Step 5 ===                                                                                                                                                      Start lundftpd. The first time it can be handy to start it with logging on.     
=== 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 -v  
* ./lundftpd                                                                                                                                                    Remember to start lundftpd in the directory where ftp-data/ is!                                       
 
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!                                       




Line 59: Line 67:
the process with the lowest <pid>)           
the process with the lowest <pid>)           


* kill -INT <pid>                                                                                                                                              Or perhaps:  
* kill -INT <pid>                                                                                                                                               
* pkill -INT lundftpd                                                                                                                                          INT tells it to cleanly finish, let the checker child save its list of  
 
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
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  
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).
not be tested. (Unless you use "SITE RESCAN" to re-issue those missed entries).

Revision as of 03:52, 28 December 2005

Step 1

  • cd lundftpd/src/
  • ls Makefile*

Pick the make file for your operating system. The default one is for 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


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).