Page 2 of 2

Re: How to get smb/samba shares to work with UE40D8000?

Posted: Sat Jan 07, 2012 12:39 pm
by boogie
Hi samer !!!

Check THIS OUT ------> forum.samygo.tv/viewtopic.php?f=24&t=2973#p23988

THIS helped me !!!
No "user" or "password" editing ..... ONLY and SIMPLE disabling the password protected share option like in the tutorial !!!

Have Fun !


P.S. MANY MANY THAAAAANKS to juuso ;) ;) ;)

Re: How to get smb/samba shares to work with UE40D8000?

Posted: Mon Jan 09, 2012 11:07 pm
by samer
hello, i read this thread from begin, but my share is not on Win, but on Linux NAS and not have user/pwd protection, is free to all

please tell me, i must load any samba client from USB disk to TV? Or th after SamyGO instaqlled, have Samba Client embedded? I have D6100 serie

Re: How to get smb/samba shares to work with UE40D8000?

Posted: Sat Jan 14, 2012 4:52 pm
by samer
NOW:

i try again and wait 10 minutes after boot SamyGO plugin and voila, works...
If i try run Virt.USB after only 2 minutes, then NOT WORK, not show samba shares at all.

I think, need some timeout to cache samba shares, Virtual USB is any workaround and not normal samba browser i think...

Re: How to get smb/samba shares to work with UE40D8000?

Posted: Wed Jan 18, 2012 8:45 am
by juusso
If you set IP of your samba server manually, then you get it mountet w/o to wait 10 minutes :)

Code: Select all

04_04_samba.init

Re: How to get smb/samba shares to work with UE40D8000?

Posted: Sat Feb 04, 2012 10:12 am
by maniootek
boogie wrote:Hi samer !!!

Check THIS OUT ------> forum.samygo.tv/viewtopic.php?f=24&t=2973#p23988

THIS helped me !!!
No "user" or "password" editing ..... ONLY and SIMPLE disabling the password protected share option like in the tutorial !!!

Have Fun !


P.S. MANY MANY THAAAAANKS to juuso ;) ;) ;)
Turn off HomeNetworkGroup function!!!!!!!!!!!!!!!! (Start
menu ? search function):
What that mean?
Is it mean to leave home group or what?

Re: How to get smb/samba shares to work with UE40D8000?

Posted: Fri Feb 17, 2012 12:33 pm
by arris69
maniootek wrote:...
Turn off HomeNetworkGroup function!!!!!!!!!!!!!!!! (Start
menu ? search function):
What that mean?
Is it mean to leave home group or what?
not just leave it, disable this stupid function globaly

Re: How to get smb/samba shares to work with UE40D8000?

Posted: Tue Mar 20, 2012 1:33 am
by martin
TPerrier wrote:I have a problem with samba shares: how can I refresh the contents of a folder? Does it make some kind of cache? Newly added files doesn't appear in the folders even if I restart the tv and samygo. How could I trigger it to reread the contents?
Hi TPerrier,

I have Samsung LE40B651. I'm still getting familiar with the TV; but this is what I've did to refresh my samba contents.

I've created simple script to mount samba share from my storage server, stored it in/mtd_rwarea/mount-iris-tv-share.sh:

Code: Select all

#!/bin/sh
#
#

FAKE_DISK="sde"
MOUNTPOINT="/dtv/usb/${FAKE_DISK}"
IRIS_SHARE="//172.31.1.2/movies"
ID_DESC="samba-iris"

# IMPORTANT: write changes to /dtv/usb/log
log_mount() {
echo "[${FAKE_DISK}]
Vendor : world
Product : ${ID_DESC}
Serial : Q80VQLFA
Devpath : 4
Lun : 0
MountDir : $MOUNTPOINT
FileSystem : vfat

" >> /dtv/usb/log
}

# load module if not yet present in the kernel
if [ `lsmod |grep -c cifs` == 0 ]; then
        insmod /mtd_rwarea/cifs.ko
fi

# only if not mounted yet
if [ `mount | grep -c ${MOUNTPOINT}` == 0 ]; then
        echo "iris-mount: fresh mount of ${MOUNTPOINT}";
        mkdir -p /dtv/usb/${FAKE_DISK}
        mount -o user=guest -t cifs ${IRIS_SHARE} ${MOUNTPOINT}

        # IMPORTANT: notify we have new device mounted
        if [ $? -eq 0 ]; then log_mount; fi
else

        # dirty refresh trick: remove entry from log file, wait a seconds or
        # two and put it back ..
        echo "iris-mount: already mounted, refreshing"

        sed -i '/\['"${FAKE_DISK}"'\]/,/^$/d' /dtv/usb/log
        sleep 3
        log_mount;
fi
As I mentioned I'm new to the SamyGO and I just wanted something fast that works. I've noticed that something is checking /dtv/usb/log for changes. If I remove the samba entry from this log and put it back (while an actual samba share is still mounted), contents gets refreshed. I know there is a better way - e.g. media play does refresh the USB key when new stuff is copied to it - I think that's the way to go .. but in the mean time, this does work for me :-)

To make it more 'user friendly' I've created really simple contents lib appl so I can mount it without telneting to TV.

iris-mount.c:

Code: Select all

#include <stdio.h>
#include <stdlib.h>

extern int Game_Main(const char *path, const char *udn);

int Game_Main(const char *path, const char *udn __attribute__ ((unused))) {

        system ("/mtd_rwarea/mount-iris-tv-share.sh &");
        return 0;
}
Makefile:

Code: Select all

CC=arm-linux-gnueabi-gcc
CFLAGS=-O2 -Wall -mglibc
LDFLAGS=-s -shared -Wl

iris-mount.so:  iris-mount.o
        ${CC} ${LDFLAGS} iris-mount.o -o iris-mount.so

iris-mount.o:   iris-mount.c
        ${CC} ${CFLAGS} -c iris-mount.c -o iris-mount.o

clean:
        rm -f *.o *.so
..which I got inspired here reading wiki. I know, dirty .. but for the time being, it works 8-)

Re: How to get smb/samba shares to work with UE40D8000?

Posted: Mon Mar 26, 2012 9:38 am
by tompit
Hi to all,

I'm a little confused about smb sharing.

boogie wrote:Hi samer !!!

Check THIS OUT ------> forum.samygo.tv/viewtopic.php?f=24&t=2973#p23988

THIS helped me !!!
No "user" or "password" editing ..... ONLY and SIMPLE disabling the password protected share option like in the tutorial !!!
I checked the pdf, the description is: "Kennwortgesch?tztes Freigeben einschalten" and "Benutzerkonten ... verwenden"
I think, then I need user and password.

Text above: " ... disabling the password protected share option like in the tutorial :?:
The tutorial says: enable password protection, what tutorial or part of the tutorial do you mean?

Next question:
to avoid to wait a long time for the shares I only have to define the IP address of my Windows PC?
What must I do exactly if I want to show additional shares on different PCs (different IP addresses and different users and passwords)?
Is that possible and if yes, can anybody show me an example init file?

Thanks
Tompit