Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to setup my Ubuntu image via a script over on AWS and I can't get rabbitmq-server to install. It throws a Package Configuration screen that simply has one option (hit OK).

How can I bypass this? It causes my script to hang

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

It sounds like your install script is being stopped by a debconf dialog. You can suppress the debconf dialog by setting the environment variable DEBIAN_FRONTEND to noninteractive. For example:

DEBIAN_FRONTEND=noninteractive  apt-get install rabbitmq-server

In general, if you want to script package installations using non-default configuration settings, you will need to preseed the debconf database with the desired settings. I recommend you read the debconf man page, and pay particularly close attention to the section titled "Unattended Package Installation".

share|improve this answer
    
YES YES! Thank you Steven. Great advice on debconf as well. I owe you a coffee (or beer) –  Keith Fitzgerald Oct 29 '10 at 15:53
    
I'm glad I could help. –  Steven Monday Oct 29 '10 at 17:51
add comment

You might be able to use python fabric to do what you need.

In Stackoverflow, someone asked a question similar to yours so you can refer to that.

Here is the link.

http://stackoverflow.com/questions/2246256/python-fabric-how-to-answer-to-keyboard-input

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.