Re: Morlug downloads

Eric Sorton <[email protected]> Fri, 9 Mar 2007 15:26:35 -0500
Newsgroups gmane.org.user-groups.linux.morlug
Message-ID <20070309202635.GA12366@localnet>
On Fri, Mar 09, 2007 at 01:55:09PM -0500, Andrei Smirnov wrote:
> You are right - in the end someone has to do this.  I never used those live
> linux CD's myself and I am not sure how to create one.  We may use and
> existing Knopix or whatever. But then we should offer precompiled executable
> of, say Octave (my favorite), which will run under that distribution.  Maybe
> it is not that complicated and Octave binaries I am using on Fedora now will
> work, but I think those are dynamically linked. One may actually need to
> compile it from the sources,  so that running it will be a matter of point
> and clinck, rater than rpm -i or something not trivial.

Hi Andrei,

I gave a talk on "Remastering Knoppix" back in May 2003.  I'm not sure how
much is still relevant, but the presentation is available on-line if anyone is
interested:

http://users.adelphia.net/~esorton/presentations.html

If I recall correctly, you can remastered Knoppix by starting with the base
distribution copied to a native Linux installation.  You can then chroot() to
the copy of Knoppix and install/remove packages in the normal manner (apt with
Knoppix) until you get set of packages you like.  You then recreate the CD (or
DVD) ISO from the on-disk copy.  Other Live CDs are probably similar.  As long
as the distribution the Live CD is based on (Debian for Knoppix) as the
packages for the software, then you should be able to add it to the Live CD
without recompiling the software.

> But how to make them static - I'm not sure. make -static?

To make a static executable, you have to pass the -static flag to the linker.
If you are compiling a single source file, gcc -static source.c will do.  If
you are compiling a package using make, it is a little more difficult.  make
-static will not work.  -static is passed as options to make.  Several are not
valid options for make and you will get errors.  You have to edit the makefile
and add -static to the linker command.

Eric

-- 
Eric F. Sorton <[email protected]>