[ROOT] H "Network" root (FW<=Oct.2015, no T-GFS)

Here are software that related with Samsung H series TVs.
Please don't create any new topic here unless you have software to post/release.

mad_ady
SamyGO Project Donor
Posts: 268
Joined: Sun May 03, 2015 10:42 am

Re: [!!!] Rooting H on latest firmwares

Post by mad_ady »

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)
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.
H6400, firmware 2602.2 downgraded to 2130

sectroyer
Official SamyGO Developer
Posts: 5928
Joined: Wed May 04, 2011 5:10 pm

Re: [!!!] Rooting H on latest firmwares

Post by sectroyer »

dusf 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'.
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 why :)
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 http://ctrlv.it/ Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!

zoelechat
Official SamyGO Developer
Posts: 8445
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [!!!] Rooting H on latest firmwares

Post by zoelechat »

I wonder who should ask himself the right questions :D
I do NOT receive any PM. Please use forum.

User avatar
dusf
SamyGO Project Donor
Posts: 102
Joined: Thu Jan 15, 2015 11:19 pm

Re: [!!!] Rooting H on latest firmwares

Post by dusf »

sectroyer wrote:
dusf 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'.
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 why :)
:o :o :lol: :D

I am very happy with you sectroyer :D :D and SamyGO to learn that I can still use Samba, somehow, so I am not going to argue with you :lol: :P :P :lol:
zoelechat wrote:Simply mount to real USB instead of virtual by replacing MOUNT_PATH in samba script.

Code: Select all

DEST_DIR=$MOUNT_PATH/smb
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/sda1
Then you can even disable vusb script :)
Okay, so I checked /mnt/etc/init.d/04_04_samba.init and it had the following line:

Code: Select all

DEST_DIR=$MOUNT_PATH/smb
In case this was supposed to be how you mentioned, I changed it to:

Code: Select all

DEST_DIR=$MOUNT_PATH/dtv/usb/sdj
and then turned the TV off and then back on.

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
zoelechat wrote:

Code: Select all

/mnt/etc/init.d/02_04_vusb.init.dis
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).

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.
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.
If this is something I need to do, please tell me how.

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
Please tell me what I need to do to make Samba work :)
UE32H5500 - firmware: 2130
UE32J

zoelechat
Official SamyGO Developer
Posts: 8445
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [!!!] Rooting H on latest firmwares

Post by zoelechat »

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 do NOT receive any PM. Please use forum.

User avatar
dusf
SamyGO Project Donor
Posts: 102
Joined: Thu Jan 15, 2015 11:19 pm

Re: [!!!] Rooting H on latest firmwares

Post by dusf »

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.
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.

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
so I did exactly that!

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
OR

Code: Select all

DEST_DIR=$MOUNT_PATH/dtv/usb/sdj/dtv/usb/sda1
Virtual USB is disabled, I have tried both, but still when I open the USB key it just shows SamyGO.

If the line is wrong, I beg of you, please, please, please clearly state exactly what the line should be.
UE32H5500 - firmware: 2130
UE32J

zoelechat
Official SamyGO Developer
Posts: 8445
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [!!!] Rooting H on latest firmwares

Post by zoelechat »

dusf wrote:You said to change the line to:

Code: Select all

DEST_DIR=$MOUNT_PATH/dtv/usb/sda1
NO :)

Let's play guessing games...
Original code is:

Code: Select all

DEST_DIR=$MOUNT_PATH/smb
Original mount point (=DEST_DIR) is:

Code: Select all

/dtv/usb/sdj/smb
What is $MOUNT_PATH?
I do NOT receive any PM. Please use forum.

User avatar
dusf
SamyGO Project Donor
Posts: 102
Joined: Thu Jan 15, 2015 11:19 pm

Re: [!!!] Rooting H on latest firmwares

Post by dusf »

zoelechat wrote:
dusf wrote:You said to change the line to:

Code: Select all

DEST_DIR=$MOUNT_PATH/dtv/usb/sda1
NO :)

Let's play guessing games...
Original code is:

Code: Select all

DEST_DIR=$MOUNT_PATH/smb
Original mount point (=DEST_DIR) is:

Code: Select all

/dtv/usb/sdj/smb
What is $MOUNT_PATH?
/dtv/usb/sdj/?

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

zoelechat
Official SamyGO Developer
Posts: 8445
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [!!!] Rooting H on latest firmwares

Post by zoelechat »

Exactly :)

First try:

Code: Select all

DEST_DIR=/dtv/usb/sda1/smb
Then if it works you can try to remove /smb (I don't remember if it's expected/possible in default Samba script...)
I do NOT receive any PM. Please use forum.

User avatar
dusf
SamyGO Project Donor
Posts: 102
Joined: Thu Jan 15, 2015 11:19 pm

Re: [!!!] Rooting H on latest firmwares

Post by dusf »

zoelechat wrote:Exactly :)

First try:

Code: Select all

DEST_DIR=/dtv/usb/sda1/smb
Then if it works you can try to remove /smb (I don't remember if it's expected/possible in default Samba script...)
Thanks.

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 :cry:

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

Post Reply

Return to “[H] Software”