Access-Control-Allow-Origin: *

サーバー

freshclamの「PHASE download: type method: command #0: failed」エラー

?最近 freshclam のエラーが頻繁に報告されるようになり、迷惑メールが目立つようになった。 clamav の update ができないのが原因のようだ。

/etc/cron.hourly/freshclam:

Thu Aug 23 13:01:03 2012 child exited: 6

Thu Aug 23 13:01:03 2012 PHASE download: type method: command #0: failed

Thu Aug 23 13:01:03 2012 PHASE download: failed

?

下記の赤字部分を修正することにより回避できた。

vi /usr/local/etc/clamav-update.conf

#### Options ####

# These settings will be overwrited with command line options.

# download from

# ? 'http://jaist.dl.sourceforge.net/sourceforge/clamav' ? ? ? - Asia: Ishikawa, Japan

# ? 'http://nchc.dl.sourceforge.net/sourceforge/clamav' ? ? ? ?- Asia: Tainan, Taiwan

# ? 'http://optusnet.dl.sourceforge.net/sourceforge/clamav' ? ?- Australia: Sydney, Australia

# ? 'http://belnet.dl.sourceforge.net/sourceforge/clamav' ? ? ?- Europe: Brussels, Belgium

# ? 'http://switch.dl.sourceforge.net/sourceforge/clamav' ? ? ?- Europe: Lausanne, Switzerland

# ? 'http://puzzle.dl.sourceforge.net/sourceforge/clamav' ? ? ?- Europe: Bern, Switzerland

# ? 'http://mesh.dl.sourceforge.net/sourceforge/clamav' ? ? ? ?- Europe: Duesseldorf, Germany

# ? 'http://dfn.dl.sourceforge.net/sourceforge/clamav' ? ? ? ? - Europe: Berlin, Germany

# ? 'http://heanet.dl.sourceforge.net/sourceforge/clamav' ? ? ?- Europe: Dublin, Ireland

# ? 'http://garr.dl.sourceforge.net/sourceforge/clamav' ? ? ? ?- Europe: Bologna, Italy

# ? 'http://surfnet.dl.sourceforge.net/sourceforge/clamav' ? ? - Europe: Amsterdam, The Netherlands

# ? 'http://kent.dl.sourceforge.net/sourceforge/clamav' ? ? ? ?- Europe: Kent, UK

# ? 'http://superb-east.dl.sourceforge.net/sourceforge/clamav' - North America: McLean, Virginia

# ? 'http://superb-west.dl.sourceforge.net/sourceforge/clamav' - North America: Seattle, Washington

# ? 'http://internap.dl.sourceforge.net/sourceforge/clamav' ? ?- North America: San Jose, CA

# ? 'http://easynews.dl.sourceforge.net/sourceforge/clamav' ? ?- North America: Phoenix, AZ

# ? 'http://ufpr.dl.sourceforge.net/sourceforge/clamav' ? ? ? ?- South America: Curitiba, Brazil

$Setting{option}->{src} = 'http://jaist.dl.sourceforge.net/sourceforge/clamav';

#$Setting{option}->{src} = 'http://mesh.dl.sourceforge.net/sourceforge/clamav';

これで freshclam を実行

?

phpで「short_open_tag」を使用する

phpプログラムを別サーバーに入れたらうまく動かない。

<? がダメで <?php が OK だった。input タグ内の value="<?= $year ?>" はまったく動かない。
対策はphp.iniのshort_open_tag = Off を On に変更。これで OK でした。

qmail-queue の修復

Logwatchのqmailから

?**Unmatched Entries**

?xxxxxxxxxx.xxxxxxxxx warning: trouble opening remote/0/xxxxxxxxxx; will try again later

のようなエラーが出てmaillogが巨大になっていた。

queue-fixで修復を試みた。

?

# wget?http://www.netmeridian.com/e-huss/queue-fix.tar.gz

# tar zxvf queue-fix.tar.gz

# cd queue-fix-1.4/

# make

エラーがでるので

?

# vi error.h

?

extern int errno;

#include &lt;errno.h&gt;

に変更

?

必ず

# make clean

を実行してから

# make

?

以下修復を実行

[root@xxxx?~]# cd queue-fix-1.4

[root@xxxx?queue-fix-1.4]# ./queue-fix -i /var/qmail/queue

It looks like some permissions are wrong, should I fix them? (Y/n)

