Script: Samba share from multi fixed servers

Ideas and dreaming will go this forum

zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Script: Samba share from multi fixed servers

Post by zoelechat »

For those who are interested, I modified the "04_04_samba.init" script file, with ability to use several fixed servers, because automatic search doesn't always work.

Now it should work with 0 (automatic search), 1 or ...N servers (how many you want)

You just have to edit servers/username/password as usual, rename file and replace the original one.

Samba share with initial script must already work before installing this one, if not it won't work better and I can't help you!
Username and password must be the same on every server.

UPDATE 24/04: No need to download it separately anymore, now included by default in SamyGO-E package
viewtopic.php?f=53&t=5797
You do not have the required permissions to view the files attached to this post.
Last edited by zoelechat on Wed Apr 24, 2013 1:15 pm, edited 1 time in total.
I do NOT receive any PM. Please use forum.
User avatar
greenhorn
SamyGO Project Donor
Posts: 701
Joined: Wed Feb 15, 2012 3:05 pm
Location: Eastern Europe

Re: Script: Samba share from multi fixed servers

Post by greenhorn »

Confirm it works! Great job!
TV: UE40F7000 - T-FXPDEUC-1115.0 - SamyGO Extensions on F series
TV: UE55ES7000S - T-ECPDEUC-2003.4 - SamyGO tool Right from USB - no develop account is needed
TV: UE40C6710 - T-VALDEUC 3011 - Hacking TV over Hotel mode (C650 T-VALDEUC-3009.2)
BD-Player: BD-E6100 - B-FIRBPEWWC 1063.3 - rooted, no more Cin@vi@
NAS: CIFS: MAG250 NFS: Playon!HD
miazza
SamyGO Project Donor
Posts: 773
Joined: Wed Apr 03, 2013 6:10 pm

Re: Script: Samba share from multi fixed servers

Post by miazza »

I need your help.
I have Samygo virtual usb running.
When I select it I see:
- video
- photo
- music

When I enter one of these I only see OCAP-LSV and nothing else even after long time.
What shall I do for having SMB starting once before to apply your script?

Thanks for your patience...

miazza
AVOID TO PUBLISH AND DISCLOSE SAMYGO PROJECTS ON OTHER FORUM.
zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: Script: Samba share from multi fixed servers

Post by zoelechat »

@miazza
zoelechat wrote:Samba share with initial script must already work before installing this one, if not it won't work better and I can't help you!
:shock:

Here is what you can try, I got samba working again after losing it with that procedure:
-Uninstall SamyGO from smarthub
-power off/on
-Re-root your TV by launching again Test2 widget from smarthub with adequate USB key inserted, launch browser 2 times
-Get ftp access and copy whole SamyGO folder to /mtd_down/widgets/user
-power off/on
-prepare these files (with username/password/server/workgroup) and copy them by ftp to their respective folders:
  • smb_userdata -> /mtd_rwarea
    smb.conf -> /mnt/etc/samba
    04_04_samba.init -> /mnt/etc/init.d
-power off/on
-go to see in virtual USB if there is a "smb" folder
-if not go ftp in /mnt/etc/init.d folder and add extension .dis to 03_03_djmount.init, 03_03_nfsmount.init and erase 06_05_samba-server.init because there is already a copy with .dis extension
-power off/on

Maybe some steps are not necessary but from there smb in virtual USB always worked for me, else I can't help you anymore!
I do NOT receive any PM. Please use forum.
miazza
SamyGO Project Donor
Posts: 773
Joined: Wed Apr 03, 2013 6:10 pm

Re: Script: Samba share from multi fixed servers

Post by miazza »

Thanks for yor assistance.
Meanwhile the samygo virtual has gone after a few TV switch off....
I will try your procedure but may be I can try to uninstall and reistall as done the first time with the develop method.

I am really not familiar with linux and therefore I am very slow in doing everything.

You say:
prepare these files (with username/password/server/workgroup) :
smb_userdata
smb.conf
04_04_samba.init

could you post a link where to find instruction for preparing such files ?

Thanks again.

I will try to follow your instruction as soon as I can.
The TV is shared with the wole family and I have "root" access only during night... ;)

miazza
AVOID TO PUBLISH AND DISCLOSE SAMYGO PROJECTS ON OTHER FORUM.
zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: Script: Samba share from multi fixed servers

Post by zoelechat »

miazza wrote:prepare these files (with username/password/server/workgroup) :
smb_userdata
smb.conf
04_04_samba.init

could you post a link where to find instruction for preparing such files ?
Open the files and see by yourself

You have to set username, password, workgroup and server(s)

If you don't know what you're doing, I advise you to do nothing.
I do NOT receive any PM. Please use forum.
miazza
SamyGO Project Donor
Posts: 773
Joined: Wed Apr 03, 2013 6:10 pm

Re: Script: Samba share from multi fixed servers

Post by miazza »

zoelechat wrote:
miazza wrote:If you don't know what you're doing, I advise you to do nothing.
I learn quickly but I have to start somehow.. ;)

Reading in the forum I have found that if my SMB server has no user name and passord I can omit to copy the file smb_userdata.
Now I have anyhow created a file smb_userdata like this:
USER=""
PASSWD=""
I have anothe very noob question but I'm embarassed to ask... ...viewtopic.php?f=16&t=5822

ciao

miazza
AVOID TO PUBLISH AND DISCLOSE SAMYGO PROJECTS ON OTHER FORUM.
zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: Script: Samba share from multi fixed servers

Post by zoelechat »

Don't bother with permissions at all, just copy files.

Better to create username/password, same couple for each server.
I do NOT receive any PM. Please use forum.
steno
Posts: 16
Joined: Mon Apr 01, 2013 11:42 am

Re: Script: Samba share from multi fixed servers

Post by steno »

Good evening I tested the script and it seems to be ok, but the problem persists ue46es7000 of the samba! I tried to manually start the script this is the error:

Code: Select all

VDLinux #> cd /mnt/etc/init.d
VDLinux #> ./04_04_samba.init start
insmod: can not insert '/ mnt/lib/modules/2.6.35.13/kernel/fs/cifs/cifs.ko': disability invalid  module format
Search Shares
on: 192.168.178.1
creating lame upcase table
creating blades lowcase table
Domain = [WORKGROUP] OS = [Unix] Server = [Samba 3.6.10]
Domain = [WORKGROUP] OS = [Unix] Server = [Samba 3.6.10]
mount: mounting //192.168.178.1/Video on /dtv/usb/sdj/smb/192.168.178.1/Video failed: No such device
VDLinux #>
The strange thing in /dtv/usb/smb/sdj creates the folder and inside I find the network resource 192.168.178.1 and shares but the contents are not visible!

I tested with Fritzbox modem and pc with win7 but the result is always the same.

Tips?
zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: Script: Samba share from multi fixed servers

Post by zoelechat »

SamyGO.zip had been updated, maybe you have to try the new one...
viewtopic.php?f=53&t=5797

You can also read this:
viewtopic.php?f=16&t=5822#p41636
I do NOT receive any PM. Please use forum.

Post Reply

Return to “[E] Brainstorm”