Page 1 of 2
SamyGO Extensions found only one samba sever
Posted: Wed Aug 24, 2011 12:02 pm
by muck2009
hi am new in this forum and my english is very bad.
My tv is le 46 b650 with patched 2004.1 firmware
and my problem is i have 3 samba mount but only one is fount at same time
all three server alone are found if only one is on
i have test same user and pw at all server ip are 192.168.178.1 192.168.178.150 and 192.168.178.50 but i have no ip in the skipt.
at last i test it with last version off SamyGO Extensions and now the nfs servers are gone but that is only a litle problem
please help me
Re: SamyGO Extensions found only one samba sever
Posted: Wed Aug 24, 2011 1:15 pm
by juusso
Edit the samba.init file
(SamyGO/etc/init.d/samba.init) and add static your servers IP. Change code:
Code: Select all
SERVER=""
# SERVER="10.0.0.1" # if you want a fixed server
to:
Code: Select all
#SERVER=""
SERVER="192.168.178.1 192.168.178.150 192.168.178.50" # if you want a fixed server
I don`t remember are here comas needed between IP addresses or not...
Re: SamyGO Extensions found only one samba sever
Posted: Wed Aug 24, 2011 8:38 pm
by muck2009
hi thanks for your help but it do not work
i have tested
Code: Select all
DEST_DIR=$MOUNT_PATH/smb
SERVER=""
# SERVER="192.168.178.1 192.168.178.150" #only 192.168.178.150 is found after i long time
# SERVER="192.168.178.1,192.168.178.150" #nothing is found
# SERVER="192.168.178.1, 192.168.178.150" #nothing is found
# SERVER="192.168.178.150" # if you want a fixed server
i have in all server same user and pw
if i change in server 192.168.178.150 the pw my samy found the 192.168.178.1 server
if i have 2 or more PW how must i write it
need help
Re: SamyGO Extensions found only one samba sever
Posted: Wed Aug 24, 2011 8:44 pm
by juusso
# at the beginning means this is skipped. Leave only one row as i showed you. In this case comment out the first row!
Re: SamyGO Extensions found only one samba sever
Posted: Wed Aug 24, 2011 8:49 pm
by muck2009
no hi thanks for your help but it do not work
i have tested
DEST_DIR=$MOUNT_PATH/smb
# SERVER=""
SERVER="192.168.178.1 192.168.178.150" #only 192.168.178.150 is found after i long time
# SERVER="192.168.178.1,192.168.178.150" #nothing is found
# SERVER="192.168.178.1, 192.168.178.150" #nothing is found
# SERVER="192.168.178.150" # if you want a fixed server
next test
DEST_DIR=$MOUNT_PATH/smb
# SERVER=""
# SERVER="192.168.178.1 192.168.178.150" #only 192.168.178.150 is found after i long time
SERVER="192.168.178.1,192.168.178.150" #nothing is found
# SERVER="192.168.178.1, 192.168.178.150" #nothing is found
# SERVER="192.168.178.150" # if you want a fixed server
next test
DEST_DIR=$MOUNT_PATH/smb
# SERVER=""
# SERVER="192.168.178.1 192.168.178.150" #only 192.168.178.150 is found after i long time
# SERVER="192.168.178.1,192.168.178.150" #nothing is found
SERVER="192.168.178.1, 192.168.178.150" #nothing is found
# SERVER="192.168.178.150" # if you want a fixed server
i have in all server same user and pw
if i change in server 192.168.178.150 the pw my samy found the 192.168.178.1 server
if i have 2 or more PW how must i write it
Re: SamyGO Extensions found only one samba sever
Posted: Wed Aug 24, 2011 9:04 pm
by muck2009
# at the beginning means this is skipped. Leave only one row as i showed you. In this case comment out the first row!
I now it and i change the # but it dont work
Re: SamyGO Extensions found only one samba sever
Posted: Wed Aug 24, 2011 9:21 pm
by muck2009
this is my samba.init
Code: Select all
#!/bin/sh
#
# ? Copyright 1996-2010, ZsoltTech.Com
# by Ser Lev Arris <arris@ZsoltTech.Com>
#
# donated for the SamyGo Project
# http://samygo.sourceforge.net/
#
# Version: SamyGO svn $Id$
#
. /dtv/SGO.env
# sleep 9
##### CHANGE MEEEEE !!!!! ######
USER="ftpuser"
PASSWD="xxxxxxx"
PERM="rw" # can be ro or rw
##### CHANGE MEEEEE END ######
[ -e /mtd_rwarea/smb_userdata ] && source /mtd_rwarea/smb_userdata
[ -z $USER ] && exit 1
[ -z $PASSWD ] && exit 1
DEST_DIR=$MOUNT_PATH/smb
SERVER="192.168.178.1 192.168.178.150"
# SERVER="192.168.178.1,192.168.178.150"
# SERVER="192.168.178.1, 192.168.178.150"
# SERVER="192.168.178.150" # if you want a fixed server
SHARES=""
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!!"
do_mount()
{
# $(echo -e "[sdh]\nVendor : CifsMount\nProduct : $FR_NAME\n\
#Serial : Q80VQLFH\nDevpath : 8\nLun : 0\nMountDir : $DEST_DIR\nFileSystem : vfat\n" >> /dtv/usb/log)
for i in $S_MOUNTS ; do
i="$(echo -n $i | sed -e 's/SGOspace/ /g')"
M_POINT="$DEST_DIR/$1/$(echo -n $i | sed -e "s/\\\$/_/g")"
mkdir -p "$M_POINT"
if [ `cat /proc/mounts | grep -c "$M_POINT"` -lt "1" ] ; then
/bin/busybox mount -o "${M_OPTS}" -t cifs "//$1/$i" "$M_POINT"
else
echo "$M_POINT is mounted!"
fi
done
}
get_shares()
{
echo "Search Shares"
for i in $SERVERS ; do
echo "on: $i"
S_MOUNTS=$(smbclient -s "$SYSROOT/etc/samba/smb.conf" -U ${USER}%${PASSWD} \
-g -L $i | grep "Disk|" | grep -v "\\$" | grep -v " Service" | sed -r 's/.*\|(.*)\|.*/\1/' | sed -r 's/ /SGOspace/g')
# -g -L $i | grep "Disk|" | grep -v "\\$" | grep -v " Service" | cut -d "|" -f2)
[ -n "$S_MOUNTS" ] && do_mount $i
done
}
get_servers()
{
if [ -z "$SERVER" ] ; then
# SERVERS=$(cat /proc/net/arp | grep -v "IP address" | cut -d " " -f1)
SERVERS=$(cat /proc/net/arp | grep -v "IP address" | sed 's/^\(\w*.\w*.\w*.\w*\) *.*/\1/')
else
SERVERS=$SERVER
fi
}
case $1 in
start)
insmod $MOD_DIR/kernel/fs/cifs/cifs.ko
mkdir -p "$DEST_DIR"
get_servers
get_shares
;;
stop)
# may can fail if device access the mount from content library
# for i in $(cat /proc/mounts | grep cifs | cut -d " " -f2) ; do
for i in $(cat /proc/mounts | grep cifs | grep "$DEST_DIR" | sed 's/^\(.*\) \(.*\) cifs .*/\2/') ; do
i="$(echo -n $i | sed -r 's/\\040/ /g')"
/bin/busybox umount "$i"
done
;;
status)
/bin/mount | grep "$DEST_DIR"
;;
*)
echo "Usage: $0 {start|stop}" 1>&2
exit 0
;;
esac
my samy only find the 192.168.178.150 sever
i have in all server same user and pw
if i change in server 192.168.178.150 the pw my samy found the 192.168.178.1 server
if i have 2 or more PW how must i write it
Code: Select all
. /dtv/SGO.env
# sleep 9
##### CHANGE MEEEEE !!!!! ######
USER="ftpuser" #???????????
PASSWD="xxxxxxx" # ????????
PERM="rw" # can be ro or rw
##### CHANGE MEEEEE END ######
Re: SamyGO Extensions found only one samba sever
Posted: Thu Aug 25, 2011 9:49 am
by arris69
SERVER can be just one entry
if you like to set multiple then in SERVERS (but it shouldn't be required) better turn off the windows firewall.
hth
arris
Re: SamyGO Extensions found only one samba sever
Posted: Fri Jun 01, 2012 9:14 am
by cocof2001
Hi arris69,
How exactly am I to change the SERVERS section to be able to use multiple smb shares?
Thank you,
Florian
Re: SamyGO Extensions found only one samba sever
Posted: Sat Jun 02, 2012 7:49 pm
by c74k
on your place I would try the other solution
use NFS server - are you edit /etc/exports
# /etc/exports: the access control list for filesystems which may be
# exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/DLNA * (ro)
copy 03_03_nfsmount.init to 03_04_nfsmount.init and 03_05_nfsmount.init and edit file and setup all data