Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to install libpam-ldap to use ldap on a client machine and I was hopping to use

sudo apt-get install -qq libpam-ldap

to quietly install the package as part of a bash script used to configure a client once Ubuntu installs. However it still comes up with a blue screen gui asking for configuration information. Since I intend to just copy an existing /etc/ldap.conf file to overwrite the auto generated one I'd like to skip that step but don't know how.

How do you install a package and make it skip it's interactive configuration stage?

Thanks!!!

share|improve this question
up vote 2 down vote accepted

You need to set the debconf frontend to noninteractive:

 sudo DEBIAN_FRONTEND=noninteractive apt-get install -qq libpam-ldap
share|improve this answer
1  
Thanks for your answer! Also, before I use it on a none test environment, is there a way to get a list of all config files the command normally makes so that I can make sure to override them? (The reason I ask is that I think it creates another config files besides /etc/ldap.conf?) – Evan Dec 21 '10 at 23:24

You're looking for a way to configure debconf for unattended operation.

In the debconf manpage check out the section on "Unattended Package Installation". The same manpage has information about Priorities, which might let you be able to skip the question entirely.

I've set this up in the past with Puppet and preseeds but it's been a long time, hopefully this will at least get you on the right track.

share|improve this answer
    
Cool thanks, I'm going to look into more about unattended installs. – Evan Dec 21 '10 at 23:22

I write script for fast login in LDAP http://itc-life.ru/skript-vvoda-debian-8-v-ldapdomen/

share|improve this answer
    
What if the link goes down ? this won't be an answer anymore .. Please copy / paste important part from your link to this answer – Ahmed Jerbi Apr 29 at 14:10

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.