DrFTPD 3 on Debian 64bit

Generic questions and request for help of DrFTPD 3.0

Moderator: developers

DrFTPD 3 on Debian 64bit

Postby eric » Thu Jul 14, 2011, 12:41 pm

Hallo

I've tried to install DrFTPD 3 with the DrFTPD 3.0 Automated Scripts
but this never works on my server
now i'd like to try it without using the script

i hope some pros can tell me if this the right methode to do it :

1 updating the system

Code: Select all
apt-get update && apt-get upgrade


2.Installing the packages that are required

Code: Select all
apt-get install openjdk-6-jdk
apt-get install ant
apt-get install zip
apt-get install wget
apt-get install subversion


3. ant Configuration

Entering the following commands in the shell

Code: Select all
export ANT_HOME=/usr/share/ant
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
ln -s /usr/lib/jvm/java-6-openjdk/bin/java /bin/java
ln -s /usr/share/ant/bin/ant /bin/ant


4. Downloading and installing DrFTPD 3

installdir for DrFTPD 3

Code: Select all
cd.. /home/eric/


Code: Select all
mkdir DrFTPD 3 


Code: Select all
cd DrF<TAB>


download drftpd-3.0beta-deps.zip

Code: Select all
wget http://downloads.sourceforge.net/project/drftpd/drftpd-dependencies/3.0/drftpd-3.0beta-deps.zip?use_mirror=dfn


Code: Select all
unzip drftpd-3.0beta-deps.zip
rm drftpd-3.0beta-deps.zip


4 extracting the tar files located in extsources
Code: Select all
cd extsources
tar xfvz ant-contrib-1.0b3-src.tar.gz
unzip apache-ant-1.8.2-src.zip
unzip apache-log4j-1.2.16.zip
unzip charva.zip
unzip commons-lang-2.6-src.zip
tar xfvz commons-logging-1.1.1-src.tar.gz
unzip commons-net-3.0.1-src.zip
unzip jakarta-oro-2.0.8.zip
unzip jpf-src-1.5.0.zip
unzip jpf-src-1.5.1.zip
unzip junit4.8.2.zip
unzip libreplacer.zip
unzip lucene-3.2.0.zip
unzip wrapper-delta-pack-3.5.9.zip




rm ant-contrib-1.0b3-src.tar.gz
rm apache-ant-1.8.2-src.zip
rm apache-log4j-1.2.16.zip
rm charva.zip
rm commons-lang-2.6-src.zip
rm tar xfvz commons-logging-1.1.1-src.tar.gz
rm commons-net-3.0.1-src.zip
rm jakarta-oro-2.0.8.zip
rm jpf-src-1.5.0.zip
rm jpf-src-1.5.1.zip
rm junit4.8.2.zip
rm libreplacer.zip
rm lucene-3.2.0.zip
rm wrapper-delta-pack-3.5.9.zip


5. build DrFTPD 3

Code: Select all
cd extsources
cd apache-ant-1.8.2
./build.sh


.dist files, slave.zip, master.sh and slave.sh will be created

Code: Select all
unzip slave.zip
rm slave.zip

in the instaldir (DrFTPD 3)
6. Rename .dist files to .conf

rename all new created .dist files to .conf

7. Configure .conf files

Code: Select all
Edit  .conf files

Edit slave.conf
Edit slave.portfrom and slave.portto


8. chmod the files start master.sh und slave.sh

Code: Select all
chmod 744 master.sh
chmod 744 slave.sh
chmod 744 bin/wrapper


8. Start Master add the slave in the master configuration and start it

Code: Select all
./master.sh
./slave.sh


Are these all the necessary steps to make DrFTPD 3 works ?

thanks in advance
eric
 
Posts: 26
Joined: Thu Jun 02, 2011, 12:48 pm

Re: DrFTPD 3 on Debian 64bit

Postby djb61 » Thu Jul 14, 2011, 6:18 pm

