/* About ----- This directory contains extra files to make the 'fancy urls' feature even more fancier, by eliminating the 'index.php'-part of the URL Installation ------------ 1. Copy all files in this directory (except for index.html) to your main nucleus dir (where your index.php and action.php file are) If you have an already existing .htaccess file (most ftp-programs don't show hidden files by default, so don't start uploading it without checking your server). If you do, download that old one first, and copy the contents of the new .htaccess file (from the fancyurls folder) in your old one, and upload that... 2. Edit this file so that $CONF['Self'] points to your main directory. NOTE: this time, and only this time, the URL should NOT end in a slash 3. Also edit the $CONF['Self'] variable in your index.php, if you don't want to end up with index.php/item/1234 urls when people come via that way 4. Enable 'Fancy URLs' in the Nucleus admin area (nucleus management / edit settings) 5. Off you go! If it doesn't work: ------------------- Remove the files again (don't forget the hidden file .htaccess). Voila. */ // remember: this URL should _NOT_ end with a slash. $CONF['Self'] = 'http://www.momoso-net.com/~ms08'; ?>
2006-02-22: ウィルス対策
Linuxもウィルス対策ということで、FRISK Software 社のF-Portをインストールすることにした。
GENTOOにはパッケージが存在するので、下記のようにインストールすると、こんなメッセージが表示されインストールは完了。注目はRememberから始まる文章で「ウイルスのデータベースを最新保つために規則的にアップデートをしなきゃだめよ。cronで動かすのがいいじゃん。そして毎日(草木も目覚める寅七つ時)にね。」そんなことが書いてあるみたい。
# emerge f-prot
* Remember to run /opt/f-prot/tools/check-updates.pl regularly to keep virus
* database up to date. Recommended method is to use cron. See manpages for
* cron(8) and crontab(5) for more info.
* An example crontab entry, causing check-updates.pl to run every night at 4AM:
0 4 * * * /opt/f-prot/tools/check-updates.pl >/dev/null
* For more examples, see /usr/share/doc/f-prot-4.6.3/html/auto_updt.html
* As of 4.5.4, the update script is installed correctly into directory designed
* by upstream again. Check your crontab, so the path matches the one above.
>>> Regenerating /etc/ld.so.cache...
>>> app-antivirus/f-prot-4.6.3 merged.
>>> Recording app-antivirus/f-prot in "world" favorites file...
>>> clean: No packages selected for removal.
>>> Auto-cleaning packages ...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
じゃあ案内に従いcronに登録します。コマンドはこんなかんじです。
# crontab -e
そんなこんなでまずは/tmpあたりをチェックすると、ウイルスの署名ファイルが古いね!
# f-prot /tmp
Virus scanning report - 22 February 2006 @ 10:46
F-PROT ANTIVIRUS
Program version: 4.6.3
Engine version: 3.16.10
VIRUS SIGNATURE FILES
SIGN.DEF created 24 November 2005
SIGN2.DEF created 24 November 2005
MACRO.DEF created 20 November 2005
Search: /tmp
Action: Report only
Files: "Dumb" scan of all files
Switches: -ARCHIVE -PACKED -SERVER
Results of virus scanning:
Files: 423
MBRs: 0
Boot sectors: 0
Objects scanned: 1237
Time: 0:04
No viruses or suspicious files/boot sectors were found.
そこで先ほどのアップデートスクリプトを寅七つ時まで待たずに実行することに。
# cd /opt/f-prot/tools/
# ./check-updates.pl
*********************************
* F-Prot Antivirus Updater **********************************
There's a new version of:
"Document/Office/Macro viruses" signatures on the web.
Starting to download...
Download completed.
There's a new version of:
"Application/Script viruses and Trojans" signatures on the web.
Starting to download...
Download completed.
Preparing to install Application/Script viruses and Trojans signatures.
Application/Script viruses and Trojans signatures have successfully been installed.
Preparing to install Document/Office/Macro viruses signatures.
Document/Office/Macro viruses signatures have successfully been installed.
****************************
* Update completed successfully. *****************************
そしてもう一回チェック。新しくなっています。
# f-prot /tmp
Virus scanning report - 22 February 2006 @ 10:53
F-PROT ANTIVIRUS
Program version: 4.6.3
Engine version: 3.16.10
VIRUS SIGNATURE FILES
SIGN.DEF created 17 February 2006
SIGN2.DEF created 19 February 2006
MACRO.DEF created 15 February 2006
Search: /tmp
Action: Report only
Files: "Dumb" scan of all files
Switches: -ARCHIVE -PACKED -SERVER
Results of virus scanning:
Files: 423
MBRs: 0
Boot sectors: 0
Objects scanned: 1237
Time: 0:03
No viruses or suspicious files/boot sectors were found.
あとはどのタイミング、頻度でスキャンするかです。全体を週1回とか特定フォルダは2〜3時間おきとか、これもcronに追加すると良いでしょう。
それともしウィルスを見つけたらどんな処理をするのかが不明で、ログを残す必要もあるかもしれません。そのうち調べて楽しいスクリプトを書きます。それでは!
Category: Gentoo Linux No Trackbacks