FREE+FAST WORLD DELIVERY
UK STOCK   2 YEAR WARRANTY
MEDIA BOX  :  FORUM  :  CONTACT
Zidoo Z10 Pro
New generation Zidoo Media Player based on Realtek 1619DR chipset. 3.5" HDD bay. HDR10+, HDR, Dolby Vision VS10  £269.99  €309  $363

Author Topic: [PATCH] Samba server optimisation  (Read 31485 times)

switchblade

  • Full Member
  • **
  • Posts: 74
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #15 on: December 24, 2016, 12:49:22 AM »
same thing for me, got the same error.  I also noticed that the sub director within the zip is labeled 1.05, the file name is 1.06.

I ended up Uninstalling and then tried Install again and it seem to work.

I s there a way to confirm the patch is applied correctly?

pcristi

  • Senior Member
  • ***
  • Posts: 1154
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #16 on: December 24, 2016, 01:51:18 PM »
labeled 1.05, the file name is 1.06 --> please do download again I observed few days ago and fixed.
Is there a way to confirm the patch is applied correctly? --> use option 3 to make backup and compare smb.conf with smb.orig,  smb.conf will show you few more lines.

same thing for me, got the same error.  I also noticed that the sub director within the zip is labeled 1.05, the file name is 1.06.

I ended up Uninstalling and then tried Install again and it seem to work.

I s there a way to confirm the patch is applied correctly?

switchblade

  • Full Member
  • **
  • Posts: 74
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #17 on: December 24, 2016, 06:35:20 PM »
I cannot find the smb.conf file or the backup.  I'm connected to my Q10 ip address/share    and I do not find it in any of the directories.


pcristi

  • Senior Member
  • ***
  • Posts: 1154
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #18 on: December 24, 2016, 06:38:43 PM »
You miss understand smb.conf, smb.bak, smb.orig are create in same folder with RUN_ME.bat, not on player.
I cannot find the smb.conf file or the backup.  I'm connected to my Q10 ip address/share    and I do not find it in any of the directories.

switchblade

  • Full Member
  • **
  • Posts: 74
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #19 on: December 24, 2016, 06:45:26 PM »
Got it, thank you.  Yes, the new file has a few more lines than the .orig file.   Looks to be installed correctly so I will do some testing.


carl

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #20 on: December 26, 2016, 04:54:45 AM »
Hi!
When trying to run the patch i get an error with a message like "more than one device and emulator".

This is the stack for example when trying to backup the smb.conf

Quote
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++                        Samba config file                          +++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++      1      Apply patch in smb.conf                               +++
+++      2      Change WORKGROUP                                      +++
+++      3      Backup(pull) smb.conf                                 +++
+++      4      Restore(push) from smb.bak                            +++
+++      5      Install custom smb.conf                               +++
+++      6      Unistall remove smb.conf                              +++
+++      7      Reboot Media-Player                                   +++
+++      0      Exit                                                  +++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Please make your decision:3
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++                      Backup(pull) smb.conf                        +++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
error: more than one device and emulator
Android Debug Bridge version 1.0.26

 -d                            - directs command to the only connected USB device
                                 returns an error if more than one USB device is present.
 -e                            - directs command to the only running emulator.
                                 returns an error if more than one emulator is running.
 -s <serial number>            - directs command to the USB device or emulator with
                                 the given serial number. Overrides ANDROID_SERIAL
                                 environment variable.
 -p <product name or path>     - simple product name like 'sooner', or
                                 a relative/absolute path to a product
                                 out directory like 'out/target/product/sooner'.
                                 If -p is not specified, the ANDROID_PRODUCT_OUT
                                 environment variable is used, which must
                                 be an absolute path.
 devices                       - list all connected devices
 connect <host>[:<port>]       - connect to a device via TCP/IP
                                 Port 5555 is used by default if no port number is specified.
 disconnect [<host>[:<port>]]  - disconnect from a TCP/IP device.
                                 Port 5555 is used by default if no port number is specified.
                                 Using this ocmmand with no additional arguments
                                 will disconnect from all connected TCP/IP devices.

