Application index
コマンド | 解 説 |
cd - | 直前のディレクトリに移動 |
pushd | 現在のディレクトリを記憶 |
popd | 記憶したディレクトリに移動 |
$ sudo apt-get update $ sudo apt-get install rcs
使ってみる設定は特に必要ありませんが、設定ファイルのディレクトリに RCSというディレクトリをつくっておくと、管理ファイルがその下に置かれ、整理がしやすくなります。また、変更するファイルは準備の為にロックしておく必要があります。ここでは、hostsをロックします。
$ cd /etc/ $ sudo mkdir RCS $ sudo ci -l hosts RCS/hosts,v <-- hosts enter description, terminated with single '.' or end of file: NOTE: This is NOT the log message! >> (ファイルの説明を記述する) >> . initial revision: 1.1 done $ ls -l RCS/hosts* -r--r----- 1 root root 495 Aug 21 17:21 RCS/ hosts,v $
# apt-get install rrdtool librrds-perl # wget http://heanet.dl.sourceforge.net/sourceforge/hotsanic/hotsanic-0.5.0-pre5.tgz # ./setup.pl
HotSaNIC/settings #BINPATH="not configured" BINPATH="/usr/bin"
HotSaNIC/settings #WEBDIR="not configured" WEBDIR="/var/www/HotSaNIC"
./makeindex.pl ./rrdgraph start
dns cache server として使用
# apt-get install pdnsd dnsutils
server句の 192.168.0.1 を 自分が使用するDNS serverに変更
http://asshole.dip.jp/pdnsd.php
#apt-get install snort #vi /etc/cron.daily/5snort
ログファイルを指定している部分を変更 #SYSLOG_LOGFILE=`syslogd-listfiles --auth 2>/dev/null | head -1` #SYSLOG_LOGFILE_CUSTOM=/var/log/auth.log #if [ -z "$SYSLOG_LOGFILE" ]; then # SYSLOG_LOGFILE=$SYSLOG_LOGFILE_CUSTOM #fi SYSLOG_LOGFILE=/var/log/snort/alert ログローテーションにアラートファイルを追加 test -f /var/log/snort/alert && savelog -c 100 -p /var/log/snort/alert >/dev/null test -f /var/log/snort/portscan.log && savelog -c 7 - p /var/log/snort/portscan.log >/dev/null メールの件名を正しくセット # (echo "To: $DEBIAN_SNORT_STATS_RCPT"; echo; cat $TEMPFILE) | (echo "To: $DEBIAN_SNORT_STATS_RCPT"; cat $TEMPFILE) |
#snort -i lo -be -u snort -g snort -c /etc/snort/snort.conf &
# wget http://www.snort.org/dl/contrib/data_analysis/snortsnarf/SnortSnarf-021111.1.tar.gz #apt-get install libperl-dev #apt-get install libtime-modules-perl #apt-get install libwww-perl
# perl -MCPAN -e shell cpan> install Time::JulianDay ← 初回利用時色々な設定が必要だが cpan> exit
# vi /usr/local/snortsnarf/include/SnortSnarf/HTMLMemStorage.pm return @arr->[($first-1)..$end]; ←290行目 return @arr[($first-1)..$end]; -> を取る #vi /usr/local/snortsnarf/include/SnortSnarf/HTMLAnomMemStorage.pm return @arr->[($first-1)..$end]; ←266行目 return @arr[($first-1)..$end]; -> を取る
#mkdir /var/www/snort #chown snort:snort /var/www/snort/ #/snortsnarf.pl -d /var/www/html/snort /var/log/snort/alert /var/log/snort/portscan.log
gzip, tar, make, lynx
# perl -MCPAN -e shell
movable typeとはblogを簡単に導入できるツールです
SQLをwebブラウザ上で操作できます。
CMS(コンテンツマネージメントシステム)です。 日本語化されたMamboで簡単にサイト構築ができます。
3.0からwebからupdateファイルをdowonloadできるようになった
2.0系では、Unicode Escape方式で保存できないため、プロパティファイル(*.properties)に日本語を使いづらく非常に不便です。 これについては、Unicode Escape方式に対応したプラグインが提供されています(プロパティファイル用エディタプラグイン、Unicodeエスケーププラグイン)ので、 「小物プラグインからダウンロードして利用。