Package SAMBA: usable on Alix board ?

Home Page Forums Network Management ZeroShell Package SAMBA: usable on Alix board ?

This topic contains 5 replies, has 0 voices, and was last updated by  PatrickB 5 years, 8 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #43486

    PatrickB
    Member

    Hello.

    My goal is to replace my old LAN master, made of a hacked WRT54G router with some packages from the NSLU2 project.

    I have a SAMBA server on that microscopic file system , that suffices to be the Windows “BrowseMaster” for my LAN and make the “neighborhood” work…

    So I was blown 😯 by the size of the SAMBA for ZS (35Mb), and actually I cannot even download it: failed at 43% with “No space left on device”.

    I tried on a PC and saw that the archive is actually full of huge binaries… No chance to shrink it to the strictly required.

    Could someone really install that on Alix (with no USB disk or delegation to a PC !) and build a basic Windows LAN master with it ?
    Is there a special reduced package somewhere ?

    Thanks, Best regards.

    #52515

    PatrickB
    Member

    Hello.

    So I had a look at what works in the small router I want to replace, and searched for the equivalent packages for Alix.

    Here for instance:
    http://downloads.openwrt.org/kamikaze/8.09/x86/packages/

    The packages samba-server and samba-common size a total 350Kb.

    Then currently I’m searching how to test them for compatibility… A priori they expect their libs to be installed in /usr/lib but it is read-only 😡

    Someone has got the secret ?

    Thanks, Best regards.

    #52516

    PatrickB
    Member

    Pffff ! 👿

    root@server bin> opkg
    bash: /bin/opkg: No such file or directory
    😯 ????????

    root@server bin> bash -x /bin/opkg
    /bin/opkg: /bin/opkg: cannot execute binary file

    root@server bin> file /bin/opkg
    /bin/opkg: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), corrupted section header size

    root@server bin> file /tmp/work/sbin/smbd
    /tmp/work/sbin/smbd: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), corrupted section header size

    root@server bin> file /bin/true
    /bin/true: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.0.0, dynamically linked (uses shared libs), stripped

    A priori it would mean that the whole package bank is unusable on this target… Sad news.

    Is there someone else in the project with special and reasonable extension wills ? like smbd, wol, logrotate…

    Thanks for ideas. Regards.

    #52517

    PatrickB
    Member

    I found a compatible bank of packages here:

    http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/stable/

    The IPKG here is easy to wget and install manually (as /opt/bin/ipkg) then it just needs /opt/bin to be added to the PATH and the source above to be set in /opt/etc/ipkg.conf…
    …and it works !

    But the next problem is that /opt falls in /dev/ram2 which is very narrow and of course not persistent. I haven’t noticed that before…

    What means that the original SAMBA package should simply not be downloaded in the default directory 😆 😕

    OK, now I will move all that to /DB (on /udev/hda3) and it should enable to install the few little tools I need, after a week in the dark.

    Hope it helps.
    Best regards.

    #52518

    PatrickB
    Member

    Hello.

    Finally I could setup a valid and persistent config for my first need. I will add some utils later…

    I created /DB/opt and installed the ipkg of the bank above inside this persistent directory. Then of course I added the URL in the ipkg.conf and /opt/bin in the path.

    I added the following commands to the /etc/rc.local (and enabled it):

    # Replace /opt with a link to the persistent one:
    cp -dpuR /opt/* /DB/opt
    rm -rf /opt
    ln -s /DB/opt /opt

    # Replace the basic profile with my options:
    unalias cp
    cp /DB/profile /etc/profile

    # Startup Samba:
    /opt/etc/init.d/S80samba

    This is not a very esthetic integration, but it works and the goal is to forget it.

    Actually I use very little of Samba: it just ensures a fast and permanent browsemaster to avoid Netbios delays.

    If it can help…

    Best regards.

    #52519

    ovcegon
    Member
    #52520

    oslll
    Member

    If I try different setting, for example now I have set 115200, I don’t see anything in Hyperterminal after the initial configuration. If I connect with ethernet cable, neighbour can find, and it allows me to connect, username admin, password empty field, then very quickly (perhaps 5s) it says connection timeout.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.