Page 1 of 8
[SOLVED] FTP and Files Overwrite
Posted: Sun Apr 21, 2013 12:00 pm
by miazza
hello to everybody,
I'm a real beginner with linux and therefore I ask before to make disasters.
I have samygo installed on TV
I have FTP perfectly running
Now, in order to start to use SMB I need to overwrite some files in the following folders:
/mtd_rwarea
/mnt/etc/samba
/mnt/etc/init.d
is it sufficent to overwrite the files by FTP or shall I also modify the permissions of the files ?
I ask this because once I forgot to change permissions on my mobile and needed to reflash it.
Sorry for the noob question.
Hopefully when my SMB will be running I will write a tutorial for noob like me...
miazza
Re: FTP and Files Overwrite
Posted: Sun Apr 21, 2013 12:32 pm
by juusso
viewtopic.php?f=53&t=5817&p=41632#p41632
What is the output (in netcat session) to those commands:
Code: Select all
. /dtv/SGO.env
/mnt/etc/init.d/04_04_samba.init start
Re: FTP and Files Overwrite
Posted: Sun Apr 21, 2013 1:04 pm
by miazza
Hi juuso,
I have never used netcat... ...but I will do soon and I will post the answer.
There is alot to read and to study and I like this..

Thanks for your for the time being.
miazza
Re: FTP and Files Overwrite
Posted: Sun Apr 21, 2013 1:07 pm
by juusso
You can`t use putty, it wont work on E series, just netcat.
EDIT:
Okey, we have troubleshooted ES7505 and as result - non working cifs.ko module. Now you need to edit 04_04.samba.init and replace
Code: Select all
case $1 in
start)
insmod $MOD_DIR/kernel/fs/cifs/cifs.ko
to
Code: Select all
case $1 in
start)
insmod $SYSROOT/lib/modules/81/2.6.35.13/kernel/fs/cifs/cifs.ko
after this restart tv and pray
for NFS should be same way:
Code: Select all
case $1 in
start)
# for systems with modular nfs kernel support
insmod $MOD_DIR/kernel/net/sunrpc/sunrpc.ko
insmod $MOD_DIR/kernel/fs/lockd/lockd.ko
insmod $MOD_DIR/kernel/fs/nfs_common/nfs_acl.ko
insmod $MOD_DIR/kernel/fs/nfs/nfs.ko
??
Code: Select all
case $1 in
start)
# for systems with modular nfs kernel support
insmod $SYSROOT/lib/modules/81/2.6.35.13/kernel/net/sunrpc/sunrpc.ko
insmod $SYSROOT/lib/modules/81/2.6.35.13/kernel/fs/lockd/lockd.ko
#insmod $SYSROOT/lib/modules/81/2.6.35.13/kernel/fs/nfs_common/nfs_acl.ko #module doesnt exist at all!
insmod $SYSROOT/lib/modules/81/2.6.35.13/kernel/fs/nfs/nfs.ko
Re: FTP and Files Overwrite
Posted: Sun Apr 21, 2013 2:53 pm
by miazza
I tried with putty and I do not have any output...
Standard Telnet not working...
miazza
Re: FTP and Files Overwrite
Posted: Sun Apr 21, 2013 5:29 pm
by juusso
putty wont work, just netcat. But now you don`t need it at all, just use ftp, get file, edit it and upload it back to tv.
Re: FTP and Files Overwrite
Posted: Sun Apr 21, 2013 5:35 pm
by miazza
juuso wrote:Or you can use putty, but i dont know if it will work on E series.
Okey, we have troubleshooted ES7505 and as result - non working cifs.ko module. Now you need to edit 04_04.samba.init and replace
Code: Select all
case $1 in
start)
insmod $MOD_DIR/kernel/fs/cifs/cifs.ko
to
Code: Select all
case $1 in
start)
insmod $SYSROOT/lib/modules/81/2.6.35.13/kernel/fs/cifs/cifs.ko
after this restart tv and pray
In summary this is the situation:
FTP running fine
Putty working even if I'm not very familiar with that.
04_04.samba.init modified as suggested and:
DEST_DIR=$MOUNT_PATH/smb
SERVER="191.168.1.5"
#SERVER="191.168.1.5? # if you want a fixed server
SHARES="PUBLIC"
FR_NAME="Samba Server"
# M_OPTS="rw,user=${USER},password=${PASSWD}"
M_OPTS="$PERM,user=${USER},password=${PASSWD},codepage=cp1250,iocharset=utf8"
SERVERS="Don't set me!!"
smb.conf -> /mnt/etc/samba:
# set workgroup, own share etc...
include = /mtd_rwarea/smb.conf
workgroup = HOME
netbios name = Samsung-TV
server string = Some Server
04_04_samba.init -> /mnt/etc/init.d
smb_userdata not present.
The result continue to be the same:
Samygo virtual usb running but I can only see:
- video
- photo
- music
When I enter one of these I only see OCAP-LSV and nothing else even after long time.
any suggestion ?
miazza
Re: FTP and Files Overwrite
Posted: Sun Apr 21, 2013 6:05 pm
by juusso
Suggestion is to read what we`re posting. Thanks.
Re: FTP and Files Overwrite
Posted: Sun Apr 21, 2013 6:33 pm
by miazza
juuso wrote:Suggestion is to read what we`re posting. Thanks.
Hi juuso,
it is the whole day I'm reading and trying everything.
Most likely II've lost something.
Never mind.
May be I'm too much beginner for such a job.
Sorry if I took your time.
Ciao
miazza
I have also edited 04_04.samba.init and replaced it as you recommended:
case $1 in
start)
insmod $SYSROOT/lib/modules/81/2.6.35.13/kernel/fs/cifs/cifs.ko
Re: FTP and Files Overwrite
Posted: Mon Apr 22, 2013 7:52 pm
by juusso
Try to
reinstall widget. Something was fixed... And tell about result.