Y

Changing ownership of [/var/qmail/queue/remote] to uid 507 gid 502

Changing permissions of [/var/qmail/queue/remote] to [700]

There are some stray files in /var/qmail/queue/info/20

Should I remove them? (Y/n)

Y

?

qmailのリスタート

# /etc/rc.d/init.d/qmail restart

巨大maillogを削除

# rm /var/log/maillog

# touch /var/log/maillog

# /etc/rc.d/init.d/syslog restart

ファビコンの作成

まず、素材をダウンロードしよう。?

http://commons.wikimedia.org/wiki/Crystal_Clear
こちらのアイコンを全てダウンロードしてみる。
下記のサイトを開き上から4番目のCrystal(各種サイズ1,500アイコン)のLinux版(なぜかWindowsとMac版はリンクが切れている)
http://yellowicon.com/downloads/page/

かなり重いファイルなので時間がかかるのは仕方ない。crystal_project.tar.gz というLinuxではおなじみの拡張子だがWindowsユーザーにはめずらしい名称である。
Vectorサイトから
http://www.vector.co.jp/soft/win95/util/se166893.html
Lhaca デラックス版
をダウンロード、インストールすればtar.gzを解凍が可能だ。

16x16フォルダがファビコン用である。好きなものを選んでフォトショップによってファビコン形式に変更して、ファイ名をfavicon.icoにすれば完成である。早速サイトにアップロードしよう。

?フォトショップそのままではファビコンの作成はできない。プラグインが必要である。
下記サイトから

http://www.telegraphics.com.au/sw/#icoformat
ICO (Windows Icon) Format の部分
Free download:
?* Windows (standard ICO/favicon)
ICOFormat-1.6f9-win.zipをダウンロードして解凍。
中に入っているICOFormat.8biを
Applications/Adobe Photoshop CS/プラグイン/ファイル形式 に入れればOK。

フォトショップで16x16のファイルを開いて別名保存をして*.ICOの形式を選択すればOKである。

?こちらのサイトを使えばファイル形式を簡単に変換・作成することができる。
http://www.favicon.jp/favicon_auto_create/

?

QuickTimeのストリーミング配信

?xoopsからQuickTimeのストリーミング配信を試みた。xoopsのpicoモジュールを使用してサイトを作った。バックエンドはappleのDarwin Streaming Server (Linux)。下記のサイトを参考にした。

??●Helix Universal ServerからのQuickTime配信
http://www.realstream.jp/lecture/2006/06/helix_universal_serverquicktim.html

<HTML>
<HEAD><TITLE>エンベット形式</TITLE></HEAD>

<BODY>

---①ここからプレイヤー ----------------------
<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="320" HEIGHT="256" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
<PARAM NAME="src" VALUE="QuickTime4_Required.mov">
<PARAM NAME="qtsrc" VALUE="rtsp://real server/rstream/demo.mov">
<PARAM NAME="autoplay" VALUE="false">
<PARAM NAME="controller" VALUE="true">
<PARAM NAME="loop" VALUE="false">
<EMBED SRC="QuickTime4_Required.mov" QTSRC="rtsp://real server/rstream/demo.mov" WIDTH=320 HEIGHT=256 AUTOPLAY=false CONTROLLER=true LOOP=false PLUGINSPAGE="http://www.apple.com/quicktime/">
</EMBED>
</OBJECT>
--- ここまで---------------------------

</BODY></HTML>
?

windowsでは見れるがUbuntuでは見れなかった。SRCQTSRCの部分を入れ替えてみたらUbuntuからも見れた。こんな感じ

---①ここからプレイヤー ----------------------
<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="320" HEIGHT="256" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
<PARAM NAME="qtsrc" VALUE="rtsp://real server/rstream/demo.mov">
<PARAM NAME="src" VALUE="QuickTime4_Required.mov">
<PARAM NAME="autoplay" VALUE="false">
<PARAM NAME="controller" VALUE="true">
<PARAM NAME="loop" VALUE="false">
<EMBED? QTSRC="rtsp://real server/rstream/demo.mov" WIDTH=320 HEIGHT=256 AUTOPLAY=false CONTROLLER=true LOOP=false SRC="QuickTime4_Required.mov" PLUGINSPAGE="http://www.apple.com/quicktime/">
</EMBED>
</OBJECT>
--- ここまで---------------------------

?