Vous êtes sur la page 1sur 9

InstallCDCustomization - Community Ubuntu Documentation

https://help.ubuntu.com/community/InstallCDCustomization

Login

to

Edit

Ubuntu

Insta
Contents 2. Get the

Documenta

Introduction

The process of cust not especially comp Introduct

The Ubuntu installa 3. Copy the 4. has Modify in 'server' CD) thr 1. Changin AMD64/x86 system preseed starts everything up 2. Writing case is really a spec 1. Installin repository structure preseed "pool" and "dists". 2. Installin three parts. 3. Runnin
5. Modify

3. Building apt-ftpar 6. Burning t You might speed 1. Building Ubuntu session, for 2. Burning file to test rather th Testing 7. perform ALL opera Troublesh See also with VirtualBox, 9. du

This page shows a packages 1. Create a you copy the conte 2. Generati your local system a to sign y needed.

installation output a screen. Note that th

This (Live)

guide is for t CD, and ano

Get

the

Alte

Use the "complete Ubuntu version and also work.

Copy

the

CD

Copy the entire but you can put If you have an

ins it w

ISO

mount

-o

loo

Use "Gmount-iso" without mounting.

1 of 9

10/24/2011 07:10 PM

InstallCDCustomization - Community Ubuntu Documentation


You can

https://help.ubuntu.com/community/InstallCDCustomization
use

rsy

rsync

-av

/c

or

just

mkdir -p /op cp -rT /cdro

Note: the -p option already exist.

Be sure to catch the "everything it can s

If you use a fileman "View" menu or yo the rest of the work

Modify

insta

When the CD boots modified through th contexts. If you loo already have presee

Suppose you are in (what country and t partition the hard d

Changing

isoli

We will create a pr find this file by mo isolinux/text.cfg), t section labeled like

LABEL firewa menu label kernel /in append pr setup/layout

If

you

want

to

set

th

For totally automat parameters:

LABEL firewa menu label kernel /in append fi setup/layout severe=true --

To all

make the install versions).


10

timeout

2 of 9

10/24/2011 07:10 PM

InstallCDCustomization - Community Ubuntu Documentation

https://help.ubuntu.com/community/InstallCDCustomization

Timeout You also (On

values

ar

must specify a set DEBCONF Ubuntu 6.06

an

Writing
A preseed

the
file

pre

has

1. identity of the prog 2. name of the variab variable type 3. value of variable 4. It looks something

# Always ins d-i base # Don't inst d-i base # Desktop sy d-i arch d-i arch # Only insta d-i pkgs d-i pkgs # No languag d-i pkgs

The version of thi standard" rather than "~t^ubuntu-standard$". 6.06 and newer.)

d-i part The

expects there of the value) easiest way

to

1. The that

Ubuntu install you may need

2. You could check o versions of the De 3. If you can't find time choices by debconf-get-selections usage:

th us

sudo apt-get debconf-getdebconf-get-

This will into your

output a l preseed fi

debconf-get-selec before putting the l

3 of 9

10/24/2011 07:10 PM

InstallCDCustomization - Community Ubuntu Documentation

https://help.ubuntu.com/community/InstallCDCustomization

Installing

extra
has

pa

base-config In Ubuntu

bee

6.06

and

d-i

pkgs

In Ubuntu 8.04 back-slash):

and

d-i pkgs gstreamer0. gstreamer0. gstreamer0.

The installer can n which are not runni modify a database a postinst script, start environment) or ap

Installing

languag

A different mechan expert mode. See th to add support for B


d-i

localech

Running

Final

You can run a scrip installation CD in t Python or Perl) tha


d-i

preseed/

The

above

comm

d-i preseed/ +x /root/fin

Generally, a script generally three opti Create Create Access a a

custom U 'firstrun' s

debconf

di

