Unbeaufsichtigte Installation von apt Paketen
Einige Pakete werden wärend der Installation interaktiv konfiguriert. Diese Wizards lassen sich normalerweise mittels dpkg-reconfigure erneut aufrufen.
Diese Wizards sind bei einer unbeaufsichtigten Installation natürlich hinderlich. Man kann die Antworten für die Wizards aber auch vorbelegen damit man Installationen solcher Pakete automatisieren kann.
Bash
debconf-set-selections <<< "postfix postfix/mailname string mail.mydomain.de"
debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'"
apt-get install -y postfix
Eine Liste zur Verfügung stehender Parameter bekommt man mit:
Bash
me@mycomputer:~# debconf-show postfix
postfix/protocols: all
* postfix/main_mailer_type: No configuration
postfix/retry_upgrade_warning:
postfix/root_address:
postfix/mailname: my.server.net
postfix/relayhost:
postfix/dynamicmaps_conversion_warning:
postfix/chattr: false
postfix/sqlite_warning:
postfix/main_cf_conversion_warning: true
postfix/tlsmgr_upgrade_warning:
postfix/relay_restrictions_warning:
postfix/compat_conversion_warning: true
postfix/recipient_delim: +
postfix/mydomain_warning:
postfix/destinations: $myhostname, my.server.net, localhost.server.net, , localhost
postfix/procmail: false
postfix/rfc1035_violation: false
postfix/mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
postfix/not_configured:
postfix/mailbox_limit: 0
postfix/bad_recipient_delimiter:
postfix/kernel_version_warning: