WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Live CD with Programs  (Read 13774 times)

Offline buggy

  • Newbie
  • *
  • Posts: 24
Live CD with Programs
« on: April 01, 2013, 04:09:48 PM »
Again hello community,

I'd tried to made my own live CD with programms installed but I dont get the programms installed into the iso...

without installed programm only with files it's no problem

I'd found several tutorials like these:
http://forum.tinycorelinux.net/index.php?topic=6637.0
http://wiki.tinycorelinux.net/wiki:remastering
[removed due to policy violation]/modified-cd.html
http://wiki.tinycorelinux.net/wiki:integrating_extensions
.
.
.


so I'd tried it that way:













cd
wget http://www.tinycorelinux.net/4.x/x86/release/Core-current.iso


sudo mkdir /mnt/tmp
sudo mount Core-current.iso /mnt/tmp -o loop,ro
sudo cp -a /mnt/tmp/boot /tmp
sudo mv /tmp/boot/core.gz /tmp
sudo umount /mnt/tmp


mkdir /tmp/extract
cd /tmp/extract
sudo zcat /tmp/core.gz | sudo cpio -i -H newc -d

sudo depmod -a -b /tmp/extract 3.0.21-tinycore

tce-load -wi gzip

cd /tmp/extract
sudo find | sudo cpio -o -H newc | gzip -2 > ../mycore.gz

tce-load -wi mkisofs-tools.tcz
tce-load -wi brasero.tcz
tce-load -wi isomaster.tcz

cd /tmp
sudo mv mycore.gz boot
sudo mv boot/mycore.gz boot/core.gz
mkdir newiso
sudo mv boot newiso

mkdir newiso/tce/optional

tce-load -wi nano  # thats the example for all programms....

sudo cp /tmp/tce/optional /tmp/newiso/tce/optional



sudo mkisofs -l -J -R -V TC-custom -no-emul-boot -boot-load-size 4 \
 -boot-info-table -b boot/isolinux/isolinux.bin \
 -c boot/isolinux/boot.cat -o sfos.iso newiso






what did I do wrong?

in own tutoral it said that it should be in "optional" other said only "tce" I'm confused



Thank you in advance

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11586
Re: Live CD with Programs
« Reply #1 on: April 01, 2013, 05:00:31 PM »
Hi buggy
Have you tried using  ezremaster.tcz

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Live CD with Programs
« Reply #2 on: April 01, 2013, 05:29:37 PM »
Having dirs called /tce/optional on an .iso seems to be looking for trouble, as tcedir must always be writable.
You might want to have a look at a CorePlus.iso to get an idea.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline buggy

  • Newbie
  • *
  • Posts: 24
Re: Live CD with Programs
« Reply #3 on: April 01, 2013, 05:34:31 PM »
well....

good idea ...

theres the the folder "cde" and so on... will look at this first

thanks

Offline buggy

  • Newbie
  • *
  • Posts: 24
Re: Live CD with Programs
« Reply #4 on: April 01, 2013, 06:04:25 PM »
oke ... tried it but with no succeed


I'd tried it like I discriped on top
only without the path "newiso/tce/optional"

now I'd tried it like on CorePlus with "cde" folder,
and the "optional" folder which includes all tce etc... like the "newiso/tce/optional" before...
and now I'd added a "/newiso/cde/onboot.lst" and writed   for example "nano.tcz" in it...

hope you have a second hint for me ;)

Offline buggy

  • Newbie
  • *
  • Posts: 24
Re: Live CD with Programs
« Reply #5 on: April 01, 2013, 06:43:05 PM »
or perhaps can I install the programm into the filesystem... but how
when unpack the tcz files with "unsquashfs"   merge the Folders into the "extract" folder it also dont works..

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Live CD with Programs
« Reply #6 on: April 01, 2013, 07:19:19 PM »
You could place extensions into /tmp/builtin/optional/ (inside cpio archive).
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline buggy

  • Newbie
  • *
  • Posts: 24
Re: Live CD with Programs
« Reply #7 on: April 02, 2013, 07:18:18 AM »
oke I think I understand it


I extract the core.gz for example to "/tmp/extract/"
then I copy the extensions as "cpio" format into "/tmp/extract/tmp/builtin/optional"


Am I right?

Offline buggy

  • Newbie
  • *
  • Posts: 24
Re: Live CD with Programs
« Reply #8 on: April 02, 2013, 09:11:46 AM »
ok I found a solution


first I execute this script:

Code: [Select]
cd
wget http://www.tinycorelinux.net/4.x/x86/release/Core-current.iso


