SamyGO bftpd

Here are software that related with Samsung B series TVs. Like hex editors, new version of BusyBox or internal software, app programs that will run in your TV hardware.:!:This forum is NOT FOR USER QUESTIONS or Problems.

geo650
Official SamyGO Developer
Posts: 303
Joined: Wed Oct 07, 2009 12:03 pm

Re: SamyGO bftpd

Post 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!
geo650
Official SamyGO Developer
Posts: 303
Joined: Wed Oct 07, 2009 12:03 pm

Re: SamyGO bftpd

Post 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?
dasilverpaladin
Official SamyGO Developer
Posts: 119
Joined: Sat Oct 31, 2009 1:04 am

Re: SamyGO bftpd

Post by dasilverpaladin »

try it with full paths, had the same issue and i think with full path it worked
geo650
Official SamyGO Developer
Posts: 303
Joined: Wed Oct 07, 2009 12:03 pm

Re: SamyGO bftpd

Post 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.
RakDrak
SamyGO Project Donor
Posts: 11
Joined: Sun Apr 29, 2012 10:11 am

Re: SamyGO bftpd -writing speed

Post 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

Post Reply

Return to “[B] Software”