How to — debian distribution CD 

http://groups.google.com/group/linux.debian.devel.mentors/browse_thread/thread/1f151c7eb45f31a3

Newsgroups: linux.debian.devel.mentors, linux.debian.devel.cd Date: Mon, 03 Jan 2005

We would like to know if there is any way by which we can create an debian distro ISO which contains packages of our choice.

On debian site there r basically 2 ways defined:

  1. Downloading the whole ISO (650 MB) using jigdo or bittorrent.

    But the problem is jigdo downloads only standard available ISOs on mirrors.What we want is the customization in the number of and kind of packages present in the ISO.We cananot make a CD set of our own choice in this method.(Can we??)

  2. Using net install.

    Well we got the basic minimal ISO from woody(186 MB). But is this supposed to be a live CD ?? or a distribution installer CD? Is the file structure of debian installer CD any different from any other live CDs?

I guess we can get the additional packages we want from the net,after installing this minimal ISO.But the problem is,how then,do we convert the whole thing into an ISO that we want.

How to — debian distribution CD 

> We would like to know if there is any way by which we can create an
> debian distro ISO which contains packages of our choice.

This misses the whole CDD (custom debian distribution) angle which is still being worked out but aims to solve this problem:

  • Take a look at the cdd-dev package (not sure if it's able to build an install CD yet).
  • You could alsot look at the modified debian-cd scripts used by debian-edu/Skolelinux (Not sure in howfar these modifications have been merged back into the debian-cd package). They build a debian-cd set with the packages reordered so all debian-edu packages are on the first CD (which is otherwise a normal debian-installer CD).
  • Any detailed questions you have about any of the above are probably best asked on the debian-custom list.

    > 1.Downloading the whole ISO (650 MB) using jigdo or bittorrent.
    > But the problem is jigdo downloads only standard available ISOs on
    > mirrors.What we want is the customization in the number of and kind of
    > packages present in the ISO.We cananot make a CD set of our own choice in
    > this method.(Can we??)

nope, to make you're own CD's look into debian-cd package (and possibly cdd-dev)

> 2.Using net install.
> Well we got the basic minimal ISO from woody(186 MB).
> But is this supposed to be a live CD ?? or a distribution installer CD?

net-install images are minimal install CD, they are more or less debian-installer + base, with everything else downloaded from a mirror when needed.

> Is the file structure of debian installer CD any different from any other
> live CDs?

debian-installer CD's are not liveCD's at all

> I guess we can get the additional packages we want from the
> net,after installing this minimal ISO.But the problem is,how then,do we
> convert the whole thing into an ISO that we want.

the tools being created by the folks on debian-custom will solve this at some point (if they don't already)

cobaco (aka Bart Cornelis)

How to — debian distribution CD 

> I guess we can get the additional packages we want from the net,after
> installing this minimal ISO.But the problem is,how then,do we convert>
> the whole thing into an ISO that we want.

Take a look at debian-cd [1]. That is a tool to create Debian CDs; you can include your own package selection and own packages, if you want.

Alexander Schmehl

How to — debian distribution CD 

> I guess we can get the additional packages we want from the net,after
> installing this minimal ISO.But the problem is,how then,do we convert
> the whole thing into an ISO that we want.

You got some hints from others. I would like to add another

Some lines from `apt-cache show dfsbuild`

Debian From Scratch (DFS) is a live bootable CD that is designed to
provide a fully-featured kernel and a fully-featured rescue environment.
The rescue environment contains filesystem tools, editors, C development
environment, etc.
.
dfsbuild is the program used to create the DFS CD image.  It is highly
configurable and can be used to create other custom bootable CD or DVD
images.  You can use dfsbuild to do something as simple as building a
DFS CD with a custom kernel.  Or, you can customize the CD to include a
completely different set of packages.
.
dfsbuild works by obtaining packages from your nearest Debian mirror.
It will generate an ISO image that contains a bootable Debian system
generated by installing those packages.  Also, it can place all the .debs
and files needed by cdebootstrap in the image.  Thus, the
generated image can be used to install the base Debian system on a PC as
well.

Bartosz Fenski aka fEnIo

How to — debian distribution CD 

> We would like to know if there is any way by which we can create an debian
 distro ISO which contains packages of our choice.

Just to be clear, there is another ISO image somewhere which is just a few megabytes (~10MB). It has the kernel, and the modules, and the installer, but not base (if size is a problem).

Also check out bootcd - run your system from cd without need for disks (and bootcd-* packages). I experimented with this a couple years back.

Justin Pryzby

How to — debian distribution CD 

I've been working around debian-cd, and it's probably your program.

Hardly all you must to know it's here: http://wiki.debian.net/index.cgi?DebianInstaller (at 18:50 the link is broken!, this morning it was working…)

You will be especially interested in this sections: DebianCustomCD and ModifyImage. In my case, i have follow point per point DebianCustomCD (I'm working in a debian derivate).

A quick reference:

  • download the debian installer image (i recommend the last one stable netinst, actually d-i rc2).
  • install it in a prototype system, and add all the programs you want to include on the cd. Well, really you don't need to install the programs, you cand do something like: apt-get install -d program1 program2…. (this downloads the packages without installing) Don't clean /var/cache/apt/archives !!! here you need to keep the .deb's
  • copy all the contents of the cd to your hard-disk
  • now you have to syncronize your /var/cache/apt/archives with the pool/ of the cd. I've used apt-move for this task: configure /etc/apt-move.conf and execute apt-move fsck && apt-move update.
  • At this step you have a pool/ with all the packages you want, you have to generate your "packages" and "releases" files, it's pretty well documented at the wiki.
  • Now copy the folder backup/dist/sarge/main/intaller-i386/ to the dist/sarge/main/installer/. The folder backup it's created automatically when you run "apt-move fsck".
  • Now, you have to install debian-cd and…
  • go to /usr/share/debian-cd/
  • edit CONF.sh
  • load to the envairoment the variables: ". CONF.sh"
  • make distclean (it cleans your temporal directory)
  • make mirrorcheck (it checks that dependencies of your mirror is ok)
  • make status (it should write nothing in your screen)
  • make make bin-list TASK=tasks/yourtask COMPLETE=1 (your task is a file wich list all the programs you want to include on your cd)
  • make bootable
  • make bin-images

Voila!

I know that's it's a quick and dirty (dirty, dirty) reference… if you are intereseted read the wiki and ask all you want :-)

Carlos Parra Camargo