sudo mkdir /mnt/tmp
sudo mount Core-current.iso /mnt/tmp -o loop,ro
sudo cp -a /mnt/tmp/boot /tmp
sudo mv /tmp/boot/core.gz /tmp
sudo umount /mnt/tmp


mkdir /tmp/extract
cd /tmp/extract
sudo zcat /tmp/core.gz | sudo cpio -i -H newc -d

then I install all extensions I want to have...

then I open /tmp/extract/opt/bootlocal.sh and write
   -> sudo -u tc tce-load -i XXX XXX XXX XXX XXX
      # XXX = all extensions


and at least I execute this script:
Code: [Select]
sudo cp -R /tmp/tce /tmp/extract/tmp/

sudo depmod -a -b /tmp/extract 3.0.21-tinycore

tce-load -wi gzip

cd /tmp/extract
sudo find | sudo cpio -o -H newc | gzip -2 > ../mycore.gz

tce-load -wi mkisofs-tools.tcz
tce-load -wi brasero.tcz
tce-load -wi isomaster.tcz

cd /tmp
sudo mv mycore.gz boot
sudo mv boot/mycore.gz boot/core.gz
mkdir newiso
sudo mv boot newiso
sudo chmod 777 -R newiso


cd /tmp

sudo mkisofs -l -J -R -V TC-custom -no-emul-boot -boot-load-size 4 -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -o sfos.iso newiso



Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Live CD with Programs
« Reply #9 on: April 02, 2013, 09:41:51 AM »
then I open /tmp/extract/opt/bootlocal.sh and write
   -> sudo -u tc tce-load -i XXX XXX XXX XXX XXX
      # XXX = all extensions

Consider that this might become inefficient as soon as you would restore a backup.

Why not use /tmp/builtin/onboot.lst ? (path within remaster)

Quote
sudo depmod -a -b /tmp/extract 3.0.21-tinycore

When it comes to adding modules in a remaster, I find following script ideal, as besides from adding required modules it also discards all unused modules:
http://forum.tinycorelinux.net/index.php/topic,9028.0.html

Quote
tce-load -wi gzip

It is not obvious why the gzip extension would be needed.
« Last Edit: April 02, 2013, 10:35:57 AM by tinypoodle »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline buggy

  • Newbie
  • *
  • Posts: 24
Re: Live CD with Programs
« Reply #10 on: April 02, 2013, 10:28:03 AM »
first thanks for your feedback

I'd used /tmp/extrac/opt/bootlocal.sh because /tmp/tce/onboot.lst wont work, dont know why...



and well yea the gzip is a relict from old tries
i can remove it

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Live CD with Programs
« Reply #11 on: April 02, 2013, 10:36:57 AM »
Oops, that should have read:

/tmp/builtin/onboot.lst  (path within remaster)

Prior post corrected.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline xor

  • Hero Member
  • *****
  • Posts: 1268
Re: Live CD with Programs
« Reply #12 on: February 01, 2020, 01:29:58 AM »
thx  ;)

ok I found a solution

first I execute this script:

Code: [Select]
cd
wget http://www.tinycorelinux.net/4.x/x86/release/Core-current.iso

sudo mkdir /mnt/tmp
sudo mount Core-current.iso /mnt/tmp -o loop,ro
sudo cp -a /mnt/tmp/boot /tmp
sudo mv /tmp/boot/core.gz /tmp
sudo umount /mnt/tmp

mkdir /tmp/extract
cd /tmp/extract
sudo zcat /tmp/core.gz | sudo cpio -i -H newc -d

then I install all extensions I want to have...

then I open /tmp/extract/opt/bootlocal.sh and write
   -> sudo -u tc tce-load -i XXX XXX XXX XXX XXX
      # XXX = all extensions

and at least I execute this script:
Code: [Select]
sudo cp -R /tmp/tce /tmp/extract/tmp/

sudo depmod -a -b /tmp/extract 3.0.21-tinycore

tce-load -wi gzip

cd /tmp/extract
sudo find | sudo cpio -o -H newc | gzip -2 > ../mycore.gz

tce-load -wi mkisofs-tools.tcz
tce-load -wi brasero.tcz
tce-load -wi isomaster.tcz

cd /tmp
sudo mv mycore.gz boot
sudo mv boot/mycore.gz boot/core.gz
mkdir newiso
sudo mv boot newiso
sudo chmod 777 -R newiso

cd /tmp

sudo mkisofs -l -J -R -V TC-custom -no-emul-boot -boot-load-size 4 -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -o sfos.iso newiso