A preseed script r (e.g. file descriptor inheriting environm before calling apt-g
unset unset unset

DEBCON DEBCON DEBIAN

4 of 9

10/24/2011 07:10 PM

InstallCDCustomization - Community Ubuntu Documentation


unset

https://help.ubuntu.com/community/InstallCDCustomization

DEBIAN

Modify

poo

Probably the prime want to add some p

The easiest way to CD file hierarchy b

This requires you to Packages files, and

Create
The

an

"Ext

following

exa

Create

directories

cd /opt/cd-i mkdir -p dis

Put

all

the the

extra file

.de

Create

dists/hardy/extras/bin

Archive: har Version: 8.0 Component: e Origin: Ubun Label: Ubunt Architecture

On the scripts installed. You

page will

Generating

In order to sign the held in the package so we need to build

To create a signing your Real Name an "packages@xxx.ex

In another directory own GPG key, and exports them, along 8-digit hexadecima previous step, when

To clarify, below is line beginning with


gpg pub uid sub

--list-k 1024D/

2048g/

Here

is

an

example

5 of 9

10/24/2011 07:10 PM

InstallCDCustomization - Community Ubuntu Documentation

https://help.ubuntu.com/community/InstallCDCustomization

cd /opt/buil sudo apt-get system. apt-get sour cd ubuntu-ke gpg --import gpg --list-k gpg --export cd .. # y dpkg-buildpa cd .. # you cp ubuntu-ke

You will end up wi component of your

Building
apt-ftparchive apt-ftparchive

the

re

builds the Packages and we will need to

If you will be universe files. We will put the

add

ind

mkdir -p /op cd /opt/indi DIST=hardy for SUFFIX i wget http: done

Create the files apt-ftparchive-de and release.conf in a director image directory, an

The .conf files sho pool/restricted. If y pool/universe also, for main. You will

/opt/apt-ftparchive/

Dir { ArchiveDir }; TreeDefault Directory };

BinDirectory Packages " BinOverrid ExtraOverr };

BinDirectory Packages "d BinOverride };

Default { Packages { Extensio Compress

6 of 9

10/24/2011 07:10 PM

InstallCDCustomization - Community Ubuntu Documentation


}; };

https://help.ubuntu.com/community/InstallCDCustomization

Contents { Compress };

"

The ExtraOverride ~t<task name>. Th below.

# extraoverr # generate E # use as fol # extraoverr /override.ha while

(<>) { chom next if (

} ($ke if ( } if } }

If

customizing

Xu

/opt/apt-ftparchive/

Dir { ArchiveDir }; TreeDefault Directory };

BinDirectory Packages " BinOverrid };

BinDirectory Packages " BinOverrid };

Default { Packages { Extensio Compress }; }; Contents { Compress };

"

/opt/apt-ftparchive/

Dir { ArchiveDir

7 of 9

10/24/2011 07:10 PM

InstallCDCustomization - Community Ubuntu Documentation


};

https://help.ubuntu.com/community/InstallCDCustomization

TreeDefault Directory };

BinDirectory Packages " };

Default { Packages { Extensio Compress }; }; Contents { Compress };

"

You need to explanation.

build

/opt/apt-ftparchive/ This is the

configur

APT::FTPArch APT::FTPArch APT::FTPArch APT::FTPArch APT::FTPArch APT::FTPArch APT::FTPArch APT::FTPArch

To

build

the

reposi

BUILD=/opt/c APTCONF=/opt DISTNAME=har

pushd $BUILD apt-ftparchi apt-ftparchi apt-ftparchi apt-ftparchi

gpg --defaul /Release find . -type popd

"YOURKEYID"

is

Burning
At this point,

the
you

Building
x86 and

the

IS

AMD64

IMAGE=custom BUILD=/opt/c mkisofs -r

8 of 9

10/24/2011 07:10 PM

InstallCDCustomization - Community Ubuntu Documentation

https://help.ubuntu.com/community/InstallCDCustomization

Power

PC the

Download

HFS

IMAGE=custom BUILD=/opt/c mkisofs -r

ia64

IMAGE=custom BUILD=/opt/c mkisofs -r -o -J

$ -

$IMAGE

is

just

th

Burning
To detect

the

im

the

locati

sudo

nice

-1

You

will

burn

lot

Testing

You can now boot questions, the insta

Troubleshoo

If your CD fails to If you get a red d-i and fix your CD ap

See
An

also
out some

Check

in

"Unattended

InstallCDCustomizatio https://login.la ) 66-189-88-102.dhcp.o

Page

History

9 of 9

10/24/2011 07:10 PM

Vous aimerez peut-être aussi