LiveCD environment and configuration question.

Post your Debian questions here.

LiveCD environment and configuration question.

Postby mr-bisquit » March 19th, 2011, 9:11 pm

Move or merge this if need be.

How do I add a configuration to the iso image?
More oddier than the most oddiest of the oddy odds.
mr-bisquit
 
Posts: 383
Joined: February 11th, 2011, 5:19 am

Re: LiveCD environment and configuration question.

Postby nadir » March 19th, 2011, 10:04 pm

The most easy way is to install it, configure it, and run:
Code: Select all
lh config --bootstrap copy --debian-installer live
lh build


Therefor i seldom do anything different.
I assume you speak of user-configs. I for one can't find anything about that here:
http://live.debian.net/manual/en/html/c ... tents.html
but i am quite sure that i heard MeanDean and fsmithred talking about such and mentioning etc/skel.
(i assume inside the directory where you ran `lh config ` before, but ... i am very far from knowing it).
This page would confirm something like that (search for the term "skel"):
http://www.knoppix.net/wiki/Knoppix_Remastering_Howto

I also got a bookmark from grml:
http://wiki.grml.org/doku.php?id=remastering
which i did never do.

And, like usual, the evergreen:
http://www.debe17.com/web_pages/deans_c ... 8.php.html

You can save yourself a lot of reading and trouble if you simply install it somewhere and use `bootstrap copy' or:
refractasnapshot
nadir
 
Posts: 1708
Joined: February 9th, 2011, 8:07 am

Re: LiveCD environment and configuration question.

Postby fsmithred » March 20th, 2011, 12:05 am

Say more about exactly what you want to do. Are you building this live image, or do you want to change an already-built iso? If it's the latter, you mount the iso image, copy the contents, change what you want, then rebuild with genisoimage. I haven't done that, so I can't give you any details.

Doing it the way nadir described is probably easier, especially if you do it in a vm. (install onto virtual hard drive, configure, run the snapshot tool to make a new iso.) If you're building the iso yourself with live-build, it'll actually take two builds. One to get something to run in a vm, and then make the changes and copy the config files to the build directory for the second build. (see my howto on customizing the desktop for details on that.)
fsmithred
 
Posts: 319
Joined: February 11th, 2011, 4:14 am

Re: LiveCD environment and configuration question.

Postby mr-bisquit » March 20th, 2011, 12:35 am

Oi!
The image is to be built soon. I want to be able to setup orca and other assistive technologies on the disc plus a possible straight to harddisk install.

The machine is PPC iMac G4.

I want to try to either:
a) enable at-spi to run when the CD boots.
or
b) create a config from the Live cd and then add that to the image itself.

One build is in a chroot, the other is in /home.
More oddier than the most oddiest of the oddy odds.
mr-bisquit
 
Posts: 383
Joined: February 11th, 2011, 5:19 am

Re: LiveCD environment and configuration question.

Postby fsmithred » March 20th, 2011, 2:43 am

Build it with all the software you want installed on it, boot the iso in a vm, configure it exactly how you want it, then either build a new iso using the refracta snapshot tool or rsync your home directory to config/chroot_local-includes/etc/skel/ in the build directory and build again ('lb clean', 'lb config' with the same configs as the first time, then 'lb build')

Here's the howto on customizing the live desktop:
viewtopic.php?f=9&t=193

Here's how to manually create a live image of your install:
viewtopic.php?f=9&t=446

I don't think you can download the deb file for the snapshot tool right now. I think I can fix that, but I should check that I have the latest version of it. And the future version of it is still in the future, where I can only reach it by conventional means - not today.

Edit: Found 'em! This is a newer version than the last one I tried. Looks like Dean uploaded it just a few days ago. I used the previous version with a live debian that I built and it worked. Be forewarned: you'll end up with a boot screen that says "Refracta" unless you want to hack the deb file and change the syslinux menu.
http://distro.ibiblio.org/pub/linux/dis ... .4_all.deb
fsmithred
 
Posts: 319
Joined: February 11th, 2011, 4:14 am

Re: LiveCD environment and configuration question.

Postby mr-bisquit » March 20th, 2011, 5:09 pm

I'll try it a bit later. Just downloaded it.
VirtualBox doesn't work on powerpc; and, I don't think syslinux is compatible with it either.

I was thinking is there a proper way for mounting and copying the image with -o loop and -o rw or would I need to cp image-mount /new/file/for image and then rewrite? Never had luck with this.

Thanks for the help.
More oddier than the most oddiest of the oddy odds.
mr-bisquit
 
Posts: 383
Joined: February 11th, 2011, 5:19 am

Re: LiveCD environment and configuration question.

Postby nadir » March 20th, 2011, 5:20 pm

The evergreen i linked to above says to do it like this:
change to root since some of the commands require root privys
su

unpack the ISO
mkdir iso
mkdir temp
mount binary.iso -o loop temp/
cp -a temp/* iso/
umount temp/

Unpack the squash file system. This is the actual filesystem that is run when you use the livecd.
mount -t squashfs -o loop iso/live/filesystem.squashfs temp/
mkdir fs
cp -a temp/* fs/
umount temp/
rm -rf temp/

remove the old squash from the iso since we will build a new one with our changes
rm iso/live/filesystem.squashfs

and to pack it together again:
mksquashfs fs/ iso/live/filesystem.squashfs

better look at the full version (cause i barely understand it, and might have missed something):
http://www.debe17.com/web_pages/deans_c ... 8.php.html
But: i did it in the past, and often, and it _did work.

If Vbox does not work you can use qemu, if qemu does not work you can use a separate partition.
Make sure to have got enough space (about three times as much as your installed system).
I for one had no luck on the ppc. That does not mean much, as i am a noob.
nadir
 
Posts: 1708
Joined: February 9th, 2011, 8:07 am

Re: LiveCD environment and configuration question.

Postby mr-bisquit » April 3rd, 2011, 6:22 pm

Code: Select all
root@jipjip:/home/huhu/live# lb config --distribution squeeze --archive-areas "main contrib non-free" --repository ftp://ftp.debian-multimedia.org --repository http://backports.debian.org/debian-backports --packages "live-initramfs gnome-orca festival gnome-media gstreamer0.10-plugins-bad gstreamer0.10-plugins-base-apps gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-really-bad gstreamer0.10-plugins-ugly iceweasel gstreamer0.10-tools python-gst0.10-dev pidgin pidgin-festival festvox-kallpc16k brasero brasero-cdrkit gnome-desktop-environment libburn4 libisoburn1 libisofs6 gnome-session gdm3 at-spi python-at-spi python-pyatspi "
P: Considering defaults defined in /etc/live/build.conf
lb config: unrecognized option '--repository'
lb config: unrecognized option '--repository'
root@jipjip:/home/huhu/live#


Okay. Where am I wrong?
More oddier than the most oddiest of the oddy odds.
mr-bisquit
 
Posts: 383
Joined: February 11th, 2011, 5:19 am

Re: LiveCD environment and configuration question.

Postby fsmithred » April 4th, 2011, 2:08 am

It says right at the bottom what the problem is - there's no '--repository' option. In addition to that, I don't know if you can use d-m or backports. Check the debian-live manual to see what it says about that. I tried using backports a year ago when I was building with lenny, and I couldn't get it to work.

If you want any packages that aren't in the debian repos, you can download the necessary deb files, and put them in config/chroot_local-packages. They should get installed when you build. Don't list them in the lb config command.. Make sure you include debs for any dependencies that aren't in the repos.
fsmithred
 
Posts: 319
Joined: February 11th, 2011, 4:14 am

Re: LiveCD environment and configuration question.

Postby nadir » April 4th, 2011, 5:48 pm

I think (!!!) to add repos you have to add two files:
... config/chroot_sources/name_of_choice.binary
... config/chroot_sources/name_of_choice.source
add your sources-line (just like the one in /etc/apt/sources.list), but add a "./" to its end.
Then add the packages to the lh_config line like usual:
lh config --packages "whatever"

I found it here, and as you see it is a while ago i did that:
http://forums.debian.net/viewtopic.php? ... 10#p239920
I must have found it somewhere in the docu of live-helper.

I am a strong believer of installing and running --bootstrap copy
nadir
 
Posts: 1708
Joined: February 9th, 2011, 8:07 am

Next

Return to General Questions

Who is online

Users browsing this forum: No registered users and 1 guest

x