device commands:
  adb push <local> <remote>    - copy file/dir to device
  adb pull <remote> [<local>]  - copy file/dir from device
  adb sync [ <directory> ]     - copy host->device only if changed
                                 (-l means list but don't copy)
                                 (see 'adb help all')
  adb shell                    - run remote shell interactively
  adb shell <command>          - run remote shell command
  adb emu <command>            - run emulator console command
  adb logcat [ <filter-spec> ] - View device log
  adb forward <local> <remote> - forward socket connections
                                 forward specs are one of:
                                   tcp:<port>
                                   localabstract:<unix domain socket name>
                                   localreserved:<unix domain socket name>
                                   localfilesystem:<unix domain socket name>
                                   dev:<character device name>
                                   jdwp:<process pid> (remote only)
  adb jdwp                     - list PIDs of processes hosting a JDWP transport
  adb install [-l] [-r] [-s] <file> - push this package file to the device and install it
                                 ('-l' means forward-lock the app)
                                 ('-r' means reinstall the app, keeping its data)
                                 ('-s' means install on SD card instead of internal storage)
  adb uninstall [-k] <package> - remove this app package from the device
                                 ('-k' means keep the data and cache directories)
  adb bugreport                - return all information from the device
                                 that should be included in a bug report.

  adb help                     - show this help message
  adb version                  - show version num

DATAOPTS:
 (no option)                   - don't touch the data partition
  -w                           - wipe the data partition
  -d                           - flash the data partition

scripting:
  adb wait-for-device          - block until device is online
  adb start-server             - ensure that there is a server running
  adb kill-server              - kill the server if it is running
  adb get-state                - prints: offline | bootloader | device
  adb get-serialno             - prints: <serial-number>
  adb status-window            - continuously print device status for a specified device
  adb remount                  - remounts the /system partition on the device read-write
  adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
  adb reboot-bootloader        - reboots the device into the bootloader
  adb root                     - restarts the adbd daemon with root permissions
  adb usb                      - restarts the adbd daemon listening on USB
  adb tcpip <port>             - restarts the adbd daemon listening on TCP on the specified port
networking:
  adb ppp <tty> [parameters]   - Run PPP over USB.
 Note: you should not automatically start a PPP connection.
 <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
 [parameters] - Eg. defaultroute debug dump local notty usepeerdns

adb sync notes: adb sync [ <directory> ]
  <localdir> can be interpreted in several ways:

  - If <directory> is not specified, both /system and /data partitions will be updated.

  - If it is "system" or "data", only the corresponding partition
    is updated.

environmental variables:
  ADB_TRACE                    - Print debug information. A comma separated list of the following values
                                 1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp
  ANDROID_SERIAL               - The serial number to connect to. -s takes priority over this if given.
  ANDROID_LOG_TAGS             - When used with the logcat option, only these debug tags are printed.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++                    Restore(push) from smb.bak                     +++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
"smb.bak not exist"
Presione una tecla para continuar . . .


Any advice?

Thanks!

pcristi

  • Senior Member
  • ***
  • Posts: 1154
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #21 on: December 26, 2016, 11:36:22 AM »
error: more than one device and emulator

- edit with notepad++  RUN_ME.bat and replace all  adb shell with  adb -s %var%:5555 shell
- just restart you computer.

jole14

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #22 on: December 29, 2016, 04:34:47 PM »
I'm new here and today I have get my Q10.
the mediaplay have a fix IP and I can connect with run_me.bat. no errors.

I will change smb.conf:
from
   workgroup = WORKGROUP
   server string = Android_f8abc
   netbios name = Android_f8abc
to:
   workgroup = GHW23
   server string = HiMedia_Q10Pro
        netbios name = HiMedia_Q10Pro

This I have done:
I have press 2. Change WORKGROUP -> nothing
I have 3., change smb.conf, 5. and 1.
If I do 3. once more the changes are in the file.
But if I reboot mediaplayer, the changes away.

Can everybody help me?
HiMedia Q10Pro; android 5.1.1; v1.0.9

tmihai20

  • Senior Member
  • ***
  • Posts: 331
  • Smart devices enthusiast
    • View Profile
    • My blog (mostly Romanian)
Re: [PATCH] Samba server optimisation
« Reply #23 on: December 29, 2016, 07:39:34 PM »
I'm new here and today I have get my Q10.
the mediaplay have a fix IP and I can connect with run_me.bat. no errors.

I will change smb.conf:
from
   workgroup = WORKGROUP
   server string = Android_f8abc
   netbios name = Android_f8abc
to:
   workgroup = GHW23
   server string = HiMedia_Q10Pro
        netbios name = HiMedia_Q10Pro

This I have done:
I have press 2. Change WORKGROUP -> nothing
I have 3., change smb.conf, 5. and 1.
If I do 3. once more the changes are in the file.
But if I reboot mediaplayer, the changes away.

Can everybody help me?

Did you root your Q10? I think this mod does not work unless rooted (I may be wrong).
Riddle me this, riddle me that
Who is afraid of the big, black bat?
TV: Sony Bravia  KD-55XG8505 (4K, HDR - Dolby Vision)
TV: 42LA641S (42 inches, 3D, fullHD)
Player: Q10 Pro with HMD-2.0.0 2016-11-17.181855

jole14

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #24 on: December 29, 2016, 10:07:06 PM »
I have tried it once more - nothing.

I have restart the Q10 - stop and start
I have reboot the Q10 - 0. in run_me.bat

It will not change. :-[ :-[
HiMedia Q10Pro; android 5.1.1; v1.0.9

Killastyle

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #25 on: December 31, 2016, 10:36:30 AM »
Is it wise to use samba when i only stream via kodi? Or is it only usefull for streaming via lan?

pcristi

  • Senior Member
  • ***
  • Posts: 1154
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #26 on: December 31, 2016, 12:38:29 PM »
This patch not improve samba client performance from box or Kodi, not benefit for streaming from Kodi.
Patch is apply to samba server, a benefit are visible people witch use other device to connect via samba share to Q10/Q5 box.
Is it wise to use samba when i only stream via kodi? Or is it only usefull for streaming via lan?

Killastyle

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #27 on: December 31, 2016, 01:22:18 PM »
This patch not improve samba client performance from box or Kodi, not benefit for streaming from Kodi.
Patch is apply to samba server, a benefit are visible people witch use other device to connect via samba share to Q10/Q5 box.
Is it wise to use samba when i only stream via kodi? Or is it only usefull for streaming via lan?

Thanks for the info

IamEvel

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #28 on: January 22, 2017, 02:05:54 PM »
« Last Edit: January 22, 2017, 02:08:10 PM by IamEvel »

pcristi

  • Senior Member
  • ***
  • Posts: 1154
    • View Profile
Re: [PATCH] Samba server optimisation
« Reply #29 on: January 22, 2017, 02:42:42 PM »

 

DELIVERY  :  WARRANTY / RETURNS  :  FAQ  :  BREXIT  :  ABOUT
Price in £GBP with conversion by Paypal (more info). UK+EU delivery includes VAT at 20% (more info). Privacy Policy. © SDHDIGITAL LTD 2020