OESF Portables Forum

Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => 6000 - Tosa => Topic started by: nilch on January 19, 2005, 06:22:06 pm

Title: Ftp Server On Zaurus 6000
Post by: nilch on January 19, 2005, 06:22:06 pm
Is there an ftp server (FTPD) for the 6000 which works fine ?

I already tried the troll-ftpd and pure-ftpd.
While the troll-ftpd comes out with an error "421 Cannot getsockname errno=88"

pure-ftpd also does not seem to do anything, stays quite if started from console.
Even tried restarting the inetd after edits.

I did edit the /etc/inetd.conf file (after reading up the pervious posts about ftpd on tkcROM). Point is, is there any special tweaks for the 6000 ?

When I try connecting from my windows client to 192.168.129.201 it just says
500 connection refused.
The processmanager firstly doesnt show any FTPD daemon on, so I am sure the FTP server isnt started at all.


Thanks
Title: Ftp Server On Zaurus 6000
Post by: inode0 on January 19, 2005, 06:40:48 pm
Quote
Is there an ftp server (FTPD) for the 6000 which works fine ?

Do you need a general ftp server or might sftp, from th ssh package, work for your needs?  It works fine for me and I really haven't seen a need to have any other ftp access into the 6k.

John
Title: Ftp Server On Zaurus 6000
Post by: nilch on January 19, 2005, 09:40:45 pm
sftp will do fine as long as I can ftp to and fro files from the zaurus and the desktop FAST.

Can you give a short desc on how to setup sftp on 6000 ?
Title: Ftp Server On Zaurus 6000
Post by: inode0 on January 20, 2005, 09:55:10 am
Just install the ssh package and it should just work.  I don't remember any special things that needed to be done.  You can configure ssh to taste, but for simple sftp with passwords it should work out of the box,

John
Title: Ftp Server On Zaurus 6000
Post by: soundwave106 on January 20, 2005, 11:00:22 am
pure-ftpd works on the SL-6000L.

Yes, it will do nothing when run from the console, but that's normal. You should be able to connect to it (you may need to run as root though).

In Linux, you can run *any* command as a background task by appending a space and an ampersand, e.g.:

/usr/sbin/pure-ftpd &

This will run pure-ftpd as a server process. I actually put that line in my /etc/rc.d/rc.local file, since I want to run pure-ftpd all the time.

Downside: if run in the background, the only way to kill pure-ftpd is the standard Unix way:
1) Find the pure-ftpd process via
ps -ef | grep pure-ftpd (*)
2) Look at the first number in the row, this is the PID.
3) Kill the PID number that is associated with the program (kill %pid%, e.g. kill 296 if 296 was the PID for pure-ftpd)

Pure-FTPD uses Linux logins as its account management too. You'll have to use /bin/adduser and /bin/deluser in order to add or delete accounts. *AND* you'll probably want to put passwords on your root and zaurus account (using the passwd account) if you are connecting on any public network.

So there may be better options, but pure-ftpd works. For me at least.

(*) ps: Shows all process on Unix. -e = all process -f = full. grep: searches lines that gets fed into it for a pattern.
Title: Ftp Server On Zaurus 6000
Post by: nilch on January 20, 2005, 12:30:10 pm
Thanks, I actually did manage to get teh pure-ftp working on my Z - just that the edit  line in etc/inetd.conf as mentioned in a previous post didnt do the trick, it was the 'pure-ftpd &' which worked (I wasnt aware of that earlier but followed how FBVNCSERVER worked and got that background process trick.

Also setup an icon to fire up pure-ftpd and I can kill it thru process manager (which I dont really need to kill often).

Maybe putting itin etc/rc.d/rc.local file to start it up right at boot time will be a better option as you did.

Thanks all the same.