さくらVPSにTripwireをインストールする

2018年4月5日

http://sourceforge.net/projects/tripwire/?source=dlp

上記よりダウンロード。

そのままサーバーにアップロード。アップロード先はどこでも良いので、今回はrootディレクトリに展開します。

# bunzip2 tripwire-2.4.2.2-src.tar.bz2
# tar xvf tripwire-2.4.2.2-src.tar

これで解凍まで完了。
tripwireのディレクトリまで移動します。

# cd /root/tripwire-2.4.2.2-src
# ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
…

次はmake

# make
make all-recursive
make[1]: Entering directory `/root/tripwire-2.4.2.2-src'
Making all in man
make[2]: Entering directory `/root/tripwire-2.4.2.2-src/man'
Making all in man4
make[3]: Entering directory `/root/tripwire-2.4.2.2-src/man/man4'
…

そしてmake install

# make install
Making install in man
make[1]: Entering directory `/root/tripwire-2.4.2.2-src/man'
Making install in man4
make[2]: Entering directory `/root/tripwire-2.4.2.2-src/man/man4'
make[3]: Entering directory `/root/tripwire-2.4.2.2-src/man/man4'
…

途中でライセンスが表示されます。

enterでざっと見ていきます。

GNU GENERAL PUBLIC LICENSE
Version 2, June 1991

Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

…

Please type "accept" to indicate your acceptance of this
license agreement. [do not accept]accept ←と入力

Using configuration file ./install/install.cfg

Checking for programs specified in install configuration file....

/usr/sbin/sendmail -oi -t exists. Continuing installation.

/bin/vi exists. Continuing installation.
----------------------------------------------
Verifying existence of binaries...

./bin/siggen found
./bin/tripwire found
./bin/twprint found
./bin/twadmin found

This program will copy Tripwire files to the following directories:

TWBIN: /usr/local/sbin
TWMAN: /usr/local/man
TWPOLICY: /usr/local/etc
TWREPORT: /usr/local/lib/tripwire/report
TWDB: /usr/local/lib/tripwire
TWSITEKEYDIR: /usr/local/etc
TWLOCALKEYDIR: /usr/local/etc

CLOBBER is false.

Continue with installation? [y/n] y ←と入力
Creating key files...

(When selecting a passphrase, keep in mind that good passphrases typically
have upper and lower case letters, digits and punctuation marks, and are
at least 8 characters in length.)

Enter the site keyfile passphrase:任意の英数字を入力
Verify the site keyfile passphrase:上で入力したパスフレーズを再入力
Generating key (this may take several minutes)...Key generation complete.

(When selecting a passphrase, keep in mind that good passphrases typically
have upper and lower case letters, digits and punctuation marks, and are
at least 8 characters in length.)

Enter the local keyfile passphrase:任意の英数字を入力
Verify the local keyfile passphrase:上で入力したパスフレーズを再入力

最後に、site passphraseの入力も2回求められるのでこれも入力しておきます。
すると…

The installation succeeded.

Please refer to
 for release information and to the printed user documentation
 for further instructions on using Tripwire 2.4 Open Source.

make[3]: Leaving directory `/root/tripwire-2.4.2.2-src'
make[2]: Leaving directory `/root/tripwire-2.4.2.2-src'
make[1]: Leaving directory `/root/tripwire-2.4.2.2-src'

これでインストール完了です。