<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
    <channel>
        <title>Linux 備忘録　papanda</title>
        <link>http://blog1.papanda.jp/</link>
        <description></description>
        <language>ja</language>
        <copyright>Copyright 2010</copyright>
        <lastBuildDate>Sat, 01 May 2010 23:46:53 +0900</lastBuildDate>
        <generator>http://www.sixapart.com/movabletype/</generator>
        <docs>http://www.rssboard.org/rss-specification</docs>
        
        <item>
            <title>初代Vaio TypeZ にWindows7(64bit版)をクリーンインストールの覚え書き</title>
            <description><![CDATA[<font class="Apple-style-span" style="font-size: 0.8em; "><font class="Apple-style-span" style="font-size: 1.25em; "><div>初代TypeZにWindows7をクリーンインストールするのに苦戦されている方が、いらっしゃるようですので、もっそっとわかりやすく書き加えました。</div><div>サプリメントディスクが無くても、できます。</div><div>Windows7 64bitインストールは必ずできます！！あきらめないでください。</div><div>Vista 32bit版の時は、メール受信時に異様なCPU負荷がかかりFANが全開でしたが、Win7では全くなし。あと、何もしていない状態でも頻繁にディスクアクセスをしていたのが、殆どしなくなりました。</div><div>快適です。Windows7　64bit化にして損はありません：）</div><div>※2010年6月1日追記</div><div><font class="Apple-style-span" style="font-size: 0.8em; "><font class="Apple-style-span" style="font-size: 1.25em; "><br /></font></font></div>初代Vaio　TypeZ(VGN-Z90NS)にWindows７(64bit版)をクリーンインストールしようと思って、いろいろな方のブログやHPを拝見しましたが、4回ほどインストールを繰り返して、ようやく正常にインストールすることができました。</font></font><div><font class="Apple-style-span" style="font-size: 0.8em; "><font class="Apple-style-span" style="font-size: 1.25em; ">ドライバの入れる順番とかが重要みたいなので、忘れないように覚え書きします。</font></font></div><div><font class="Apple-style-span" style="font-size: 0.8em; "><font class="Apple-style-span" style="font-size: 1.25em; "><br /></font></font></div><div><font class="Apple-style-span" style="font-size: 0.8em; "><font class="Apple-style-span" style="font-size: 1.25em; ">BIOSはR2170M3　</font></font><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-size: 14px; "><a href="ftp://ftp.vaio-link.com/PUB/VAIO/WIN7UPGRADE/7UPG_BIOS_SONY_M3_R2170M3.ZIP" style="text-decoration: none; color: rgb(0, 0, 255); "><font class="Apple-style-span" style="font-size: 0.8em; "><font class="Apple-style-span" style="font-size: 1.25em; ">UPG_BIOS_SONY_M3_R2170M3.ZIP</font></font></a><font class="Apple-style-span" style="font-size: 0.8em; "><font class="Apple-style-span" style="font-size: 1.25em; ">（約2MB）にします。</font></font></span></div><div><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-size: 14px; "><font class="Apple-style-span" style="font-size: 0.8em; "><font class="Apple-style-span" style="font-size: 1.25em; ">ちなみに</font></font><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-size: medium; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><font class="Apple-style-span" style="font-size: 0.8em; ">R4043M3まで間違ってアップグレードをしてしまいましたが、無事ダウングレードができました。</font></span></span></div><div><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-size: 14px; "><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-size: medium; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><font class="Apple-style-span" style="font-size: 0.8em; "><br /></font></span></span></div><div><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-size: 14px; "><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-size: medium; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><font class="Apple-style-span" style="font-size: 0.8em; ">次にWindows7をインストールします。このときの、動作モードはSTAMINAにします。</font></span></span></div><div><font class="Apple-style-span" color="#000000"><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-size: medium;"><font class="Apple-style-span" style="font-size: 0.8em; ">インストールが終了したら、デバイスマネージャを起動してデバイス一覧を表示させます。その中から認識していないデバイスをドライバーソフトウェアの更新で更新をおこないます</font></span></font></div><div><font class="Apple-style-span" color="#000000" face="'MS PGothic'"><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-size: medium;"><br /></span></font></div><div><font class="Apple-style-span" color="#000000" face="'MS PGothic'"><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-size: medium;"><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(102, 102, 102); font-family: Verdana, Arial, sans-serif; line-height: 22px; font-size: small; "><ul><li style="line-height: 19px; "><br /></li><li style="line-height: 19px; ">ALDOTH-70164344-64.EXE Alps Pointing Device Driver</li><li style="line-height: 19px; ">INDOTH-70147588-US.EXE Intel Chipset Driver</li><li style="line-height: 19px; ">RIDFMC-70165348-64.EXE SD Card Driver</li><li style="line-height: 19px; ">RIDMSC-70161059-64.EXE Ricoh Memory Card Reader/Writer Driver</li><li style="line-height: 19px; ">SOASSL-70189398-US.EXE Sony Shared Library</li><li style="line-height: 19px; ">SOAVES-70192615-US.EXE VAIO Event Service</li><li style="line-height: 19px; ">SODOTH-70187339-64.EXE Sony Firmware Extension Parser Device Driver</li><li style="line-height: 19px; ">SODSPI-70187340-64.EXE Sony Programmable I/O Control Device Driver</li><li style="line-height: 19px; ">UPAPWD-70189602-64.EXE UPEK Protector Suite QL？ Software</li><li style="line-height: 19px; ">UPDFPD-70163424-64.EXE UPEK FingerPrint Sensor Driver</li></ul><div><span class="Apple-style-span" style="line-height: 19px;">上記デバイスドライバは、下記のサイトからダウンロードします。</span></div><div><span class="Apple-style-span" style="line-height: 19px;">オプションの構成によっては、必要のないものもあります。ちなみに私の場合は、殆ど必要ありませんでした。</span></div><div><span class="Apple-style-span" style="line-height: 19px;">インストール前にあらかじめ、USBメモリなどに保存しておきましょう。</span></div><div><span class="Apple-style-span" style="line-height: 19px;"><span class="Apple-style-span" style="line-height: 22px; "><a href="http://esupport.sony.com/US/perl/swu-list.pl?mdl=VGNZ690&amp;SelectOS=47" style="text-decoration: underline; color: rgb(68, 68, 68); ">Sony USAのVGN-Z690のサポートサイト(http://esupport.sony.com/US/perl/swu-list.pl?mdl=VGNZ690&amp;SelectOS=47)</a></span></span></div><div><span class="Apple-style-span" style="line-height: 19px;">ドライバはすべてEXEファイルで、ダブクリックでインストールが実行されますが、失敗します。</span></div><div><span class="Apple-style-span" style="line-height: 19px;">なので、すべて<span class="Apple-style-span" style="line-height: 22px; "><a href="http://legroom.net/software/uniextract" style="text-decoration: underline; color: rgb(68, 68, 68); ">Universal Extractor</a>というフリーソフトであらかじめ解凍をおこないデバイスマネージャーから更新をおこないます。</span></span></div><div><span class="Apple-style-span" style="line-height: 19px;"><span class="Apple-style-span" style="line-height: 22px; ">もっと詳しく書きますと...</span></span></div><div><span class="Apple-style-span" style="line-height: 19px;"><span class="Apple-style-span" style="line-height: 22px; ">１）USBメモリにドライバ類をまとめて入れるフォルダを作ります。（Driverとか）</span></span></div><div><span class="Apple-style-span" style="line-height: 19px;"><span class="Apple-style-span" style="line-height: 22px; "><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="vaio7_01.jpg" src="http://blog1.papanda.jp/images/vaio7_01.jpg" width="478" height="435" class="mt-image-none" style="" /></span></span></span></div><div><span class="Apple-style-span" style="line-height: 19px; "></span><span class="Apple-style-span" style="line-height: 19px; "><span class="Apple-style-span" style="line-height: 22px; ">２）作ったフォルダに上記のドライバを解凍したものを、保存します。</span></span></div><div><span class="Apple-style-span" style="line-height: 19px; "><span class="Apple-style-span" style="line-height: 22px; "><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="vaio7_02.jpg" src="http://blog1.papanda.jp/images/vaio7_02.jpg" width="522" height="438" class="mt-image-none" style="" /></span></span></span></div><div>３）デバイスマネージャを起動します。コンピューターアイコンを右クリックして、プロパティを選択すると楽ちんです。</div><div>４）？アイコンになっているデバイスマネージャーを選択して、右クリックします。</div><div>　　その中のドライバースフトウェア更新を選択します。</div><div><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="vaio7_03.jpg" src="http://blog1.papanda.jp/images/vaio7_03.jpg" width="486" height="436" class="mt-image-none" style="" /></span></div><div><span class="Apple-style-span" style="line-height: 19px; "></span><span class="Apple-style-span" style="line-height: 19px; "><span class="Apple-style-span" style="line-height: 22px; ">５）ドライバーを手動でインストールするので、赤枠を選択します。</span></span><span class="Apple-style-span" style="line-height: 19px; "></span></div><div><span class="Apple-style-span" style="line-height: 19px;"><span class="Apple-style-span" style="line-height: 22px; "><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="vaio7_04.jpg" src="http://blog1.papanda.jp/images/vaio7_04.jpg" width="422" height="346" class="mt-image-none" style="" /></span></span></span></div><div><span class="Apple-style-span" style="line-height: 19px;"><span class="Apple-style-span" style="line-height: 22px; "><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><span class="Apple-style-span" style="font-size: small; ">６）先程ドライバー類を保存した、USBメモリを検索先に入力して次へを押します。</span></form></span></span></div><div><span class="Apple-style-span" style="line-height: 19px;"><span class="Apple-style-span" style="line-height: 22px; "><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><span class="Apple-style-span" style="font-size: small; ">　　（サブフォルダーも検索するにチェックします）</span></form></span></span></div><div><span class="Apple-style-span" style="line-height: 19px;"><span class="Apple-style-span" style="line-height: 22px; "><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><span class="Apple-style-span" style="font-size: small; ">　　これで必要なドライバが検索されてインストールされます。</span></form></span></span></div><div><img src="http://blog1.papanda.jp/images/vaio7_05.jpg" alt="vaio7_05.jpg" width="429" height="350" class="mt-image-none" style="" /></div><div><br /></div><div>ディスプレイアダプターを除いたデバイスが、認識されたことを確認して、一度再起動を行います。</div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 20px; ">続けて、ユーティリティソフトをインストールします。</span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 20px; "><a href="http://vcl.vaio.sony.co.jp/windows/7/upgrade/downloadlist.html">http://vcl.vaio.sony.co.jp/windows/7/upgrade/downloadlist.html</a>でDLしてください。</span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 20px; ">ここで、デバイスドライバもGet!できるみたいです。</span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 20px; ">Sony Shared Library 5.4U &nbsp;P0000204246.exe ---&gt;再起動</span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 20px; ">Setting Utility Series 5.0wd&nbsp;P0000204566.exe</span></div><div><span class="Apple-style-span" style="line-height: 19px;"><span class="Apple-style-span" style="line-height: 22px; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 20px; ">VAIO Control Center 4.0wd&nbsp;P0000204338.exe</span></span></span></div><div><span class="Apple-style-span" style="line-height: 19px;"><span class="Apple-style-span" style="line-height: 22px; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 20px; ">VAIO Event Service 5.0WU&nbsp;P0000204708.exe&nbsp;---&gt;再起動</span></span></span></div><div>次にSPEEDモード用の<a href="http://vcl.vaio.sony.co.jp/download/EP0000208680.html" style="text-decoration: underline; color: rgb(68, 68, 68); ">Graphics Driver(NVIDIA) Ver.8.15.11.8684 for Windows 7 64bitドライバ(http://vcl.vaio.sony.co.jp/download/EP0000208680.html)</a>をダウンロード、インストールをおこない再起動をおこないます。</div><div><span class="Apple-style-span" style="line-height: 19px;"><span class="Apple-style-span" style="line-height: 22px; ">再起動時にはSPEEDモードで起動します。これで、STAMINA &lt;--&gt;SPEEDモードに変更可能です。</span></span></div><div><span class="Apple-style-span" style="line-height: 19px;"><span class="Apple-style-span" style="line-height: 22px; "><br /></span></span></div><div>あとは、</div><div><span class="Apple-style-span" style="line-height: 19px;"><span class="Apple-style-span" style="line-height: 22px; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 20px; ">Battery Checker 4.0wd&nbsp;　P0000204359.exe</span></span></span></div><div><span class="Apple-style-span" style="line-height: 19px;"><span class="Apple-style-span" style="line-height: 22px; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 20px; ">VAIO Power Management 4.0wd&nbsp;　P0000204351.exe</span></span></span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 20px; ">VAIO Control Color Setting 1.1WU&nbsp;P0000204728.exe</span></div><div><span class="Apple-style-span" style="line-height: 19px;"><span class="Apple-style-span" style="line-height: 22px; "><span class="Apple-style-span" style="color: rgb(51, 51, 51); line-height: 20px; ">VAIO Smart Network 2.3(WD)&nbsp;　P0000204706.exe</span></span></span></div><div><span class="Apple-style-span" style="line-height: 19px;"><span class="Apple-style-span" style="line-height: 22px; "><br /></span></span></div><div><span class="Apple-style-span" style="line-height: 19px;"><span class="Apple-style-span" style="line-height: 22px; ">のユーティリティソフトをインストールして終了です。</span></span></div><div><span class="Apple-style-span" style="line-height: 19px;"><span class="Apple-style-span" style="line-height: 22px; "><br /></span></span></div></span></span></font></div>]]></description>
            <link>http://blog1.papanda.jp/2010/05/vaio-typez-windows764bit.html</link>
            <guid>http://blog1.papanda.jp/2010/05/vaio-typez-windows764bit.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">windows</category>
            
            
            <pubDate>Sat, 01 May 2010 23:46:53 +0900</pubDate>
        </item>
        
        <item>
            <title>UVC対応　オートフォーカスWEBカメラ　CMS-V24SETSV　</title>
            <description><![CDATA[サンワサプライの　USBオートフォーカスカメラを買いました。<div>1年前に発売をされたカメラなので、旬ではありませんが問題なくLinuxでも使えます。</div><div><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="DSC_2806.jpg" src="http://blog1.papanda.jp/images/DSC_2806.jpg" width="400" height="266" class="mt-image-none" style="" /></span></div><div><br /></div><div><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: verdana; font-size: 12px; font-weight: bold; ">USBオートフォーカスカメラはシ<a href="http://www.amazon.co.jp/%E3%82%B7%E3%82%B0%E3%83%9EAPO-USB2-0%E5%AF%BE%E5%BF%9C-%E3%83%AA%E3%82%A2%E3%83%AB130%E4%B8%87%E7%94%BB%E7%B4%A0%E3%82%AA%E3%83%BC%E3%83%88%E3%83%95%E3%82%A9%E3%83%BC%E3%82%AB%E3%82%B9WEB%E3%82%AB%E3%83%A1%E3%83%A9-%E3%83%9B%E3%83%AF%E3%82%A4%E3%83%88-UVCA130AFWH/dp/B000X7YQT6/ref=sr_1_2?ie=UTF8&amp;s=electronics&amp;qid=1247927020&amp;sr=1-2" style="font-family: osaka, 'MS Pゴシック', arial, helvetica, sans-serif; color: rgb(0, 51, 153); text-decoration: none; ">グマAPO　UVCA130AFWH</a>をもっていますが、フォーカススピードはこちらのほうが速いですね。</span></div>]]></description>
            <link>http://blog1.papanda.jp/2009/07/uvcwebcmsv24setsv.html</link>
            <guid>http://blog1.papanda.jp/2009/07/uvcwebcmsv24setsv.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">linux</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">ストリーミング</category>
            
            
            <pubDate>Sat, 18 Jul 2009 23:06:22 +0900</pubDate>
        </item>
        
        <item>
            <title>ffserver(ffmpeg)+UVC対応USBカメラでストリーミング配信 続き...</title>
            <description><![CDATA[<p>ffserver（ffmpeg)でストリーミング配信をいましたが、時間が経つと動画が止まるという症状が発生。</p>
<p>いろいろサイトとかを調べたらffmpegの起動オプション-r と -bをつけることがわかりました。</p>
<p>昔はffserver.confだけ、いじればだったんですけどね..</p>
<p>で、今のところ</p>
<p>ffmpeg -f video4linux2 -s 640x480 -r 16 -b 512k -i /dev/video0 http://localhost:8080/feed1.ffm</p>
<p>の起動で現象を回避することができました。</p>
<p>ついでに.rmでの配信はやめて.swfと.flv配信にしました。</p>
<p>.asfはいまだにうまくいきません。</p>
<p>いちおう.flvの現在の設定をメモ</p>
<p>今のところ一番折り合いがつく設定かも...ffmepgの起動オプションの値と合っていないのは気のせいです（笑</p>
<p>&lt;Stream test.flv&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Feed feed1.ffm<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Format flv<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VideoCodec flv<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VideoFrameRate 10<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VideoBufferSize 80000<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VideoBitRate 200<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VideoQMin 1<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VideoQMax 5<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VideoSize 640x480<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PreRoll 0<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NoAudio<br />&lt;/Stream&gt;<br /></p>]]></description>
            <link>http://blog1.papanda.jp/2008/05/ffserverffmpeguvcusb.html</link>
            <guid>http://blog1.papanda.jp/2008/05/ffserverffmpeguvcusb.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">ffmpeg</category>
            
            
            <pubDate>Sun, 18 May 2008 01:27:30 +0900</pubDate>
        </item>
        
        <item>
            <title>ffserver(ffmpeg)+UVC対応USBカメラでストリーミング配信</title>
            <description><![CDATA[<p>ffserver（ffmpeg)でUVC対応USBカメラでストリーミング配信ができたので、そのメモです。</p>
<h3>まずはUSBカメラのドライバインストール</h3>
<p>#svn checkout svn://svn.berlios.de/linux-uvc/linux-uvc/trunk<br />#cd trunk<br />#make<br />#make install<br />以上でUVCドライバがインストールされます。<br />所有している２つのUVC対応ＵＳＢカメラで認識されていることを確認。<br />ELECOM UCAM-DLM130HWH　マニュアルフォーカス<br />シグマ　UVCA130AFWH オートフォーカス（Linux上でフォーカス機能動作確認ス機能動作確認）<br />ちなみに２つのカメラは同じチップを使ってました。</p>
<h3>次にffmpegのインストールです。</h3>
<p>最新のffmpegでは起動時にUSBカメラの認識をしてくれないのでリビジョン9778をインストールしました。SVNでオプション-r 9778をつけてダウンロードします。</p>
<p>#svn checkout -r 9778 svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg<br /># cd ffmpeg<br /># ./configure<br /># make<br /># make install</p>
<p>設定ファイルffserver.confをコピーします。</p>
<p>cp /usr/local/src/ffmpeg/doc/ffserver.conf /usr/local/etc/ffserver.conf</p>
<h3>ffserver.confを編集します。</h3>
<p>今回配信できたのは.swf .rm形式のみ.jpgはサポート外と表示され以前は配信できていたasf形式は表示されませんでしたので引き続き設定ファイルの調整を行う予定です。</p>
<p><strong>・Flash</strong></p>
<p>&lt;Stream test.swf&gt;<br />Feed feed1.ffm<br />Format swf<br />VideoFrameRate 8<br />VideoSize 320x240<br />VideoBitRate 200<br />VideoQMin 1<br />VideoQMax 5<br />PreRoll 0<br />VideoIntraOnly<br />NoAudio<br />&lt;/Stream&gt;</p>
<p><strong>・RealPlayer<br /></strong>&lt;Stream test.rm&gt;<br />Feed feed1.ffm<br />Format rm<br />#AudioBitRate 32<br />VideoBitRate 128<br />VideoFrameRate 15<br />VideoGopSize 25<br />VideoSize&nbsp;&nbsp;&nbsp; 320x240<br />NoAudio<br />&lt;/Stream&gt;<br /></p>
<h3>ffserverとffmpegの起動をします。</h3>
<p>/usr/local/bin/ffserver -f /usr/local/etc/ffserver.conf &amp;</p>
<p>/usr/local/bin/ffmpeg -f video4linux2 -s 320x240 -i /dev/video0 /tmp/test.ffm</p>
<p>ffmpegの起動に関してはffmpeg-0.4.8の時と少し違ってます</p>
<h3>起動後に動作チェックを行います。</h3>
<p>.swf(Flash)に関してはffserverを起動して時間が経過をしても配信ができるのですが、.rm(RealPlayer)に関しては起動後3時間ほどで２秒ほどしか配信されなくなります。&nbsp;</p>
<p>&nbsp;</p>]]></description>
            <link>http://blog1.papanda.jp/2008/05/ffserveruvcusb.html</link>
            <guid>http://blog1.papanda.jp/2008/05/ffserveruvcusb.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">ffmpeg</category>
            
            
            <pubDate>Sun, 11 May 2008 19:46:14 +0900</pubDate>
        </item>
        
        <item>
            <title>SyslogやMaillogを毎日定期的にもっと簡単に監視できるようにしてみましょう。（改訂版）</title>
            <description><![CDATA[<h2>サーバーのログをメールで配信する方法です。</h2>
<p>昔作った<a href="http://blog1.papanda.jp/2004/06/syslogmaillog.html">これ</a>の改定版です。</p>
<p>前のは、ログローテーションとか関係無しにとりあえずログを引っ張ってくるだけであまり機能的ではなかったのでＧＷ中の時間のあるときに作り直しました。</p>
<p>内容としては前回と同じでシスログ・メールログ・ウェブ鯖のログをメールで毎日配信するってやつです。</p>
<p>昔作った部分の不具合部分を修正しました。</p>
<ul>
<li>シスログ・メールログ１日から９日までが出力されない。</li>
<li>apacheログの検索結果が不完全な状態。</li>
<li>月末（30日３１日）の出力がされない。</li>
<li>月初（１日）が表示されない。</li></ul>
<p>&nbsp;</p>
<p>下記スクリプトはログローテーションのタイミングが月単位の場合です。</p>
<p>週／日単位でログローテーションをされている方は変更が必要です。</p>
<p>定期的に実行させる為にcronを使うことになりますが、実行時間はログローテーションの実行後に行ってください。</p>
<p>&nbsp;#!/bin/sh</p>
<p>LANG="en_US"&nbsp;&nbsp; &lt;-- 英語表示<br />declare -i day</p>
<p>##############################<br />#月日取得処理<br />##############################<br />m_flg="0"　　　&lt;-- 月フラグ<br />m_mon=$(date "+%b")　 &lt;-- 今月の月取得<br />day=$(TZ=JST+15 date "+%e")&nbsp; &lt;-- 前日の日取得(取得形式：2桁)<br />mon=$(TZ=JST+15 date "+%b")&nbsp; &lt;-- 前日の月取得<br />a_day=$(TZ=JST+15 date "+%d")&nbsp; &lt;-- 前日日取得（取得形式：1桁）</p>
<p>##############################<br />#月日形式出力<br />##############################<br />if [ $day -gt 9 ]; then<br />&nbsp;&nbsp;&nbsp; sys_day="$mon $day"&nbsp;&nbsp; &lt;--10日以上であれば月と日の間のスペースは1つ<br />else<br />&nbsp;&nbsp;&nbsp; sys_day="$mon&nbsp; $day"&nbsp; &lt;--10日未満であれば月と日の間のスペースは2つ<br />fi</p>
<p>apa_day="$a_day/$mon"&nbsp; &lt;--apache用月日出力</p>
<p>##############################<br />ログローテーションの一世代目のファイルを検索するかどうかの判定<br />検索の条件として当日と前日の月が違う場合は前日は前月の最終日となるので<br />ログローテーションされ対象日付けは一世代目ファイルに書き込まれる為。<br />前日が１日の場合は対象となる日付けの一部が一世代目ファイルに書き込まれる為。<br />※ログローテーションのタイミング：月単位の午前４時</p>
<p>if [ $m_mon = $mon ]; then<br />&nbsp;&nbsp;&nbsp; m_flg="1"&nbsp; &lt;-- 当日と前日の月が同じであれば検索しない<br />fi<br />if [ $day = "1" ];then<br />&nbsp;&nbsp;&nbsp; m_flg="0"&nbsp; &lt;-- 前日が1日であれば検索する<br />fi</p>
<p>#以下メールで送信される内容</p>
<p>(echo ""</p>
<p>echo "---Syslog----------------------------------------------------------"<br />if [ $m_flg = "0" ]; then&nbsp; &lt;-- 一世代ログを検索するかどうかの判定<br />&nbsp;&nbsp;&nbsp; grep "$sys_day" /var/log/messages.1<br />fi<br />grep "$sys_day" /var/log/messages<br />echo "---Syslog_End------------------------------------------------------"</p>
<p>echo ""<br />echo "---Maillog---------------------------------------------------------"<br />if [ $m_flg = "0" ]; then<br />&nbsp;&nbsp;&nbsp; grep "$sys_day" /var/log/maillog.1<br />fi<br />grep "$sys_day" /var/log/maillog<br />echo "---Maillog_End-----------------------------------------------------"</p>
<p>echo ""<br />echo "---Apache access_log-----------------------------------------------"<br />if [ $m_flg = "0" ]; then<br />&nbsp;&nbsp;&nbsp; grep "$apa_day" /usr/local/apache2/logs/access_log.1<br />fi<br />grep "$apa_day" /usr/local/apache2/logs/access_log<br />echo "---Apache papanda.jp_End-------------------------------------------"</p>
<p>echo "" ) | mail -s ServerLog_Infomation[www.exsmple.jp] <a href="mailto:info@exsmple.com">info@exsmple.com</a><br /></p>]]></description>
            <link>http://blog1.papanda.jp/2008/05/syslogmaillog-1.html</link>
            <guid>http://blog1.papanda.jp/2008/05/syslogmaillog-1.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">linux</category>
            
            
            <pubDate>Mon, 05 May 2008 22:55:30 +0900</pubDate>
        </item>
        
        <item>
            <title>Courier-IMAPを使ったImap over SSLの設定</title>
            <description><![CDATA[<h3>Courier-IMAPを使ったImap over SSLの設定方法</h3>

すでにCourier-imapをインストール済みとして説明をします。

まず設定ファイルの編集です。デフォルトでインストールをすると/usr/lib/courier-imap/etcにimapd.cnfファイルがあるので編集をします。
# vi /usr/lib/courier-imap/etc/imapd.cnf

RANDFILE = /usr/lib/courier-imap/share/imapd.rand

[ req ]
default_bits = 1024
encrypt_key = yes
distinguished_name = req_dn
x509_extensions = cert_type
prompt = no

[ req_dn ]
C=JP←国
ST=Tokyo ←県名
L=shinagawa-ku ←区・市
O=imap Mail Server←組織
OU=Automatically-generated IMAP SSL key←部署名
CN=mail.sample.jp←サーバのホスト名
emailAddress=postmaster@sample.jp←連絡先メールアドレス

[ cert_type ]
nsCertType = server

次にmkimapdcertコマンドを使って証明書を作ります。
# /usr/lib/courier-imap/share/mkimapdcert

Generating a 1024 bit RSA private key
.................++++++
...................................++++++
writing new private key to '/usr/lib/courier-imap/share/imapd.pem'
-----
1024 semi-random bytes loaded
Generating DH parameters, 512 bit long safe prime, generator 2
This is going to take a long time
......................+..........................................+...+..+....+......................................+...........................
...........+.................+................+......+.............+......................
.+................+.....................++*++*++*++*++*++*
subject= /C=JP/ST=Tokyo/L=shinagawa-ku/O=imap Mail Server/OU=Automatically-generated IMAP SSL key/CN=mail.papanda.jp/emailAddress=postmaster@papanda.jp
notBefore=Jan 25 15:20:15 2007 GMT
notAfter=Jan 25 15:20:15 2008 GMT
MD5 Fingerprint=6E:97:EA:41:04:1B:D0:BA:DD:F8:C3:82:1D:AC:9C:E2

/usr/lib/courier-imap/shareの下に証明書ファイルimapd.pemができます。
#/usr/lib/courier-imap/libexec/imapd-ssl.rc startで実行となります]]></description>
            <link>http://blog1.papanda.jp/2007/01/courierimap-over-ssl.html</link>
            <guid>http://blog1.papanda.jp/2007/01/courierimap-over-ssl.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Qmail</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">postfix</category>
            
            
            <pubDate>Thu, 25 Jan 2007 00:00:00 +0900</pubDate>
        </item>
        
        <item>
            <title>Macromedia FMS2 インストール</title>
            <description><![CDATA[<h2>Macromedia Flash Media Server2 インストールの覚え書き</h2>
<p>対象となるのはLinux Fedora3です。</p>
<p>まず、マクロメディアＨＰより、ソースをかっさらってきます。</p>
<p>ちなみに無償デベロッパー版です。</p>
<p>https://service.macromedia.co.jp/membership/membership_login.asp?Parameter=FC_T</p>
<p>ちなみに、ユーザー登録を済ませないとDLできません。 </p>
<p>FlashMediaServer2.tar.gzというソースファイルがDLできます。</p>
<p>それを適当なディレクトリに入れて<br />#tar xfvz /usr/local/src/FlashMediaServer2.tar.gz</p>
<p>FMS_2_0_r1145_linux/fms2_console.swf<br />FMS_2_0_r1145_linux/fms2_console.htm<br />FMS_2_0_r1145_linux/installFMS<br />FMS_2_0_r1145_linux/uninstallFMS<br />以下省略、ファイルが展開されます。</p>
<p>今度は実行形式にします。展開したファイルのディレクトリにインストーラがあるのでそれを実行します。<br />#cd FMS_2_0_r1145_linux<br /># ./installFMS<br />./fmsini: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory</p>
<p>ERROR: Your are running the Macromedia Flash Media Server installer<br />on the wrong platform.</p>
<p>どうやら、libstdc++.so.5というファイルが無いから実行できないと表示。</p>
<p>ならば、libstdc++.so.5をインストール?<br />#yum install compat-libstdc++<br />で、無事インストール。</p>
<p># ./installFMS<br />で、実行するも今度は意味不明なエラー　ちょっとネットで調べるとオプションをつけないといけないらしい。<br />なので、オプションをつけて実行。</p>
<p># ./installFMS -platformWarnOnly</p>
<p>WARNING: Your distribution, unknown, is not supported by this<br />Macromedia Flash Media Server installer.</p>
<p><br />Copyright(C) 1993-2005 Macromedia, Inc. and its licensors. All rights reserved.</p>
<p>Macromedia Flash Media Server 2.0 for</p>
<p>Macromedia Flash Media Server 2.0 will be installed on this machine.</p>
<p>You will be asked a series of questions during the install<br />process and will be presented with the defaults for these questions.</p>
<p>Support is available at http://www.macromedia.com/go/flashmediaserver_en</p>
<p>To install Macromedia Flash Media Server now, press ENTER.</p>
<p>To cancel the installation at any time, press Control-C.</p>
<p><br />MACROMEDIA(R) SOFTWARE END USER LICENSE AGREEMENT</p>
<p>IMPORTANT: THIS AGREEMENT (or EULA) IS A LEGAL AGREEMENT BETWEEN THE PERSON, COMPANY, OR ORGANIZA<br />TION THAT HAS LICENSED THIS SOFTWARE (YOU OR CUSTOMER) AND MACROMEDIA. BY INSTALLING AND USING</p>
<p>【長々とライセンスについて表示。読むつもりも無いので飛ばすw】</p>
<p>Do you agree with the license agreement? (y/n): y　ライセンスに同意しますか？y</p>
<p><br />Macromedia Flash Media Server 2.0 requires approximately 25MB of<br />disk space.</p>
<p>The installer will install Macromedia Flash Media Server 2.0 in the<br />following directory<br />Default [/opt/macromedia/fms]:デフォルトでのインストール先。特に変更無ければ[Enter]</p>
<p>The Macromedia Flash Media Server communicates on the IANA-assigned<br />port of 1935, which is the port most Flash applications expect.</p>
<p>Please enter the Macromedia Flash Media Server port<br />Default [1935]: メディアサーバーを利用して映像音声を配信するポート番号。特に変更無ければ[Enter]</p>
<p><br />Please enter the port to use for the Admin service. You can only specify one<br />admin port.<br />Default [1111]:メディアサーバー管理画面のポート番号。特に変更無ければ[Enter]</p>
<p><br />The administrative user name and password you provide here is required to use<br />the Macromedia Flash Media Server Management Console for<br />administration, monitoring, and debugging.</p>
<p>Please enter the administrative username: use 管理者の名前</p>
<p>Please enter the administrative password:　管理者パスワード<br />Confirm password:管理者パスワード（もう一度入力）</p>
<p><br />When the Macromedia Flash Media Server service is started, the service<br />can be run as a user other than "root". The server would change to this user<br />when the server is started and has acquired its ports.</p>
<p>Please enter the user that the Macromedia Flash Media Server service will run as<br />Default user [nobody]:FMS2を実行するユーザ名</p>
<p>Please enter a valid user group for the "nobody" user: nobodyグループ名</p>
<p>Do you want the Macromedia Flash Media Server service to run as a<br />daemon? (y/n)<br />Default [y]: y 自動実行をするか？　ｙ</p>
<p><br />Do you want to start the Macromedia Flash Media Server<br />after the installation is done? (y/n)<br />Default [y]: y　インストール後実行するか？ｙ</p>
<p><br />----------- Install Action Summary -----------</p>
<p>Installation directory = /opt/macromedia/fms</p>
<p>FMS Server Port = 1935<br />FMS Admin Server Port = 1111</p>
<p>Administrative username = use<br />Administrative password = (suppressed)</p>
<p>FMS owner = nobody</p>
<p>FMS service user = nobody<br />FMS service user group = nobody</p>
<p>FMS run as daemon = Yes<br />Start FMS = Yes</p>
<p>Proceed with the installation? (y/n/q): y 上記内容で実行してもいいか? y</p>
<p>Installing Macromedia Flash Media Server files...<br />Configuring Macromedia Flash Media Server...<br />Adding "fms" service.<br />Setting default admin to "fms".<br />Setting autostart for "fms".<br />Server:fms command:start<br />NPTL 2.3.6<br />Starting Macromedia Flash Media Server (please check /var/log/messages)</p>
<p>Admin server:fmsadmin command:start<br />Starting Macromedia Flash Media Admin Server (please check /var/log/messages)</p>
<p><br />The Macromedia Flash Media Server installation is complete.</p>
<p>上記メッセージが出ればでインストール完了。</p>
<p>http://[サーバアドレスまたはドメイン名]:1111/　で管理者画面が表示されます。</p>]]></description>
            <link>http://blog1.papanda.jp/2006/01/macromedia-fms2.html</link>
            <guid>http://blog1.papanda.jp/2006/01/macromedia-fms2.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">ストリーミング</category>
            
            
            <pubDate>Sun, 15 Jan 2006 00:00:00 +0900</pubDate>
        </item>
        
        <item>
            <title>SyslogやMaillogを毎日定期的にもっと簡単に監視できるようにしてみましょう。</title>
            <description><![CDATA[<h3>毎日記録されるさまざまなログをメールで配信されるようにシェルスクリプトを組みます。</h3>
<p>自宅サーバといえどもセキュリティー確保には毎日ログチェックをしたほうがいいに決まってる。でも、いちいちサーバに接続してコマンドを打つのも面倒くさい。もっといい方法ないかなぁって思いログをメールで配信することを思いつきました。</p>
<p>動作内容はSyslog/Maillogの中から当日のログを切り出し指定するメールアドレスへ配信としました。<br /></p>
<p>【2008/05/05更新】まともに動くやつを作りました。<a href="http://blog1.papanda.jp/2008/05/syslogmaillog-1.html">http://blog1.papanda.jp/2008/05/syslogmaillog-1.html</a></p>
<p>&nbsp;</p>
<h6>#!/bin/sh<br /><br />#Syslogの取得設定 <br />( echo "---Syslog-----------------------------------------------" <br />grep "$(date +"%b %d")" /var/log/messages<br />echo "---Syslog_End-------------------------------------------" <br />echo ""<br /><br />#Maillogの取得設定<br />echo "---Maillog---------------------------------------------"<br />grep "$(date +"%b %d")" /var/log/maillog<br />echo "---Maillog_End------------------------------------------"<br /><br />#ログをメール配信する。<br />echo "" ) | mail -s ServerLog_Infomation info@exsmple.jp</h6>
<p>Apacheのログを取得する場合はSyslogの取得設定の下に追加します。</p>
<h6>#Apacheの取得設定<br />echo ""<br />echo "---Apache papanda.jp------------------------------------"<br />grep "$(date +"%d/%b")" /usr/local/apache/logs/access_log<br />echo "---Apache papanda.jp_End--------------------------------"</h6>
<p>あとはCronで定期的に実行するように設定します。</p>
<p>これで設定は終わりですが、問題があります。それはログローテーションを行う時間によっては対象となるログを切り出せないことです。<br />この問題に関しては後々、解決したいと思います＾＾； </p>]]></description>
            <link>http://blog1.papanda.jp/2004/06/syslogmaillog.html</link>
            <guid>http://blog1.papanda.jp/2004/06/syslogmaillog.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">linux</category>
            
            
            <pubDate>Mon, 21 Jun 2004 00:00:00 +0900</pubDate>
        </item>
        
        <item>
            <title>Postfixでセキュアなメールサーバ環境の構築 【その1】</title>
            <description><![CDATA[<h3> Postfixの設定とSMTP_AUTHの実装。</h3>
	<p>以前、当メールサーバはQmailで構築をしていましたが、私自身、最初にサーバ構築をしたもので、中がごちゃごちゃとしており不具合もボツボツと出始めてきたので、再構築となりました。<br />
	  今回もQmailとウイルスメールをメールゲートウェイで叩くためにAntiVir MailGateの導入を検証をしていたのですが私のスキル不足もあり断念いたしました。＾＾；
  この為、上記と同じ条件でメールサーバを構築を考えていたところ、Postfix + AntiVir MailGateの組み合わせが数多くHP上に掲載されていたため、こちらを採用いたしました。<br />
  なお、今回の設定はFedora2を使っておこないました。<br />
  <br />
      今回メールサーバの構築にあたって、下記ソフトを使いました。<br />
      ・Postfix (Fedora2/yumによるインストール）<br />
      ・AntiVir MailGate　<a href="http://www.hbedv.com/" target="_blank">	http://www.hbedv.com/</a><br />
  ・Courier-imap　 <a href="http://www.inter7.com/courierimap.html" target="_blank">http://www.inter7.com/courierimap.html </a><br />
  ・SMTP-Auth（Postfixの設定で実現）</p>
	<p>まずPostfixをyumコマンドを使ってインストールします。</p>
	<h6># yum install postfix</h6>
    	<p>インストールするか確認のメッセージがあるので ｙを押します。</p>
    	<p>次に/etc/postfix/main.cfを編集します。(
    	  編集箇所のみ記述してます)</p>
    	<h6># vi /etc/postfix/main.cf<br />
    	  <br />
    	  ↓下記からmain.cfの内容<br />
    	  #myhostname = virtual.domain.tld<br />
    	  myhostname = mail.papanda.jp　←　ホスト名.ドメイン名を指定<br />
    	  <br />
    	  #mydomain = domain.tld<br />
  mydomain = papnda.jp　←　追加(ドメイン名を指定) <br />
  <br />
  <span class="r">#</span>myorigin = $mydomain　←　コメント削除<br />
↓<br />
myorigin = $mydomain <br />
※発信元のアドレスの形式を定義。この場合はtest@papanda.jpとなります。<br />
<br />
<span class="r">#</span>inet_interfaces = all　←　コメント削除<br />
↓<br />
inet_interfaces = all<br />
<br />
inet_interfaces = localhost<br />
↓<br />
<span class="r">#</span>inet_interfaces = localhost　←　コメントアウト<br />
<br />
mydestination = $myhostname, localhost.$mydomain<br />
↓<br />
<span class="r">#</span>mydestination = $myhostname, localhost.$mydomain　←　コメントアウト<br />
<br />
<span class="r">#</span>mydestination = $myhostname, localhost.$mydomain $mydomain　←　コメント削除<br />
↓<br />
mydestination = $myhostname, localhost.$mydomain $mydomain<br />
※ローカルに配信するドメイン部分を指定します。上記の設定では、test@mail.papanda.jp / test@localhost.papanda.jp
/ test@papanda.jp宛てのメールアドレスを受け取ります。<br />
<span class="r"><br />
#</span>mynetworks_style = subnet　←　コメント削除<br />
↓<br />
mynetworks_style = subnet<br />
<br />
<span class="r">#</span>mynetworks = 168.100.189.0/28, 127.0.0.0/8<br />
mynetworks = 192.168.0.0/24, 127.0.0.0/8　←　追加<br />
※メール中継を許可するネットワークを設定します。上記の設定では192.168.0.0?192.168.0.255まで中継許可をします。
<br />
<br />
<span class="r">#</span>relay_domains = $mydestination　←　コメント解除<br />
↓<br />
relay_domains = $mydestination<br />
※リレーを許可するドメインを指定します。<br />
<br />
<span class="r">#</span>home_mailbox = Maildir/　←　コメント解除<br />
↓<br />
home_mailbox = Maildir/<br />
※Maildir形式を指定します。<br />
<br />
smtpd_sasl_auth_enable = yes<br />
smtpd_sasl_local_domain = $myhostname<br />
broken_sasl_auth_clients = yes<br />
smtpd_recipient_restrictions = permit_mynetworks<br />
　　　　　　　　　　　　　　　　　　　　permit_sasl_authenticated<br />
　　　　　　　　　　　　　　　　　　　　reject_unauth_destination<br />
SMTP_AUTHの設定です。</h6>
	    <p>次にroot宛てのメールを指定する一般ユーザに転送する設定をします。sendmailのaliasファイルをコピーしてそのファイルを編集します。</p>
	    <h6>#cp /etc/aliases /etc/postfix/aliases　<br />
	#vi /etc/postfix/aliases<br />
	<br />
	root: user ←転送するユーザー<br />
	<br />
	# postalias /etc/postfix/aliases　←　転送先の設定を反映します。</h6>
	    <p>SMTP_AUTHの認証設定をおこないます。ここでは、システムアカウントを利用した認証の設定を行います。</p>
	    <h6># vi /usr/lib/sasl2/smtpd.conf　←　smtpd.confを編集します。<br />
	      <br />
        pwcheck_method: saslauthd<br />
        mech_list: plain login<br />
        <br />
        入力して保存します。</h6>
	    <p>認証は。/etc/shadowを認証データを使いますので、以下のようにsaslauthdを起動しておきます。
    </p><h6># saslauthd -a shadow</h6>
	<p>最後にPostfixの起動を行います。</p>
	<h6><p>/etc/rc.d/init.d/sendmail stop　← 起動しているsendmailを停止します。<br />
	  /usr/sbin/alternatives --config mta ←　MTAをPostfixに変更します。<br />
	  <br />
    /etc/rc.d/init.d/postfix start　←　Postfix起動	</p></h6>
	<p>以上でPostfixの設定は完了ですが、SMTP（送信）の設定だけでPOP３/IMAP4（受信）の設定は出来ていません。<br />
	  次ページでは POP３/IMAP4（受信）の設定を行います。 </p> ]]></description>
            <link>http://blog1.papanda.jp/2004/06/postfix-1.html</link>
            <guid>http://blog1.papanda.jp/2004/06/postfix-1.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">postfix</category>
            
            
            <pubDate>Sat, 12 Jun 2004 00:00:00 +0900</pubDate>
        </item>
        
        <item>
            <title>Postfixでセキュアなメールサーバ環境の構築 【その2】</title>
            <description><![CDATA[<h3> Courier-imapでPOP３/IMAP4の設定。</h3>
	<p>IMAP4とPOP3として「Courier-imap」インストールします。<br />
  今回はシステム上のユーザをメールアカウントとして、認証には/etc/passwdのみを使う形でのインストール方法を選択しました。<br />
      <br />
      ダウンロードは下記HPから行います。<br />
      ・Courier-imap　 <a href="http://www.inter7.com/courierimap.html" target="_blank">http://www.inter7.com/courierimap.html </a></p>
	<p>解凍したのち、以下のコマンドを一般ユーザで実行してください。rootユーザで実行するとエラーが起こります。
	</p><h6>$ ./configure --without-authmysql --without-authldap<br />
	  $ make<br />
	  $ make check <br />
	  ※RedHatやFedora Coreでエラーが出る場合は --whith-redhatをつけるとうまくいく場合があります。</h6>
	<p>次に以下のコマンドをrootユーザで作業します。
	</p>
	<h6># make install<br />
	  # make install-configure</h6>
	<p>これでインストールは完了しました。/usr/lib/courier-imap/libexec/に設定ファイルが/usr/local/libexec/に実行スクリプトファイルがインストールされています。</p>
	<h6>IMAP4/POP3起動してみましょう。<br />
  IMAP起動には<br />
  # 
  /usr/lib/courier-imap/libexec/imapd.rc start	<br />
  POP3起動には<br />
  # 
  /usr/lib/courier-imap/libexec/pop3d.rc start<br />
  をそれぞれ実行します。<br />
  停止をする場合はstopを指定します。</h6>
	<p>システムを再起動のさいにいちいちコマンドで起動するのはめんどくさいので自動起動の設定をします。<br />
標準添付の起動スクリプトを/etc/rc.d の下にコピーします。 </p>
	<h6># cp /usr/lib/courier-imap/libexec/imapd.rc /etc/rc.d/rc.imapd<br />
  # cp /usr/lib/courier-imap/libexec/pop3d.rc /etc/rc.d/rc.pop3d</h6>
	<p>/etc/rc.d/rc.localに以下を追加します。</p>
	<h6>	  #IMAP4 Stat if [ -x /etc/rc.d/rc.imapd ]; then<br />
	  echo -n "Starting IMAP/pop3 server."<br />
	  /etc/rc.d/rc.imapd start<br />
  /etc/rc.d/rc.pop3d start</h6>
	<p>各ユーザのホームディレクトリにMaildirを作成します。</p>
	<h6>#su - user　←　一般ユーザーに切り替え<br />
	  $ cd ~<br />
$ /usr/lib/courier-imap/bin/maildirmake Maildir </h6>
	<p>新規ユーザ作成時に、自動的にユーザホームディレクトリにMaildirが作られるように、root で「/etc/skel」にも作成しておきます。</p>
	<h6># /usr/lib/courier-imap/bin/maildirmake /etc/skel/Maildir </h6>
	<p>fiOutlookExpress等のIMAPサーバー対応のメーラーで動作確認して完了です。</p> ]]></description>
            <link>http://blog1.papanda.jp/2004/06/postfix-2.html</link>
            <guid>http://blog1.papanda.jp/2004/06/postfix-2.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">postfix</category>
            
            
            <pubDate>Sat, 12 Jun 2004 00:00:00 +0900</pubDate>
        </item>
        
        <item>
            <title>W32.HLLW.Gaobot.genへのログ対策...</title>
            <description><![CDATA[<h3>SEARCH	/\x90\x02\xb1...のログ</h3>
	<p>3月中旬ごろからApacheのログに大量の「SEARCH /\x90\x02\xb1\x02\xb1\x02\xb1\x02\xb1\」が見られるようになったが、これはウィルス「W32.HLLW.Gaobot.gen」で
                                                                     
	   IIS5.0/WebDav の脆弱性を狙ったものらしい。<br />
幸いうちの自鯖には影響がないが問題は大量のログで1アタックにつき30KB前後とかなり多い、設定では1週間にログをローテーションして４世代目以降は
削除しているので/varがあふれることはまずないが、アクセス集計であんまり好ましくないと思い、対象のログを削除する設定にしてみた。</p>
	<h3>httpd.confの編集</h3>
	<p>SEARCH /\x90\x02\xb1\x02\xb1\x02\xb1\x02\xb1\のHTTPのステータスコードは414なのでこれ以外はログを記録する設定とした。<br />
httpd.confのLogFormatを編集する。 </p>
	<h6>
	LogFormat "%h %l %u %t \"%<span class="y_txt">!414</span>r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined<br />
	<br />
	黄色い部分を追加
  </h6>
	<p>ちなみに、ステータスコード414はHTTP_REQUEST_URI_TOO_LARGE（クエストURIが長いため拒否をした）です。</p>
	<p>httpd.confを編集した後はサーバのリセットをお忘れなく。</p>

<!-- 広告領域 --><!-- <div id="sub">広告領域広告領域広告領域広告領域広告領域広告領域</div><p> -->

<!-- 広告領域  End -->
 ]]></description>
            <link>http://blog1.papanda.jp/2004/04/w32hllwgaobotgen.html</link>
            <guid>http://blog1.papanda.jp/2004/04/w32hllwgaobotgen.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Apache</category>
            
            
            <pubDate>Thu, 15 Apr 2004 00:00:00 +0900</pubDate>
        </item>
        
        <item>
            <title>rewriteモジュールを使ってProxy経由からのアクセス制限をする</title>
            <description><![CDATA[<h3>httpd.confを編集する。</h3>
	<p>Apacheでproxy経由からアクセスを制限したいときはrewriteを使います。ただし、すべてのProxyサーバが対象となるわけではないので
	１つの選択肢として使いましょう。</p>
	<p>rewrite機能を有効にするにはrewriteモジュールが必要になる。ない場合は再インストールをして組み込みます。</p>
	<p>&lt;VirtualHost&gt;?&lt;/VirtualHost&gt;間に下記内容を記述します。</p>
	<h6>
	RewriteEngine on <span class="g_txt">&lt;- rewriteを有効にする。</span><br />
    RewriteCond %{HTTP:Via}       . [OR] <span class="g_txt">&lt;- 条件が複数の場合は[OR]を後ろに記述する。</span><br />
    RewriteCond %{HTTP:Forwarded} . <span class="g_txt">&lt;- 条件となるHTTPヘッダを記述する。</span><br />
    RewriteRule ^/(.*)  http://err.kuma-neko.jp/ [L,R] <span class="g_txt">&lt;- 上記条件の場合、表示させるHPアドレス</span><br />
  </h6>
	<p>特定のIPアドレスからのアクセスをご遠慮したい場合は下記のように記述する。またHTTPヘッダーを変えることで
	ブラウザの種類やリンク元のURLを判断して別のHPを見せるということもできる。</p>
	<h6>
	RewriteCond %{Remote_Addr} ^218\.145\.25\.48</h6> ]]></description>
            <link>http://blog1.papanda.jp/2004/02/rewriteproxy.html</link>
            <guid>http://blog1.papanda.jp/2004/02/rewriteproxy.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Apache</category>
            
            
            <pubDate>Mon, 23 Feb 2004 00:00:00 +0900</pubDate>
        </item>
        
        <item>
            <title>ffmpegでストリーミングサーバを構築してライブカメラを楽しもう。</title>
            <description><![CDATA[ USBカメラとffmepgを使って簡単お手軽、ライブストリーミングサーバを作ってみよう。
まず、USBカメラを認識させるのですが、ここでは割愛させていただきます。
今回はドライバーを新たに入れず認識できる「ELECOM　UCAM-C1C30SV」を選びました。
内蔵されているチップが「OV510」というものなので、これなら大体のLinuxなら認識するのではないでしょうか？
【2007年1月更新：swf形式を追加】
【2008年4月更新：SVN形式のダウンロードとコンパイル方法・UVC対応USBカメラetc...】
ffmpegのインストール方法

ffmepgのソースをhttp://ffmpeg.sourceforge.net/から入手します。執筆時点ではver 0.4.8です。

まずはソースの展開とインストールです。展開は適当な場所で行ってください。
# tar zxfv ffmpeg-0.4.8.tar.gz
# cd ffmpeg-0.4.8
# ./configure
# make
# make install

【追記】かなり前からSVNでのダウンロードになったようです。
#svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
# cd ffmpeg
# ./configure
# make
# make install
オプション-r 【リビジョンコード】を指定することにより該当のリビジョンをダウンロードできます。
#svn checkout -r 9133 svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg

インストールが終わると/usr/local/bin に ffmpeg, ffplay, ffserver がコピーされます。

ffmpeg-0.4.7/doc に ffserver.conf の雛形があるので、それを/usr/local/etc/ffserver.conf へコピーして編集します。
#cp ffserver.conf /usr/local/etc/ffserver.conf
#vi /usr/local/etc/ffserver.conf

ffserver.confの設定内容です。設定に必要な部分だけを引用してあります。
下記の設定では、WindowsMediaPlayerとRealPlayer、JPEG形式を出力するように設定してあります。
音声は省いております。

# port from your standard http web server if it is running on the same
# computer.
Port 8070 ←ffmpegを利用するポート番号 

# Address on which the server is bound. Only useful if you have
# several network interfaces.
BindAddress 0.0.0.0　←確信がないので説明省きます。デフォルトでOK

# Number of simultaneous requests that can be handled. Since FFServer
# is very fast, this limit is determined mainly by your Internet
# connection speed.
MaxClients 10　←クライアントの最大接続台数

# This the maximum amount of kbit/sec that you are prepared to
# consume when streaming to clients
MaxBandwidth 1000　←毎秒あたりの最大転送ビット

# Access Log file (uses standard Apache log file format)
# '-' is the standard output
CustomLog /usr/local/apache2/logs/livecam_log　
↑ファイル名を指定するとアクセスログが取れます

# Suppress that if you want to launch ffserver as a daemon
NoDaemon
↑デーモンで起動しないのでNoDaemon

######################################################
# Definition of the live feeds. Each live feed contains one video
# and/or audio sequence coming from an ffmpeg encoder or another
# ffserver. This sequence may be encoded simultaneously with several
# codecs at several resolutions.

↓一時ファイルの設定　特にいじる必要なし
<Feed feed1.ffm>

# You must use 'ffmpeg' to send a live feed to ffserver. In this
# example, you can type:
#
# ffmpeg http://localhost:8090/feed1.ffm

# ffserver can also do time shifting. It means that it can stream any
# previously recorded live stream. The request should contain:
# "http://xxxx?date=[YYYY-MM-DDT][[HH:]MM:]SS[.m...]".You must specify
# a path where the feed is stored on disk. You also specify the
# maximum size of the feed (100M bytes here). Default:
# File=/tmp/feed_name.ffm FileMaxSize=5M
File /tmp/feed1.ffm
FileMaxSize 1024K

# Specify launch in order to start ffmpeg automatically
# Launch

# Only allow connections from localhost to the feed
ACL allow 127.0.0.1

</Feed>

#######################################################
# Example streams

JPEGファイルの設定
# Single JPEG

<Stream smp.jpg>
Feed feed1.ffm
Format jpeg
VideoFrameRate 2
VideoIntraOnly
VideoSize 320x240
NoAudio
< /Stream>

WindowsMediaPlayer形式の設定（300kbit）
# ASF compatible

<Stream smp.asf>
Feed feed1.ffm
Format asf
VideoFrameRate 15
VideoSize 320x240
VideoBitRate 300
VideoGopSize 50
NoAudio
StartSendOnKey
NoAudio
Author "KumaNeko"
Copyright "Kuma-neko ko-bo-"
Title "Kawanutsu Live"
Comment "Live Camera"

</Stream>

######################################

# Real with audio and video at 64 kbits

RealPlayer形式の設定 (128kbit)
<Stream smp.rm>
Feed feed1.ffm
Format rm
#AudioBitRate 32
VideoBitRate 128
VideoFrameRate 15
VideoGopSize 25
VideoSize 320x240
NoAudio
< /Stream>

#######################################

Flashの設定　※FlashPlayer8までは正常に動作を確認

<Stream test.swf>
Feed feed1.ffm
Format swf
VideoFrameRate 8
VideoSize 320x240
VideoBitRate 160
VideoIntraOnly
NoAudio
</Stream>

#######################################

# Special streams

# Server status

ffmepgの動作ステータス設定
この場合 http://[servername]:8090/stat.html/でストーリミングステータスが表示される
<Stream stat.html>
Format status

# Only allow local people to get to the status
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
#ACL deny
#FaviconURL http://pond1.gladstonefamily.net:8080/favicon.ico
< /Stream>


# Redirect index.html to the appropriate site

<Redirect index.html>
URL http://ffmpeg.sourceforge.net/
< /Redire>

ffmpegを実行してみましょう。
/usr/local/bin/ffserver -f /usr/local/etc/ffserver.conf &
/usr/local/bin/ffmpeg -s 320x240 -vd /dev/video0 http:localhost:8070/feed1.ffm
※ffserverはバックグラウンドで動作させます。
【追記】最近は上記では起動できなくなりました。 -vdオプションが使えません。
/usr/local/bin/ffmpeg -f video4linux2 -s 320x240 -i /dev/video0 /tmp/test.ffm
-f オプションはrawvideo video4linux video4linux2の3つになるのかな?

メディアプレイヤーで動作確認をしてみましょう。
メディアプレイやーの<ファイル> - <URLを開く>で http://www.kuma-neko.jp:8070/test.asfを入力しOKボタンを押しましょう。映像が見れたらOKです。

以上でLinuxでの設定は完了となります。
ffmpegを使った当HPです。【http://papanda.jp/livecam/】
【追記：おまけ】
LinuxでもUVC対応USBカメラが使えるようになりました。
#svn checkout svn://svn.berlios.de/linux-uvc/linux-uvc/trunk
#cd trunk
#make
#make install
以上でUVCドライバがインストールされます。
下記、UVC対応ＵＳＢカメラを買い接続をしたところ認識されることを確認しました。
ELECOM UCAM-DLM130HWH　マニュアルフォーカス
シグマ　UVCA130AFWH オートフォーカス
シグマのUSBカメラですがオートフォーカス機能もバッチリ動作します。

次に出力されるストリーミングファイルをホームページで見れるようにメタファイルを作成してみましょう]]></description>
            <link>http://blog1.papanda.jp/2003/12/ffmpeg.html</link>
            <guid>http://blog1.papanda.jp/2003/12/ffmpeg.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">ffmpeg</category>
            
            
            <pubDate>Mon, 01 Dec 2003 00:00:00 +0900</pubDate>
        </item>
        
        <item>
            <title>ストリーミングファイルのメタファイルを作成してみよう</title>
            <description><![CDATA[<p>WMPやRealPlayerなどのストリーミングファイルをホームページで見れるようにメタファイルを作成してみましょう。</p>
	<h3>WindowsMediaPlayerのメタファイル作成</h3>
    <p> テキストエディターを使ってexsmple.asx を作成する。</p>
	<h5>&lt;ASX version = "3.0"&gt;<br />
	&lt; Entry&gt;<br />
	&lt; Ref href="http://servername:<span class="g_txt">8070</span>/<span class="b_txt">smp.asf</span>" /&gt; <span class="y_txt">&lt;--対象となるｽﾄﾘｰﾐﾝｸﾞファイル名</span><br />
	&lt; /Entry&gt;<br />
	&lt; /ASX&gt;</h5>
	<p>メディアプレイヤーの下にバナー広告を出してみよう。</p>
	<h5>&lt;ASX version = "3.0"&gt;<br />
	  &lt;
	  BANNER HREF="http://papanda.jp/live_cam/images/kawamutu_banner.jpg"&gt;<br />
      &lt;ABSTRACT&gt;Click here to go to our Web site.&lt;/ABSTRACT&gt; <br />
      &lt;MOREINFO HREF="http://papanda.jp/live_cam/index.html" /&gt;<br />
      &lt;/BANNER&gt;<br />
      &lt;Entry&gt;<br />
	  &lt;Ref href="http://www.kuma-neko.jp:8090/test.asf" /&gt;<br />
      &lt;/Entry&gt;<br />
      &lt;/ASX&gt;</h5>
	  <p>タグの説明<br />&lt;
	  BANNER HREF="<span class="y_txt">http://表示するバナー広告の画像ファイル</span>"&gt;<br />
      &lt;ABSTRACT&gt;<span class="y_txt">画像をマウスオーバーしたときに表示される文字</span>&lt;/ABSTRACT&gt; <br />
      &lt;MOREINFO HREF="<span class="y_txt">http://リンク先URL</span>" /&gt;<br />
      &lt;/BANNER&gt;</p>
	<h3>RealPlayerのメタファイル作成</h3>  
    <p> テキストエディターを使ってexsmple.rpm を作成する。</p>
    <h5>http://servername:<font color="#009900">8070</font>/<font color="#0066ff">smp.rm</font></h5>
	<p>メタファイル名やサーバーネーム・色のついた部分は<a href="http://papanda.jp/computer/ffmpeg.shtml" target="_top">ffserver.conf</a>の設定と同じものにしてください。</p>    
    <p>表示させたいホームページのHTMLファイルに以下のタグを記述します。</p>    
    <p>WindowsMediaPlayer用<br />
      &lt;
      embed src="<font color="#ff0000">exsample.asx</font>" width="320" height="240" CONTROLS="ImageWindow" autoplay=true&gt;</p>
    <p>RealPlayer用<br />
      &lt;
      embed src="<font color="#ff0000">exsample.rpm</font>" width="320" height="240" CONSOLE="Clip1" CONTROLS="ImageWindow" AUTOSTART=true&gt;</p>
    <p>JPEG静止画用<br />
      &lt;
      img src="http://www.technoworks.co.jp:8090/test.jpg" width="320" height="240" border="0"&gt;</p>
    <p>JPEG静止画像はブラウザーの更新ボタンを押すことにより画像が変化します。<br />
      <font color="#ff0000">※</font>exsample.xxxの部分は先ほど作成したメタファイルの名前になります。</p> ]]></description>
            <link>http://blog1.papanda.jp/2003/06/post.html</link>
            <guid>http://blog1.papanda.jp/2003/06/post.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">windows</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">ストリーミング</category>
            
            
            <pubDate>Wed, 25 Jun 2003 00:00:00 +0900</pubDate>
        </item>
        
        <item>
            <title>Dreamweaver MXでSSH ポートフォワーディング</title>
            <description><![CDATA[<h4>Dreamweaver MXとputtyでセキュア通信をしてみよう。</h4>
	<p>通常Dreamweaver MXで作成した場合、ホームページデータをアップ方法としてはDreamweaver MXのサイトパネル機能かFFFTP・WSFTPなどでアップしている		人が多いと思います。<br />
	しかし、この場合ですとユーザー認証でユーザー/パスワードが平文で流れてしまいセキュリティー上よろしくありません。そこでSSH ポートフォワーディン		グというのを使いユーザー/パスワードを暗号化して認証できるようにしようという事です。</p>
	<h3>■必要なもの</h3>
	<ul><li>Dreamweaver MX:&nbsp;これを読む人は持っていると思いますが..</li><li>putty/ plink:&nbsp;SSHクライアントで使うならputty単体でも使用可能です。<br />
		<a href="http://www.chiark.greenend.org.uk/%7Esgtatham/putty/" target="_top">こちら</a>でダウンロードできます。</li><li>SSHのログインアカウント・パスワード:&nbsp;加入先のプロバイダ・ホスティング業者が許可しているのが条件です。</li></ul>
	<h3>■設定方法</h3>
	<p>ダウンロードした putty.exeと plink.exeを\Program Files\Macromedia\Dreamweaver MX\Configuration\sshに
	コピーします。（\sshフォルダーは作成してください）</p>
	<p> Dreamweaver MXの[サイト定義]-[リモート情報]を設定します。</p>
	
		アクセス：FTP<br />
		FTPホスト：プロバイダーのホスト名<br />
		ホストディレクトリ：プロバイダーから指定されたディレクトリー（例：public_html)<br />
		ログイン：FTPアカウント名<br />
		パスワード：FTPパスワード ]]></description>
            <link>http://blog1.papanda.jp/2003/06/dreamweaver-mxssh.html</link>
            <guid>http://blog1.papanda.jp/2003/06/dreamweaver-mxssh.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">windows</category>
            
            
            <pubDate>Wed, 25 Jun 2003 00:00:00 +0900</pubDate>
        </item>
        
    </channel>
</rss>
