Page 1 of 2

Re: SamyGO bftpd

Posted: Sun Dec 06, 2009 9:29 pm
by geo650
I had the same problem, then I made such things:

1) extract to USB stick both bftpd and bftpd.conf files
2) extract to USB stick 2 additional files: libcrypt.so.1 and libz.so.1 from SamyGO All Extensions v0.03.zip (if you have not installed them before)
3) insert USB stick
4) run telnet and for installation type:

Code: Select all

mkdir /mtd_rwarea/SamyGO
cd /mtd_rwarea/SamyGO
cp /dtv/usb/sda1/bftpd* .
cp /dtv/usb/sda1/lib* .
As you can see, I prefer to use SamyGO subdirectory inside mtd_rwarea directory.

5) then for run type:

Code: Select all

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/mtd_rwarea/SamyGO
/mtd_rwarea/SamyGO/bftpd -d -c /mtd_rwarea/SamyGO/bftpd.conf
Thank you!

Re: SamyGO bftpd

Posted: Thu Feb 04, 2010 11:50 pm
by geo650
FTP daemon is working fine, but I realized that when huge files are copied - the TV is very lazy and remote control response time is quite long. I think, one more command has to be executed after bftpd process is started: we should set lower priority for bftpd process, i.e.:

1) Check PID of bftpd process using ps command (in my example PID=55)
2) use renice command for setting new (low) priority:

Code: Select all

renice +19 55
or alternatively, use nice command on init:

Code: Select all

nice -n +19 ...../bftpd -d -c ...../bftpd.conf
Remote control performance seems to be a bit better after bftpd process' priority has been altered.
What do you think?

Re: SamyGO bftpd

Posted: Sat Mar 13, 2010 2:20 pm
by dasilverpaladin
try it with full paths, had the same issue and i think with full path it worked

Re: SamyGO bftpd

Posted: Sun Mar 14, 2010 12:39 am
by geo650
You were trying to execute... a directory! ;)

Try this:

Code: Select all

nice -n +19 /mtd_rwarea/SamyGO/bftpd/bftpd -d -c /mtd_rwarea/SamyGO/bftpd/bftpd.conf
where nice -n +19 is optional thing described earlier

...and after testing, it is worth to create a loading script (ftp.sh for example) that may contain all neccessary shell commands. That script might be loaded in starting script to get ftp daemon always ready. That's what I have been done in my TV. FTP daemon is very useful for me.

Re: SamyGO bftpd -writing speed

Posted: Sun Apr 29, 2012 10:15 am
by RakDrak
If you would like increase writing speed over FTP, you haveto change default FTP setting in bftpd.conf
On my TV:
XFER_BUFSIZE="2048" cca 170kB/s
XFER_BUFSIZE="64000" cca 500kB/s