some commands running non-interactively

Asked by treetaxi

Earlier I posted a question regarding wide-screen resolution which was solved by running "sudo dpkg-reconfigure -phigh xserver-xorg".
I was told that it would ask several questions, but the command executed non-interactively. It was nice, but I would have liked to have been asked ;} . Earlier I ran dexconf, and it also executed non-interactively, & broke the X-server. I ASSUME that adding "-i" to every command in the future will trigger either interactive mode or a usage error message. (of course, when you ass-ume, you can turn your computer into a POS). Any insights ?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Dmitry Mityugov
Solved:
Last query:
Last reply:
Revision history for this message
Best Dmitry Mityugov (dmitry-mityugov) said :
#1

For dpkg-reconfigure, -p parameter specifies the "level" of questions asked. -phigh means "Questions that don’t have a reasonable default", -plow means "Very trivial questions that have defaults that will work in the vast majority of cases", so to get more questions, pass -plow instead of -phigh as a parameter to dpkg-reconfigure.

More information on available priorities is available via man 7 debconf command. To run it, install debconf-doc package first: sudo apt-get install debconf-doc

Revision history for this message
treetaxi (treetaxi) said :
#2

Thanks Dmitry Mityugov, that solved my question.