-   Slackware (
-   -   How do I build a module for Slax...? (

Alexvader 04-19-2010 05:05 PM

How do I build a module for Slax...?
Hi Fellow Slackers... :)

Long time no see... this is the begining of me trying to create a LiveDVD distro tailored for Engineers ( Civil/Mechanical/Naval/Aeronautical)

I am starting with Slax, ( a customized version tweaked by PhD Hrvoje Jasak, and Henry Weller, creators of OpenFOAM CFD Analysis suite: )

Well, I guess i want to build some sort of OpenFOAM_Slax on steroids... :) :

More CFD Packages : AVL, XFoil, Gerris, Code_Saturne

Visualization Tools : VisiT, OpenDX, ParaView, GnuPLOT

Math Prototyping apps : Octave, Scilab, Maxima

Finite elements solvers : Calculix, Frame 3d, Code_aster, Syrthes, GetDP, Ofeli, DealII

Finite elements/volumes Meshers : Gmsh, Grummp, NetGen, TetGen

Cad Applications : BRL-CAD, Blender, FreeCAD, Salome Platform, OpenCascade.

Hope all this can fit in a DVD... :)

So three questions, for now :

How do I build a lzm module for slax...?

Is it enough to drop it into the modules folder ( with all the dependencies involved, of course ) ?

In case I compile stuff with a proprietary thing like icc/ifort/mkl... is it OK to dump the binaries and libs into a DVD that will probably be used by Engineers all over the world...? ( Dream on... ROFL... )

Thanks in advance...


PS Hey... when Planes will start falling down, and ships will start breaking apart in rough seas do not come knocking at my door, with that

" It's that guy Distro that I used to project my stuff... I want his head " attitude :D

I am not creating solvers from scratch, I am using publicly available FLOSS tools...

bgeddy 04-19-2010 05:51 PM

I'm sorry if I may sound condescending but Slax is not Slackware. Although Slax is,(or possibly was - I'm not sure), derived from Slackware - your questions have nothing at all to do with Slackware itself. In short this forum is to discuss problems with Slackware and not one of it's many derivatives of which there are many. You would be better posting to the Slax Forum with questions on this. Please don't take offence at my response but there have been many posts here about Slax which should be posted to a Slax forum.

Alexvader 04-19-2010 05:55 PM


No offense at all... my bad... :)


larryhaja 04-21-2010 09:50 PM


Originally Posted by Alexvader (Post 3940748)
How do I build a lzm module for slax...?

You can compile a regular slackbuild on Slax in the *.tgz format. From there just use tgz2lzm to convert it to a slax module. I did this a few times on Backtrack 3.

# tgz2lzm <filename>.tgz <filename>.lzm

Alexvader 04-22-2010 11:05 AM

Hi Larryhaja...

Thanks for your answer... :)



ponce 04-22-2010 03:39 PM

there's also an unofficial update of slax to slackware-current (but with kde 3.5), slax remix: note that it uses squashfs4 so modules distributed on slax site have to be rebuilt (there's a converter included).

and from Tomas himself, a nice documentation page (for the official slax). :)

rrbert 04-23-2010 01:06 PM

Although your question isn't specifically about slackware, slackware is however the perfect tool for this job, especially slackware 12.2 as slax is mostly based on this version. In addition to the tgz2lzm tool mentioned above, there is also the dir2lzm tool.
This is actually very useful as you can install a package to a directory, then go into that directory and remove unneeded documentation, man pages, language files etc. before converting to a module, thus significantly reducing the size. This also has the side effect of making the module load quicker and appear more responsive.
The method I prefer is to use slackware for all the heavy lifting, then copy that directory to a usb stick (I use an ext2 formatted stick, but I think vfat also works if there are no symbolic links). Then you plug the usb stick into a computer running slax and issue the command
dir2lzm some_directory some_name.lzm
As you say you should also check dependencies to be sure.

Once you have your module, you can put it in the modules folder. However if you have many modules, you should put the rarely used ones into the options folder, then you only load them when needed.

As to including proprietary stuff, you should consult with the free software foundation (or a lawyer) for advice.

Alexvader 04-23-2010 06:07 PM

Hi rrbert

Thanks for the hints...

As for your experiences with LiveDistros, would you say that a Slackware Based Live is more responsive than a Debian Based one or an Arch based one...?

I'm not much of a user of <live> stuff... but the main lines of my choices are :

I will have to install big packages, OpenFOAM, BRLCAD, Code Aster, Dakota, etc, so... the tinier and more barebone is my minimal system, the more likely it is to fit everything into a DVD...

Do modules in Slax load preserving stuff like $LD_LIBRARY_PATH, and $PATH so that if i type

user@slax$ bash
at shell i get all my preset sourced files in ~/.bashrc to create environments to run my applications...?



rrbert 04-24-2010 02:15 PM

I'm not very knowledgeable about many distros, just slackware and slax. There are variants of knoppix designed to be easily customized, so I guess that would ease access to the rather large debian software repository.
On the other hand, if the package doesn't exist in the right version, you might have problems. It has generally been my experience that slackware is a programmers dream, especially regarding vanilla source code, plus you have access to all the slackbuilds.
I think the quickest path would be to use slax (or maybe slax-remix) on a usb-stick so you can easily add modules, and use slackware to compile your programs.
As far as I know, slax will honor environment variables, and you could more or less completely emulate slackware on slax by adding modules, but I think slackware is more stable.
Anyhow, as has been pointed out, you should probably head over to the slax forum where you may find more specialist knowledge.

All times are GMT -5. The time now is 10:31 PM.