How to preseed printers and other stuff?

Pierre Girard pierre.girard at
Fri Mar 23 13:59:49 UTC 2012

   I recently started making a preseed configuration file for ubuntu 
11.10. The goal is eventually to get it working on 12.04.

So far, I got the installation to work but there's still a couple things 
that I don't know how to do, for example how do you create a printer 
configuration in a preseed file? I can install the printer interactively 
just fine with the gui, I looked at debconf-get-selections and I don't 
see anything about the printers.

I have this part to select the main language and it seems to work, 
except that the first time I log in it tells me support is incomplete 
and that I can install more stuff. I'd like not to have to do that on 
each machine.

# The values can also be preseeded individually for greater flexibility.
d-i debian-installer/language string fr
d-i debian-installer/country string CA
d-i debian-installer/locale string fr_CA.UTF-8
# Optionally specify additional locales to be generated.
d-i localechooser/supported-locales string en_CA.UTF-8

I tried to add the list of packages here, but it doesn't seem to be enough
d-i pkgsel/include string nis autofs openssh-server texmaker wfrench 
firefox-locale-fr hunspell-fr poppler-data libreoffice-l10n-fr 
libreoffice-help-fr hyphen-fr mythes-fr hunspell-fr thunderbird-locale-fr

The other stuff seems to get installed.

My next problem is with the keyboard. I specify this:
# Keyboard selection.
# Disable automatic (interactive) keymap detection.
d-i console-setup/ask_detect boolean false
#d-i keyboard-configuration/modelcode string pc105
d-i keyboard-configuration/layoutcode string ca
# To select a variant of the selected layout (if you leave this out, the
# basic form of the layout will be used):
d-i keyboard-configuration/variantcode string fr

But after installation the keyboard is english us.

Is there a meta package for developpers, so instead of choosing 
something like this:
tasksel tasksel/first multiselect ubuntu-desktop

I could do something like this:
tasksel tasksel/first multiselect ubuntu-developper

and get compiler, debuggers, library and headers required to write code 
(C, C++, perl, python, fortran, java)?

Thanks for your help.

More information about the ubuntu-users mailing list