- This topic is empty.
November 3, 2012 at 3:30 pm #43486
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.November 8, 2012 at 10:19 am #52515
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:
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.November 11, 2012 at 11:17 am #52516
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.November 11, 2012 at 4:06 pm #52517
I found a compatible bank of packages here:
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.November 19, 2012 at 9:12 pm #52518
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:
cp /DB/profile /etc/profile
# Startup Samba:
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.February 27, 2013 at 1:39 am #52519ovcegonMemberOctober 3, 2013 at 4:23 am #52520oslllMember
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.
- You must be logged in to reply to this topic.