source: extensions/net.sf.basedb.ftp/trunk/README @ 985

Last change on this file since 985 was 985, checked in by Nicklas Nordborg, 13 years ago

Fixes #127: Update to final release of Apache Mina FTP server

  • Property svn:mime-type set to text/x-trac-wiki
File size: 3.1 KB

Requirements

  1. BASE 2.10.0 or later.

Introduction

This package is an extension package to BASE that installs a small FTP server as part of the web server. It uses the Apache FTP Server library for the actual handling of the FTP protcol.

Installation

  1. Download the base-ftpserver-*.tar.gz file.
  2. Unpack the downloaded file to a directory of your choice.
  3. Copy the ftp-config.xml file to WEB-INF/classes directory.
  4. The default ftp-config.xml file creates a regular FTP service with the control connection on port 2121. There is also an example of an SSL-enabled configuration. For more information about configuration options see: http://mina.apache.org/ftpserver/documentation.html
  5. Copy the base-ftpserver.jar file and the lib directory, including sub- directories and files, to your BASE extensions directory, WEB-INF/extensions.
  6. Run the Extensions -> Manual scan command to install the extension. If you have enabled automatic installation, just sit back and wait for it to find the FTP server extension.
  7. The FTP Server should now be running, but it only allows the root user to login. To enable other users to login you have to start an FTP client, connect to your BASE FTP server and login as root. This will register the FTP server as a new client application that is shared to Everyone. To limit which users that can access the FTP server go to Adminstrate -> Clients and change the sharing options for the FTP Server.
  8. Done.

Known issues

  • BASE allows that a directory has the same name as a file. This may confuse FTP clients since that is normally not allowed. The result for certain operations is undefined for files and directories that has the same name.

Tips and tricks

  • If you want to try out an SSL enabled FTP server, but doesn't have a certificate, you may create one with the following command:

keytool -genkey -keystore test.jks -storetype JKS -storepass test -keypass test -alias test

Compiling

To compile this package you also need:

  1. Ant 1.6
  2. Java 1.6

Follow these instructions:

  1. Download the source code from the subversion repository. See http://baseplugins.thep.lu.se/wiki/net.sf.basedb.ftp for instructions.

  1. Type ant download-lib to automatically download the BASE core JAR file that are neeed for compilation. You can also do this manually by copying the BASE2Core.jar and BASE2Webclient.jar from the BASE installation directory (<basedir>/www/WEB-INF/lib/) to the ./lib/compile directory.
  1. Type ant to compile the code and generate the base-ftpserver.jar file in the project directory.
  1. Use ant package to create a downloadable tar.gz package.

Tip: If you need different values for any of the properties defined in the 'build.xml' file, create a file named 'build.properties' and set the values there.

Note: See TracBrowser for help on using the repository browser.