Depends on what you need. Samba offers external subtitle support. Other than that, DLNA is more efficient in terms of file transfer than samba. With DLNA you can configure your DLNA server to present the data however you want. With Samba you are presented only a list of directories and files. If you sort your data and organize it in folders the way you like it you can do anything with Samba.atilla wrote:Is samba better than dlna?I want the videos are sorted by date, it is possible at samba?? Dlna are sort omly by name (minidlna or twonky its a bug)
[ROOT] H "Network" root (FW<=Oct.2015, no T-GFS)
Re: [!!!] Rooting H on latest firmwares
H6400, firmware 2602.2 downgraded to 2130
Re: [!!!] Rooting H on latest firmwares
Nah it's not but I don't have much problem explaining what I mean even to native speakers however with you it was pretty damn hard, no idea whydusf wrote: You have mentioned not using virtual USB to me before. I know English is not your first language, and it always seemed like you meant 'Use SamyGO BUT DO NOT use Virtual USB'.
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
Re: [!!!] Rooting H on latest firmwares
I wonder who should ask himself the right questions
I do NOT receive any PM. Please use forum.
Re: [!!!] Rooting H on latest firmwares
sectroyer wrote:Nah it's not but I don't have much problem explaining what I mean even to native speakers however with you it was pretty damn hard, no idea whydusf wrote: You have mentioned not using virtual USB to me before. I know English is not your first language, and it always seemed like you meant 'Use SamyGO BUT DO NOT use Virtual USB'.
I am very happy with you sectroyer and SamyGO to learn that I can still use Samba, somehow, so I am not going to argue with you
Okay, so I checked /mnt/etc/init.d/04_04_samba.init and it had the following line:zoelechat wrote:Simply mount to real USB instead of virtual by replacing MOUNT_PATH in samba script.Where $MOUNT_PATH is likely to be /dtv/usb/sdj for virtual, change it to path of an existing physical USB. e.g. /dtv/usb/sda1Code: Select all
DEST_DIR=$MOUNT_PATH/smb
Then you can even disable vusb script
Code: Select all
DEST_DIR=$MOUNT_PATH/smb
Code: Select all
DEST_DIR=$MOUNT_PATH/dtv/usb/sdj
This still allowed me browse my Samba server, but again when I try to play a video the the TV crashes.
Next, I confirmed that /dtv/usb/sda1 exists by browsing to it using SSH, and I learned that it is my SamyGO USB. I then changed the line to:
Code: Select all
DEST_DIR=$MOUNT_PATH/dtv/usb/sda1
I also changed the name of the init file as above and then rebooted the TV. (There is also a file 02_04_vusb.init.remi71 but I did not change the name of that one).zoelechat wrote:Code: Select all
/mnt/etc/init.d/02_04_vusb.init.dis
I waited a few minutes after powering the TV on, then pressed the Smart Hub button went to the part that shows the USB keys. I checked in the SamyGO USB key but it just the normal SamyGO files, not my Samba server files.
If this is something I need to do, please tell me how.zoelechat wrote: Just be sure the device is always given the right path on TV bootup (matter of device detection order). Otherwise use some trick to detect the right (variable) MOUNT_PATH.
Since I had rooted with the Skype method before, and then I used the non-skype method, and I was copying 04_04_samba.init back and forward from my computer as I made changes, perhaps it is possible there is something wrong with my file?
SpoilerShow
#!/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: 04_04_samba.init 1069 2011-01-03 16:47:24Z arris69 $
#
. /dtv/SGO.env
# sleep 9
##### CHANGE MEEEEE !!!!! ######
USER="dusf's-actual-samba-server-username" #"CHANGE_MEEEEE" #user and password have to be st to SOMETHING
PASSWD="dusf's-actual-samba-server-password" #"CHANGE_MEEEEE"
PERM="rw" # can be ro or rw
##### CHANGE MEEEEE END ######
DEST_DIR=$MOUNT_PATH/dtv/usb/sda1
SERVER="192.168.1.1"
# SERVER="10.0.0.1" # if you want a fixed server
SHARES="NAS/Media"
FR_NAME="Samba Server"
# M_OPTS="rw,user=${USER},password=${PASSWD}"
#M_OPTS="$PERM,uid=1010,gid=1010,user=${USER},password=${PASSWD},codepage=cp1250,iocharset=utf8"
M_OPTS="$PERM,uid=1010,gid=1010,user=${USER},password=${PASSWD},iocharset=utf8,noserverino"
NO_PASSWORD_OPTS="$PERM,sec=ntlm,user=,uid=1010,gid=1010,password=,iocharset=utf8,noserverino"
[ -e /mtd_rwarea/smb_userdata ] && source /mtd_rwarea/smb_userdata
# Removing. Now we support no password scenario
# if there is a password mounting will fail anyway
#[ -z $USER ] && exit 1
#[ -z $PASSWD ] && exit 1
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")" #disabled by levi
M_POINT="$DEST_DIR/$1/$(basename $i)" #enabled by levi
mkdir -p "$M_POINT"
if [ `cat /proc/mounts | grep -c "$M_POINT"` -lt "1" ]
then
echo "Trying to mount WITH password!"
$SYSROOT/bin/busybox mount -o "${M_OPTS}" -t cifs "//$1/$i" "$M_POINT"
if [ `cat /proc/mounts | grep -c "$M_POINT"` -lt "1" ]
then
echo "Trying to mount WITHOUT password!"
$SYSROOT/bin/busybox2 mount -o "${NO_PASSWORD_OPTS}" -t cifs "//$1/$i" "$M_POINT"
fi
else
echo "$M_POINT is mounted!"
fi
done
}
get_shares()
{
if [ -z "$SHARES" ] ; then
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
else
echo -n "Fixed Server: "
for i in $SERVERS ; do
echo $i
S_MOUNTS=$SHARES
[ -n "$S_MOUNTS" ] && do_mount $i
done
fi
}
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)
echo " " >> $LOGFILE 2>&1
echo "+++++++++++++++++ SAMBA ++++++++++++++++" >> $LOGFILE 2>&1
echo " " >> $LOGFILE 2>&1
insmod $MOD_DIR/kernel/fs/cifs/cifs.ko || dmesg | tail >> $LOGFILE 2>&1
sync; sleep 2
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')"
$SYSROOT/bin/busybox umount "$i"
done
;;
status)
$SYSROOT/bin/busybox mount | grep "$DEST_DIR"
;;
*)
echo "Usage: $0 {start|stop}" 1>&2
exit 0
;;
esac
#
# ? 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: 04_04_samba.init 1069 2011-01-03 16:47:24Z arris69 $
#
. /dtv/SGO.env
# sleep 9
##### CHANGE MEEEEE !!!!! ######
USER="dusf's-actual-samba-server-username" #"CHANGE_MEEEEE" #user and password have to be st to SOMETHING
PASSWD="dusf's-actual-samba-server-password" #"CHANGE_MEEEEE"
PERM="rw" # can be ro or rw
##### CHANGE MEEEEE END ######
DEST_DIR=$MOUNT_PATH/dtv/usb/sda1
SERVER="192.168.1.1"
# SERVER="10.0.0.1" # if you want a fixed server
SHARES="NAS/Media"
FR_NAME="Samba Server"
# M_OPTS="rw,user=${USER},password=${PASSWD}"
#M_OPTS="$PERM,uid=1010,gid=1010,user=${USER},password=${PASSWD},codepage=cp1250,iocharset=utf8"
M_OPTS="$PERM,uid=1010,gid=1010,user=${USER},password=${PASSWD},iocharset=utf8,noserverino"
NO_PASSWORD_OPTS="$PERM,sec=ntlm,user=,uid=1010,gid=1010,password=,iocharset=utf8,noserverino"
[ -e /mtd_rwarea/smb_userdata ] && source /mtd_rwarea/smb_userdata
# Removing. Now we support no password scenario
# if there is a password mounting will fail anyway
#[ -z $USER ] && exit 1
#[ -z $PASSWD ] && exit 1
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")" #disabled by levi
M_POINT="$DEST_DIR/$1/$(basename $i)" #enabled by levi
mkdir -p "$M_POINT"
if [ `cat /proc/mounts | grep -c "$M_POINT"` -lt "1" ]
then
echo "Trying to mount WITH password!"
$SYSROOT/bin/busybox mount -o "${M_OPTS}" -t cifs "//$1/$i" "$M_POINT"
if [ `cat /proc/mounts | grep -c "$M_POINT"` -lt "1" ]
then
echo "Trying to mount WITHOUT password!"
$SYSROOT/bin/busybox2 mount -o "${NO_PASSWORD_OPTS}" -t cifs "//$1/$i" "$M_POINT"
fi
else
echo "$M_POINT is mounted!"
fi
done
}
get_shares()
{
if [ -z "$SHARES" ] ; then
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
else
echo -n "Fixed Server: "
for i in $SERVERS ; do
echo $i
S_MOUNTS=$SHARES
[ -n "$S_MOUNTS" ] && do_mount $i
done
fi
}
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)
echo " " >> $LOGFILE 2>&1
echo "+++++++++++++++++ SAMBA ++++++++++++++++" >> $LOGFILE 2>&1
echo " " >> $LOGFILE 2>&1
insmod $MOD_DIR/kernel/fs/cifs/cifs.ko || dmesg | tail >> $LOGFILE 2>&1
sync; sleep 2
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')"
$SYSROOT/bin/busybox umount "$i"
done
;;
status)
$SYSROOT/bin/busybox mount | grep "$DEST_DIR"
;;
*)
echo "Usage: $0 {start|stop}" 1>&2
exit 0
;;
esac
UE32H5500 - firmware: 2130
UE32J
UE32J
Re: [!!!] Rooting H on latest firmwares
MOUNT_PATH = /dtv/usb/sdj
->
$MOUNT_PATH/dtv/usb/sda1 == /dtv/usb/sdj/dtv/usb/sda1
Try to think a bit
Doing/looking at random stuff won't help. Disable vusb, define MOUNT_PATH yourself, done.
->
$MOUNT_PATH/dtv/usb/sda1 == /dtv/usb/sdj/dtv/usb/sda1
Try to think a bit
Doing/looking at random stuff won't help. Disable vusb, define MOUNT_PATH yourself, done.
I do NOT receive any PM. Please use forum.
Re: [!!!] Rooting H on latest firmwares
Think a bit? I am not a developer of SamyGo, the information I am after is not easily available from searching the Wiki or forum, which is why I am asking for help.zoelechat wrote:MOUNT_PATH = /dtv/usb/sdj
->
$MOUNT_PATH/dtv/usb/sda1 == /dtv/usb/sdj/dtv/usb/sda1
Try to think a bit
Doing/looking at random stuff won't help. Disable vusb, define MOUNT_PATH yourself, done.
I am not doing random stuff, all I have done is exactly what is in the guides on these forums and what has been advised to do in this thread. You said to change the line to:
Code: Select all
DEST_DIR=$MOUNT_PATH/dtv/usb/sda1
It now seems you are saying the line should be something else. From your last it looks like you are saying it should be
Code: Select all
DEST_DIR=$MOUNT_PATH/dtv/usb/sda1 == /dtv/usb/sdj/dtv/usb/sda1
Code: Select all
DEST_DIR=$MOUNT_PATH/dtv/usb/sdj/dtv/usb/sda1
If the line is wrong, I beg of you, please, please, please clearly state exactly what the line should be.
UE32H5500 - firmware: 2130
UE32J
UE32J
Re: [!!!] Rooting H on latest firmwares
NOdusf wrote:You said to change the line to:
Code: Select all
DEST_DIR=$MOUNT_PATH/dtv/usb/sda1
Let's play guessing games...
Original code is:
Code: Select all
DEST_DIR=$MOUNT_PATH/smb
Code: Select all
/dtv/usb/sdj/smb
I do NOT receive any PM. Please use forum.
Re: [!!!] Rooting H on latest firmwares
/dtv/usb/sdj/?zoelechat wrote:NOdusf wrote:You said to change the line to:
Code: Select all
DEST_DIR=$MOUNT_PATH/dtv/usb/sda1
Let's play guessing games...
Original code is:Original mount point (=DEST_DIR) is:Code: Select all
DEST_DIR=$MOUNT_PATH/smb
What is $MOUNT_PATH?Code: Select all
/dtv/usb/sdj/smb
But to me that suggests that line should be 'DEST_DIR=$MOUNT_PATH/dtv/usb/sda1' but I know that must be wrong because it does not work.
Are you saying I need to remove $MOUNT_PATH completely, and make the line:
Code: Select all
DEST_DIR=/dtv/usb/sda1
UE32H5500 - firmware: 2130
UE32J
UE32J
Re: [!!!] Rooting H on latest firmwares
Exactly
First try:
Then if it works you can try to remove /smb (I don't remember if it's expected/possible in default Samba script...)
First try:
Code: Select all
DEST_DIR=/dtv/usb/sda1/smb
I do NOT receive any PM. Please use forum.
Re: [!!!] Rooting H on latest firmwares
Thanks.zoelechat wrote:Exactly
First try:Then if it works you can try to remove /smb (I don't remember if it's expected/possible in default Samba script...)Code: Select all
DEST_DIR=/dtv/usb/sda1/smb
Both mount it, without /smb at the end my Samba server is mounted on the SamyGO root USB key in a dir with the IP address, if I use /smb it mounts it in smb dir in the USB key also.
I can browse the Samba server with both lines also, BUT the TV still crashes when I try to play any video
Is there anything else I can try?
Perhaps I can somehow unroot and/or put everything back to factory defaults and root again from the beginning?
UE32H5500 - firmware: 2130
UE32J
UE32J