Creating a custom Debian CD

News and discussion about development of the Debian OS itself

Creating a custom Debian CD

Postby alvakoldo10 » 2010-09-17 07:54

Hi every one.
I am trying to prepare my own Debian install CD using simple-cdd. Does any one know if I can add my own deb packages instead of those got from standard mirrors ?

Besides, dows any one know how can I prepare a debian package so that at some point of the debconf scripts (preinst) I decide the path where to
install the app ?

Thanks in advance.
alvakoldo10
 
Posts: 59
Joined: 2010-09-17 07:49

Re: Creating a custom Debian CD

Postby Pick2 » 2010-09-17 10:50

Here is a good start:
viewforum.php?f=16
User avatar
Pick2
 
Posts: 796
Joined: 2007-07-07 13:31
Location: Decatur Il

Re: Creating a custom Debian CD

Postby MeanDean » 2010-09-17 11:03

If you are interested in an alternative method of creating a custom Debian CD then I would suggest looking at live-helper.
User avatar
MeanDean
 
Posts: 3953
Joined: 2007-09-01 01:14

Re: Creating a custom Debian CD

Postby alvakoldo10 » 2010-09-17 12:28

Sorry for answering both here :

1.- Pick2, your link drives me to root of forum .... no concrete post :|

2.- MeanDean, do you mean that live-helper can do same, even add capabilities of liveCD, and could be easier and quicker to learn ?
alvakoldo10
 
Posts: 59
Joined: 2010-09-17 07:49

Re: Creating a custom Debian CD

Postby MeanDean » 2010-09-17 12:36

Depending on what you are wanting to do then live-helper may be just the ticket.

might want to look at
viewtopic.php?f=16&t=38870
User avatar
MeanDean
 
Posts: 3953
Joined: 2007-09-01 01:14

Re: Creating a custom Debian CD

Postby alvakoldo10 » 2010-09-17 12:42

MeanDean wrote:Depending on what you are wanting to do then live-helper may be just the ticket.

might want to look at
viewtopic.php?f=16&t=38870


well, i will try to explain my self a bit :
1.- I start from a base netinst
2.- I got my own SW packaged as .deb
3.- I need to install also a set of standard SW (apache, mysql ... etc) and all its dependencies
4. - As I want to keep always a frozen snapshot of my whole installation (CD install probably) my plan right now is to keep my own Debian repository with all the things I need (updating packages veeeeery slowly) and, from time to time, build a comprehensive CD for installations from such repository

.....not sure if i messed it all more or clarified it ...
alvakoldo10
 
Posts: 59
Joined: 2010-09-17 07:49

Re: Creating a custom Debian CD

Postby alvakoldo10 » 2010-09-22 13:32

sorry if a sound like being rude but, no response after I explained what I need? is it maybe that I said something like a mess?
alvakoldo10
 
Posts: 59
Joined: 2010-09-17 07:49

One Step Forward

Postby alvakoldo10 » 2010-09-24 11:31

Ok, let me try it another way :
1.- I create my own Debian repository with reprepro (hierarchy underneath pool dir.), lets say

Code: Select all
       /opt/debian/pool
       /opt/debian/db
       ....all the rest ...


2.- Such local-own repository contains standard packages and some extra of my own, all well referred in .../debian/Packages.gz
I check my repo is ok by substituting the normal sources.list with one of my own then apt-get update and all goes fine.
My test sources.list just contains :

Code: Select all
       deb     file:///opt/debian squeeze main contrib non-free


3.- I prepare a simple-cdd directory like ~/simple-cdd this way :
Code: Select all
              ~/simple-cdd/profiles/myprofile1
               ~/simple-cdd/profiles/myprofile2


4.- I issue next command to build my iso installer from my own local repository :

Code: Select all
build-simple-cdd --graphical-installer --profiles-udeb-dist squeeze --debian-mirror file:////opt/debian --dist squeeze --profiles myprofile1,myprofile2


At the end, simple-cdd fails with next error messages
Code: Select all
....stuff ....
Warning parsing ~/simple-cdd/tmp//mirror/conf/updates, line 3: unknown udeb component 'none' will be ignored!
Warning parsing ~/simple-cdd/tmp//mirror/conf/updates, line 9: unknown udeb component 'none' will be ignored!
Warning parsing ~/simple-cdd/tmp//mirror/conf/updates, line 15: unknown component 'none' will be ignored!
Warning parsing ~/simple-cdd/tmp//mirror/conf/updates, line 20: unknown udeb component 'none' will be ignored!
....stuff ....
ERROR: missing required packages from profile default:  less
ERROR: missing required packages from profile default:  simple-cdd-profiles
WARNING: missing optional packages from profile default:  grub popularity-contest localization-config console-tools usbutils acpi acpid eject lvm2 mdadm cryptsetup reiserfsprogs jfsutils xfsprogs type-handling debootstrap busybox syslinux-common syslinux
ERROR: missing required packages from profile myprofile1:  apache2 bzip2 chkconfig ifenslave-2.6 mysql-client-5.1 mysql-server-5.1 ntp ntpdate proftpd-basic rdesktop sudo sun-java6-jre telnet tomcat6 unzip vim wine
ERROR: missing required packages from profile myprofile2:  apache2 bzip2 chkconfig fluxbox ifenslave-2.6 mysql-client-5.1 mysql-server-5.1 ntp ntpdate proftpd-basic rdesktop sudo sun-java6-jre telnet tightvncserver tomcat6 unzip vim wine xserver-xorg xtightvncviewer