Quite a few redundant bits.

  • You don't need to do anything with extsources, this is simply to ensure compliance with licences for the dependencies, i.e. making the source available.
  • Not sure what the cd to apache-ant-1.8.2 is for in step 5, the build.sh script should be run from the root of the directory you checked the dr3 tree out to.
  • You don't need to rename the .conf.dist to .dist, the installer does this automatically. Note it only does this the first time (so as to not overwrite any local conf changes) so when upgrading you may want to diff them and copy across any changes/additions.
  • You don't need to unzip slave.zip for a local slave running on the master, this is purely for installing a slave on another machine/dir
  • You don't need to chmod the master.sh, slave.sh or bin/wrapper on the master box, the installer does this for you. You will however need to do it for bin/wrapper and slave.sh on any other machines you install using slave.zip as a zip file cannot preserve permissions.
djb61
Node's little helper
 
Posts: 160
Joined: Fri Oct 06, 2006, 6:50 pm

Re: DrFTPD 3 on Debian 64bit

Postby eric » Thu Jul 14, 2011, 7:02 pm

djb61 wrote:Quite a few redundant bits.

  • You don't need to do anything with extsources, this is simply to ensure compliance with licences for the dependencies, i.e. making the source available.
  • Not sure what the cd to apache-ant-1.8.2 is for in step 5, the build.sh script should be run from the root of the directory you checked the dr3 tree out to.
  • You don't need to rename the .conf.dist to .dist, the installer does this automatically. Note it only does this the first time (so as to not overwrite any local conf changes) so when upgrading you may want to diff them and copy across any changes/additions.
  • You don't need to unzip slave.zip for a local slave running on the master, this is purely for installing a slave on another machine/dir
  • You don't need to chmod the master.sh, slave.sh or bin/wrapper on the master box, the installer does this for you. You will however need to do it for bin/wrapper and slave.sh on any other machines you install using slave.zip as a zip file cannot preserve permissions.


Hallo

thank you

djb61 wrote:[*]Not sure what the cd to apache-ant-1.8.2 is for in step 5, the build.sh script should be run from the root of the directory you checked the dr3 tree out to. [/list]


Hallo but there is no "build.sh" file in in drftpd-3.0beta-deps folder. ther is only a "bin" folder a "extsources" folder and a "lib" folder

the only "build.sh" file that i found was in "extsources" folde in "apache-ant-1.8.2-src"

is it is necessary to Download Java Service Wrapper Version 3.5.9 Community edition? and move the folder to DrFTPD 3 (instalatin dir) before building DrFTPD 3 ?
because there is also a "wrapper-delta-pack-3.5.9.rar in "extsources"

for local slave running i don't need to unzip slave.zip

Are the other steps OK?

did i forget anything
eric
 
Posts: 26
Joined: Thu Jun 02, 2011, 12:48 pm

Re: DrFTPD 3 on Debian 64bit

Postby Indigo » Fri Jul 15, 2011, 5:57 am

You need to download the svn version of drftpd 3 aswell not just the dependencies:

http://www.drftpd.org/index.php/SVN_installation

svn checkout http://drftpd.svn.sourceforge.net/svnroot/drftpd/trunk
cd trunk
wget http://downloads.sourceforge.net/projec ... mirror=dfn
unzip drftpd-3.0beta-deps.zip
rm drftpd-3.0beta-deps.zip
./genkey.sh
./build.sh


you only need different deps/wrapper if you have a 64bit system: viewtopic.php?f=5&t=3543

for local slave just edit slave.conf inside drftpd/trunk/ and do ./slave.sh start
Indigo
 
Posts: 17
Joined: Wed Aug 11, 2010, 8:58 pm

Re: DrFTPD 3 on Debian 64bit

Postby eric » Fri Jul 15, 2011, 2:24 pm

Indigo wrote:You need to download the svn version of drftpd 3 aswell not just the dependencies:

http://www.drftpd.org/index.php/SVN_installation

svn checkout http://drftpd.svn.sourceforge.net/svnroot/drftpd/trunk
cd trunk
wget http://downloads.sourceforge.net/projec ... mirror=dfn
unzip drftpd-3.0beta-deps.zip
rm drftpd-3.0beta-deps.zip
./genkey.sh
./build.sh


