[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: automating debconf



On Sat, Feb 17, 2001 at 09:39:53PM -0800, Joey Hess wrote:
> Craig Sanders wrote:
> > is there any reason why "dpkg-reconfigure -ftext" requires a controlling
> > tty?
> 
> It does some things to detect screen resizes. Have you tried ssh -t ?

tried it, still doesn't work.

it looks like debconf cleared the input buffer and then just sat there
waiting for manual input until i pressed ^C.


# cat reconf.sh
#! /bin/sh

HOST="$1"

ssh -t $HOST '
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin"

dpkg-reconfigure -ftext debconf <<__EOF__
text
low
yes
no
__EOF__
'


# ./reconf.sh HOSTNAME.EXAMPLE.COM
Configuring Debconf
-------------------

Packages that use debconf for configuration share a common look and feel. You
can select the type of user interface they use.  

The slang frontend provides a colorful, full-screen, character based windowing
interface, while the text frontend uses a more traditional plain text
interface. The editor frontend lets you configure things using your favorite
text editor. The noninteractive frontend never asks you any questions.	

  s. Slang  t. Text  e. Editor  d. Dialog  n. Noninteractive

What interface should be used for configuring packages? dReceived disconnect: Command terminated on signal 2.




a pipe input method would be really useful.

it is also necessary - debconf should not destroy useful functionality
(e.g. the ability to install/upgrade a package on a remote system using
ssh and a script).

i've been using scripts like these for years to manage remote systems.
they're short, simple, and i knock them up in a few minutes when i need
to upgrade/install something on all of the remote machines.

now, all of a sudden, they don't work because more and more packaes are
relying on debocnf.


craig

--
craig sanders <cas@taz.net.au>

      GnuPG Key: 1024D/CD5626F0 
Key fingerprint: 9674 7EE2 4AC6 F5EF 3C57  52C3 EC32 6810 CD56 26F0



Reply to: