How to handle dialogs in apt-get


#1

Hello,
I am a novice with chef and just started to get a feel of this wonderful
platform called chef. I think like many others I have started with chef-solo
and got some roles and chef cookbooks done. basically played with it.

I now am faced with a situation. How to handle the question posed via a dialog
box during installation of a package using apt-get. Examples could be when you
install rsyslog-mysql on ubuntu 10.04, it wil ask if the database required by
rsyslog-mysql should be configured using db-config and if you press yes, it
will ask for the root password and then will ask for a new password and confirm
password for a new mysql user called rsyslog.

ANy help or direction will be highly appreciated.

regards


#2

On Thu, Oct 13, 2011 at 4:04 PM, aserdp rdp.com@gmail.com wrote:

How to handle the question posed via a dialog
box during installation of a package using apt-get.

You need to “preseed” the answers to these dialogs via
"debconf-set-selections" so apt-get doesn’t need to open up a dialog
box in the first place. See the mysql cookbook for an example.

Best regards,
Jochen


#3

Thanks Jochen, infact I just studies mysql and was on it… before I got your
message.

Anyway, truly appreciate your answer on this.

On Thu, Oct 13, 2011 at 7:53 PM, Jochen Lillich <
jochen@freistil-consulting.de> wrote:

On Thu, Oct 13, 2011 at 4:04 PM, aserdp rdp.com@gmail.com wrote:

How to handle the question posed via a dialog
box during installation of a package using apt-get.

You need to “preseed” the answers to these dialogs via
"debconf-set-selections" so apt-get doesn’t need to open up a dialog
box in the first place. See the mysql cookbook for an example.

Best regards,
Jochen