Author Topic: ftp server query  (Read 1181 times)

jakfish

  • Jr. Member
  • **
  • Posts: 97
ftp server query
« on: February 10, 2010, 09:33:17 PM »
Hi, All,

I've searched but haven't found the answer: I'd like to know if there is simple ftp server software available for the 3mx-ultra OS.  I have a Nokia E90 with which I'd like to swap files.  The Nokia Series 60 has ftp client software, but I need basic ftp server software to run on my EPC.  Any help would be greatly appreciated,

Jake

wicknix

  • Hero Member
  • *****
  • Posts: 630
Re: ftp server query
« Reply #1 on: February 11, 2010, 04:04:54 AM »
I'm a little backed up with program requests at the moment. So if you don't want to wait you can download this: http://packages.debian.org/etch/pure-ftpd (and libcap and libpam and pureftpd-common) and use the debian deb extractor (found in the forum somewhere) to package it up, or wait a little bit for me to catch up. :)

Cheers.

jakfish

  • Jr. Member
  • **
  • Posts: 97
Re: ftp server query
« Reply #2 on: February 11, 2010, 03:08:42 PM »
I took a breath and downloaded the deb apps.  Extraction went well but I had problems getting the mk3mx script to work.  I've never played with compiling, so I know I'm screwing up something.  I do believe I'll wait for your expertise and beg you for it from time to time :)

As you saw, I posted a glowing review/tips of 3mx-Ultra over at hpcfactor.com hoping to generate interest in it over there as well.  It's been buried by other posts, but your fine hpc linux thread keeps coming up, so maybe 3mx-Ultra will rear its head now and then.

Best,
Jake

Edit: Okay, found out that mk3mx is long gone, replaced by mkxap, which appears to work.  But I fret that I'm about to make installable apps that will blow up my LLL.  For instance, when I extracted libcap1_1.10-14+b1_mips, I got three directories: share, lib, usr.  To compile these together, would this be the right command in console: mkxap test usr share lib
Or do I use "mkxap test usr" then "mkxap test1 share" and so on?

I'm a little uneasy with my root power here.

Jake
« Last Edit: February 11, 2010, 05:46:17 PM by jakfish »

wicknix

  • Hero Member
  • *****
  • Posts: 630
Re: ftp server query
« Reply #3 on: February 11, 2010, 09:01:28 PM »
Make sure you grab the 'mipsel' files instead of the 'mips' ones, but yeah you'd use the script like so:
./mkxap name-of-app folder1 folder2 etc etc

In your case:
./mkxap pure-ftpd usr share lib

There is one BIG thing you should note. All 3MX Ultra libs reside in /lib (not /usr/lib) so in order not to break the symlink i created linking /usr/lib to /lib i highly recommend moving any files that were extracted to /usr/lib to /lib (make the new /lib directory and move the files from /usr/lib into it and delete /usr/lib) then package it up. :)

Cheers

jakfish

  • Jr. Member
  • **
  • Posts: 97
Re: ftp server query
« Reply #4 on: February 12, 2010, 12:43:38 AM »
Many thanks for such clear help.  Because of that, I was actually able to compile the pure-ftp app.  But here's the bummer: one of the libraries in the libcap is empty.  libcap.so.1 is listed but it's empty and thus it wouldn't compile in a xap file; the compilation won't add the file.  So when I tried to start "pure-ftpd &" bash complained that it couldn't find the library.  I was able to extract the library with another program and drop it into /lib but no go.

Now I get: "#pure-ftpd: error while loading shared libraries: /opt/mipsel/mipsel-linux/lib/libcap.so.1: file too short"

Yeah, I would say empty is too short.  I've downloaded from two different sites, but a full file is not in either lib directory.

Any advice about this?

Jake

wicknix

  • Hero Member
  • *****
  • Posts: 630
Re: ftp server query
« Reply #5 on: February 12, 2010, 04:55:50 AM »
Sounds like a bad symlink. Try making the .xap from a linux partition, or from a directory in 3MX itself. Fat/fat32/ntfs etc can't handle symlinks, and that's what libcap.so.1 is, a symlink, not the actual library. That was one flaw in the directions of that deb extraction program. Extracting to fat/fat32/ntfs will break the symlinks and debs should only be extracted on linux file systems to preserve symlinks and permissions.

You could easily fix that though. Type rm /lib/libcap.so.1 to delete the bad file, then find the actual libcap library in /lib then cd to /lib then type: ln -s libcap.so.x.x.x (x.x.x being the actual library version) libcap.so.1
That should solve your broken symlink issue.

Cheers

jakfish

  • Jr. Member
  • **
  • Posts: 97
Re: ftp server query
« Reply #6 on: February 12, 2010, 12:45:36 PM »
You did it--once I extracted and compiled in /root/downloads, it all went swimmingly, and you're right, it was a symlink and showed up as such.  So pure-ftpd runs, but there's always a caveat :)

When I establish a static address, I lose my internet connection.  Everything is fine if, in Wireless LAN manager, I choose "dhcp" rather than "static."  But I get no internet, if I choose, for example:

Address: 192.168.1.250
Netmask: 255.255.255.0
Broadcast: 192.168.1.255
Gateway: 192.168.1.1

I am using a Linksys WRT54G router with no encryption.  I have an XP SP3 laptop w/ static address acting as ftp server, so a static address works elsewhere.  And I need a static address for ftp server stuff, no?

Again, many thanks for your help because I do believe pure-ftpd is working.

Jake

jakfish

  • Jr. Member
  • **
  • Posts: 97
Re: ftp server query
« Reply #7 on: February 14, 2010, 02:24:00 AM »
Here's a workaround.  Although neither gftp nor firefox's own ftp client add-on (use version .97, which apparently is the last version to work with Firefox 2.*) connected to the Nokia's ftp server for file swapping, I was able to bring up the ftp page of the Nokia's files in bon echo.  So I could download, and once I installed the firefox add-on for ftp upload (http://www.wg9s.com/mozilla/firefox/extensions/ftpupload/), I can now swap files back and forth.

Googling shows that linux ftp clients can be hit-or-miss with ftp servers so this workaround may help people beyond Nokia users.

Jake

wicknix

  • Hero Member
  • *****
  • Posts: 630
Re: ftp server query
« Reply #8 on: February 21, 2010, 08:49:47 PM »
Upon further digging i noticed pure-ftpd needed a lot more deps so i packaged the whole ball of wax up. You can try it out if you wish. This package includes the 'full' perl-5.8.8 package as well because it was required.

http://www.taitaonline.co.uk/3MX/packages/3MX-Ultra/pure-ftpd-R3-01(20100221).info
http://www.taitaonline.co.uk/3MX/packages/3MX-Ultra/pure-ftpd-R3-01(20100221).xap

Cheers
« Last Edit: February 21, 2010, 09:20:30 PM by wicknix »

jakfish

  • Jr. Member
  • **
  • Posts: 97
Re: ftp server query
« Reply #9 on: March 12, 2010, 09:00:43 PM »
I took the plunge and installed the package.  Works great, with the setup a little tricky for a newbie like me.

This site helped me the most (I found the actual ftpd manual to be useless):

http://sector.ynet.sk/PureFTPd.Quick_Setup_for_Impatient

One thing I learned: "groupadd" is "addgroup" in LLL and "useradd" is "adduser"

Swaps files fine with ftp client on Nokia E90.

Thanks for compiling it,
Jake

wicknix

  • Hero Member
  • *****
  • Posts: 630
Re: ftp server query
« Reply #10 on: March 13, 2010, 04:29:23 AM »
Cool. Glad to hear it works. Hadn't had a chance to mess with it yet.

Cheers.