you only need different deps/wrapper if you have a 64bit system: viewtopic.php?f=5&t=3543

for local slave just edit slave.conf inside drftpd/trunk/ and do ./slave.sh start


thank you i used [url="http://www.drftpd.org/forums/viewtopic.php?f=5&t=3543"]DrFTPD x64 (Full)]DrFTPD x64 (Full)[/url]
I get the error

Code: Select all
BUILD SUCCESSFUL
Total time:  seconds
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
        at org.drftpd.tools.installer.Wrapper.<clinit>(Wrapper.java:34)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334)
        ... 1 more
Could not find the main class: org.drftpd.tools.installer.Wrapper. Program will exit.


thanks in Advance
eric
 
Posts: 26
Joined: Thu Jun 02, 2011, 12:48 pm

Re: DrFTPD 3 on Debian 64bit

Postby Indigo » Fri Jul 15, 2011, 9:19 pm

sorry but it turns out those 64bit deps posted are the old deps (32bit deps on sourceforge were updated recently) - so you need the new deps and the specific 64bit files - to find out which exactly it's best to come on irc I think - irc.efnet.org #drftpd-devel
Indigo
 
Posts: 17
Joined: Wed Aug 11, 2010, 8:58 pm

Re: DrFTPD 3 on Debian 64bit

Postby eric » Tue Jul 19, 2011, 12:48 pm

thank you

Now I have the dr3 64bits files but i have difficulties to configure ant and java
eric
 
Posts: 26
Joined: Thu Jun 02, 2011, 12:48 pm

Re: DrFTPD 3 on Debian 64bit

Postby PingPong » Sat Jul 23, 2011, 1:09 am

openjdk won't work, you need to install the SUN java JDK.

PingPong
PingPong
 
Posts: 48
Joined: Sat May 16, 2009, 11:21 pm

Re: DrFTPD 3 on Debian 64bit

Postby eric » Sat Jul 23, 2011, 8:05 am

PingPong wrote:openjdk won't work, you need to install the SUN java JDK.PingPong


Hallo
Now i solved the probleme by editing .bashrc

Code: Select all
export ANT_HOME=/usr/share/ant
 export JAVA_HOME=/usr/lib/jvm/java-6-openjdk


I can not agree with you, open openjdk work perfect with DrFTPD 3

eric
eric
 
Posts: 26
Joined: Thu Jun 02, 2011, 12:48 pm

Re: DrFTPD 3 on Debian 64bit

Postby PingPong » Tue Jul 26, 2011, 7:11 pm

eric wrote:
PingPong wrote:openjdk won't work, you need to install the SUN java JDK.



I can not agree with you, open openjdk work perfect with DrFTPD 3


It will.... until it doesn't. :)

Ping Pong
PingPong
 
Posts: 48
Joined: Sat May 16, 2009, 11:21 pm

Re: DrFTPD 3 on Debian 64bit

Postby halfelite » Fri Jul 29, 2011, 5:27 am

Do you mind posting your updated drftpd 64bit deps?
halfelite
 
Posts: 21
Joined: Wed Sep 06, 2006, 10:41 pm

Re: DrFTPD 3 on Debian 64bit

Postby multiplier » Tue Feb 14, 2012, 8:28 pm

ig got this error on building build.sh

--> Exception in thread "main" java.lang.UnsatisfiedLinkError: no Terminal in java.library.path
multiplier
 
Posts: 3
Joined: Sun Nov 07, 2010, 8:52 am

Re: DrFTPD 3 on Debian 64bit

Postby multiplier » Tue Feb 14, 2012, 8:29 pm

i got this error: Exception in thread "main" java.lang.UnsatisfiedLinkError: no Terminal in java.library.path
multiplier
 
Posts: 3
Joined: Sun Nov 07, 2010, 8:52 am


Return to General questions

Who is online

Users browsing this forum: No registered users and 1 guest

cron