[SOLVED] FTP and Files Overwrite

Here for general support for E series TVs, request and problem solve area.
Post Reply

miazza
SamyGO Project Donor
Posts: 773
Joined: Wed Apr 03, 2013 6:10 pm

[SOLVED] FTP and Files Overwrite

Post 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
AVOID TO PUBLISH AND DISCLOSE SAMYGO PROJECTS ON OTHER FORUM.
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: FTP and Files Overwrite

Post 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
LE40B653T5W,UE40D6750,UE65Q8C
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. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE
miazza
SamyGO Project Donor
Posts: 773
Joined: Wed Apr 03, 2013 6:10 pm

Re: FTP and Files Overwrite

Post 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
AVOID TO PUBLISH AND DISCLOSE SAMYGO PROJECTS ON OTHER FORUM.
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: FTP and Files Overwrite

Post 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 :D

for NFS should be same way:
SpoilerShow

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
LE40B653T5W,UE40D6750,UE65Q8C
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. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE
miazza
SamyGO Project Donor
Posts: 773
Joined: Wed Apr 03, 2013 6:10 pm

Re: FTP and Files Overwrite

Post by miazza »

juuso wrote: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
I tried with putty and I do not have any output...
Standard Telnet not working...

miazza
AVOID TO PUBLISH AND DISCLOSE SAMYGO PROJECTS ON OTHER FORUM.
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: FTP and Files Overwrite

Post 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.
LE40B653T5W,UE40D6750,UE65Q8C
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. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE
miazza
SamyGO Project Donor
Posts: 773
Joined: Wed Apr 03, 2013 6:10 pm

Re: FTP and Files Overwrite

Post 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 :D
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
AVOID TO PUBLISH AND DISCLOSE SAMYGO PROJECTS ON OTHER FORUM.
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: FTP and Files Overwrite

Post by juusso »

Suggestion is to read what we`re posting. Thanks.
LE40B653T5W,UE40D6750,UE65Q8C
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. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE
miazza
SamyGO Project Donor
Posts: 773
Joined: Wed Apr 03, 2013 6:10 pm

Re: FTP and Files Overwrite

Post 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. :oops:

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
AVOID TO PUBLISH AND DISCLOSE SAMYGO PROJECTS ON OTHER FORUM.
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: FTP and Files Overwrite

Post by juusso »

Try to reinstall widget. Something was fixed... And tell about result.
LE40B653T5W,UE40D6750,UE65Q8C
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. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

Post Reply

Return to “[E] Support”