LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-19-2010, 04:05 PM   #1
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
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: http://powerlab.fsb.hr/ped/kturbo/openfoam/release/ )

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...

Alex...


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

I am not creating solvers from scratch, I am using publicly available FLOSS tools...
 
Old 04-19-2010, 04:51 PM   #2
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
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.
 
1 members found this post helpful.
Old 04-19-2010, 04:55 PM   #3
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi...

No offense at all... my bad...

Alex
 
Old 04-21-2010, 08:50 PM   #4
larryhaja
Member
 
Registered: Jul 2008
Distribution: Slackware 13.1
Posts: 291

Rep: Reputation: 75
Quote:
Originally Posted by Alexvader View Post
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.
Code:
# tgz2lzm <filename>.tgz <filename>.lzm

Last edited by larryhaja; 04-22-2010 at 06:53 PM.
 
1 members found this post helpful.
Old 04-22-2010, 10:05 AM   #5
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi Larryhaja...


Thanks for your answer...

BRGDS

Alex
 
Old 04-22-2010, 02:39 PM   #6
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,380

Rep: Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840
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).
 
1 members found this post helpful.
Old 04-23-2010, 12:06 PM   #7
rrbert
LQ Newbie
 
Registered: Jul 2007
Posts: 11

Rep: Reputation: 1
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.
rrbert
 
1 members found this post helpful.
Old 04-23-2010, 05:07 PM   #8
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
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
Code:
user@slax$ bash
at shell i get all my preset sourced files in ~/.bashrc to create environments to run my applications...?

BRGDS

Alex
 
Old 04-24-2010, 01:15 PM   #9
rrbert
LQ Newbie
 
Registered: Jul 2007
Posts: 11

Rep: Reputation: 1
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.
rrbert
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
trying to build netsurf for slackware and slax vonbiber Slackware 16 02-12-2011 03:57 PM
Slax: how to build a new kernel? xlq Linux - General 5 01-23-2010 12:19 PM
How to build a Slax live cd? JosephS Linux - Distributions 4 05-22-2009 02:15 AM
Pdf viewers not showing text after X11-fonts-misc module added to Slax 5.1.8 live CD. uncle-c Slackware 1 11-22-2006 03:26 AM
[Error] Kernel Module : No kernel module build environment saman007uk Debian 7 09-09-2006 06:34 PM


All times are GMT -5. The time now is 04:08 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration