Setup FTP video location in SamyGo Virtual usb

General Forum for talking area for D series TVs.
Post Reply

whhaatt
Posts: 4
Joined: Sat Mar 29, 2014 7:07 pm

Setup FTP video location in SamyGo Virtual usb

Post by whhaatt » Sat Mar 29, 2014 7:10 pm

Hi is there a way to add a FTP location eg put.io

The url is ftp://ftp.put.io

This requires a username and password, if so how would i do this so that i can browse the contents of this site?

User avatar
juusso
SamyGO Moderator
Posts: 9775
Joined: Sun Mar 07, 2010 6:20 pm

Re: Setup FTP video location in SamyGo Virtual usb

Post by juusso » Sat Mar 29, 2014 7:11 pm

search for curlftpfs and it`s script.
LE40B653T5W,UE40D6750
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

whhaatt
Posts: 4
Joined: Sat Mar 29, 2014 7:07 pm

Re: Setup FTP video location in SamyGo Virtual usb

Post by whhaatt » Sat Mar 29, 2014 7:28 pm

I have but it does not make sense.

Which directory do i need to put the script in and how do i create the script to either prompt for a password for the site or hardcode into script?

whhaatt
Posts: 4
Joined: Sat Mar 29, 2014 7:07 pm

Re: Setup FTP video location in SamyGo Virtual usb

Post by whhaatt » Sun Mar 30, 2014 6:04 pm

Ok I have done the following

Downloaded and added curlftps

/mtd_rwcommon/widgets/user/SamyGO/SamyGO/etc/init.d/04_04_curlftp.init

edited to the following

Code: Select all

#!/bin/sh
#
#	Copyright 1996-2010, ZsoltTech.Com
#       by Ser Lev Arris <arris@ZsoltTech.Com>
#
#       donated for the SamyGo Project
#       http://samygo.sourceforge.net/
#
#       Version: SamyGO svn $Id: 04_04_curlftp.init.dis 523 2010-05-04 18:27:56Z arris $
#

. /dtv/SGO.env
HOME=/mtd_wiselink
##### CHANGE MEEEEE !!!!! ######
USER="test"
PASSWD="test"
##### CHANGE MEEEEE END ######

[ -e /mtd_rwarea/smb_userdata ] && source ###/mtd_rwarea/smb_userdata

[ -z $USER ] && exit 1
[ -z $PASSWD ] && exit 1

SERVER="ftp://ftp.put.io"

DEST_DIR=/dtv/usb/curlftp
DEST_DIR=/mtd_wiselink/curlftp

FR_NAME="FTP Server"

do_mount()
{
        mkdir -p $DEST_DIR
        curlftpfs $USER:$PASSWD@$SERVER $DEST_DIR
        sleep 3
                $(echo -e "[sdd]\nVendor : FTPFsMount\nProduct : $FR_NAME\n\
Serial : Q80VQLFD\nDevpath : 4\nLun : 0\nMountDir : $DEST_DIR\nFileSystem : vfat\n" >> /dtv/usb/log)
        cd -
}

case $1 in
        start)
        insmod $MOD_DIR/kernel/fs/fuse/fuse.ko
        do_mount
        ;;
        stop)
        # may can fail if device access the mount from content library
        # attention: djmount use fuse too, difference is vfat on or fuse on
        # in output of mount
        # for i in $(cat /proc/mounts | grep fuse | cut -d " " -f2) ; do
        for i in $(cat /proc/mounts | grep fuse | grep -v vfat | sed 's/^\(.*\) \(.*\) fuse .*/\2/') ; do
                umount $i
        done
        ;;
        status)
        ;;
        *)
        echo "Usage: $0 {start|stop}" 1>&2
        exit 0
        ;;
esac
I have also deleted the following files

Code: Select all

/mtd_content/database/Ace.dat (and Ace.log)
Also i added the following

Code: Select all

[sdc]
Vendor : Home
Product : Server
Serial : 30122011
Devpath : 7
Lun : 0
ScsiDevicePath : /dev/sdc1
MountDir : /dtv/usb/sda1/nfs
FileSystem : vfat
to

Code: Select all

/dtv/usb


The server option shows, but when i click on it and select videos the egg timer equivalent appears for ever

What have i done worng?

whhaatt
Posts: 4
Joined: Sat Mar 29, 2014 7:07 pm

Re: Setup FTP video location in SamyGo Virtual usb

Post by whhaatt » Fri Apr 04, 2014 7:09 pm

Anyone?

Post Reply

Return to “[D] General”