07.06.2014 Views

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6.8.2. Configuring APT<br />

The case of APT is simple: the -y option (or --assume-yes) tells APT to consider the answer to<br />

all its questions to be “yes”.<br />

6.8.3. Configuring debconf<br />

The case of debconf deserves more details. This program was, from its inception, designed to<br />

control the relevance and volume of questions displayed to the user, as well as the way they are<br />

shown. That is why its configuration requests a minimal priority for questions; only questions<br />

above the minimal priority are displayed. debconf assumes the default answer (defined by the<br />

package maintainer) for questions which it decided to skip.<br />

The other relevant configuration element is the interface used by the front-end. If you choose<br />

noninteractive out of the choices, all user interaction is disabled. If a package tries to display<br />

an informative note, it will be sent to the administrator by email.<br />

To reconfigure debconf, use the dpkg-reconfigure tool from the debconf package; the relevant<br />

command is dpkg-reconfigure debconf. Note that the configured values can be temporarily<br />

overridden with environment variables when needed (for instance, DEBIAN_FRONTEND controls<br />

the interface, as documented in the debconf(7) manual page).<br />

6.8.4. Handling Command Line Interactions<br />

The last source of interactions, and the hardest to get rid of, is the configuration scripts run<br />

by dpkg. There is unfortunately no standard solution, and no answer is overwhelmingly better<br />

than another.<br />

The common approach is to suppress the standard input by redirecting the empty content of<br />

/dev/null into it with command

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!