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

Here for general support for D series TVs, request and problem solve area.

boogie
Posts: 5
Joined: Wed Dec 14, 2011 11:28 pm

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

Post 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 ;) ;) ;)
UE40D8090 FW1018 SamyGO and VERY VERY HAPPY !
samer
Posts: 76
Joined: Mon Nov 14, 2011 3:04 am

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

Post 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
----D6100, i search YouTube app for mirroring from tablet (send me pm, many thx!)
....F6500 T-MST12DEUC ver.1119
samer
Posts: 76
Joined: Mon Nov 14, 2011 3:04 am

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

Post 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...
----D6100, i search YouTube app for mirroring from tablet (send me pm, many thx!)
....F6500 T-MST12DEUC ver.1119
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

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

Post 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
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
User avatar
maniootek
Posts: 34
Joined: Wed Jan 25, 2012 6:35 am
Location: Poland

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

Post 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?
arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

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

Post 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
User avatar
martin
Posts: 1
Joined: Tue Mar 20, 2012 1:05 am
Location: /dev/earth0

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

Post 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-)
tompit

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

Post 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

Post Reply

Return to “[D] Support”