Users online right now: 161 - Login  » search  » forum index  

Creating livecd with custom applications installed

sunshine
wrote 2 years ago


reply
Hi all,

I recently began using slax. I have had used ubuntu earlier.

I have studied available documentation to set up the live cd on the forum. But can't seem to find what I am looking for.

I have few applications - www and local applications - which I want to be present on the live cd. Like, applications such as www apps (CMS etc) and local applications such as anti-virus or a mail server? These apps may create different files & directories during their setup and/or may link to other system components. I am kind of stuck now.

Request you to please share pointers in this regard.

Many Thanks,
Sunshine
 
mocabilly
wrote 2 years ago


reply
In Slax, "Programs" are used in the form of modules..
In the modules section there are loads of programs..
In case you can't find the module (program) you want to add to your Slax CD, there are a couple of ways to create your own slax-module..

Easiest ways are to download the slackware package (.tgz file) or a Debian package (.deb file) of the program you like to use, and run the tgz2lzm or deb2lzm program on those package files, which will convert those package files to slax modules.
(to use extra slax modules, you simply have to add them to the slax/modules/ directory, after a reboot they will be "auto-activated"..)

An other way to create a slax module, is to "reconstruct a directory tree (from the root directory "/" of till the last directory) and to put the files, used by that program in that directory tree...
After that you just run dir2lzm to build the slax module.

An "quick and dirty" way would be to use a "fresh slax", boot with "save changes" cheatcode, compile the software you want, quit slax - start slax in "always fresh", create a slax module from your changes directory..
 
sunshine
wrote 2 years ago


reply
Thanks mocability.

-->Easiest ways are to download the slackware package (.tgz file) or a Debian package (.deb file) of the program you like to use, and run the tgz2lzm or deb2lzm program on those package files, which will convert those package files to slax modules.
(to use extra slax modules, you simply have to add them to the slax/modules/ directory, after a reboot they will be "auto-activated"..)

I tried this and could successfully activate the new module. The executable file is created but its configuration file, n startup script is no where present. Wouldn't this be happening automatically when the module is created and activated?

-->An other way to create a slax module, is to "reconstruct a directory tree (from the root directory "/" of till the last directory) and to put the files, used by that program in that directory tree...After that you just run dir2lzm to build the slax module.

It's a bit difficult [ for me ] to identify all directories where an app will get put up once compiled. Is there a way I can do this?

-->An "quick and dirty" way would be to use a "fresh slax", boot with "save changes" cheatcode, compile the software you want, quit slax - start slax in "always fresh", create a slax module from your changes directory..

When I boot into Slax 6.1.2, I get these options only -

Graphics Mode
Always Fresh
Copy to RAM
Graphics VESA driver
Text mode
as PXE server

There is no 'Fresh Slax' option here. When I proceed with Graphics Mode, it simply boots in normally. There is no provision to enter cheat code during boot. Am I missing something here?

Many Thanks
/Sunshine
 
beny
wrote 2 years ago


reply
Always Fresh:don't loads change,that have you made.
 
sunshine
wrote 2 years ago


reply
beny wrote:
Always Fresh:don't loads change,that have you made.


Do you imply 'Fresh Slax' is 'Always Fresh'?

Thanks.
 
mocabilly
wrote 2 years ago


reply
sunshine wrote:
beny wrote:
Always Fresh:don't loads change,that have you made.


Do you imply 'Fresh Slax' is 'Always Fresh'?

Thanks.


Yes, my mistake (it was kind a late when I did reply to you post (is now again :s )

I agree with you that the dir2lzm-way to create a module can be hard.
Maybe if yo alter some compilation options, you can set a directory to where all compiled files should go..

its configuration file, n startup script is no where present
One's your slax module is created, nothing will be changed "in" the module.
Can tell us what the program is that you try to convert into a slax module?

Else, you can lzm2dir the module, add/alter the config. file & add the startup script..
where after you use dir2lzm to re-create that module.
 
beny
wrote 2 years ago


reply
hi sunshine, which version of slax you run?
 
TruBLUE
wrote 1 year ago


reply
can some one show me a link of how to create a live cd ive tried a couple times and only succeeded in wasting cd's
 
bb as guest
wrote 1 year ago


reply
@ TruBlue ...

Not clear what you want; if it is to create your own live distro, then you could search this board for 'linux live scripts'.

But I suspect that the writer at the head of this thread wanted to know how to make his own custom Slax -- and for this you just need the make_iso.{bat, sh} file which is included with the distro.

Just collect [and test] all your modules, then cd to /slax, and run the make_iso script giving it a destination where you want the new iso file built, and shortly you will have your own enlarged custom Slax.
 
jcsoh
wrote 1 year ago


reply
As highlighted by bb , the make_iso,sh or bat file is the slax's built in tool to make a new iso from your existing slax installation.

If that still fail , and assuming you have a bootable slax cd and you had burned the cd as "appendable or multisession" (the term used may differs with software use but if you are using k3b then you can see the option to continue multisession ) , then you can use isomaster to add modules to the cd .

http://www.slax.org/modules.php?search=isomaster&category=

To avoid wasting cd , you can test your iso in virtual box or any other emulator/virtualiser.
 
burninbush
wrote 1 year ago


reply
To avoid wasting cd , you can test your iso in virtual box or any other emulator/virtualiser. >jcsoh

+++++++++++++++++++

What I have been using here is dvd+rw media. Does not need any reformat to overwrite an existing burn on the disk. I use growisofs to do the burns ...

#growisofs -Z /dev/sr0=some-iso.iso

which puts the initial session on the disk, and then

#growisofs -M /dev/sr0=some-filesystem

which adds a further session.
 

  » search  » forum index  

Post your reply

Your name (Login):

Message:

These HTML tags are allowed: <quote>, <b>, <u>, <i>, <pre>, <code>, <small>, <h1>, <h2>, <h3>, <li>



Slax is generously supported by: P&P Software GmbH and wisol technologie GmbH