Need help with expect script to install Tripwire
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I want to write an expect script to install and configure Tripwire (open source) on ubuntu (Package name is 'tripwire'). This package presents dialog boxes created with whiptail to configure it.
This is the expect script named tripwire.exp that I wrote
#!/usr/bin/expect
spawn apt-get install -y tripwire
expect -exact "Do you wish to create/use your site key passphrase during installation?"
send ^[[C
send -- "/r"
expect -exact "Do you wish to create/use your local key passphrase during installation?"
send ^[[C
send -- "/r"
expect -exact "Tripwire has been installed"
send -- "/r"
When I execute this using sudo expect tripwire.exp
, I am presented with the first whiptail dialog box in the tripwire configuration. After a few seconds my terminal prompt appears as <ubuntu@Tripwire2:~$
in the middle of the terminal with <
highlighted in red. However there are no errors. But when I check if the package has been installed, it hasn't.
I then executed it in debug mode with sudo expect -d tripwire.exp
and this is the output I got
spawn apt-get install -y tripwire^M
^MReading package lists... 0%^M^MReading package lists... 100%^M^MReading package lists... Done^M^M
^MBuilding dependency tree... 0%^M^MBuilding dependency tree... 0%^M^MBuilding dependency tree... 50%^M^MBuilding dependency tree... 50%^M^MBuilding dependency tree ^M^M
^MReading state information... 0%^M^MReading state information... 1%^M^MReading state information... Done^M^M
The following NEW packages will be installed:^M
tripwire^M
0 upgraded, 1 newly installed, 0 to remove and 18 not upgraded.^M
Need to get 0 B/1,474 kB of archives.^M
After this operation, 11.1 MB of additional disk space will be used.^M
Preconfiguring packages ...^M
^[[?1049h^[[1;48r^[[4l^[[?25l^[(B^[[m^[[37m^[[40m^[[1;48r^[[H^[[2J^[[1;1H^[[97m^[[45m^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K^[[1;1H^[[37mPackage configuration^[[13;2H^[[30m^[[47mâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂ⤠^[[31mTripwire Configuration^[[30m âÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂ^[[14;2Hâ âÂÂ^[[97m^[[40m ^[[15;2H^[[30m^[[47mâ Tripwire uses a pair of keys to sign various files, thus ensuring their âÂÂ^[[97m^[[40m ^[[16;2H^[[30m^[[47mâ unaltered state. By accepting here, you will be prompted for the âÂÂ^[[97m^[[40m ^[[17;2H^[[30m^[[47mâ passphrase for the first of those keys, the site key, during the âÂÂ^[[97m^[[40m ^[[18;2H^[[30m^[[47mâ installation. You are also agreeing to create a site key if one doesn't âÂÂ^[[97m^[[40m ^[[19;2H^[[30m^[[47mâ exist already. Tripwire uses the site key to sign files that may be âÂÂ^[[97m^[[40m ^[[20;2H^[[30m^[[47mâ common to multiple systems, e.g. the configuration & policy files. See âÂÂ^[[97m^[[40m ^[[21;2H^[[30m^[[47mâ twfiles(5) for more information. âÂÂ^[[97m^[[40m ^[[22;2H^[[30m^[[47mâ âÂÂ^[[97m^[[40m ^[[23;2H^[[30m^[[47mâ Unfortunately, due to the Debian installation process, there is a period âÂÂ^[[97m^[[40m ^[[24;2H^[[30m^[[47mâ of time where this passphrase exists in a unencrypted format. Were an âÂÂ^[[97m^[[40m ^[[25;2H^[[30m^[[47mâ attacker to have access to your machine during this period, he could âÂÂ^[[97m^[[40m ^[[26;2H^[[30m^[[47mâ possibly retrieve your passphrase and use it at some later point. âÂÂ^[[97m^[[40m ^[[27;2H^[[30m^[[47mâ âÂÂ^[[97m^[[40m ^[[28;2H^[[30m^[[47mâ If you would rather not have this exposure, decline here. You will then âÂÂ^[[97m^[[40m ^[[29;2H^[[30m^[[47mâ need to create a site key, configuration file & policy file by hand. âÂÂ^[[97m^[[40m ^[[30;2H^[[30m^[[47mâ See twadmin(8) for more information. âÂÂ^[[97m^[[40m ^[[31;2H^[[30m^[[47mâ âÂÂ^[[97m^[[40m ^[[32;2H^[[30m^[[47mâ Do you wish to create/use your site key passphrase during installation? âÂÂ^[[97m^[[40m ^[[33;2H^[[30m^[[47mâ âÂÂ^[[97m^[[40m ^[[34;2H^[[30m^[[47mâ ^[[37m^[[41m<Yes>^[[30m^[[47m <No> âÂÂ^[[97m^[[40m ^[[35;2H^[[30m^[[47mâ âÂÂ^[[97m^[[40m ^[[36;2H^[[30m^[[47mâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂ^[[97m^[[40m ^[[37;3H ^[[34;24H
What should I do to get my script working?
scripting expect whiptail tripwire
add a comment |Â
up vote
0
down vote
favorite
I want to write an expect script to install and configure Tripwire (open source) on ubuntu (Package name is 'tripwire'). This package presents dialog boxes created with whiptail to configure it.
This is the expect script named tripwire.exp that I wrote
#!/usr/bin/expect
spawn apt-get install -y tripwire
expect -exact "Do you wish to create/use your site key passphrase during installation?"
send ^[[C
send -- "/r"
expect -exact "Do you wish to create/use your local key passphrase during installation?"
send ^[[C
send -- "/r"
expect -exact "Tripwire has been installed"
send -- "/r"
When I execute this using sudo expect tripwire.exp
, I am presented with the first whiptail dialog box in the tripwire configuration. After a few seconds my terminal prompt appears as <ubuntu@Tripwire2:~$
in the middle of the terminal with <
highlighted in red. However there are no errors. But when I check if the package has been installed, it hasn't.
I then executed it in debug mode with sudo expect -d tripwire.exp
and this is the output I got
spawn apt-get install -y tripwire^M
^MReading package lists... 0%^M^MReading package lists... 100%^M^MReading package lists... Done^M^M
^MBuilding dependency tree... 0%^M^MBuilding dependency tree... 0%^M^MBuilding dependency tree... 50%^M^MBuilding dependency tree... 50%^M^MBuilding dependency tree ^M^M
^MReading state information... 0%^M^MReading state information... 1%^M^MReading state information... Done^M^M
The following NEW packages will be installed:^M
tripwire^M
0 upgraded, 1 newly installed, 0 to remove and 18 not upgraded.^M
Need to get 0 B/1,474 kB of archives.^M
After this operation, 11.1 MB of additional disk space will be used.^M
Preconfiguring packages ...^M
^[[?1049h^[[1;48r^[[4l^[[?25l^[(B^[[m^[[37m^[[40m^[[1;48r^[[H^[[2J^[[1;1H^[[97m^[[45m^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K^[[1;1H^[[37mPackage configuration^[[13;2H^[[30m^[[47mâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂ⤠^[[31mTripwire Configuration^[[30m âÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂ^[[14;2Hâ âÂÂ^[[97m^[[40m ^[[15;2H^[[30m^[[47mâ Tripwire uses a pair of keys to sign various files, thus ensuring their âÂÂ^[[97m^[[40m ^[[16;2H^[[30m^[[47mâ unaltered state. By accepting here, you will be prompted for the âÂÂ^[[97m^[[40m ^[[17;2H^[[30m^[[47mâ passphrase for the first of those keys, the site key, during the âÂÂ^[[97m^[[40m ^[[18;2H^[[30m^[[47mâ installation. You are also agreeing to create a site key if one doesn't âÂÂ^[[97m^[[40m ^[[19;2H^[[30m^[[47mâ exist already. Tripwire uses the site key to sign files that may be âÂÂ^[[97m^[[40m ^[[20;2H^[[30m^[[47mâ common to multiple systems, e.g. the configuration & policy files. See âÂÂ^[[97m^[[40m ^[[21;2H^[[30m^[[47mâ twfiles(5) for more information. âÂÂ^[[97m^[[40m ^[[22;2H^[[30m^[[47mâ âÂÂ^[[97m^[[40m ^[[23;2H^[[30m^[[47mâ Unfortunately, due to the Debian installation process, there is a period âÂÂ^[[97m^[[40m ^[[24;2H^[[30m^[[47mâ of time where this passphrase exists in a unencrypted format. Were an âÂÂ^[[97m^[[40m ^[[25;2H^[[30m^[[47mâ attacker to have access to your machine during this period, he could âÂÂ^[[97m^[[40m ^[[26;2H^[[30m^[[47mâ possibly retrieve your passphrase and use it at some later point. âÂÂ^[[97m^[[40m ^[[27;2H^[[30m^[[47mâ âÂÂ^[[97m^[[40m ^[[28;2H^[[30m^[[47mâ If you would rather not have this exposure, decline here. You will then âÂÂ^[[97m^[[40m ^[[29;2H^[[30m^[[47mâ need to create a site key, configuration file & policy file by hand. âÂÂ^[[97m^[[40m ^[[30;2H^[[30m^[[47mâ See twadmin(8) for more information. âÂÂ^[[97m^[[40m ^[[31;2H^[[30m^[[47mâ âÂÂ^[[97m^[[40m ^[[32;2H^[[30m^[[47mâ Do you wish to create/use your site key passphrase during installation? âÂÂ^[[97m^[[40m ^[[33;2H^[[30m^[[47mâ âÂÂ^[[97m^[[40m ^[[34;2H^[[30m^[[47mâ ^[[37m^[[41m<Yes>^[[30m^[[47m <No> âÂÂ^[[97m^[[40m ^[[35;2H^[[30m^[[47mâ âÂÂ^[[97m^[[40m ^[[36;2H^[[30m^[[47mâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂ^[[97m^[[40m ^[[37;3H ^[[34;24H
What should I do to get my script working?
scripting expect whiptail tripwire
2
You should consider preseeding the desired responses and settingDEBIAN_FRONTEND=noninteractive
, or at least settingDEBIAN_FRONTEND=readline
so that you can avoid having to interact with dialogs at all. See for example How can I install apt packages non-interactively?
â steeldriver
Sep 25 '17 at 10:51
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I want to write an expect script to install and configure Tripwire (open source) on ubuntu (Package name is 'tripwire'). This package presents dialog boxes created with whiptail to configure it.
This is the expect script named tripwire.exp that I wrote
#!/usr/bin/expect
spawn apt-get install -y tripwire
expect -exact "Do you wish to create/use your site key passphrase during installation?"
send ^[[C
send -- "/r"
expect -exact "Do you wish to create/use your local key passphrase during installation?"
send ^[[C
send -- "/r"
expect -exact "Tripwire has been installed"
send -- "/r"
When I execute this using sudo expect tripwire.exp
, I am presented with the first whiptail dialog box in the tripwire configuration. After a few seconds my terminal prompt appears as <ubuntu@Tripwire2:~$
in the middle of the terminal with <
highlighted in red. However there are no errors. But when I check if the package has been installed, it hasn't.
I then executed it in debug mode with sudo expect -d tripwire.exp
and this is the output I got
spawn apt-get install -y tripwire^M
^MReading package lists... 0%^M^MReading package lists... 100%^M^MReading package lists... Done^M^M
^MBuilding dependency tree... 0%^M^MBuilding dependency tree... 0%^M^MBuilding dependency tree... 50%^M^MBuilding dependency tree... 50%^M^MBuilding dependency tree ^M^M
^MReading state information... 0%^M^MReading state information... 1%^M^MReading state information... Done^M^M
The following NEW packages will be installed:^M
tripwire^M
0 upgraded, 1 newly installed, 0 to remove and 18 not upgraded.^M
Need to get 0 B/1,474 kB of archives.^M
After this operation, 11.1 MB of additional disk space will be used.^M
Preconfiguring packages ...^M
^[[?1049h^[[1;48r^[[4l^[[?25l^[(B^[[m^[[37m^[[40m^[[1;48r^[[H^[[2J^[[1;1H^[[97m^[[45m^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K^[[1;1H^[[37mPackage configuration^[[13;2H^[[30m^[[47mâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂ⤠^[[31mTripwire Configuration^[[30m âÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂ^[[14;2Hâ âÂÂ^[[97m^[[40m ^[[15;2H^[[30m^[[47mâ Tripwire uses a pair of keys to sign various files, thus ensuring their âÂÂ^[[97m^[[40m ^[[16;2H^[[30m^[[47mâ unaltered state. By accepting here, you will be prompted for the âÂÂ^[[97m^[[40m ^[[17;2H^[[30m^[[47mâ passphrase for the first of those keys, the site key, during the âÂÂ^[[97m^[[40m ^[[18;2H^[[30m^[[47mâ installation. You are also agreeing to create a site key if one doesn't âÂÂ^[[97m^[[40m ^[[19;2H^[[30m^[[47mâ exist already. Tripwire uses the site key to sign files that may be âÂÂ^[[97m^[[40m ^[[20;2H^[[30m^[[47mâ common to multiple systems, e.g. the configuration & policy files. See âÂÂ^[[97m^[[40m ^[[21;2H^[[30m^[[47mâ twfiles(5) for more information. âÂÂ^[[97m^[[40m ^[[22;2H^[[30m^[[47mâ âÂÂ^[[97m^[[40m ^[[23;2H^[[30m^[[47mâ Unfortunately, due to the Debian installation process, there is a period âÂÂ^[[97m^[[40m ^[[24;2H^[[30m^[[47mâ of time where this passphrase exists in a unencrypted format. Were an âÂÂ^[[97m^[[40m ^[[25;2H^[[30m^[[47mâ attacker to have access to your machine during this period, he could âÂÂ^[[97m^[[40m ^[[26;2H^[[30m^[[47mâ possibly retrieve your passphrase and use it at some later point. âÂÂ^[[97m^[[40m ^[[27;2H^[[30m^[[47mâ âÂÂ^[[97m^[[40m ^[[28;2H^[[30m^[[47mâ If you would rather not have this exposure, decline here. You will then âÂÂ^[[97m^[[40m ^[[29;2H^[[30m^[[47mâ need to create a site key, configuration file & policy file by hand. âÂÂ^[[97m^[[40m ^[[30;2H^[[30m^[[47mâ See twadmin(8) for more information. âÂÂ^[[97m^[[40m ^[[31;2H^[[30m^[[47mâ âÂÂ^[[97m^[[40m ^[[32;2H^[[30m^[[47mâ Do you wish to create/use your site key passphrase during installation? âÂÂ^[[97m^[[40m ^[[33;2H^[[30m^[[47mâ âÂÂ^[[97m^[[40m ^[[34;2H^[[30m^[[47mâ ^[[37m^[[41m<Yes>^[[30m^[[47m <No> âÂÂ^[[97m^[[40m ^[[35;2H^[[30m^[[47mâ âÂÂ^[[97m^[[40m ^[[36;2H^[[30m^[[47mâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂ^[[97m^[[40m ^[[37;3H ^[[34;24H
What should I do to get my script working?
scripting expect whiptail tripwire
I want to write an expect script to install and configure Tripwire (open source) on ubuntu (Package name is 'tripwire'). This package presents dialog boxes created with whiptail to configure it.
This is the expect script named tripwire.exp that I wrote
#!/usr/bin/expect
spawn apt-get install -y tripwire
expect -exact "Do you wish to create/use your site key passphrase during installation?"
send ^[[C
send -- "/r"
expect -exact "Do you wish to create/use your local key passphrase during installation?"
send ^[[C
send -- "/r"
expect -exact "Tripwire has been installed"
send -- "/r"
When I execute this using sudo expect tripwire.exp
, I am presented with the first whiptail dialog box in the tripwire configuration. After a few seconds my terminal prompt appears as <ubuntu@Tripwire2:~$
in the middle of the terminal with <
highlighted in red. However there are no errors. But when I check if the package has been installed, it hasn't.
I then executed it in debug mode with sudo expect -d tripwire.exp
and this is the output I got
spawn apt-get install -y tripwire^M
^MReading package lists... 0%^M^MReading package lists... 100%^M^MReading package lists... Done^M^M
^MBuilding dependency tree... 0%^M^MBuilding dependency tree... 0%^M^MBuilding dependency tree... 50%^M^MBuilding dependency tree... 50%^M^MBuilding dependency tree ^M^M
^MReading state information... 0%^M^MReading state information... 1%^M^MReading state information... Done^M^M
The following NEW packages will be installed:^M
tripwire^M
0 upgraded, 1 newly installed, 0 to remove and 18 not upgraded.^M
Need to get 0 B/1,474 kB of archives.^M
After this operation, 11.1 MB of additional disk space will be used.^M
Preconfiguring packages ...^M
^[[?1049h^[[1;48r^[[4l^[[?25l^[(B^[[m^[[37m^[[40m^[[1;48r^[[H^[[2J^[[1;1H^[[97m^[[45m^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K
^[[K^[[1;1H^[[37mPackage configuration^[[13;2H^[[30m^[[47mâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂ⤠^[[31mTripwire Configuration^[[30m âÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂ^[[14;2Hâ âÂÂ^[[97m^[[40m ^[[15;2H^[[30m^[[47mâ Tripwire uses a pair of keys to sign various files, thus ensuring their âÂÂ^[[97m^[[40m ^[[16;2H^[[30m^[[47mâ unaltered state. By accepting here, you will be prompted for the âÂÂ^[[97m^[[40m ^[[17;2H^[[30m^[[47mâ passphrase for the first of those keys, the site key, during the âÂÂ^[[97m^[[40m ^[[18;2H^[[30m^[[47mâ installation. You are also agreeing to create a site key if one doesn't âÂÂ^[[97m^[[40m ^[[19;2H^[[30m^[[47mâ exist already. Tripwire uses the site key to sign files that may be âÂÂ^[[97m^[[40m ^[[20;2H^[[30m^[[47mâ common to multiple systems, e.g. the configuration & policy files. See âÂÂ^[[97m^[[40m ^[[21;2H^[[30m^[[47mâ twfiles(5) for more information. âÂÂ^[[97m^[[40m ^[[22;2H^[[30m^[[47mâ âÂÂ^[[97m^[[40m ^[[23;2H^[[30m^[[47mâ Unfortunately, due to the Debian installation process, there is a period âÂÂ^[[97m^[[40m ^[[24;2H^[[30m^[[47mâ of time where this passphrase exists in a unencrypted format. Were an âÂÂ^[[97m^[[40m ^[[25;2H^[[30m^[[47mâ attacker to have access to your machine during this period, he could âÂÂ^[[97m^[[40m ^[[26;2H^[[30m^[[47mâ possibly retrieve your passphrase and use it at some later point. âÂÂ^[[97m^[[40m ^[[27;2H^[[30m^[[47mâ âÂÂ^[[97m^[[40m ^[[28;2H^[[30m^[[47mâ If you would rather not have this exposure, decline here. You will then âÂÂ^[[97m^[[40m ^[[29;2H^[[30m^[[47mâ need to create a site key, configuration file & policy file by hand. âÂÂ^[[97m^[[40m ^[[30;2H^[[30m^[[47mâ See twadmin(8) for more information. âÂÂ^[[97m^[[40m ^[[31;2H^[[30m^[[47mâ âÂÂ^[[97m^[[40m ^[[32;2H^[[30m^[[47mâ Do you wish to create/use your site key passphrase during installation? âÂÂ^[[97m^[[40m ^[[33;2H^[[30m^[[47mâ âÂÂ^[[97m^[[40m ^[[34;2H^[[30m^[[47mâ ^[[37m^[[41m<Yes>^[[30m^[[47m <No> âÂÂ^[[97m^[[40m ^[[35;2H^[[30m^[[47mâ âÂÂ^[[97m^[[40m ^[[36;2H^[[30m^[[47mâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂâÂÂ^[[97m^[[40m ^[[37;3H ^[[34;24H
What should I do to get my script working?
scripting expect whiptail tripwire
scripting expect whiptail tripwire
asked Sep 25 '17 at 9:10
Nilushan
379
379
2
You should consider preseeding the desired responses and settingDEBIAN_FRONTEND=noninteractive
, or at least settingDEBIAN_FRONTEND=readline
so that you can avoid having to interact with dialogs at all. See for example How can I install apt packages non-interactively?
â steeldriver
Sep 25 '17 at 10:51
add a comment |Â
2
You should consider preseeding the desired responses and settingDEBIAN_FRONTEND=noninteractive
, or at least settingDEBIAN_FRONTEND=readline
so that you can avoid having to interact with dialogs at all. See for example How can I install apt packages non-interactively?
â steeldriver
Sep 25 '17 at 10:51
2
2
You should consider preseeding the desired responses and setting
DEBIAN_FRONTEND=noninteractive
, or at least setting DEBIAN_FRONTEND=readline
so that you can avoid having to interact with dialogs at all. See for example How can I install apt packages non-interactively?â steeldriver
Sep 25 '17 at 10:51
You should consider preseeding the desired responses and setting
DEBIAN_FRONTEND=noninteractive
, or at least setting DEBIAN_FRONTEND=readline
so that you can avoid having to interact with dialogs at all. See for example How can I install apt packages non-interactively?â steeldriver
Sep 25 '17 at 10:51
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f394281%2fneed-help-with-expect-script-to-install-tripwire%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
2
You should consider preseeding the desired responses and setting
DEBIAN_FRONTEND=noninteractive
, or at least settingDEBIAN_FRONTEND=readline
so that you can avoid having to interact with dialogs at all. See for example How can I install apt packages non-interactively?â steeldriver
Sep 25 '17 at 10:51