This is, building fails for absolutely all the sw i seek :( ... not just for some specific dependencies like explained about mplayer in simple-cdd howto

driving me mad at the moment
alvakoldo10
 
Posts: 59
Joined: 2010-09-17 07:49

Re: Creating a custom Debian CD

Postby MeanDean » 2010-09-24 12:01

I can't help with simple-cdd because I have never had much luck with it. I think I succcessfully used it once or twice out of about ten tries so I gave up on it.

If you can explain what you want to do in general then it may be better than explaining exactly what you are doing with simple-cdd.

I am not sure if you want:
1 - a disk that installs debian along with extra packages
2 - a disk with the extra packages that you can use after you install debian
3 - a snapshot of your debian installation
3 - a snapshot of your debian installation along with extra packages that can be installed
4 - a combination of the above

I can help you do most any of those things but not with simple-cdd.

If you have a properly created repo then you can burn that to a cd and use it from the cd. You do not need a install cd just to have a repo on a cd.
If you want a snapshot of your installed debian system then live-helper is the best choice although other choices do exist.
If you want a snapshot of your installed debian system along with a repo of extra packages there a few ways to accomplish that.

You may also want to look at dfsbuild or debian-cd although I am not sure either of those will be any more successful.
I would suggest live-helper and the live project at http://live.debian.net/
User avatar
MeanDean
 
Posts: 3953
Joined: 2007-09-01 01:14

Re: Creating a custom Debian CD

Postby alvakoldo10 » 2010-09-24 12:18

Ok, to be concise :

1 - a disk that installs debian along with extra packages


But taking into account that this has to be mantained; this is, if i need to update some of the packages of my install-cd, i will do so (with all depends of course) in my own repo and then rebuild CD from there.

PS:
Maybe snapshots could be interesting to fit my requirements but as i started the option of an install CD built from own maintained repo, currently i must end this line.
alvakoldo10
 
Posts: 59
Joined: 2010-09-17 07:49

Re: Creating a custom Debian CD

Postby MeanDean » 2010-09-24 12:54

more questions...

Did you want:
1 - a disk that installs debian first and then after reboot you can use the same cd to install those extra packages
or
2 - a disk that installs debian along with the extra packages at the same time


What is the end result you are looking for? What is this going to be used for? Who is going to be using this? How will they be using it?
User avatar
MeanDean
 
Posts: 3953
Joined: 2007-09-01 01:14

Re: Creating a custom Debian CD

Postby alvakoldo10 » 2010-09-24 13:04

well to speak honestly, as i have just known the --profiles option of the build-simple-cdd (you know the one that makes the installer to offers several profiles of software to install like server, desktop, etc), I will say option 2 and so at the only one install time, after all settings like locale, network, time etc, then I would choose my prefab profile/set of custo packages.
alvakoldo10
 
Posts: 59
Joined: 2010-09-17 07:49

Re: Creating a custom Debian CD

Postby MeanDean » 2010-09-24 13:21

I would probably just install those packages, configure everything the way I wanted, and then create a live installable snapshot of the system.

But you might have a look at the live manual where it talks about customising package installation...
http://live.debian.net/manual/en/html/packages.html
User avatar
MeanDean
 
Posts: 3953
Joined: 2007-09-01 01:14

Re: Creating a custom Debian CD

Postby alvakoldo10 » 2010-09-26 09:50

I actually cannot afford to have one computer always available for that purpose; whenever updates were required I would have to install again the system or have that frozen computer.
Besides, I need the profiles capability at install time.
is there any other way I may build my own debian CD with install profiles?
alvakoldo10
 
Posts: 59
Joined: 2010-09-17 07:49

Re: Creating a custom Debian CD

Postby TobiSGD » 2010-09-26 11:08

You don't need to have a special computer to maintain your live-CD. Just use Virtualbox.
User avatar
TobiSGD
 
Posts: 859
Joined: 2010-05-08 22:27
Location: Hannover, Germany

Next

Return to Debian Development

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable
cron