DEBIAN_FRONTEND=noninteractive apt-get install -y java5-sun-jre || :
debconf 'echo SET shared/accepted-sun-dlj-v1-1 true; echo $(read) >&2'
apt-get install -y java6-sun-jre

From: [email protected] 
[mailto:[email protected]] On Behalf Of Qitong Hu
Sent: Thursday, April 05, 2012 5:03 PM
To: [email protected]
Subject: Re: [Fab-user] Is there a way to use fab to install programs on remote 
machine?

Hi all,
Thanks for your advices. I have tried to use the -q -y in addition to the 
original command.
sudo apt-get -q -y install sun-java6-jre sun-java6-jdk, with export 
DEBIAN_FRONTEND=noninteractive first.
The install script does not ask me for the space Y/N, but it still prompt the 
"Package Configuration" panel and ask me to click <OK>, and I failed it again.
Is there anyway to skip that click as well?
Thanks
On Thu, Apr 5, 2012 at 4:40 PM, Qitong Hu 
<[email protected]<mailto:[email protected]>> wrote:
Hi all,
Here is the case: I want to install Java on a remote machine using fab. 
However, in the middle of installation, there is policy prompt out and I should 
tab to the <OK> and click "enter" on it if I am installing it locally. While, 
with fab, I can tab to the button but cannot "press" the <OK> to accept and 
continue it. I'm wondering if there is a way to "click" the OK or typing 
something equivalently, or maybe add something in the command to make it 
default accept?
Thanks in advance!


Please visit our website for important disclaimers/disclosures regarding 
Knight's products and services:

http://knight.com/KnightEmailDisclaimer.html

_______________________________________________
Fab-user mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to