NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

sshambar2's avatar
Sep 16, 2020

Samba 3.6.25 build for ReadyNAS NV+ v2

My brother was having difficulties connecting to his ReadyNAS from his work laptop running Win10, and asked if I could enable SMB2 on his NAS (he couldn't install SMB1 compatibility as the laptop is locked down).  I was able to enable it by adding a file at /etc/frontview/samba/addons/addons.conf on the NAS containing:

[global]
max protocol = SMB2

However, he still was having connection issues, probably because the latest ReadyNAS only has Samba 3.5 where SMB2 is marked "experimental".

 

So I loaded up a virtual machine, and set about compiling a newer Samba release.  The project involved a little more than I expected, but I finally installed all the dependencies on the VM and built Samba 3.6.25. I considered Samba 4, but I wanted to keep compatibility with his Frontview config, and Samba 4 requires a newish Python to compile...(might try that later).

 

Since I went through all the effort, I figured the community might find the results useful.  For anyone who's interested, I've placed the build (and the scripts I wrote to compile all the dependencies and the Samba release) on github at:

 

https://github.com/sshambar/readynas-arm

 

The Samba-3.6.25 tarball is on the releases page, and instructions for installing are in the samba-3.6.25/README.  I compiled with the same settings as the original Samba 3.5 except that the binaries are installed in /usr/local (so as not to disturb the current Samba install) -- but it will use the same config files and state as the original install.

 

To get it working, just untar into /usr/local, and then symlink smbd and nmbd to /usr/sbin in place of the originals (see the README).

 

The github project includes the script I wrote to build all the dependencies using the Netgear SDK (in case you want to build it yourself), including all the "fixes" I had to use to get the original GPL software packages to cross-compile.

 

You can probably use my script to easily add new packages for the ReadyNAS NV+ v2... I've already built a few others for my brother which I may upload as well.

 

Anyway, I hope some of you find it useful :)

Scott

37 Replies

Replies have been turned off for this discussion
  • That's great!  Since many users are unfamiliar and/or uncomfortable with SSH access and the Linux command prompt, it would be even better if it could be offered as an add-on.  Any chance you or somebody else interested could build one?

     

    I'd volunteer, but I'm not a Linux programmer and have found no "ReadyNAS package building for dummies" guide.  The available instructions clearly assume you are a programming guru.

    • sshambar2's avatar
      sshambar2
      Star

      I'd be happy to take a crack at it, but the add-on binaries don't appear to be a standard format, and I've yet to find any documentation on how to create one.  Anyone have a reference they can point me at?

    • sshambar2's avatar
      sshambar2
      Star

      I've created a Samba 3.6 add-on using the old ReadyNAS Add-On SDK (thanks mdgm for the pointer).  The initial release can be found at:

       

      https://github.com/sshambar/readynas-arm/releases/download/Samba36-3.6.25-1/Samba36_3.6.25-1.bin

       

      Once installed, the add-on will run the new Samba 3.6 version.  There's an option to disable SMB2 support if you want, but it's probably best to leave it enabled.  If the add-on is disabled (or removed), the original 3.5 Samba server is restored and started.  Re-enabling the add-on will again start the new 3.6 version.

       

      I also created scripts and Makefiles so if anyone wants to rebuild (or fix) the add-on, it's pretty easy.  Basically the add-on is a wrapper around a debian package (to allow removal), which is built from the binary tarfile.

       

      The READMEs describe how it all works, but if you have the various SDKs installed, you should be able to build everything without difficulty.

       

      Let me know if you have any problems.

       

      • StephenB's avatar
        StephenB
        Guru - Experienced User

        sshambar2 wrote:

        I've created a Samba 3.6 add-on using the old ReadyNAS Add-On SDK (thanks mdgm for the pointer).  The initial release can be found at:

         

        Let me know if you have any problems.

         


        Thanks for posting this!

         

        I don't have own the NV+ v2, but I suspect many folks will find this useful.

  • Hallo Scott

    vielen vielen Dank für dieses tolle AdOn.

    Lief auf meinem ReadyNas duo v2 unter Raidiator 5.3.13 sofort ohne irgendwelche Probleme.

    Damit funktioniert der Zugriff von meinem PC mit Windows 10 pro wieder.:smileyhappy:

     

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More