<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>

<channel>
	<title>chibiegg日誌</title>
	<atom:link href="http://blog.chibiegg.net/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.chibiegg.net</link>
	<description>chibiegg’s Diary</description>
	<pubDate>Wed, 01 Jul 2009 13:05:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>いつの間に&#8230;</title>
		<link>http://blog.chibiegg.net/2009/07/01_20_356.htm</link>
		<comments>http://blog.chibiegg.net/2009/07/01_20_356.htm#comments</comments>
		<pubDate>Wed, 01 Jul 2009 11:45:14 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[日記]]></category>

		<category><![CDATA[写真]]></category>

		<category><![CDATA[ハチ]]></category>

		<category><![CDATA[Aperture]]></category>

		<category><![CDATA[嵐山]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=356</guid>
		<description><![CDATA[６月某日の玄関で、こんなものが陰に隠れていたフリスビーに。



すでに住人は引っ越し済み、よかった。アシナガバチかな？
ついでに春に友達と嵐山に出かけた時の写真を「整理しているとき」に何となく撮った写真。
保津川下りと [...]]]></description>
			<content:encoded><![CDATA[<p>６月某日の玄関で、こんなものが陰に隠れていたフリスビーに。<br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2009/07/2009-06-06__mg_2149.jpg"></a></p>
<p><a href="http://blog.chibiegg.net/wp-content/uploads/2009/07/2009-06-06__mg_2149.jpg"><br />
<img class="aligncenter size-medium wp-image-357" title="小さなハチの巣" src="http://blog.chibiegg.net/wp-content/uploads/2009/07/2009-06-06__mg_2149-300x199.jpg" alt="小さなハチの巣" width="300" height="199" /></a></p>
<p>すでに住人は引っ越し済み、よかった。アシナガバチかな？</p>
<p>ついでに春に友達と嵐山に出かけた時の写真を「整理しているとき」に何となく撮った写真。</p>
<div id="attachment_358" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.chibiegg.net/wp-content/uploads/2009/07/2009-07-01__mg_2242.jpg"><img class="size-medium wp-image-358" title="Aperture Window" src="http://blog.chibiegg.net/wp-content/uploads/2009/07/2009-07-01__mg_2242-300x199.jpg" alt="Aperture Window" width="300" height="199" /></a><p class="wp-caption-text">Aperture Window</p></div>
<p>保津川下りと嵯峨野観光線のトロッコ列車がかすかに写っています。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2009/07/01_20_356.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>iTunesの曲に自動でふりがな登録</title>
		<link>http://blog.chibiegg.net/2009/06/29_20_337.htm</link>
		<comments>http://blog.chibiegg.net/2009/06/29_20_337.htm#comments</comments>
		<pubDate>Mon, 29 Jun 2009 11:54:59 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[Mac]]></category>

		<category><![CDATA[AppleScript]]></category>

		<category><![CDATA[iTunes]]></category>

		<category><![CDATA[MeCab]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=337</guid>
		<description><![CDATA[iTunesは日本語の曲名等の並び替えを正しく行うためにふりがなを登録できるようになっています。が、何千曲とあるライブラリに手作業での登録は大変です。アーティスト名ならまだしも曲名となれば大変です。
massiva/lo [...]]]></description>
			<content:encoded><![CDATA[<p>iTunesは日本語の曲名等の並び替えを正しく行うためにふりがなを登録できるようになっています。が、何千曲とあるライブラリに手作業での登録は大変です。アーティスト名ならまだしも曲名となれば大変です。</p>
<p><a href="http://massiva.exblog.jp/">massiva/logic&amp;mac tips</a>さんの<a href="http://massiva.exblog.jp/5669615">ソートiTunes!</a>という記事でAppleScriptとテキストエディタのGUIを用いてiTunesの曲のアーティスト名のふりがな(アーティストの並べ替え)フィールドを自動で埋めるというスクリプトが紹介されています。ところが、安定して動作させるには待機時間を長くしないといけないのでちょっと遅いのです、これは漢字からひらがな変換にGUIを使っているからなのですが。具体的にはMac全体の処理速度が一瞬低下した場合ふりがなへの変換が終わる前に次の曲に進んでしまったりします。</p>
<p>そこで、オープンソースの形態素解析エンジンMeCabを利用してふりがなを生成する方法に改造することによって高速かつ安定した動作を実現しました。が、人名はことえりのほうが正確かも&#8230;</p>
<p>MeCabは前回の記事でインストール済みということで。</p>
<p>スクリプトエディタに以下のスクリプトを入力し、iTunesでふりがなを補完したい曲を選択した状態でスクリプトを実行するとふりがながまだ設定されていない曲のアーティスト名、曲名、アルバム名のふりがなが登録されていきます。</p>
<h4>スクリプト</h4>
<pre class="brush: python;">
--確認ダイアログ
display dialog &quot;ふりがなをふっていいですか&quot; buttons {&quot;NO&quot;, &quot;OK&quot;} default button 2
set button_a to button returned of result
if button_a = &quot;OK&quot; then

	--iTunesのスクリプト
	tell application &quot;iTunes&quot;
		try
			set name_list to {}
			set select_track to a reference to selection
			if select_track as list is {} then return
			repeat with i in select_track
				set end of name_list to i
			end repeat
			repeat with i in name_list
				--アーティスト
				set hurigana_text to sort artist of i
				if hurigana_text is &quot;&quot; then
					set original_text to artist of i
					set hurigana_text to my hurigana(original_text)
					set sort artist of i to hurigana_text
				end if

				--アルバム名
				set hurigana_text to sort album of i
				if hurigana_text is &quot;&quot; then
					set original_text to album of i
					set hurigana_text to my hurigana(original_text)
					set sort album of i to hurigana_text
				end if

				--曲名
				set hurigana_text to sort name of i
				if hurigana_text is &quot;&quot; then
					set original_text to name of i
					set hurigana_text to my hurigana(original_text)
					set sort name of i to hurigana_text
				end if

			end repeat
			display dialog &quot;完了&quot;
		on error
			display dialog &quot;エラー発生&quot; buttons {&quot;OK&quot;} default button 1
		end try
	end tell

end if

on hurigana(original_text)
	set mecab to &quot;echo &quot; &amp; quoted form of original_text &amp; &quot; | /usr/local/bin/mecab -Oyomi &quot;
	mecab as text
	do shell script mecab
	return katahira(result)
end hurigana

on katahira(original_text)
	set hiracase to &quot;あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをんぁぃぅぇぉがぎぐげござじずぜぞだぢづでどっぱぴぷぺぽばびぶべぼゃゅょ&quot;
	set katacase to &quot;アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲンァィゥェォガギグゲゴザジズゼゾダヂヅデドッパピプペポバビブベボャュョ&quot;

	set hiragana_text to characters of original_text
	repeat with char in hiragana_text
		set num to offset of char in katacase
		if num is not 0 then
			set contents of char to character num of hiracase
		end if
	end repeat

	return hiragana_text as text
end katahira
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2009/06/29_20_337.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>Mac OSX LeopardにMeCabをインストール</title>
		<link>http://blog.chibiegg.net/2009/06/28_23_340.htm</link>
		<comments>http://blog.chibiegg.net/2009/06/28_23_340.htm#comments</comments>
		<pubDate>Sun, 28 Jun 2009 14:42:35 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[Mac]]></category>

		<category><![CDATA[Leopard]]></category>

		<category><![CDATA[MeCab]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=340</guid>
		<description><![CDATA[MeCab(和布蕪)とは
公式ページのお言葉を借りると。
MeCabは 京都大学情報学研究科−日本電信電話株式会社コミュニケーション科学基礎研究所 共同研究ユニットプロジェクトを通じて開発されたオープンソース 形態素解析 [...]]]></description>
			<content:encoded><![CDATA[<h4>MeCab(和布蕪)とは</h4>
<p>公式ページのお言葉を借りると。</p>
<blockquote><p>MeCabは<a href="http://pine.kuee.kyoto-u.ac.jp/KU-NTT-WS-2005/"> 京都大学情報学研究科−日本電信電話株式会社コミュニケーション科学基礎研究所 共同研究ユニットプロジェクト</a>を通じて開発されたオープンソース 形態素解析エンジンです. 言語, 辞書,コーパスに依存しない汎用的な設計を 基本方針としています. パラメータの推定に Conditional Random Fields (<a href="http://www.cis.upenn.edu/~pereira/papers/crf.pdf">CRF</a>) を用 いており, <a href="http://chasen.naist.jp/">ChaSen</a>が採用している 隠れマルコフモデルに比べ性能が向上しています。また、平均的に <a href="http://chasen.naist.jp/">ChaSen</a>, <a href="http://www.kc.t.u-tokyo.ac.jp/nl-resource/juman.html">Juman</a>, <a href="http://kakasi.namazu.org/">KAKASI</a>より高速に動作します. ちなみに和布蕪(めかぶ)は, 作者の好物です.</p></blockquote>
<p>です。はい。今回は自動でiTunesのふりがなを補完したいためにインストールしました。</p>
<h4>MeCab本体のインストール</h4>
<p>公式サイトからソースをダウンロードしてきます。今回は「mecab-0.98pre3.tar.gz」を利用しました。</p>
<p>解凍したらターミナルを起動し、cdコマンドで解凍したフォルダに移動します。</p>
<p>で、あとは普通にconfigure、make、そしてsudo make install。</p>
<p><code><br />
$ cd ~/Download/mecab-0.98pre3<br />
$ ./configure<br />
$ make<br />
$ sudo make install<br />
</code></p>
<p>そうすると、mecabというコマンドが使えるようになるはずです。まだ辞書が登録されていないので形態素解析はできませんが、バージョンを確認してみましょう。</p>
<p><code><br />
$ mecab --version<br />
mecab of 0.98pre3<br />
</code></p>
<p>正しくインストールできてそうです。</p>
<h4>辞書のインストール</h4>
<p>次に辞書をインストールします。公式サイトで推奨とされているIPA 辞書をインストールしてみます。「mecab-ipadic-2.7.0-20070801.tar.gz」を今回は利用しました。本体と同じく解凍してターミナルからcdコマンドで解凍したディレクトリに移動します。<br />
本体と同じくconfigure、makeなのですが、文字コードをUTF8にしたいのでconfigureにオプションを付けます。installはいりません。</p>
<p><code><br />
$ ./configure --with-charset=utf8<br />
$ make<br />
</code></p>
<h4>試してみる</h4>
<p>インストールできたので形態素解析を試してみます。</p>
<h5>形態素解析</h5>
<p><code>$ mecab<br />
すもももももももものうち　　　　//解析したい文を入力してEnter<br />
すもも	名詞,一般,*,*,*,*,すもも,スモモ,スモモ<br />
も	助詞,係助詞,*,*,*,*,も,モ,モ<br />
もも	名詞,一般,*,*,*,*,もも,モモ,モモ<br />
も	助詞,係助詞,*,*,*,*,も,モ,モ<br />
もも	名詞,一般,*,*,*,*,もも,モモ,モモ<br />
の	助詞,連体化,*,*,*,*,の,ノ,ノ<br />
うち	名詞,非自立,副詞可能,*,*,*,うち,ウチ,ウチ<br />
EOS</code></p>
<h5>よみがな</h5>
<p><code>$mecab  -Oyomi<br />
日本語は難しい。　　　　//解析したい文を入力してEnter<br />
ニホンゴハムズカシイ。</code></p>
<p>できてます。</p>
<p>コマンドラインで一気に解析する場合は例えば次のようにすればできます。シェルスクリプト等で結果を利用するのに便利かも。</p>
<p><code>$ echo "引数で文は渡せないのでパイプで渡す" | mecab  -Oyomi</code></p>
<p>MeCabの利用法等は他のサイト等でいろいろ紹介されていますのでそちらを参考にしてください。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2009/06/28_23_340.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>Safari4のおかげ？</title>
		<link>http://blog.chibiegg.net/2009/06/27_18_331.htm</link>
		<comments>http://blog.chibiegg.net/2009/06/27_18_331.htm#comments</comments>
		<pubDate>Sat, 27 Jun 2009 09:38:24 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[日記]]></category>

		<category><![CDATA[Safari]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=331</guid>
		<description><![CDATA[今月は急激にアクセス数が増加しています。
今月のグラフがすごいことに&#8230;
９日から急激に増えているのがわかると思います。
ページ別のアクセス数を確認すると、Leopard発売時の「Leopardの「SIMBL」 [...]]]></description>
			<content:encoded><![CDATA[<p>今月は急激にアクセス数が増加しています。<br />
今月のグラフがすごいことに&#8230;</p>
<div id="attachment_332" class="wp-caption aligncenter" style="width: 243px"><a href="http://blog.chibiegg.net/wp-content/uploads/2009/06/access_2009_6.jpg"><img class="size-medium wp-image-332" title="2009年6月の日別アクセス数(26日時点)" src="http://blog.chibiegg.net/wp-content/uploads/2009/06/access_2009_6-233x300.jpg" alt="2009年6月の日別アクセス数(26日時点)" width="233" height="300" /></a><p class="wp-caption-text">2009年6月の日別アクセス数(26日時点)</p></div>
<p>９日から急激に増えているのがわかると思います。<br />
ページ別のアクセス数を確認すると、Leopard発売時の「<a href="http://blog.chibiegg.net/2007/11/18_16_66.htm">Leopardの「SIMBL」「SafariStand」</a>」という記事のアクセス数が急増していました。</p>
<div id="attachment_333" class="wp-caption aligncenter" style="width: 227px"><a href="http://blog.chibiegg.net/wp-content/uploads/2009/06/access_2009_6_safarisimbl.jpg"><img class="size-medium wp-image-333" title="特定記事のアクセス解析" src="http://blog.chibiegg.net/wp-content/uploads/2009/06/access_2009_6_safarisimbl-217x300.jpg" alt="特定記事のアクセス解析" width="217" height="300" /></a><p class="wp-caption-text">特定記事のアクセス解析</p></div>
<p>Safari4非対応のSafariStandがインストールされていると正しく動作しない場合があるようです。以前の記事にも追記しましたが新しいSafariStandのプラグインファイルを過去のプラグインと交換するだけで動作します。SIMBLには一切触れませんでした。</p>
<p>この小さなサイトだけで断言はできませんが、Safari4は多くの方が利用しているのだなぁと、おかげでもうすぐユニークアクセス数(訪問した人数、延べではない)が後少しで30000人に届きそう。</p>
<p>で、なんでみなさん「SafariStand アンインストール」で検索して来られるのでしょうか。アップデートすれば問題ありませんから、便利なのでアンインストールしないでくださいね〜</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2009/06/27_18_331.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>暑い！</title>
		<link>http://blog.chibiegg.net/2009/06/24_17_312.htm</link>
		<comments>http://blog.chibiegg.net/2009/06/24_17_312.htm#comments</comments>
		<pubDate>Wed, 24 Jun 2009 08:16:56 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[日記]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=312</guid>
		<description><![CDATA[サーバーもMacに変えた時にサーバーの設置場所をリビングから自室にしたのですが、サーバールームになったとたん暑いのなんのって&#8230;一昔前に放送されてたIBMのCMが事実であることを実感します。このCMなんですが&#038; [...]]]></description>
			<content:encoded><![CDATA[<p>サーバーもMacに変えた時にサーバーの設置場所をリビングから自室にしたのですが、サーバールームになったとたん暑いのなんのって&#8230;一昔前に放送されてたIBMのCMが事実であることを実感します。このCMなんですが&#8230;<br />
冬は寒くなくていいなぁと思ってたんですが。<br />
<script src="http://www.chibiegg.net/video/swfobject.js" type="text/javascript"></script></p>
<div id="ibmcmnetsu">読み込み中&#8230;</div>
<p><script type="text/javascript">// < ![CDATA[
  var vibmcmnetsu = new SWFObject('http://www.chibiegg.net/video/player-viral.swf','ply','384','288','9','#ffffff');
  vibmcmnetsu.addParam('allowfullscreen','true');
  vibmcmnetsu.addParam('allowscriptaccess','always');
  vibmcmnetsu.addParam('wmode','opaque');
  vibmcmnetsu.addParam('flashvars','file=http://blog.chibiegg.net/wp-content/uploads/2009/06/blade_netsu.mp4&#038;image=http://blog.chibiegg.net/wp-content/uploads/2009/06/blade_netsu.jpg&#038;controlbar=over&#038;duration=30&#038;fullscreen=true&#038;stretching=fill');
  vibmcmnetsu.write('ibmcmnetsu');
// ]]&gt;</script></p>
<p>それにしてもMacProは放熱対策はばっちりみたいなので、内部の温度は室温と大差ないのがすごい。以前つかってたサーバー機(普通の自作機)が熱で痛んだ理由がよくわかります。</p>
<p>まぁそのサーバー機は現在唯一のWindows機で開発用につかっているのですが、サーバーとして使えるほどは安定してません。</p>
<p>で、問題はこれから夏本番に入っていくのにどうするのか！</p>
<p>定期的にエアコンを自動操作するリモコンをつくるかな&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2009/06/24_17_312.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>基板到着</title>
		<link>http://blog.chibiegg.net/2009/06/05_19_307.htm</link>
		<comments>http://blog.chibiegg.net/2009/06/05_19_307.htm#comments</comments>
		<pubDate>Fri, 05 Jun 2009 10:23:56 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[日記]]></category>

		<category><![CDATA[電子工作]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=307</guid>
		<description><![CDATA[２週間ちょっと前にOLIMEXに発注した基板が到着しました。
OLIMEXを利用するようになってからもう何年か立ちますが、こんなに頼んだのは初めてです。
3パックに包まれてやってきました。

開封し、種類別に分けるとこん [...]]]></description>
			<content:encoded><![CDATA[<p>２週間ちょっと前にOLIMEXに発注した基板が到着しました。<br />
OLIMEXを利用するようになってからもう何年か立ちますが、こんなに頼んだのは初めてです。</p>
<p>3パックに包まれてやってきました。<br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2009/06/pcb_1.jpg"><img class="aligncenter size-medium wp-image-308" title="pcb_1" src="http://blog.chibiegg.net/wp-content/uploads/2009/06/pcb_1-300x147.jpg" alt="pcb_1" width="300" height="147" /></a></p>
<p>開封し、種類別に分けるとこんな感じ。<br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2009/06/pcb_2.jpg"><img class="aligncenter size-medium wp-image-309" title="pcb_2" src="http://blog.chibiegg.net/wp-content/uploads/2009/06/pcb_2-300x171.jpg" alt="pcb_2" width="300" height="171" /></a></p>
<p> </p>
<p>中身は</p>
<p>DCC関係</p>
<ul>
<li>シグナルデコーダ</li>
<li>ポイントデコーダ</li>
<li>赤外線トランスポンダ受信ボード</li>
<li>ファンクションデコーダ</li>
<li>モーター車用デコーダ</li>
<li>LocoUSB rev.2</li>
</ul>
<p>その他</p>
<ul>
<li>XBee USB変換基板</li>
<li>microSD変換基板</li>
<li>JTAGデバッガ</li>
<li>I2C接続モータードライバ</li>
</ul>
<p> </p>
<p>他には後輩が発注したものです。</p>
<p>製作結果は研究ノートに掲載予定です。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2009/06/05_19_307.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>仕入れ 2009年5月29日</title>
		<link>http://blog.chibiegg.net/2009/05/29_23_299.htm</link>
		<comments>http://blog.chibiegg.net/2009/05/29_23_299.htm#comments</comments>
		<pubDate>Fri, 29 May 2009 14:01:08 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[日記]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=299</guid>
		<description><![CDATA[先日発注しておいた部品が到着しました。
 
今回の目玉は、次の５つです。
 

表面実装ブリッジダイオード　左端
AVR ATmega164 DIPとTQFP 左から二番目
AVR ATtiny84 QFP 右から３番目 [...]]]></description>
			<content:encoded><![CDATA[<p>先日発注しておいた部品が到着しました。</p>
<p> </p>
<div id="attachment_300" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.chibiegg.net/wp-content/uploads/2009/05/part1.jpg"><img class="size-medium wp-image-300" title="仕入れ1" src="http://blog.chibiegg.net/wp-content/uploads/2009/05/part1-300x185.jpg" alt="仕入れ1" width="300" height="185" /></a><p class="wp-caption-text">仕入れ</p></div>
<p>今回の目玉は、次の５つです。</p>
<p> </p>
<div id="attachment_301" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.chibiegg.net/wp-content/uploads/2009/05/smds.jpg"><img class="size-medium wp-image-301" title="仕入れメイン" src="http://blog.chibiegg.net/wp-content/uploads/2009/05/smds-300x271.jpg" alt="仕入れメイン" width="300" height="271" /></a><p class="wp-caption-text">仕入れメイン</p></div>
<ul>
<li>表面実装ブリッジダイオード　左端</li>
<li>AVR ATmega164 DIPとTQFP 左から二番目</li>
<li>AVR ATtiny84 QFP 右から３番目のリール</li>
<li>表面実装赤外線受光モジュール(38kHz)　右から二番目</li>
<li>表面実装赤外線LED　一番右</li>
</ul>
<p>QFPハンダ付けできるかな(笑)<br />
あと、表面実装赤外線受光モジュールは良い収穫かな、レールの間にぴったり。</p>
<p>LocoUSB rev.2 は２個ほど頒布できそうです。<br />
 </p>
<p>あと、後輩の分</p>
<p><a href="http://blog.chibiegg.net/wp-content/uploads/2009/05/parts2.jpg"><img class="aligncenter size-medium wp-image-303" title="parts2" src="http://blog.chibiegg.net/wp-content/uploads/2009/05/parts2-300x200.jpg" alt="parts2" width="300" height="200" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2009/05/29_23_299.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>初めてのYouTubeへの投稿</title>
		<link>http://blog.chibiegg.net/2009/05/29_00_297.htm</link>
		<comments>http://blog.chibiegg.net/2009/05/29_00_297.htm#comments</comments>
		<pubDate>Thu, 28 May 2009 15:27:15 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[日記]]></category>

		<category><![CDATA[ビデオ]]></category>

		<category><![CDATA[iMovie]]></category>

		<category><![CDATA[Mac]]></category>

		<category><![CDATA[YouTube]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=297</guid>
		<description><![CDATA[せっかくビデオを作ったのでYouTubeにアップロードしてみました。
iMovieで制作したのでメニューから一発でYouTubeに投稿したためとっても手軽でした。
今回は説明なしということで&#8230;
ラッチ付きシフ [...]]]></description>
			<content:encoded><![CDATA[<p>せっかくビデオを作ったのでYouTubeにアップロードしてみました。</p>
<p>iMovieで制作したのでメニューから一発でYouTubeに投稿したためとっても手軽でした。</p>
<p>今回は説明なしということで&#8230;</p>
<p><a onclick="yt.EventManager.fireEvent('PlayVideos', ['P0D6AJoKJN8']); return false;" href="http://www.youtube.com/watch?v=P0D6AJoKJN8">ラッチ付きシフトレジスタ(74HC595)の実験</a></p>
<p><a onclick="yt.EventManager.fireEvent('PlayVideos', ['LFFLZLqryo4']); return false;" href="http://www.youtube.com/watch?v=LFFLZLqryo4">JMRIとPythonとセンサーで自動運転</a></p>
<p><a onclick="yt.EventManager.fireEvent('PlayVideos', ['1TuugSOp3vA']); return false;" href="http://www.youtube.com/watch?v=1TuugSOp3vA">ポイントデコーダの試作</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2009/05/29_00_297.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>ホームページ「chibiegg研究ノート」開設</title>
		<link>http://blog.chibiegg.net/2009/04/26_23_292.htm</link>
		<comments>http://blog.chibiegg.net/2009/04/26_23_292.htm#comments</comments>
		<pubDate>Sun, 26 Apr 2009 14:30:37 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=292</guid>
		<description><![CDATA[ブログだけで始めてきましたが、当初の予定でもあったホームページも開設しました。
chibiegg研究ノート:http://www.chibiegg.net/
ブログはほとんどメモのように記事を書いていますが、ホームページ [...]]]></description>
			<content:encoded><![CDATA[<p>ブログだけで始めてきましたが、当初の予定でもあったホームページも開設しました。</p>
<p>chibiegg研究ノート:<a href="http://www.chibiegg.net/">http://www.chibiegg.net/</a></p>
<p>ブログはほとんどメモのように記事を書いていますが、ホームページの方はもうちょっと纏まりのあるようにがんばります。</p>
<p>もちろんブログも続けていきますし、ノートにまとめるほどは進んでいない内容はブログに追加していきますのでどちらも見ていただけると喜ばしい限りです。</p>
<p> </p>
<p>ホームページとブログもつくったので、トップページ(http://chibiegg.net/)も作らないとだめですね。まだ双方の移動手段があまりよろしくない点も改善したいと思います。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2009/04/26_23_292.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>GCC4.3.3によるARMのクロスコンパイル</title>
		<link>http://blog.chibiegg.net/2009/04/09_12_288.htm</link>
		<comments>http://blog.chibiegg.net/2009/04/09_12_288.htm#comments</comments>
		<pubDate>Thu, 09 Apr 2009 03:53:24 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=288</guid>
		<description><![CDATA[前回の記事でGMPとMPFRライブラリはインストールできたので、ARMのGCCクロスコンパイラを導入します。
Interface2008年11月号を参考にしています。
コンパイルディレクトリはソースディレクトリと同一で行 [...]]]></description>
			<content:encoded><![CDATA[<p>前回の記事でGMPとMPFRライブラリはインストールできたので、ARMのGCCクロスコンパイラを導入します。<br />
Interface2008年11月号を参考にしています。<br />
コンパイルディレクトリはソースディレクトリと同一で行うと次のようなエラーがでます。<br />
<code>Makefile:144: ../.././gcc/libgcc.mvars: No such file or directory<br />
make[2]: *** No rule to make target `../.././gcc/libgcc.mvars&#8217;.  Stop.<br />
make[1]: *** [all-target-libgcc] Error 2<br />
make: *** [all] Error 2</code></p>
<p> </p>
<p><span id="more-288"></span></p>
<p>その点に注意して進めます。</p>
<p><code>$ tar jxvf gcc-4.3.3.tar.bz2<br />
$ cd gcc-4.3.3<br />
$ mkdir arm-elf<br />
$ cd arm-elf<br />
$ ../configure --prefix=/usr/local/arm-tools --target=arm-elf --with-gmp=/usr/local/gmp-4.2.4 --with-mpfr=/usr/local/mpfr-2.4.1 --enable-languages=c --disable-libssp<br />
$ make<br />
$ sudo make install</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2009/04/09_12_288.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>LeopardにMPFRとGMPのインストール</title>
		<link>http://blog.chibiegg.net/2009/04/09_11_285.htm</link>
		<comments>http://blog.chibiegg.net/2009/04/09_11_285.htm#comments</comments>
		<pubDate>Thu, 09 Apr 2009 02:17:04 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=285</guid>
		<description><![CDATA[OSX LeopardにARMクロスコンパイル環境の構築をしようと思い、GCCをインストールしようとしたのですが、MPFRとGMPをインストールするときにてこずったのでメモしておきます。
問題はCPUが64bitだったこ [...]]]></description>
			<content:encoded><![CDATA[<p>OSX LeopardにARMクロスコンパイル環境の構築をしようと思い、GCCをインストールしようとしたのですが、MPFRとGMPをインストールするときにてこずったのでメモしておきます。</p>
<p>問題はCPUが64bitだったことでした。<br />
GMPはオプションをつけずconfigureをかけると64bitモードでライブラリが生成されます。しかし、今のところMPFRは64bitに問題があるらしく両方を32bitにしなければいけません。そのときにつけるオプションが&#8221;ABI=32&#8243;でした。</p>
<p>このオプションをつけずにMPFRのcoufigureをすると、<br />
<code>checking for __gmpz_init in -lgmp... no<br />
configure: error: libgmp not found or uses a different ABI.<br />
Please read the INSTALL file -- see "In case of problem".</code><br />
とエラーが出てしまいます。<br />
<span id="more-285"></span><br />
以下の例ではprefixを指定していますが、指定しなくてもかまいません。</p>
<p><strong>GMPのインストール</strong><br />
<code>$ tar zxvf gmp-4.2.4.tar.gz<br />
$ cd ./gmp-4.2.4<br />
$ ./configure ABI=32 --prefix=/usr/local/gmp-4.2.4<br />
$ make<br />
$ make check<br />
$ sudo make install<br />
$ cd ../</code></p>
<p><strong>MPFRのインストール</strong><br />
<code>$ tar zxvf mpfr-2.3.2.tar.gz<br />
$ cd mpfr-2.3.2<br />
$ ./configure ABI=32 --prefix=/usr/local/mpfr-2.3.2 --with-gmp=/usr/local/gmp-4.2.4<br />
$ make<br />
$ make check<br />
$ sudo make install</code></p>
<p>GCC(arm-elf)のコンパイルは別の記事で。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2009/04/09_11_285.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>MacのMLB交換に伴うTime Machineの不都合</title>
		<link>http://blog.chibiegg.net/2009/04/08_22_273.htm</link>
		<comments>http://blog.chibiegg.net/2009/04/08_22_273.htm#comments</comments>
		<pubDate>Wed, 08 Apr 2009 13:10:39 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[Mac]]></category>

		<category><![CDATA[Time Machine]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=273</guid>
		<description><![CDATA[Mac本体の修理によってMLB(メインロジックボード。マザーボードとは言わないんですね。)を交換したり、新しいMacを買ってデータを丸ごと移行することによってMLBがかわった場合のTime Machineの挙動についてで [...]]]></description>
			<content:encoded><![CDATA[<p>Mac本体の修理によってMLB(メインロジックボード。マザーボードとは言わないんですね。)を交換したり、新しいMacを買ってデータを丸ごと移行することによってMLBがかわった場合のTime Machineの挙動についてです。</p>
<p>今回そのような状態になったのですが、いざバックアップの更新をしようとしても更新されませんでした。環境設定から確認すると「バックアップボリュームが見つかりません。」というエラーが確認できました。</p>
<p>再度Time Machineの設定を行えば違うバックアップを１から作成してくれそうだったのですが、それでは以前との整合がとれないのと容量の無駄遣いなのでどうにかならないかと調べてみました。以下は不都合が起きる原因と対策です。<br />
<span id="more-273"></span></p>
<p><strong>原因</strong><br />
Time Machineは各コンピュータのデータの区別を(たとえ１つしかバックアップが無かったとしても)Macアドレスで管理しているようです。なのでEthernetチップの載っているMLBが変更されると、バックアップボリュームにすでにあるデータは自分のではないと判断してしまうのだそうです。<br />
Macアドレスは、バックアップディレクトリの拡張属性と、バックアップボリュームのルートディレクトリに隠しファイルが存在します。例えばMyMacというMacアドレスが12:34:56:78:90:12のコンピュータのバックアップがBackupVolumeというボリュームに存在するなら。<br />
<code>/Volumes/BackupVolume/.123456789012</code><br />
というファイルが存在し、拡張属性は次のコマンドで確認できます。<br />
<code>$ xattr -p com.apple.backupd.BackupMachineAddress /Volumes/BackupVolume/Backups.backupdb/MyMac</code><br />
参考サイト：<a href="http://journal.mycom.co.jp/articles/2009/01/29/timemachine/001.html">Laopard標準バックアップツール「Time Machine」を使いこなす (2)</a></p>
<p><strong>対策</strong><br />
<a href="http://www.macosxhints.com/article.php?story=20080128003716101">10.5: Repair Time Machine after logic board changes</a><br />
このサイトの通り新しいMacアドレスに拡張属性を変更します。<br />
環境は上の例の通りとし、新しいMLBのMacアドレスをab:cd:ef:01:23:45とします。<br />
<code>$ sudo fsaclctl -p /Volumes/BackupVolume -d<br />
$ sudo mv /Volumes/BackupVolume/.123456789012 /Volumes/BackupVolume/.abcdef012345<br />
$ sudo xattr -w com.apple.backupd.BackupMachineAddress ab:cd:ef:01:23:45 /Volumes/BackupVolume/Backups.backupdb/MyMac<br />
$ sudo fsaclctl -p /Volumes/BackupVolume -e</code></p>
<p>この通り実行することによって今回は難なく以前の続きとしてバックアップがとれました。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2009/04/08_22_273.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>ImageMagicのインストール</title>
		<link>http://blog.chibiegg.net/2009/04/04_10_271.htm</link>
		<comments>http://blog.chibiegg.net/2009/04/04_10_271.htm#comments</comments>
		<pubDate>Sat, 04 Apr 2009 01:43:36 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[Mac]]></category>

		<category><![CDATA[サーバー管理]]></category>

		<category><![CDATA[OSX Server]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=271</guid>
		<description><![CDATA[MediaWikiでサムネイルを作成するためにImageMagic(convertコマンド)が必要だったのでインストールします。環境はOSX Server 10.5.6 x86(64bit)です。
ImageMagicの [...]]]></description>
			<content:encoded><![CDATA[<p>MediaWikiでサムネイルを作成するためにImageMagic(convertコマンド)が必要だったのでインストールします。環境はOSX Server 10.5.6 x86(64bit)です。</p>
<p>ImageMagicのページにはMacOSX用のバイナリも用意されているのですが、インストールの方法がまずかったのか利用できなかったのでソースからコンパイルします。</p>
<p>利用できなかった理由は<br />
<code>$ convert -list format</code><br />
で対応フォーマットが表示できるのですが、一つもありませんでした。</p>
<p>一つ前の記事でlibjpegとlibpngがインストールされていることが必要です。<br />
適当な場所にソースをダウンロードして解凍しておきます。この記事では「ImageMagick-6.5.1-0.tar.gz」を利用しました。i386でもいいのですが、せっかくコンパイルするので64bitにしてみます。</p>
<p>ではコンパイルしていきます。x86_64でなくi386であればconfigureのオプションは全て外してください。<br />
<code>$ cd ImageMagick-6.5.1-0<br />
$ CFLAGS="-arch x86_64" CCFLAGS="-arch x86_64" CXXFLAGS="-arch x86_64" LDFLAGS="-arch x86_64" ./configure<br />
$ make<br />
$ sudo make install</code><br />
これで終了です。<br />
<code>$ convert -list format</code><br />
を実行するとずらずらと対応フォーマット一覧が出てきたので成功です。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2009/04/04_10_271.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>OSX Server 10.5 (64bit)でPHP+GD</title>
		<link>http://blog.chibiegg.net/2009/04/03_21_263.htm</link>
		<comments>http://blog.chibiegg.net/2009/04/03_21_263.htm#comments</comments>
		<pubDate>Fri, 03 Apr 2009 12:16:42 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[Mac]]></category>

		<category><![CDATA[サーバー管理]]></category>

		<category><![CDATA[OSX Server]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=263</guid>
		<description><![CDATA[OSX Server 10.5を導入したのですが、PHPにGDが入ってないのでlibpng,libjpeg,libgdをコンパイルし、phpを再コンパイルします。
が、apacheが64bitで動いていたので少し難儀した [...]]]></description>
			<content:encoded><![CDATA[<p>OSX Server 10.5を導入したのですが、PHPにGDが入ってないのでlibpng,libjpeg,libgdをコンパイルし、phpを再コンパイルします。<br />
が、apacheが64bitで動いていたので少し難儀したのでメモを。</p>
<p>基本的には<a href="http://y2web.net/blog/computer/sysadmin/osxserver-php-gd-715/">こちら</a>のサイトに従うのですが、アーキテクチャーの指定は<a href="http://log.metatype.jp/?cat=10">こちら</a>のサイトを参考に進めていきます。<br />
ただし、失敗しても良いように既存の「/usr/libexec/apache2/libphp5.so」はバックアップしておいてください。<br />
<span id="more-263"></span><br />
ソースの準備<br />
PHP 5.2.6(既にインストールされているものと同一)<br />
gd 2.0.35<br />
libpng 1.2.35<br />
jpeg-6b<br />
以上を~/srcにでもダウンロードし、全て解凍しておきます。</p>
<p><strong>まずはlibpngのコンパイル</strong><br />
<code>$ cd libpng-1.2.35<br />
$ CFLAGS="-arch x86_64" CCFLAGS="-arch x86_64" CXXFLAGS="-arch x86_64" LDFLAGS="-arch x86_64" ./configure<br />
$ make<br />
$ sudo make install</code></p>
<p><strong>次にlibjpegのコンパイル</strong><br />
<code>$ cd ../gd-2.0.35<br />
$ CFLAGS="-arch x86_64" ./configure<br />
$ cp libtool ../jpeg-6b/.<br />
$ cd ../jpeg-6b<br />
$ MACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp" CCFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe" CXXFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe" LDFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -bind_at_load" ./configure --enable-shared<br />
$ make<br />
$ sudo make install</code></p>
<p><strong>次にlibgdのコンパイル</strong><br />
<code>$ cd ../gd-2.0.35<br />
$ sudo ln -s /usr/X11R6/include/fontconfig /usr/local/include<br />
$ MACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp" CCFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe" CXXFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe" LDFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -bind_at_load" ./configure --with-zlib-dir=/usr --with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/X11R6 --with-freetype-dir=/usr/X11R6 --with-xpm-dir=/usr/X11R6<br />
$ make<br />
$ sudo make install</code></p>
<p><strong>最後にPHPのコンパイル</strong><br />
<code>$ cd ../php-5.2.6<br />
$ MACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS="-arch x86_64 -g -Os -pipe -no-cpp-precomp" CCFLAGS="-arch x86_64 -g -Os -pipe" CXXFLAGS="-arch x86_64 -g -Os -pipe" LDFLAGS="-arch x86_64 -bind_at_load" ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --with-apxs2=/usr/sbin/apxs --with-ldap=/usr --with-kerberos=/usr --enable-cli --with-zlib-dir=/usr --enable-trans-sid --with-xml --enable-exif --enable-ftp --enable-mbstring --enable-mbregex --enable-dbx --enable-sockets --with-iodbc=/usr --with-curl=/usr --with-config-file-path=/etc --sysconfdir=/private/etc --with-mysql-sock=/var/mysql --with-mysqli=/usr/bin/mysql_config --with-mysql=/usr --with-openssl --with-xmlrpc --with-xsl=/usr --without-pear --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-freetype-dir=/usr/X11R6 --with-gd=/usr/local<br />
$ make<br />
$ sudo make install</code></p>
<p>サーバー管理からWebサーバーの再起動ができれば問題ありません。phpinfoでgdが有効になっていることを確認できれば成功です。<br />
もしもアーキテクチャーが間違っているとwrong architectureなどとログに記録され起動できません。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2009/04/03_21_263.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>WordPressの自動アップデートエラーについて</title>
		<link>http://blog.chibiegg.net/2009/02/24_20_259.htm</link>
		<comments>http://blog.chibiegg.net/2009/02/24_20_259.htm#comments</comments>
		<pubDate>Tue, 24 Feb 2009 11:40:18 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[Webサーバー]]></category>

		<category><![CDATA[サーバー管理]]></category>

		<category><![CDATA[FTP]]></category>

		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=259</guid>
		<description><![CDATA[WordPressにはプラグインや本体をFTP経由で自動でアップデートする機能がありますが、だいたいは「ディレクトリが見つかりません」といわれてしまいます。
そんな場合は「wp-config.php」に以下の三行を追加す [...]]]></description>
			<content:encoded><![CDATA[<p>WordPressにはプラグインや本体をFTP経由で自動でアップデートする機能がありますが、だいたいは「ディレクトリが見つかりません」といわれてしまいます。</p>
<p>そんな場合は「<strong>wp-config.php</strong>」に以下の三行を追加するだけで直ります。<br />
上から順番に「FTPのルートディレクトリ」「wp-contentディレクトリ」「pluginsディレクトリ」へのパスです。</p>
<blockquote><pre>define('FTP_BASE', '/path/to/wordpress/');
define('FTP_CONTENT_DIR', '/path/to/wordpress/wp-content/');
define('FTP_PLUGIN_DIR', '/path/to/wordpress/wp-content/plugins/');</pre>
</blockquote>
<p>長いことあきらめていたのですが公式サイトの<a title="wp-config.php_の編集" href="http://wpdocs.sourceforge.jp/wp-config.php_の編集" target="_blank">「wp-config.php_の編集」</a>に説明がありました。</p>
<p>明日は前期入試です</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2009/02/24_20_259.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>Leopard(10.5.5以降)での画面共有の隠し機能の出し方</title>
		<link>http://blog.chibiegg.net/2009/01/15_21_223.htm</link>
		<comments>http://blog.chibiegg.net/2009/01/15_21_223.htm#comments</comments>
		<pubDate>Thu, 15 Jan 2009 12:48:32 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[Mac]]></category>

		<category><![CDATA[画面共有]]></category>

		<category><![CDATA[Leopard]]></category>

		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=223</guid>
		<description><![CDATA[画面共有改変方法どうやら10.5.5以降での画面共有は以前の方法では隠し機能が出ないようです。
当方でも最近できていなかったのですが、コメントをいただいて固有の問題ではないのだと知り調べてみました。
こちらで情報を見つけ [...]]]></description>
			<content:encoded><![CDATA[<p>画面共有改変方法どうやら10.5.5以降での画面共有は<a href="http://blog.chibiegg.net/2007/12/26_15_111.htm">以前の方法</a>では隠し機能が出ないようです。<br />
当方でも最近できていなかったのですが、<a href="http://blog.chibiegg.net/2007/12/26_15_111.htm#comment-255">コメント</a>をいただいて固有の問題ではないのだと知り調べてみました。</p>
<p><a href="http://www.macworld.com/article/135649/2008/09/screen_sharing_buttons.html">こちら</a>で情報を見つけたので日本語で説明していきます。<br />
どうやら２つの方法が有るようで。<br />
一つは簡単だが、セキュリティーに問題があるかも知れない方法<br />
もう一つは複雑だが、安全だと思われる方法。おすすめ。</p>
<p>後者の方法はビデオによる解説も載せておきました。説明文は下にあります。<br />
<object width="500" height="350" data="http://blog.chibiegg.net/wp-content/uploads/2009/01/e794bbe99da2e585b1e69c89e69bb8e3818de68f9be38188.swf" type="application/x-shockwave-flash"><param name="src" value="http://blog.chibiegg.net/wp-content/uploads/2009/01/e794bbe99da2e585b1e69c89e69bb8e3818de68f9be38188.swf" /></object><br />
<span id="more-223"></span><br />
まずは簡単な方から。(私はこの方法は試していません)<br />
こちらは簡単で、10.5.4以前の「画面共有」の実行ファイルを持ってくるというものです。<br />
Timemachineを10.5.5にアップデートする前から使っていたなら、<strong>昔の</strong>「/System/Library/CoreServices」以下に「画面共有.app」があるはずなのでそれを持ってくるのですが、<strong>現在のバージョンには上書きしないでください</strong>。個人のApplicationディレクトリにでもコピーして、そちらを起動するのがよいようです。<br />
この場合以前の記事に書いた方法も実行することによりフルスクリーンなどの機能がつかえるようになります。<br />
10.5.4以前のバックアップをとっていない場合、「Pacifist」などのツールを使ってLeopardのインストールDVDからファイルを取り出す方法もあります。<br />
この方法の危険かもしれない点は「わざわざアップデートされた」ということはセキュリティーホールが古いバージョンに存在する可能性があるということです。</p>
<p>次によりSafeだがComplexなSolutionを。<br />
これを実践するにはXCodeをインストールしておく必要があります。これはLeopardのDVDから開発ツールをインストールすると導入されます。<br />
次に、「/System/Library/CoreServices」から「画面共有.app」を適当な場所にコピーしてきます。以降これを編集していきます。</p>
<p>コピーした「画面共有.app」を右クリックし「パッケージの内容を表示」をクリック。</p>
<div id="attachment_227" class="wp-caption aligncenter" style="width: 123px"><a href="http://blog.chibiegg.net/wp-content/uploads/2009/01/e38391e38383e382b1e383bce382b8e381aee58685e5aeb9e38292e8a1a8e7a4ba.png"><img class="size-thumbnail wp-image-227" title="画面共有(パッケージの内容を表示)" src="http://blog.chibiegg.net/wp-content/uploads/2009/01/e38391e38383e382b1e383bce382b8e381aee58685e5aeb9e38292e8a1a8e7a4ba-113x150.png" alt="画面共有(パッケージの内容を表示)" width="113" height="150" /></a><p class="wp-caption-text">画面共有(パッケージの内容を表示)</p></div>
<p>開いたディレクトリから、</p>
<div id="attachment_248" class="wp-caption aligncenter" style="width: 160px"><a href="http://blog.chibiegg.net/wp-content/uploads/2009/01/mainmenunib.png"><img class="size-thumbnail wp-image-248" title="MainMenu.nib" src="http://blog.chibiegg.net/wp-content/uploads/2009/01/mainmenunib-150x73.png" alt="MainMenu.nib" width="150" height="73" /></a><p class="wp-caption-text">MainMenu.nib</p></div>
<p>「Contents/リソース/Japanese.lproj/MainMenu.nib」を開きます。Interface Builderが起動するはずです。</p>
<div id="attachment_228" class="wp-caption aligncenter" style="width: 160px"><a href="http://blog.chibiegg.net/wp-content/uploads/2009/01/e383a1e382a4e383b3e382a6e382a4e383b3e38389e382a6.png"><img class="size-thumbnail wp-image-228" title="Interface Buider" src="http://blog.chibiegg.net/wp-content/uploads/2009/01/e383a1e382a4e383b3e382a6e382a4e383b3e38389e382a6-150x110.png" alt="Interface Buider" width="150" height="110" /></a><p class="wp-caption-text">Interface Buider</p></div>
<p>「First Responder」アイコンをクリック。<br />
Command-6を押す(Identity Inspectorを出すため)。<br />
＋ボタンをクリックし、あたらしいアクションを追加。<br />
名前を「fullScreenClicked:」に設定。(最後のコロンは重要。すいませんS,Cは大文字です。)</p>
<div id="attachment_247" class="wp-caption alignnone" style="width: 160px"><a href="http://blog.chibiegg.net/wp-content/uploads/2009/01/fullscreenclicked.png"><img class="size-thumbnail wp-image-247" title="fullscreenclickedの追加" src="http://blog.chibiegg.net/wp-content/uploads/2009/01/fullscreenclicked-150x116.png" alt="fullscreenclickedの追加" width="150" height="116" /></a><p class="wp-caption-text">fullscreenclickedの追加</p></div>
<p> </p>
<p>「MainMenu」アイコンをダブルクリック。<br />
「ウインドウ」メニューを開く。<br />
Shift-Command-LをクリックしてLiblaryを開く。<br />
「NSMenuItem」を「拡大／縮小」の下に配置し、名前を「フルスクリーン」にでもしておく。(なんでもよい)</p>
<div id="attachment_230" class="wp-caption aligncenter" style="width: 160px"><a href="http://blog.chibiegg.net/wp-content/uploads/2009/01/munuiteme381aee8bfbde58aa0.png"><img class="size-thumbnail wp-image-230" title="munuitemの追加" src="http://blog.chibiegg.net/wp-content/uploads/2009/01/munuiteme381aee8bfbde58aa0-150x143.png" alt="munuitemの追加" width="150" height="143" /></a><p class="wp-caption-text">munuitemの追加</p></div>
<div id="attachment_233" class="wp-caption aligncenter" style="width: 160px"><a href="http://blog.chibiegg.net/wp-content/uploads/2009/01/menuiteme5908de5898de5a489e69bb4.png"><img class="size-thumbnail wp-image-233" title="menuitemのキャプション変更" src="http://blog.chibiegg.net/wp-content/uploads/2009/01/menuiteme5908de5898de5a489e69bb4-150x51.png" alt="menuitemのキャプション変更" width="150" height="51" /></a><p class="wp-caption-text">menuitemのキャプション変更</p></div>
<p>このアイテムが選択された状態でCommand-5をクリックし「Connection Inspector」を開く。<br />
Selector横のボタンをドラッグして、「First Responder」アイコンまで持っていく。</p>
<div id="attachment_231" class="wp-caption aligncenter" style="width: 160px"><a href="http://blog.chibiegg.net/wp-content/uploads/2009/01/e68ea5e7b69a.png"><img class="size-thumbnail wp-image-231" title="Interface builder 接続" src="http://blog.chibiegg.net/wp-content/uploads/2009/01/e68ea5e7b69a-150x90.png" alt="Interface builder 接続" width="150" height="90" /></a><p class="wp-caption-text">Interface builder 接続</p></div>
<p>「fullScreenClicked」を探してクリック。</p>
<div id="attachment_232" class="wp-caption aligncenter" style="width: 160px"><a href="http://blog.chibiegg.net/wp-content/uploads/2009/01/actione381aee981b8e68a9e.png"><img class="size-thumbnail wp-image-232" title="actionの選択" src="http://blog.chibiegg.net/wp-content/uploads/2009/01/actione381aee981b8e68a9e-150x126.png" alt="actionの選択" width="150" height="126" /></a><p class="wp-caption-text">actionの選択</p></div>
<p> </p>
<p>接続されるとInspectorのMenu Connectionsの表示はこのようになるはずです。</p>
<p> </p>
<div id="attachment_257" class="wp-caption aligncenter" style="width: 160px"><a href="http://blog.chibiegg.net/wp-content/uploads/2009/01/e68ea5e7b69ae5be8c.png"><img class="size-thumbnail wp-image-257" title="Actionの接続後" src="http://blog.chibiegg.net/wp-content/uploads/2009/01/e68ea5e7b69ae5be8c-150x88.png" alt="Actionの接続後" width="150" height="88" /></a><p class="wp-caption-text">Actionの接続後</p></div>
<p> </p>
<p>保存してInterface Builderを終了。</p>
<p>これでインターフェースが改変された画面共有ができます。<br />
この方法ではメニューからフルスクリーンをクリックすると拡張機能のツールバー(画質などの選択ボタン)が表示されます。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2009/01/15_21_223.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>F-2航空機の事故調査結果のソース</title>
		<link>http://blog.chibiegg.net/2008/12/21_23_218.htm</link>
		<comments>http://blog.chibiegg.net/2008/12/21_23_218.htm#comments</comments>
		<pubDate>Sun, 21 Dec 2008 14:24:08 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[雑記]]></category>

		<category><![CDATA[事故]]></category>

		<category><![CDATA[防衛省]]></category>

		<category><![CDATA[F2戦闘機]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=218</guid>
		<description><![CDATA[いまさらながらではあるが、以前の「愛知県豊山町でのF2戦闘機墜落事故(原因判明)」という記事を見直して気づいたのだが、配線ミスであったという情報の出典を書くのを忘れていたのだ。
それはちょっとまずい、その記事を書いたとき [...]]]></description>
			<content:encoded><![CDATA[<p>いまさらながらではあるが、以前の「<a href="http://blog.chibiegg.net/2007/11/15_23_60.htm">愛知県豊山町でのF2戦闘機墜落事故(原因判明)</a>」という記事を見直して気づいたのだが、配線ミスであったという情報の出典を書くのを忘れていたのだ。</p>
<p>それはちょっとまずい、その記事を書いたときのソースはもう特定できないので防衛省の公式発表の情報を書いておこうと思う。今後は出典URLを書くのを忘れないようにしないと&#8230;</p>
<p><strong><a href="http://www.mod.go.jp/j/news/2007/11/15c.html">防衛省・自衛隊：Ｆ－２航空機の事故調査について</a></strong></p>
<blockquote><p>10月31日に愛知県名古屋飛行場内で発生したＦ－２航空機の落下炎上事故に関し、事故調査委員会の現在までの調査により、</p>
<p>　フライトデータレコーダーの記録を解析したところ、パイロットの操舵に対し、機体が正常に追従していない</p>
<p>　飛行制御に係る装置類及び機体配線を調査したところ、装置類は正常に機能していたが、機体の姿勢変化を検知するピッチ・レート・ジャイロ（機首上下方向）とロール・レート・ジャイロ（横回転方向）の配線が逆に接続されていた ことが判明しました。</p>
<p>　このため、離陸時にパイロットが行った機首上下の操舵に伴う機体の動作を、飛行制御コンピュータが機体の上下変化として認識できなくなり、水平尾翼が異常な舵角で上下したために、落下炎上に至ったことが明らかになりました。<br />
　今後は、配線の接続が逆になった原因を中心に細部調査を進めていくこととしています。<br />
　なお、今回の事故を踏まえて一時的に見合わせていた部隊におけるＦ－２航空機による飛行については、配線取付位置の再確認、及び本事故に関する必要な教育等を実施した上で、逐次実施させることとしております。</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2008/12/21_23_218.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>タブローまであと3日…らしいです。</title>
		<link>http://blog.chibiegg.net/2008/12/20_23_200.htm</link>
		<comments>http://blog.chibiegg.net/2008/12/20_23_200.htm#comments</comments>
		<pubDate>Sat, 20 Dec 2008 14:59:46 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[日記]]></category>

		<category><![CDATA[クリスマスタブロー]]></category>

		<category><![CDATA[洛星]]></category>

		<category><![CDATA[KBS京都]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=200</guid>
		<description><![CDATA[毎年恒例のクリスマスタブローですが、後3日なんですね。
今年は初めてタブローに客観的に触れることになるのです。
やはり客観的に見ると新しい感動があるもので&#8230;
昨日後輩に会いに行ったときにはフロアにも何もなく、 [...]]]></description>
			<content:encoded><![CDATA[<p>毎年恒例のクリスマスタブローですが、後3日なんですね。</p>
<p>今年は初めてタブローに客観的に触れることになるのです。<br />
やはり客観的に見ると新しい感動があるもので&#8230;<br />
昨日後輩に会いに行ったときにはフロアにも何もなく、舞台上もぐちゃぐちゃだったのです。<br />
それが今日荷物を届けにいってみると、フロアは銀マットも敷かれ、椅子も並べられ、舞台は８幕の状態にセッティングされ、８幕の通し練習をやっていました。</p>
<p>イメージ写真を載せときます。去年の写真ですが。</p>
<table border=0 align=center>
<tr>
<th></th>
<th><a href="http://blog.chibiegg.net/wp-content/uploads/2008/12/tableaux_2007-12-18_58.jpg"><img class="size-thumbnail wp-image-203" title="tableaux_2007-12-18_58" src="http://blog.chibiegg.net/wp-content/uploads/2008/12/tableaux_2007-12-18_58-150x96.jpg" alt="大講堂" width="150" height="96" /></a><br /><strong>Before</strong></th>
<th><a href="http://blog.chibiegg.net/wp-content/uploads/2008/12/tableaux_2007-12-19_73.jpg"><img class="size-thumbnail wp-image-202" title="tableaux_2007-12-19_73" src="http://blog.chibiegg.net/wp-content/uploads/2008/12/tableaux_2007-12-19_73-150x100.jpg" alt="タブローセッティング後(2007年)" width="150" height="100" /></a><br /><strong>After</strong></th>
</tr>
</table>
<p>こうしてみると、「すごい」と言われる理由も身内ながら納得いく訳です。<br />
ちなみに中学聖歌隊下手舞台側横から撮影した誰もいないフロアの写真です。<br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2008/12/tableaux_2007-12-20_147.jpg"><img src="http://blog.chibiegg.net/wp-content/uploads/2008/12/tableaux_2007-12-20_147-300x199.jpg" alt="タブローフロア(2007)" title="tableaux_2007-12-20_147" align=center width="300" height="199" class="size-medium wp-image-207" /></a></p>
<p>この写真を見ていると通し練習が終わって舞台監督や演出が大講堂から引き上げた後の静かな大講堂で過ごした時間が懐かしい気がします。</p>
<p>今年はなんとKBS京都で「クリスマス・タブロー 」という番組名で番組が組まれるらしいです。<br />
放送時間は12月24日の19:00から1時間です。</p>
<p>番組表による説明は以下の通り</p>
<blockquote><p><strong>クリスマス・タブロー</strong><br />
37回目を迎える洛星中学校・高等学校の大講堂で行われた伝統行事「洛星クリスマス・タブロー」の模様を伝える。<br />
▽洛星中学校・高等学校で行われる聖夜の伝統行事▽賛美歌の合唱・聖書の朗読、キリスト誕生までの物語を描くステージ▽先輩から後輩へ引継がれる生徒中心の練習</p></blockquote>
<p>生徒中心の学校行事って珍しいんですかね。うちでは当たり前だと思ってたんですが&#8230;</p>
<p>兎に角、音響設備が故障しないか心配です。<br />
ここ２年ほど「もういつ音が出なくなるなどの深刻な症状がでてもおかしくない」と機材更新を主張していたのですが、実現はしませんでしたし。石畳なんか作るお金があったら「太陽光パネル」とか「大講堂の音響設備」とか、もっと有用な使い道が他にいろいろとあったと思うんですがね。<br />
故障したら大きなスピーカーでも借りて仮設するんでしょうが。</p>
<p>何千万という大金を使うのは誰が決めるんでしょうか&#8230;(だいたい検討はつきますが)<br />
こんなこと卒業が目前だから書けるんですが&#8230;</p>
<p>それでは各パートのみなさんがんばってください。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2008/12/20_23_200.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>Macbook Pro の温度</title>
		<link>http://blog.chibiegg.net/2008/08/29_00_196.htm</link>
		<comments>http://blog.chibiegg.net/2008/08/29_00_196.htm#comments</comments>
		<pubDate>Thu, 28 Aug 2008 15:44:55 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[Mac]]></category>

		<category><![CDATA[日記]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=196</guid>
		<description><![CDATA[ちょっと夜の間にGCCのコンパイルをさせとこうと思ってMacbook Proにmake作業をさせていると、余りもあついので温度をはかってみるとなんと92℃もありました。
最近すこしづつ温度が上がっているような気はしていた [...]]]></description>
			<content:encoded><![CDATA[<p>ちょっと夜の間にGCC<strong>の</strong>コンパイルをさせとこうと思ってMacbook Proにmake作業をさせていると、余りもあついので温度をはかってみるとなんと92℃もありました。<br />
最近すこしづつ温度が上がっているような気はしていたのですが90℃を超えたのは初めてです。<br />
明日Appleコールセンターに大丈夫なのか電話して聞いてみよう&#8230;<br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2008/08/macbook_pro_temp92.jpg"><img src="http://blog.chibiegg.net/wp-content/uploads/2008/08/macbook_pro_temp92-300x231.jpg" alt="" title="92℃のMacbook Pro" width="300" height="231" class="aligncenter size-medium wp-image-197" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2008/08/29_00_196.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>Engineer Award</title>
		<link>http://blog.chibiegg.net/2008/07/20_14_195.htm</link>
		<comments>http://blog.chibiegg.net/2008/07/20_14_195.htm#comments</comments>
		<pubDate>Sun, 20 Jul 2008 05:57:26 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[未分類]]></category>

		<category><![CDATA[コンテスト]]></category>

		<category><![CDATA[トランジスタ技術]]></category>

		<category><![CDATA[電子工作]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/2008/07/20_14_195.htm</guid>
		<description><![CDATA[先日「Engineer Award」事務局の小島様からコメントをいただいた技術コンテスト「Engineer Award」についてです。(小島様、コメントの許可が遅れてしまい申し訳ございません。「不適切であれば削除してくだ [...]]]></description>
			<content:encoded><![CDATA[<p>先日「<a href="http://www.engineeraward.jp/">Engineer Award</a>」事務局の小島様からコメントをいただいた技術コンテスト「<a href="http://www.engineeraward.jp/">Engineer Award</a>」についてです。(小島様、コメントの許可が遅れてしまい申し訳ございません。「不適切であれば削除してください」とまでご丁寧にも追加でご連絡いただきました。もちろん不適切ではありませんし、寧ろお知らせいただき感謝しております。)</p>
<p>僕自身は今年は受験で制作する余裕はないのですが、学校(中学・高校)のクラブの後輩に参加を進めてみようとおもいます。<br />
何か自分たちでアイデアを出して短期間で何かを作るのは良い経験になるでしょうし、おもしろそうだし。</p>
<p>僕は来年同じ企画があればエントリーしたいと思います。去年のこの時期にあったら絶対エントリーしたんですが。ちょうど文化祭のネタにもいいですしね。USBがついてるマイコンではW-SIMをUSB経由でアナログモデムとして接続するアダプターが作りたいですね。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2008/07/20_14_195.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>Apple iPhone 3G</title>
		<link>http://blog.chibiegg.net/2008/07/13_18_193.htm</link>
		<comments>http://blog.chibiegg.net/2008/07/13_18_193.htm#comments</comments>
		<pubDate>Sun, 13 Jul 2008 09:18:26 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=193</guid>
		<description><![CDATA[
先日Appleから発売されたiPhone 3Gですが、友達が購入に成功したようなので近いうちに動画でレビューしたいとおもいます。
全てできるかどうかわかりませんが、なにか試して欲しいことなどあればコメントください。
]]></description>
			<content:encoded><![CDATA[<p><a href='http://blog.chibiegg.net/wp-content/uploads/2008/07/iphone_3g.jpg'><img src="http://blog.chibiegg.net/wp-content/uploads/2008/07/iphone_3g-300x120.jpg" alt="iPhone 3G" title="iPhone 3G" width="300" height="120" class="aligncenter size-medium wp-image-194" /></a></p>
<p>先日Appleから発売された<a href="http://www.apple.com/jp/iphone/">iPhone 3G</a>ですが、友達が購入に成功したようなので近いうちに動画でレビューしたいとおもいます。</p>
<p>全てできるかどうかわかりませんが、なにか試して欲しいことなどあればコメントください。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2008/07/13_18_193.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>トランジスタ技術8月号</title>
		<link>http://blog.chibiegg.net/2008/07/11_23_192.htm</link>
		<comments>http://blog.chibiegg.net/2008/07/11_23_192.htm#comments</comments>
		<pubDate>Fri, 11 Jul 2008 14:00:56 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[電子工作]]></category>

		<category><![CDATA[78K0]]></category>

		<category><![CDATA[トランジスタ技術]]></category>

		<category><![CDATA[マイコン]]></category>

		<category><![CDATA[CQ出版]]></category>

		<category><![CDATA[Interface]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=192</guid>
		<description><![CDATA[
普段はInterface (インターフェース)を定期購読しているのですが、８月号のトラ技にはUSBコントローラ内蔵の78K0マイコンが付録で付いているので購入しました。
使うのはいつのことになるやら&#8230;
9月 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.amazon.co.jp/gp/product/B001BJGM38?ie=UTF8&#038;tag=chibiegg-22&#038;linkCode=as2&#038;camp=247&#038;creative=1211&#038;creativeASIN=B001BJGM38"><img src="http://blog.chibiegg.net/wp-content/uploads/2008/07/e38388e383a9e383b3e382b8e382b9e382bfe68a80e8a193200808-300x287.jpg" alt="トランジスタ技術2008年8月号" title="トランジスタ技術2008年8月号" width="300" height="287" class="alignleft size-medium wp-image-191" /></a><br />
普段は<a href="http://www.amazon.co.jp/gp/product/B001AEK34S?ie=UTF8&#038;tag=chibiegg-22&#038;linkCode=as2&#038;camp=247&#038;creative=1211&#038;creativeASIN=B001AEK34S">Interface (インターフェース)</a><img src="http://www.assoc-amazon.jp/e/ir?t=chibiegg-22&#038;l=as2&#038;o=9&#038;a=B001AEK34S" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />を定期購読しているのですが、<a href="http://www.amazon.co.jp/gp/product/B001BJGM38?ie=UTF8&#038;tag=chibiegg-22&#038;linkCode=as2&#038;camp=247&#038;creative=1211&#038;creativeASIN=B001BJGM38">８月号のトラ技</a><img src="http://www.assoc-amazon.jp/e/ir?t=chibiegg-22&#038;l=as2&#038;o=9&#038;a=B001BJGM38" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />にはUSBコントローラ内蔵の78K0マイコンが付録で付いているので購入しました。<br />
使うのはいつのことになるやら&#8230;</p>
<p>9月号にはグラフィックLCDなどが載るボードが付属するのでそっちも買わないと&#8230;</p>
<div align="center">
<table>
<tr>
<td>
<div align="center"><iframe src="http://rcm-jp.amazon.co.jp/e/cm?t=chibiegg-22&#038;o=9&#038;p=8&#038;l=as1&#038;asins=B001AEK34S&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></div>
</td>
<td>
<div align="center"><iframe src="http://rcm-jp.amazon.co.jp/e/cm?t=chibiegg-22&#038;o=9&#038;p=8&#038;l=as1&#038;asins=B001BJGM38&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></div>
</td>
</tr>
</table>
<table>
</table>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2008/07/11_23_192.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>CAcertから証明書をもらおう！(番外編:ルート証明書のインストール)</title>
		<link>http://blog.chibiegg.net/2008/07/01_00_172.htm</link>
		<comments>http://blog.chibiegg.net/2008/07/01_00_172.htm#comments</comments>
		<pubDate>Mon, 30 Jun 2008 15:24:06 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=172</guid>
		<description><![CDATA[前回言及した証明書警告をなくすにはブラウザ(あるいはOS)にCAcertのルート証明書がインストールされている必要があります。
今回はそのインストールの方法をOSX、Windowsの場合について解説します。
(念のため免 [...]]]></description>
			<content:encoded><![CDATA[<p>前回言及した証明書警告をなくすにはブラウザ(あるいはOS)にCAcertのルート証明書がインストールされている必要があります。</p>
<p>今回はそのインストールの方法をOSX、Windowsの場合について解説します。<br />
(念のため免責事項を&#8230;ルート証明書のインストールは自己責任でお願いします。)</p>
<p><strong>Mac OSX Leopard</strong>の場合。(以前のバージョンでも一緒かな？)<br />
<a href="http://www.cacert.org/index.php?id=3">http://www.cacert.org/index.php?id=3</a>から「ルート証明書 (DER形式)」をダウンロードします。<br />
<img class="aligncenter size-full wp-image-185" title="root.der" src="http://blog.chibiegg.net/wp-content/uploads/2008/06/rootder.jpg" alt="root.der in Finder" width="82" height="82" /><br />
<span id="more-172"></span><br />
そしてダウンロードした「root.der」をダブルクリックすると以下のようなダイアログが表示されます。<br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2008/06/e8a8bce6988ee69bb8e381aee8bfbde58aa0.jpg"><img class="aligncenter size-medium wp-image-186" title="Leopard「証明書の追加」" src="http://blog.chibiegg.net/wp-content/uploads/2008/06/e8a8bce6988ee69bb8e381aee8bfbde58aa0-300x171.jpg" alt="Leopard「証明書の追加」" width="300" height="171" /></a><br />
ここで「証明書の表示」をクリックし、CAcertのページに書いてある「Fingerprint」と表示される「指紋」が一致しているか確認しておきましょう。<br />
<strong>Leopardで表示される指紋</strong><br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2008/06/e68c87e7b48b.jpg"><img class="aligncenter size-medium wp-image-187" title="CAcertルート証明書の指紋" src="http://blog.chibiegg.net/wp-content/uploads/2008/06/e68c87e7b48b-300x62.jpg" alt="CAcertルート証明書の指紋 in キーチェーンアクセス" width="300" height="62" /></a><br />
<strong>CAcertのサイトに書かれたFingerprint</strong><br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2008/06/cacerte383abe383bce38388e8a8bce6988ee69bb8e3839ae383bce382b8.jpg"><img class="aligncenter size-medium wp-image-173" title="CAcertルート証明書配布ページ" src="http://blog.chibiegg.net/wp-content/uploads/2008/06/cacerte383abe383bce38388e8a8bce6988ee69bb8e3839ae383bce382b8-300x125.jpg" alt="CAcertルート証明書配布ページ" width="300" height="125" /></a></p>
<p>同じであると確認できたら「OK」をクリックします。<br />
次にこの証明書を信頼するかというダイアログが表示されるので「常に信頼」を選択します。<br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2008/06/e8a8bce6988ee69bb8e381aee4bfa1e9a0bc.jpg"><img class="aligncenter size-medium wp-image-188" title="証明書の信頼" src="http://blog.chibiegg.net/wp-content/uploads/2008/06/e8a8bce6988ee69bb8e381aee4bfa1e9a0bc-300x185.jpg" alt="証明書の信頼" width="300" height="185" /></a></p>
<p>ここではパスワードを聞かれるので入力してください。<br />
これでCAcertにより証明されたサイトには警告が出なくなります。</p>
<p>Windows XPの場合<br />
上記と同じCAcertのページから何でも良いのですが、今回はDER形式でダウンロードし、ダウンロードした証明書をダブルクリックします。<br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2008/06/cacerte383abe383bce38388e8a8bce6988ee69bb8e4bf9de5ad98e38395e382a9e383abe38380.jpg"><img class="aligncenter size-medium wp-image-174" title="CAcertルート証明書保存フォルダ" src="http://blog.chibiegg.net/wp-content/uploads/2008/06/cacerte383abe383bce38388e8a8bce6988ee69bb8e4bf9de5ad98e38395e382a9e383abe38380-300x287.jpg" alt="CAcertルート証明書保存フォルダ" width="300" height="287" /></a></p>
<p>次のような警告がでたら「開く」をクリックしてください。<br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2008/06/e8a8bce6988ee69bb8e382bbe382ade383a5e383aae38386e382a3e8ada6e5918a.jpg"><img class="alignnone size-medium wp-image-182" title="ダウンロードしたファイルを開くセキュリティ警告" src="http://blog.chibiegg.net/wp-content/uploads/2008/06/e8a8bce6988ee69bb8e382bbe382ade383a5e383aae38386e382a3e8ada6e5918a-300x181.jpg" alt="ダウンロードしたファイルを開く際のセキュリティ警告" width="300" height="181" /></a></p>
<p>証明書を開くと「全般」タブが開いてますが、まずは本物かどうか確かめるため「詳細」タブを開きます。<br />
そこに記載されている指紋(赤くかこったところ)がCAcertのサイトのFingerprintと一致するか確かめてから「全般」タブに戻り、「証明書のインストール」をクリックしてください。<br />
<strong>証明書「詳細」タブ</strong><br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2008/06/e8a8bce6988ee69bb8e8a9b3e7b4b0e382bfe38396.jpg"><img class="aligncenter size-medium wp-image-183" title="証明書「詳細」タブ" src="http://blog.chibiegg.net/wp-content/uploads/2008/06/e8a8bce6988ee69bb8e8a9b3e7b4b0e382bfe38396-300x284.jpg" alt="証明書「詳細」タブ" width="300" height="284" /></a><br />
<strong>証明書「全般」タブ</strong><br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2008/06/e8a8bce6988ee69bb8e585a8e888ace382bfe382b0.jpg"><img class="alignnone size-medium wp-image-184" title="証明書「全般」タブ" src="http://blog.chibiegg.net/wp-content/uploads/2008/06/e8a8bce6988ee69bb8e585a8e888ace382bfe382b0-300x284.jpg" alt="証明書「全般」タブ" width="300" height="284" /></a></p>
<p>まずウィザードのトップは何もすることはありません。次に進みます。<br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2008/06/e8a8bce6988ee69bb8e382a4e383b3e3839de383bce38388e382a6e382a3e382b6e383bce38389e9968be5a78b.jpg"><img class="alignnone size-medium wp-image-178" title="証明書インポートウィザード1.開始" src="http://blog.chibiegg.net/wp-content/uploads/2008/06/e8a8bce6988ee69bb8e382a4e383b3e3839de383bce38388e382a6e382a3e382b6e383bce38389e9968be5a78b-300x186.jpg" alt="証明書インポートウィザード（1.開始)" width="300" height="186" /></a></p>
<p>証明書を保存する場所ですが、「証明書をすべて次のストアに配置する」を選び「参照」をクリックしてください。<br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2008/06/e8a8bce6988ee69bb8e382a4e383b3e3839de383bce38388e382a6e382a3e382b6e383bce38389e8a8bce6988ee69bb8e382b9e38388e382a2.jpg"><img class="alignnone size-medium wp-image-180" title="証明書インポートウィザード2.証明書ストア" src="http://blog.chibiegg.net/wp-content/uploads/2008/06/e8a8bce6988ee69bb8e382a4e383b3e3839de383bce38388e382a6e382a3e382b6e383bce38389e8a8bce6988ee69bb8e382b9e38388e382a2-300x186.jpg" alt="証明書インポートウィザード（2.証明書ストア）" width="300" height="186" /></a></p>
<p>下の図を参考に「証明されたルート証明機関」を選択して次に進んでください。<br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2008/06/e8a8bce6988ee69bb8e382b9e38388e382a2e381aee981b8e68a9e.jpg"><img class="alignnone size-medium wp-image-181" title="証明書ストアの選択" src="http://blog.chibiegg.net/wp-content/uploads/2008/06/e8a8bce6988ee69bb8e382b9e38388e382a2e381aee981b8e68a9e-300x221.jpg" alt="証明書ストアの選択" width="300" height="221" /></a></p>
<p>最後に実行する内容を確認し、完了します。<br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2008/06/e8a8bce6988ee69bb8e382a4e383b3e3839de383bce38388e382a6e382a3e382b6e383bce38389e5ae8ce4ba86.jpg"><img class="alignnone size-medium wp-image-179" title="証明書インポートウィザード3.完了" src="http://blog.chibiegg.net/wp-content/uploads/2008/06/e8a8bce6988ee69bb8e382a4e383b3e3839de383bce38388e382a6e382a3e382b6e383bce38389e5ae8ce4ba86-300x186.jpg" alt="証明書インポートウィザード（3.完了)" width="300" height="186" /></a></p>
<p>ここでも警告が表示されますが「はい」をクリックします。ここにも指紋は記載されています。<br />
<a href='http://blog.chibiegg.net/wp-content/uploads/2008/06/e8a8bce6988ee69bb8e382a4e383b3e382b9e38388e383bce383abe8ada6e5918a.jpg'><img src="http://blog.chibiegg.net/wp-content/uploads/2008/06/e8a8bce6988ee69bb8e382a4e383b3e382b9e38388e383bce383abe8ada6e5918a-300x96.jpg" alt="証明書インポート警告" title="証明書インポート警告" width="300" height="96" class="alignnone size-medium wp-image-177" /></a></p>
<p>「正しくインポートされました」と表示されれば完了です。<br />
<a href='http://blog.chibiegg.net/wp-content/uploads/2008/06/e382a4e383b3e3839de383bce38388e5ae8ce4ba86e383a1e38383e382bbe383bce382b8e3839ce38383e382afe382b9.jpg'><img src="http://blog.chibiegg.net/wp-content/uploads/2008/06/e382a4e383b3e3839de383bce38388e5ae8ce4ba86e383a1e38383e382bbe383bce382b8e3839ce38383e382afe382b9.jpg" alt="証明書インポート完了メッセージボックス" title="証明書インポート完了メッセージボックス" width="209" height="121" class="alignnone size-medium wp-image-176" /></a></p>
<p>もう一度証明書を開き直すと最初はついていたバッテンが下のようになくなり信頼された証明書になります。<br />
<a href='http://blog.chibiegg.net/wp-content/uploads/2008/06/e382a4e383b3e382b9e38388e383bce383abe5be8ce381aee8a8bce6988ee69bb8.jpg'><img src="http://blog.chibiegg.net/wp-content/uploads/2008/06/e382a4e383b3e382b9e38388e383bce383abe5be8ce381aee8a8bce6988ee69bb8-300x284.jpg" alt="インストール後の証明書ウインドウ" title="インストール後の証明書ウインドウ" width="300" height="284" class="alignnone size-medium wp-image-175" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2008/07/01_00_172.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>CAcertから証明書をもらおう！(その2の追記について)</title>
		<link>http://blog.chibiegg.net/2008/06/30_23_189.htm</link>
		<comments>http://blog.chibiegg.net/2008/06/30_23_189.htm#comments</comments>
		<pubDate>Mon, 30 Jun 2008 14:00:15 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=189</guid>
		<description><![CDATA[CAcertから証明書をもらおう！(その2:鍵と申請書の作成)に追記をしました。
どうやら名前ベースのバーチャルホストで個別の証明書を読み込ませることは今のところできないようです。IPベースにするなどの対処で対応できます [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.chibiegg.net/2008/06/29_20_163.htm">CAcertから証明書をもらおう！(その2:鍵と申請書の作成)</a>に追記をしました。</p>
<p>どうやら名前ベースのバーチャルホストで個別の証明書を読み込ませることは今のところできないようです。IPベースにするなどの対処で対応できますが、一番簡単なのは追記の通りCommon Nameにワイルドカードを使うことです。</p>
<p>例「*.hogehoge.net」</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2008/06/30_23_189.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>CAcertから証明書をもらおう！(その4:Apache2に登録)</title>
		<link>http://blog.chibiegg.net/2008/06/29_23_170.htm</link>
		<comments>http://blog.chibiegg.net/2008/06/29_23_170.htm#comments</comments>
		<pubDate>Sun, 29 Jun 2008 14:30:58 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=170</guid>
		<description><![CDATA[今回は前々回作成した「server.key」と前回もらった「server.cer」をApache2に登録します。(FQDNごとに複数作成した場合は以下に出てくるファイル名は読み替えてください)
とりあえず鍵と証明書を作成 [...]]]></description>
			<content:encoded><![CDATA[<p>今回は前々回作成した「server.key」と前回もらった「server.cer」をApache2に登録します。(FQDNごとに複数作成した場合は以下に出てくるファイル名は読み替えてください)</p>
<p>とりあえず鍵と証明書を作成したコンピュータからサーバーにファイルを一式持ってきます。<br />
そして安全な場所に置いてください。<br />
今回は「/etc/apache2/ssl/」フォルダに「server.key」と「server.cer」を置いたとします。<br />
すでに自前証明書でSSL通信が有効になってる場合、設定は簡単で「/etc/apache2/sites-available/」内のファイルを以下の二行を書き換えるだけです。<br />
<strong>変更前</strong></p>
<pre><code>SSLCertificateFile 現在利用している証明書
SSLCertificateKeyFile 現在利用している秘密鍵</code></pre>
<p><strong>変更後</strong></p>
<pre><code>SSLCertificateFile /etc/apache2/ssl/server.cer
SSLCertificateKeyFile /etc/apache2/ssl/server.key</code></pre>
<p>保存して、Apache2を再起動すればOKです。<br />
ただし、注意してほしいのはSSL接続時に表示される以下のような警告は消えません。それは認証局CAcertは現在、標準ではブラウザに登録されていないからです。<br />
<a href='http://blog.chibiegg.net/wp-content/uploads/2008/06/safarie8a8bce6988ee69bb8e8ada6e5918a.jpg'><img src="http://blog.chibiegg.net/wp-content/uploads/2008/06/safarie8a8bce6988ee69bb8e8ada6e5918a-300x137.jpg" alt="Safariの場合の証明書警告画面" title="Safari証明書警告" width="300" height="137" class="aligncenter size-medium wp-image-171" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2008/06/29_23_170.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>CAcertから証明書をもらおう！(その3:CAcertから証明書をもらう)</title>
		<link>http://blog.chibiegg.net/2008/06/29_20_164.htm</link>
		<comments>http://blog.chibiegg.net/2008/06/29_20_164.htm#comments</comments>
		<pubDate>Sun, 29 Jun 2008 11:41:52 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=164</guid>
		<description><![CDATA[では次に前回のCSR(申請書)を使ってCAcertに証明書を発行してもらいます。
1.ドメインの登録
まずはドメインを登録する必要があります。
トップページからパスワードログインし、右のメニューの「ドメイン」から「追加」 [...]]]></description>
			<content:encoded><![CDATA[<p>では次に前回のCSR(申請書)を使ってCAcertに証明書を発行してもらいます。</p>
<p>1.ドメインの登録<br />
まずはドメインを登録する必要があります。<br />
トップページからパスワードログインし、右のメニューの「ドメイン」から「追加」を選択してください。<br />
<a href='http://blog.chibiegg.net/wp-content/uploads/2008/06/e38389e383a1e382a4e383b3e383a1e3838be383a5e383bc.jpg'><img src="http://blog.chibiegg.net/wp-content/uploads/2008/06/e38389e383a1e382a4e383b3e383a1e3838be383a5e383bc.jpg" alt="CAcertドメインメニュー" title="CAcertドメインメニュー" width="139" height="161" class="alignleft size-medium wp-image-165" /></a><br />
そして以下を参考に入力し、登録してください。<br />
今回はFQDNでなく自分が取得したドメインそのもので登録します。(例えばwww.hoge.netの証明書を申請する場合はhoge.net)<br />
<a href='http://blog.chibiegg.net/wp-content/uploads/2008/06/e38389e383a1e382a4e383b3e381aee585a5e58a9b.jpg'><img src="http://blog.chibiegg.net/wp-content/uploads/2008/06/e38389e383a1e382a4e383b3e381aee585a5e58a9b-300x170.jpg" alt="CAcertドメイン入力" title="CAcertドメイン入力" width="300" height="170" class="aligncenter size-medium wp-image-167" /></a><br />
<span id="more-164"></span><br />
アカウント登録時と同じようにメールによる確認があるので「[CAcert.org] メール調査」というタイトルのメールを受信したら記載されたリンクをクリックし「Yes verify this domain」をクリックすることによりこのドメインの証明書を発行できるようになります。</p>
<p>2.証明書の発行<br />
右のメニューの「サーバー証明書」から「新規作成」を選びます。<br />
<a href='http://blog.chibiegg.net/wp-content/uploads/2008/06/e382b5e383bce38390e383bce8a8bce6988ee69bb8e383a1e3838be383a5e383bc.jpg'><img src="http://blog.chibiegg.net/wp-content/uploads/2008/06/e382b5e383bce38390e383bce8a8bce6988ee69bb8e383a1e3838be383a5e383bc.jpg" alt="CAcertサーバー証明書メニュー" title="CAcertサーバー証明書メニュー" width="208" height="194" class="alignnone size-medium wp-image-168" /></a></p>
<p>下に表示されるテキストボックスの中に以下の図のように前回作成したcsrの中身を貼付けて「送信」します。<br />
<a href='http://blog.chibiegg.net/wp-content/uploads/2008/06/csre585a5e58a9b.jpg'><img src="http://blog.chibiegg.net/wp-content/uploads/2008/06/csre585a5e58a9b-300x152.jpg" alt="CAcertCSR入力ボックス" title="CAcertCSR入力ボックス" width="300" height="152" class="aligncenter size-medium wp-image-169" /></a><br />
「次の詳細が正しいことを確認してから、この先に進んでください。」と聞かれた場合は正しいことを確認した後に「送信」を押してください。<br />
すると証明書が表示されるので「&#8212;&#8211;BEGIN CERTIFICATE&#8212;&#8211;」から「&#8212;&#8211;END CERTIFICATE&#8212;&#8211;」の部分を「server.cer」という名前のテキストファイルに保存してください。(ファイル名は何でもいいです。証明書と鍵が区別できれば&#8230;)</p>
<p>これで証明書の発行も終わりです。<br />
必要なFQDNの数だけCSRを送信し証明書を発行してもらってください。<br />
また発行が済んだ「CSR」は使いませんので削除してかまいません。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2008/06/29_20_164.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>CAcertから証明書をもらおう！(その2:鍵と申請書の作成)</title>
		<link>http://blog.chibiegg.net/2008/06/29_20_163.htm</link>
		<comments>http://blog.chibiegg.net/2008/06/29_20_163.htm#comments</comments>
		<pubDate>Sun, 29 Jun 2008 11:14:19 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=163</guid>
		<description><![CDATA[今回はMacOSXで作成しました。さすがにブラウザを使うのでSSHで接続してまでLinuxを使わなくても良いかと思って&#8230;といっても前回証明書を作ったときと同じでLinuxでも全く同じように作成できるはずです。 [...]]]></description>
			<content:encoded><![CDATA[<p>今回はMacOSXで作成しました。さすがにブラウザを使うのでSSHで接続してまでLinuxを使わなくても良いかと思って&#8230;といっても前回証明書を作ったときと同じでLinuxでも全く同じように作成できるはずです。<br />
<span id="more-163"></span><br />
ターミナルを利用して「~/keys」に作成します。<br />
<strong>0.準備(フォルダ作成など)</strong></p>
<pre><code>$ cd ~
$ mkdir keys
$ cd keys </code></pre>
<p><strong>1.サーバーの秘密鍵を作成します</strong></p>
<pre><code>$ sudo openssl genrsa -out server.key 1024
Password:
Generating RSA private key, 1024 bit long modulus
..........................++++++
............................................++++++
e is 65537 (0x10001)</code></pre>
<p>これで「server.key」という名前で秘密鍵が作成できました。鍵の長さは2048でもかまいません。<br />
これはサーバー内で同一のものを利用できます。(FQDNの異なる接続。つまり<strong>www</strong>.hogehoge.netと<strong>blog</strong>.hoeghoge.netや<strong>ftp</strong>.hoge.com。)</p>
<p><strong>2.証明書申請書(署名要求書)を作成します。これはFQDNごとに作成する必要があります。</strong><br />
つまり<strong>www</strong>.hogehoge.netと<strong>ftp</strong>.hoge.comの証明書がいる場合はそれぞれ別に作成する必要があるということです。<br />
<strong>追記：Apache2の名前ベースのバーチャルホストではサイトごとに証明書を利用することはできないようです。一番最初に読まれた証明書が利用されるため違うサイトの証明書が利用され警告が出ます。<br />
一番簡単な対処法はワイルドカードを使うことです。例えば「blog.hogehoge.net」と「www.hogehoge.net」を名前ベースで運用している場合Common Nameを「*.hogehoge.net」にするといういことです。この件についてはまた今度。</strong></p>
<pre><code>$ openssl req -new -key server.key -out server.csr
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:<strong>JP //日本ならHP</strong>
State or Province Name (full name) [Some-State]:<strong>Tokyo //都道府県</strong>
Locality Name (eg, city) []:<strong>Setagaya-ku　//市区町村</strong>
Organization Name (eg, company) [Internet Widgits Pty Ltd]:<strong>Private //団体名</strong>
Organizational Unit Name (eg, section) []:<strong>Private //部署(wwwやftpなどにしてもいいかも)</strong>
Common Name (eg, YOUR name) []:<strong>www.hogehoge.net //FQDN(つまりアドレスすべて)</strong>
Email Address []:<strong>admin@hogehoge.net //CAcertに登録あるいは追加し認証したメールアドレス</strong>

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:<strong>//空</strong>
An optional company name []:<strong>//空</strong></code></pre>
<p>これで「server.csr」という名前で証明書申請書(署名要求書)が作成できました。<br />
FQDNが複数ある場合はこの手順で必要な数だけ違うファイル名で作成しておきます。<br />
もちろん秘密鍵をわけてもかまいません。</p>
<p>では次回は実際にCAcertに署名してもらい証明書を手に入れます。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2008/06/29_20_163.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>CAcertから証明書をもらおう！(その1:アカウントの登録)</title>
		<link>http://blog.chibiegg.net/2008/06/29_19_156.htm</link>
		<comments>http://blog.chibiegg.net/2008/06/29_19_156.htm#comments</comments>
		<pubDate>Sun, 29 Jun 2008 10:51:31 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=156</guid>
		<description><![CDATA[前置きは前回のページを読んでもらうとして。今回はCAcertにアカウントを作成します。
こちらから日本語のCAcertのトップにアクセスします。


1.右のメニューから「参加」リンクをクリックします。(「参加」というの [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.chibiegg.net/2008/06/29_15_154.htm">前置きは前回のページ</a>を読んでもらうとして。今回はCAcertにアカウントを作成します。</p>
<p><a href="https://www.cacert.org/index.php?id=0&amp;lang=ja_JP">こちらから日本語のCAcertのトップ</a>にアクセスします。</p>
<p><img class="alignleft size-medium wp-image-157" title="CAcert「参加」リンク" src="http://blog.chibiegg.net/wp-content/uploads/2008/06/e58f82e58aa0.jpg" alt="CAcertの「参加」リンク" width="232" height="158" /><br />
<span id="more-156"></span><br />
1.右のメニューから「参加」リンクをクリックします。(「参加」というのは日本語のニュアンスで言うと「CAcert」の開発に参加するという感じがするのは僕だけ？)</p>
<p>2.次に以下の図を参考にアカウント情報を入力してください。真ん中の５つの入力欄はパスワードを忘れたときに聞かれる質問です。左に問題、右に答えを入力してください。注意するのは生年月日が「日　月　年」の順番であることです。<br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2008/06/e382a2e382abe382a6e383b3e38388e68385e5a0b1.jpg"><img class="alignleft size-thumbnail wp-image-158" title="CAcertアカウント詳細情報入力例" src="http://blog.chibiegg.net/wp-content/uploads/2008/06/e382a2e382abe382a6e383b3e38388e68385e5a0b1-150x150.jpg" alt="CAcertアカウント詳細情報入力例" width="150" height="150" /></a><br />
登録すると以下のようなページが表示されます。<br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2008/06/e7a2bae8aa8de383a1e383bce383abe98081e4bfa1.jpg"><img class="aligncenter size-medium wp-image-159" title="CAcert確認メール送信画面" src="http://blog.chibiegg.net/wp-content/uploads/2008/06/e7a2bae8aa8de383a1e383bce383abe98081e4bfa1-300x87.jpg" alt="CAcert確認メール送信画面" width="300" height="87" /></a></p>
<p>3.メールを確認し、「」というタイトルのメールに記載されているアドレスにアクセスします。<br />
すると以下のようなページが表示され、「Yes verify this email」をクリックすることによってその次のページに進み、メールアドレスの確認は完了します。<br />
<strong>確認前</strong><br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2008/06/e383a1e383bce383abe382a2e38389e383ace382b9e7a2bae8aa8d1.jpg"><img class="alignleft size-medium wp-image-161" title="CAcertメール確認画面" src="http://blog.chibiegg.net/wp-content/uploads/2008/06/e383a1e383bce383abe382a2e38389e383ace382b9e7a2bae8aa8d1.jpg" alt="CAcertメール確認画面" width="223" height="146" /></a><br />
<strong>確認後</strong><br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2008/06/e383a1e383bce383abe382a2e38389e383ace382b9e7a2bae8aa8de5ae8ce4ba86.jpg"><img class="alignnone size-medium wp-image-162" title="CAcertメール確認後画面" src="http://blog.chibiegg.net/wp-content/uploads/2008/06/e383a1e383bce383abe382a2e38389e383ace382b9e7a2bae8aa8de5ae8ce4ba86-300x167.jpg" alt="CAcertメール確認後画面" width="300" height="167" /></a></p>
<p>以上で登録は完了です。<br />
トップページのメニューから「パスワードログイン」できることを確認してください。<br />
また、登録したメールアドレス以外のメールアドレスの証明書を作成する場合はログイン後のメニューからメールアドレスの追加をしてください。<br />
上と同じようにメールアドレスの確認があります。</p>
<p>次は証明書の申請書類(CSR)を作成します。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2008/06/29_19_156.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>CAcertから証明書をもらおう！(その0:紹介)</title>
		<link>http://blog.chibiegg.net/2008/06/29_15_154.htm</link>
		<comments>http://blog.chibiegg.net/2008/06/29_15_154.htm#comments</comments>
		<pubDate>Sun, 29 Jun 2008 06:47:19 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[Webサーバー]]></category>

		<category><![CDATA[サーバー管理]]></category>

		<category><![CDATA[CAcert]]></category>

		<category><![CDATA[証明書]]></category>

		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=154</guid>
		<description><![CDATA[CAcertとはこちらの記事が詳しいですが簡単に言うと無料でX.509セキュリティ証明書を発行してくれる認証機関です。

本来証明書は「Verisign」や「セコム」などに多くの費用を払わないともらえず、どうしてもその費 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.cacert.org/index.php?id=0&amp;lang=ja_JP">CAcert</a>とは<a href="http://opentechpress.jp/security/05/01/25/0522233.shtml">こちらの記事</a>が詳しいですが簡単に言うと無料でX.509セキュリティ証明書を発行してくれる認証機関です。<br />
<a href='http://blog.chibiegg.net/wp-content/uploads/2008/06/cacert.png'><img src="http://blog.chibiegg.net/wp-content/uploads/2008/06/cacert.png" alt="CAcertロゴマーク" title="CAcert" class="alignnone size-medium wp-image-155" /></a><br />
本来証明書は「Verisign」や「セコム」などに多くの費用を払わないともらえず、どうしてもその費用を払ってでもセキュリティを必要とするサーバー(本社と支店を接続したり、Amazonなどのネットショッピングサイト、あるいは銀行のネットバンキングなど)にしか導入できないものですが、CAcertボランティアによってすすめられている無料の認証局です。</p>
<p>もちろん上記のような本当にセキュアな通信が必要な場面では使えませんが、以前<a href="http://blog.chibiegg.net/2007/11/12_16_29.htm">この投稿</a>でApacheでSSLを有効にする際には「個人で勝手に作った認証局」から発行された（発行した？）「えせ証明書」を利用しましたが、それとは比較してはいけないぐらい十分すぎる証明書が頂け、利用できます。<br />
<span id="more-154"></span><br />
ということで記事は長くなりそうなので、シリーズに分けて以下の順に進めていきたいと思います。<br />
ついでにProFTPDもSSL対応にしてしまいます。メールサーバーは設定しません。<br />
(「＊一部内容を変更してお届けしています」という注記がいつ入るかわかりませんが&#8230;)</p>
<p><strong>1.</strong>CAcertにアカウントを登録する。<br />
<strong>2.</strong>証明書を発行してもらうための「申請書」(CSR)を作成する。<br />
<strong>3.</strong>証明書をもらう。<br />
<strong>4.</strong>Apacheに証明書を登録する。<br />
<strong>5.</strong>ProFTPDに証明書を登録し、FTPのSSLを有効にする。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2008/06/29_15_154.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>同一タイトルでの新規投稿不可問題</title>
		<link>http://blog.chibiegg.net/2008/06/29_11_153.htm</link>
		<comments>http://blog.chibiegg.net/2008/06/29_11_153.htm#comments</comments>
		<pubDate>Sun, 29 Jun 2008 02:52:48 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[Webサーバー]]></category>

		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=153</guid>
		<description><![CDATA[なぜか、他のWordPressの動作テストをしていたら「公開」ができなくなったので(詳細は割愛)こっちのも確認。
「保存」は動作確認。
「公開」も動作確認。
あれ？
追記
原因
同じタイトルの記事を新規投稿(保存ではなく [...]]]></description>
			<content:encoded><![CDATA[<p>なぜか、他のWordPressの動作テストをしていたら「公開」ができなくなったので(詳細は割愛)こっちのも確認。</p>
<p>「保存」は動作確認。<br />
「公開」も動作確認。<br />
あれ？</p>
<p><strong>追記</strong><br />
<strong><em>原因</em></strong><br />
同じタイトルの記事を新規投稿(保存ではなく公開)すると発生するらしい。<br />
だから「新規投稿テスト」とテストしたときは問題なかったのだ。<br />
<a href="http://ja.forums.wordpress.org/topic/44">こちら</a>に報告も発見。</p>
<p><strong><em>対処</em></strong><br />
今後新規記事を作る際に投稿できない場合はタイトルを変更して投稿。<br />
どうしてもそのタイトルにしたい場合は一度公開してから変更。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2008/06/29_11_153.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>阪急西院駅のゴミ箱使用中止</title>
		<link>http://blog.chibiegg.net/2008/06/27_22_151.htm</link>
		<comments>http://blog.chibiegg.net/2008/06/27_22_151.htm#comments</comments>
		<pubDate>Fri, 27 Jun 2008 13:58:49 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[日記]]></category>

		<category><![CDATA[雑記]]></category>

		<category><![CDATA[阪急]]></category>

		<category><![CDATA[西院]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=151</guid>
		<description><![CDATA[今日、阪急西院駅を通るとゴミ箱が封鎖されていた。
昨日6月26日から7月8日までだそうだ。

昨日と今日に国際会館と迎賓館でG8サミット外相会合が開かれることをすっかり忘れていた&#8230;
昨日と今日ってちょうどアメ [...]]]></description>
			<content:encoded><![CDATA[<p>今日、阪急西院駅を通るとゴミ箱が封鎖されていた。<br />
昨日6月26日から7月8日までだそうだ。<br />
<a href='http://blog.chibiegg.net/wp-content/uploads/2008/06/img_0170.jpg'><img src="http://blog.chibiegg.net/wp-content/uploads/2008/06/img_0170-300x224.jpg" alt="阪急西院駅の封鎖されたゴミ箱" title="Hankyu_saiin_garbage_box_20080627" width="300" height="224" class="alignnone size-medium wp-image-152" /></a><br />
昨日と今日に国際会館と迎賓館でG8サミット外相会合が開かれることをすっかり忘れていた&#8230;</p>
<p>昨日と今日ってちょうどアメリカが北朝鮮のテロ支援指定国家解除を発表した日だったのだが、もし拉致の被害国が日本ではなく、ほかの国なら「北朝鮮テロ支援国家指定解除」なんか発表されたら暴動とか起きてもおかしくないのかな、と友達と学校で少し話題になったのだが&#8230;日本ではやはり「G8外相会合」なんかとピッタリ重なっても何も起きなかった。</p>
<p>河原町は<a href="http://gigazine.net/index.php?/news/comments/20080615_hankyu_garbage_box/">この記事</a>によると6月13日からだから西院では最初は封鎖するつもりが無かったけれど昨日のアメリカの発表で封鎖することにしたのか、それとも元から昨日封鎖するつもりだったのか気になるが全く関係ないのだろう。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2008/06/27_22_151.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>ProFTPDの導入</title>
		<link>http://blog.chibiegg.net/2008/06/19_23_150.htm</link>
		<comments>http://blog.chibiegg.net/2008/06/19_23_150.htm#comments</comments>
		<pubDate>Thu, 19 Jun 2008 14:53:32 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[サーバー管理]]></category>

		<category><![CDATA[サーバー]]></category>

		<category><![CDATA[ProFTPD]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=150</guid>
		<description><![CDATA[自分だけがサーバーのファイルをいじるだけならSSH、SFTPやnetatalkのみで十分だったのですが、後輩たちがクラブのページを作成する場所をつくるにあたってFTPを導入しようと思ったのです。が、なかなかPassive [...]]]></description>
			<content:encoded><![CDATA[<p>自分だけがサーバーのファイルをいじるだけならSSH、SFTPやnetatalkのみで十分だったのですが、後輩たちがクラブのページを作成する場所をつくるにあたってFTPを導入しようと思ったのです。が、なかなかPassiveモードが利用できず、ルーター越えでの接続ができませんでした。<br />
で、ProFTPDの再インストールからはじめ、やっと今回成功したのでメモしておきます。<br />
構成としてはxinetd経由で起動し、ファイルによる仮想ユーザーということで。<br />
(仮想ユーザーについてはまた今度&#8230;)</p>
<p>内容は2点です。<br />
１．ProFTPDとxinetdの設定ファイル<br />
２．iptablesのためにモジュールの読み込み</p>
<p><span id="more-150"></span><br />
結局最後行き着いたのは以下の設定ファイルの状態。(一部セキュリティのため改変)<br />
<strong>/etc/proftpd/proftpd.conf</strong></p>
<pre><code>Include /etc/proftpd/modules.conf

UseIPv6				off

ServerName			"chibiegg FTP Server"
ServerType			inetd
DeferWelcome			off

MultilineRFC2228		on
DefaultServer			on
ShowSymlinks			on

TimeoutNoTransfer		600
TimeoutStalled			600
TimeoutIdle			1200

DisplayLogin                    welcome.msg
DisplayFirstChdir               .message
ListOptions                	"-al"

DenyFilter			\*.*/

UseReverseDNS			off

Port				21

AllowForeignAddress on
DefaultRoot ~

PassivePorts                    23000 25000

MasqueradeAddress		****.******.net

MaxInstances			30

User				******
Group				******
Umask				022  022
AllowOverwrite			on

TransferLog /var/log/proftpd/xferlog
SystemLog   /var/log/proftpd/proftpd.log

LogFormat allinfo "%t :  %u (%a [%h]) : [%s], %T, %m (%f)"
LogFormat write "%t : %u : %F (%a)"
LogFormat read "%t : %u : %F (%a)"
LogFormat auth "%t : %u (%a [%h])"

ExtendedLog /var/log/proftpd/all.log ALL allinfo
ExtendedLog /var/log/proftpd/write.log WRITE write
ExtendedLog /var/log/proftpd/read.log  READ read
ExtendedLog /var/log/proftpd/auth.log AUTH auth

&lt;ifmodule mod_tls.c&gt;
TLSEngine off
&lt;/ifmodule&gt;

&lt;ifmodule mod_quota.c&gt;
QuotaEngine on
&lt;/ifmodule&gt;

&lt;ifmodule mod_ratio.c&gt;
Ratios on
&lt;/ifmodule&gt;

&lt;ifmodule mod_delay.c&gt;
DelayEngine on
&lt;/ifmodule&gt;

&lt;ifmodule mod_ctrls.c&gt;
ControlsEngine        on
ControlsMaxClients    2
ControlsLog           /var/log/proftpd/controls.log
ControlsInterval      5
ControlsSocket        /var/run/proftpd/proftpd.sock
&lt;/ifmodule&gt;

&lt;ifmodule mod_ctrls_admin.c&gt;
AdminControlsEngine on
&lt;/ifmodule&gt;

&lt;limit LOGIN&gt;
	Order allow, deny
	Allow from all
&lt;/limit&gt;

AuthOrder mod_auth_file.c

AuthUserFile /etc/proftpd/ftpd.passwd
AuthGroupFile /etc/proftpd/ftpd.group</code></pre>
<p><strong>/etc/xinetd.d/proftpd</strong></p>
<pre><code>service ftp
{
        disable     	= no
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = root
        server          = /usr/sbin/in.proftpd
}</code></pre>
<p>実際ローカルからPassiveモードを利用しない場合は簡単に接続できていたのだが、どうしてもPassiveモードでは接続できなかった。(もちろんログインはできるが一覧の取得などができない。)これではマスカレードを使ったルーター越えができない。</p>
<p>結果として原因は2つありました。<br />
まず一つはProFTPDの設定の問題。(上の設定ファイルは修正後)<br />
ProFTPDには関係の無いIPアドレスからのPassiveモード用ポートへのアクセスは拒否する機能が付いているのですがこれが悪さをしていました。<br />
Passiveモードタイムアウト後のログを見るとこんなエラーがありました。<br />
<code>
<pre>SECURITY VIOLATION: Passive connection from ***.***.***.*** rejected.</pre>
<p></code><br />
ということでセキュリティー的には避けたいところですが、この機能を無効にしました。<br />
「/etc/proftpd/proftpd.conf」に以下の一行を追加。<br />
<code>
<pre>AllowForeignAddress on</pre>
<p></code>(<a href="http://landisk.kororo.jp/diary/33_portforward.php">こちら</a>のサイトに記載されていました。ありがとうございます。)</p>
<p>もうひとつはiptablesです。FTPを通すためには<strong>ポートを開けるだけでなく</strong>「ip_conntrack_ftp」と「ip_nat_ftp」の2つのモジュールを読み込む必要があるらしいのです。<br />
ということで「/etc/modules」ファイルに以下の2行を追記しました。</p>
<pre><code>ip_conntrack_ftp
ip_nat_ftp</code></pre>
<p>これでサーバーを再起動するとPassiveモードでもデータ転送ができるようになりました。<br />
悩みの種一つ解消。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2008/06/19_23_150.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>WordPressの管理画面をLeopard風に</title>
		<link>http://blog.chibiegg.net/2008/06/19_00_145.htm</link>
		<comments>http://blog.chibiegg.net/2008/06/19_00_145.htm#comments</comments>
		<pubDate>Wed, 18 Jun 2008 15:02:10 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[Webサーバー]]></category>

		<category><![CDATA[日記]]></category>

		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=145</guid>
		<description><![CDATA[Leopardぽいスキンを探しているときに見つけたものです。
おもしろそうだったので入れてみました。
「LepardAdmin」をインストールすると管理画面が以下のような感じになります。

ダウンロードはこちらの公式サイ [...]]]></description>
			<content:encoded><![CDATA[<p>Leopardぽいスキンを探しているときに見つけたものです。<br />
おもしろそうだったので入れてみました。<br />
「LepardAdmin」をインストールすると管理画面が以下のような感じになります。</p>
<p><a href='http://blog.chibiegg.net/wp-content/uploads/2008/06/leopardadmin.jpg'><img src="http://blog.chibiegg.net/wp-content/uploads/2008/06/leopardadmin-300x198.jpg" alt="LeopardAdmin導入例" title="LeopardAdmin" width="300" height="198" class="alignnone size-medium wp-image-147" /></a></p>
<p>ダウンロードは<a href="http://www.teddyhwang.com/resources/leopardadmin/">こちら</a>の公式サイトから。<br />
<a href="http://www.teddyhwang.com/resources/leopardadmin/">Teddy Hwang » Leopard Admin</a></p>
<p>インストールしてプラグインを有効にするだけです。<br />
これをみるとつくづくMacOSX Serverを導入したいと思うわけです&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2008/06/19_00_145.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>WordPressMEからWordPress日本語版へ更新</title>
		<link>http://blog.chibiegg.net/2008/06/18_23_146.htm</link>
		<comments>http://blog.chibiegg.net/2008/06/18_23_146.htm#comments</comments>
		<pubDate>Wed, 18 Jun 2008 14:54:33 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[未分類]]></category>

		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/?p=146</guid>
		<description><![CDATA[WordPressMEが更新されなくなり、WordPress日本語版に移行してから大分経つのでそろそろ更新しようと思いました。
今回はME2.2.3から日本語版2.5.1にアップデートということでメモをとりたいと思います [...]]]></description>
			<content:encoded><![CDATA[<p>WordPressMEが更新されなくなり、WordPress日本語版に移行してから大分経つのでそろそろ更新しようと思いました。<br />
今回はME2.2.3から日本語版2.5.1にアップデートということでメモをとりたいと思います。</p>
<p>アップデート作業の詳細はＷｏｒｄPress日本語Codexの「<a href="http://wpdocs.sourceforge.jp/WordPress_のアップグレード/詳細">WordPress のアップグレード/詳細</a>」を参照ください。</p>
<p>１，SQLとファイルのバックアップの作成<br />
２，プラグインの無効化<br />
３，不要な古いファイルの削除<br />
４，ファイルを最新に更新<br />
５，データベースの更新<br />
６，表示確認とプラグインの有効化</p>
<p>を順番に行います。</p>
<p><span id="more-146"></span><br />
<strong>１，SQLとファイルのバックアップの作成</strong><br />
まずは失敗したときのためにSQLとすべてのファイルのバックアップを取ります。<br />
<em>SQLのバックアップ</em><br />
バックアップするデータベースが「WordPress」ユーザー名を「username」パスワードが「passwd」であるとするとダンプファイルを作成したいディレクトリで以下のコマンドを実行します。</p>
<pre><code>$ mysqldump -u username -ppasswd WordPress > ./sqldump.sql</code></pre>
<p><em>ファイルのバックアップ</em><br />
rsyncを使ってバックアップを作りたいと思います。<br />
「/www/blog」フォルダを「www/blog-old」フォルダにバックアップする場合以下のコマンドを実行します。</p>
<pre><code>$ rsync -av --delete /www/blog /www/blog-old</code></pre>
<p>以上でバックアップの作成は終わりです。</p>
<p><strong>２，プラグインの無効化</strong><br />
ここですべてのプラグインを無効にしておきます。</p>
<p><strong>３，不要な古いファイルの削除</strong><br />
次に不要なファイルの削除を行います。<br />
<strong>削除してはいけない</strong>ファイルとフォルダは次の通りです。</p>
<blockquote><p>wp-config.phpファイル<br />
wp-contentフォルダー<br />
wp-imagesフォルダー<br />
wp-includes/languages/フォルダー　（言語ファイルを使用している場合は削除しないこと）<br />
.htaccessファイル</p></blockquote>
<p>今回<strong>削除した</strong>ファイルとフォルダは次の通りです。</p>
<blockquote><p>wp-adminフォルダー<br />
wp-includesフォルダー<br />
wp-content/plugins/widgetsフォルダ<br />
ルートディレクトリにあるwp-config.php以外のWordPress関係のファイル</p></blockquote>
<p><strong>４，ファイルを最新に更新</strong><br />
次に最新版のダウンロードと解凍、上書きです。<br />
「<a href="http://ja.wordpress.org/releases/">WordPress日本語版 リリース</a>」から最新版のtar.gz形式のリンクを探します。<br />
以下のようにダウンロード、解凍、上書きします。以下はディレクトリ構成が「/www/blog」フォルダにwp-config.phpがある場合の例です。<br />
<code>
<pre>$ cd /www/
$ wget http://ja.wordpress.org/wordpress-2.5.1-ja.tar.gz
$ tar xvzf wordpress-2.5.1-ja.tar.gz
$ cd ./blog
$ cp -r ../wordpress/* ./</pre>
<p></code></p>
<p><strong>５，データベースの更新</strong><br />
ではデータベースの更新作業を行います。<br />
これは簡単で「http://hogehoge.com/wp-admin/upgrade.php」のような更新スクリプトをブラウザから開き、「続ける」をクリックするだけで完了します。</p>
<p><strong>６，表示確認とプラグインの有効化</strong><br />
最後にページが正しく表示されるかを確認し、順番にプラグインを有効にするだけです。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2008/06/18_23_146.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>MaximaのインストールとMaximaPHPの導入</title>
		<link>http://blog.chibiegg.net/2008/05/31_00_136.htm</link>
		<comments>http://blog.chibiegg.net/2008/05/31_00_136.htm#comments</comments>
		<pubDate>Fri, 30 May 2008 15:59:04 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[未分類]]></category>

		<category><![CDATA[Maxima]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/2008/05/31_00_136.htm</guid>
		<description><![CDATA[Maximaとはオープンソースの数式処理システムです。製品で有名なのはMathematicaなどがあるのですが。
ちょっと計算の確認をしたり、やってみたいけど面倒な数式処理。あるいはグラフの描画など、本格的な利用でなくて [...]]]></description>
			<content:encoded><![CDATA[<p>Maximaとはオープンソースの数式処理システムです。製品で有名なのはMathematicaなどがあるのですが。<br />
ちょっと計算の確認をしたり、やってみたいけど面倒な数式処理。あるいはグラフの描画など、本格的な利用でなくても大変便利なシステムです。(くわしいことは割愛。というより、本当に使える人に申し訳ない&#8230;。大学に入ったら使うようになりたいなと&#8230;)</p>
<p>こんなグラフも簡単に描けます。<br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2008/05/2cos3t_2sin5t.png"><img src='http://blog.chibiegg.net/wp-content/uploads/2008/05/2cos3t_2sin5t.thumbnail.png' title='2cos3t_2sin5t.png' alt='2cos3t_2sin5t.png' /></a><br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2008/05/plot3d_cosx3ycosx-2_sinx3ycosx-2ysinx-2_x-pipiy-11grid5015.png"><img src='http://blog.chibiegg.net/wp-content/uploads/2008/05/plot3d_cosx3ycosx-2_sinx3ycosx-2ysinx-2_x-pipiy-11grid5015.thumbnail.png' title='plot3d_cosx3ycosx-2_sinx3ycosx-2ysinx-2_x-pipiy-11grid5015.png' alt='plot3d_cosx3ycosx-2_sinx3ycosx-2ysinx-2_x-pipiy-11grid5015.png' /></a><br />
で、そのMaximaをブラウザ経由(PHP)で外部から使えるようにするのがMaximaPHPです。<br />
今回はその導入手順のメモです。<br />
<span id="more-136"></span><br />
<strong>Maximaのインストール</strong><br />
これはAPTITUDEで簡単にインストールできますが、目当てのバージョンは5.11.0なのでソースからコンパイルします。<br />
<a href="http://macwiki.sourceforge.jp/wiki/index.php/Maxima#cmucl_.2B_Maxima">ここ</a>を参考に「cmucl + Maxima」でインストールします。</p>
<p><code>
<pre>$ cd /tmp/
$ sudo apt-get install rlwrap
$ wget ftp://anonymous@ftp.gnu.org:21/pub/gnu/readline/readline-5.2.tar.gz
省略

$ tar zxvf ./readline-5.2.tar.gz
省略

$ cd readline-5.2/
$ ./configure
省略

$ make
省略

$ sudo make install
省略

$ cd ../
$ wget http://jaist.dl.sourceforge.net/sourceforge/maxima/maxima-5.11.0.tar.gz
省略
23:54:23 (8.39 MB/s) - `maxima-5.11.0.tar.gz' を保存しました [13924132/13924132]

$ tar zxvf ./maxima-5.11.0.tar.gz
省略

$ cd maxima-5.11.0/
$ ./configure
省略

$ make
省略

$ sudo make install
省略
</pre>
<p></code><br />
ここで動作確認をします。</p>
<p><code>
<pre>$ maxima
/usr/lib/maxima/5.10.0/binary-gcl/maxima: error while loading shared libraries: libgmp.so.3: cannot open shared object file: No such file or directory</pre>
<p></code><br />
ところが、当方の環境では「libgmp」が無いと言われたのでインストールします。<br />
<code>
<pre>$ apt-get install libgmp-ocaml
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています... 完了
以下の特別パッケージがインストールされます:
  libgmp3c2
以下のパッケージが新たにインストールされます:
  libgmp-ocaml libgmp3c2
アップグレード: 0 個、新規インストール: 2 個、削除: 0 個、保留: 15 個。
451kB のアーカイブを取得する必要があります。
展開後に追加で 786kB のディスク容量が消費されます。
続行しますか [Y/n]?
取得:1 http://ftp.jp.debian.org etch/main libgmp3c2 2:4.2.1+dfsg-4 [430kB]
取得:2 http://ftp.jp.debian.org etch/main libgmp-ocaml 20021123-11 [21.3kB]
451kB を 0s で取得しました (1167kB/s)
未選択パッケージ libgmp3c2 を選択しています。
(データベースを読み込んでいます ... 現在 124543 個のファイルとディレクトリがインストールされています。)
(.../libgmp3c2_2%3a4.2.1+dfsg-4_i386.deb から) libgmp3c2 を展開しています...
未選択パッケージ libgmp-ocaml を選択しています。
(.../libgmp-ocaml_20021123-11_i386.deb から) libgmp-ocaml を展開しています...
libgmp3c2 (4.2.1+dfsg-4) を設定しています ...

libgmp-ocaml (20021123-11) を設定しています ...</pre>
<p></code></p>
<p>もう一度起動してみます。起動できたらなにか計算をやってみましょう。<br />
<code>
<pre>$ maxima</pre>
<p></code></p>
<p>こんな風に正しく動作すればOKです。<br />
<code>
<pre>Maxima 5.11.0 http://maxima.sourceforge.net
Using Lisp CMU Common Lisp CVS 19d 19d-release (19D)
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
This is a development version of Maxima. The function bug_report()
provides bug reporting information.
(%i1) f(x):=3*x^2+5;
					  2
(%o1) 			       f(x) := 3 x  + 5
(%i2) f(1);
(%o2) 				       8
(%i3) f(0);
(%o3) 				       5
(%i4)
</pre>
<p></code></p>
<p><strong>TeX to MathML translator(TtM)のインストール</strong><br />
TtMとは名前の通りTeXをMathMLに変換してくれるライブラリです。<br />
MaximaPHPで利用されるのでインストールします。<br />
公式サイトは<a href="http://hutchinson.belmont.ma.us/tth/mml/">こちら</a>。<br />
<code>
<pre>$ cd /tmp/
$ wget http://hutchinson.belmont.ma.us/tth/mml/ttmL.tar.gz
$ tar zxvf ttmL.tar.gz
$ cd ./ttmL
$ ./ttminstall
Making directory /root/bin
 I've added /root/bin to your PATH, but that needs to be made permanent.
 Edit your shell resources file, typically .bash_profile.
 The directory /root/bin is where the TtM programs are kept.
 Copying ttm, ps2gif, and latex2gif to /root/bin.
 You don't seem to have KDE installed.
</pre>
<p></code></p>
<p><strong>MaximaPHPのインストール</strong><br />
これは公式サイト(<a href="http://maximaphp.sourceforge.net/">http://maximaphp.sourceforge.net/</a>)からダウンロードしてきます。<br />
あらかじめWeb公開ディレクトリに移動しておきます。(勝手にそうさされないよう認証のあるディレクトリを推奨します)<br />
<code>
<pre>$ wget http://jaist.dl.sourceforge.net/sourceforge/maximaphp/maximaphp-0.1.3-alpha.tar.gz
$ tar zxvf ./maximaphp-0.1.3-alpha.tar.gz</pre>
<p></code><br />
次に「INSTALL」の説明にしたがってParlスクリプトを移動させ実行許可を与えます。<br />
<code>
<pre>$ sudo mv ./scripts/* /bin/
$ sudo chmod 755 /bin/_maxima_with_timeout_.pl
$ sudo chmod 755 /bin/_ttm_with_timeout_.pl</pre>
<p></code></p>
<p>そして「INSTALL」の説明にしたがって「mpxhtml.php」を編集します。(<strong>後日詳しく追記する予定</strong>)</p>
<p>画像作成用のディレクトリも作成しておきます。<br />
<code>
<pre>$ mkdir ./temp
$ mkdir ./png
$ chmod -R 777 ./temp
$ chmod -R 777 ./png</pre>
<p></code></p>
<p>そしてrewriteするためにデフォルトの「.htaccess」を持ってきます。<br />
<code>
<pre>$ cp ./rewriteurl/htaccess-yes ./.htaccess
$ cp ./rewriteurl/mprewriteurl-yes.php ./mprewriteurl.php </pre>
<p></code></p>
<p><strong>MaximaPHPの動作確認</strong><br />
今回は「http://chibiegg.net/maxima/」に導入したとします。<br />
http://chibiegg.net/maxima/に接続したページで、「Example」ボタンを押すと計算結果が表示されればOKです。<br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2008/05/maximaphp-example1.jpg"><img src='http://blog.chibiegg.net/wp-content/uploads/2008/05/maximaphp-example1.thumbnail.jpg' title='maximaphp-example1.jpg' alt='maximaphp-example1.jpg' /></a></p>
<p>ちなみにこのようにプロットが表示できれば画像もOKです。<br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2008/05/maximaphp-example2.jpg"><img src='http://blog.chibiegg.net/wp-content/uploads/2008/05/maximaphp-example2.thumbnail.jpg' title='maximaphp-example2.jpg' alt='maximaphp-example2.jpg' /></a></p>
<p>カスタマイズなどはまた後日&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2008/05/31_00_136.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>メールサーバーの構築(3)</title>
		<link>http://blog.chibiegg.net/2008/03/31_17_135.htm</link>
		<comments>http://blog.chibiegg.net/2008/03/31_17_135.htm#comments</comments>
		<pubDate>Mon, 31 Mar 2008 08:37:37 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[サーバー管理]]></category>

		<category><![CDATA[サーバー]]></category>

		<category><![CDATA[メール]]></category>

		<category><![CDATA[Courier]]></category>

		<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/2008/03/31_17_135.htm</guid>
		<description><![CDATA[なかなかバーチャルユーザーでのメールサーバーがうまくいかないので、まずはLinuxユーザーでのメール送受信をしてみました。(今回は成功しています。)
構成はPostfix(とりあえずSSLなしのSMTP) + SASL2 [...]]]></description>
			<content:encoded><![CDATA[<p>なかなかバーチャルユーザーでのメールサーバーがうまくいかないので、まずはLinuxユーザーでのメール送受信をしてみました。(今回は成功しています。)</p>
<p>構成はPostfix(とりあえずSSLなしのSMTP) + SASL2によるSMTP-Auth + OP25B対策のためISP(eo)のサーバーを経由 + Courier(IMAP,POP) よってMaildir形式です。いたって標準的な構成です。<br />
外部に解放するポートは<br />
送信に必須(25,587)<br />
WANからSSLなしでメールチェックをする場合に必要(110,143)<br />
WANからSSLありでメールチェックをする場合に必要(995,993)<br />
です。</p>
<p><span id="more-135"></span></p>
<p>必要なものをインストールします。</p>
<pre><code>$ su
# apt-get install postfix postfix-tls libsasl2 libsasl2-modules sasl2-bin courier-pop-ssl courier-imap-ssl</code></pre>
<p>courierではWebによる設定(courier-webadmin)について聞かれます。Webベースで設定できるのならそうしておきたいので私は「はい」を選択しておきましたがどちらでもかまいません。<br />
Postfixのインストール時にサーバーのタイプを聞かれますので「インターネットサイト」を選択してください。<br />
「メール名は？」と聞かれたら構築するメールサーバーの「＠」以降を入力してください。</p>
<p>では、Postfixの設定ファイルを編集します。<br />
ますは「/etc/postfix/main.cf」を。<br />
0.基本的な変更</p>
<pre><code>mydomain = hogehoge.com</code></pre>
<p>を追記。(これは適時書き換えてください)</p>
<pre><code>myorigin = mail.hogehoge.net
mydestination = $myhostname, localhost.$mydomain, localhost</code></pre>
<p>に変更<br />
1.Maildir形式にする。</p>
<pre><code>mailbox_command = procmail -a "$EXTENSION"</code></pre>
<p>を</p>
<pre><code><font color="#0000FF">#</font>mailbox_command = procmail -a "$EXTENSION"</code></pre>
<p>としてコメントアウト</p>
<pre><code>home_mailbox = Maildir/</code></pre>
<p>を追加<br />
2.SASL2によるSMTP-Authの有効</p>
<pre><code>smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_auth_destination,reject
smtpd_sasl_path = smtpd
broken_sasl_auth_clients = yes</code></pre>
<p>を追加<br />
3.OP25B対策のためISPのSMTPを経由するように変更</p>
<pre><code>relayhost = </code></pre>
<p>を</p>
<pre><code>relayhost = <font color="#0000FF">[smtpauth.eonet.ne.jp]:587</font></code></pre>
<p>に。これはISPのSMTP-Authサーバーのアドレスにしてください。</p>
<pre><code>smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/isp_auth
smtp_sasl_security_options = noanonymous</code></pre>
<p>を追加。</p>
<p>次に「/etc/postfix/master.cf」を編集<br />
「smtp      inet  n       -       -       -       -       smtpd」の下に</p>
<pre><code>  -o smtpd_sasl_auth_enable=yes</code></pre>
<p>を追加(最初のスペースは不可欠)</p>
<pre><code><font color="#0000FF">#</font>submission inet n       -       -       -       -       smtpd
<font color="#0000FF">#</font>  -o smtpd_sasl_auth_enable=yes
<font color="#0000FF">#</font>  -o smtpd_client_restrictions=permit_sasl_authenticated,reject</code></pre>
<p>を</p>
<pre><code>submission inet n       -       -       -       -       smtpd
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject</code></pre>
<p>に変更(コメント解除)し、その下に</p>
<pre><code>  -o smtpd_etrn_restrictions=reject</code></pre>
<p>を追加。</p>
<p>ISPのメールサーバーにログインするためのユーザー名とパスワードを登録します。<br />
「/etc/postfix/isp_auth」を作成し以下のように記述して保存します。</p>
<pre><code>[smtpauth.eonet.ne.jp]:587 ユーザー名:パスワード</code></pre>
<p>そしてDB化</p>
<pre><code># postmap /etc/postfix/isp_auth</code></pre>
<p>最後にSASLにSMTPのユーザー名とパスワードを登録します。</p>
<pre><code># saslpasswd2 -c -u `postconf -h myhostname` ユーザー名</code></pre>
<p>パスワードを二回聞かれるのでSMTP認証に使いたいパスワードを設定してください。<br />
初回時に以下のコマンドも実行してください。</p>
<pre><code># chgrp postfix /etc/sasldb2
# chmod g+r /etc/sasldb2
# ln /etc/sasldb2 /var/spool/postfix/etc</code></pre>
<p>ユーザーを削除するときは</p>
<pre><code># saslpasswd2 -c -u `postconf -h myhostname` ユーザー名</code></pre>
<p>これでLinuxユーザー名とパスワードでメール送受信ができるはずです。<br />
POPのパスワードはLinuxユーザーのパスワードを利用し,SMTPへはSASLで設定したパスワードを利用します。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2008/03/31_17_135.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>AFP経由のrsync</title>
		<link>http://blog.chibiegg.net/2008/03/26_18_134.htm</link>
		<comments>http://blog.chibiegg.net/2008/03/26_18_134.htm#comments</comments>
		<pubDate>Wed, 26 Mar 2008 09:00:21 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[サーバー管理]]></category>

		<category><![CDATA[バックアップ]]></category>

		<category><![CDATA[Mac]]></category>

		<category><![CDATA[netatalk]]></category>

		<category><![CDATA[rsync]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/2008/03/26_18_134.htm</guid>
		<description><![CDATA[検証というほど大それたものではありませんが。
教えて頂いたCJKパッチを当てたnetatalkをインストール済みのDebianにLeopardからAFP経由でrsyncを使ってiTunesフォルダをバックアップしてみまし [...]]]></description>
			<content:encoded><![CDATA[<p>検証というほど大それたものではありませんが。<br />
教えて頂いたCJKパッチを当てたnetatalkをインストール済みのDebianにLeopardからAFP経由でrsyncを使ってiTunesフォルダをバックアップしてみました。</p>
<p>SSH経由でバックアップしたときはファイル名によってMac側から開けないファイルがあったのですが、そのような現象はありませんでした。</p>
<p>これで安心してiTunesのバックアップがとれます。<br />
CJKパッチやCoreFoundationによるdecompose/precomposeの変換についてもご丁寧に教えでくださったHATさんには自サイト上で申し訳ありませんが、お礼申し上げます。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2008/03/26_18_134.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>メールサーバーの構築(2)</title>
		<link>http://blog.chibiegg.net/2008/03/21_01_133.htm</link>
		<comments>http://blog.chibiegg.net/2008/03/21_01_133.htm#comments</comments>
		<pubDate>Thu, 20 Mar 2008 16:18:55 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[サーバー管理]]></category>

		<category><![CDATA[日記]]></category>

		<category><![CDATA[サーバー]]></category>

		<category><![CDATA[メール]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/2008/03/21_01_133.htm</guid>
		<description><![CDATA[すいません。以前書いたメールサーバーの設定ですが書くのを忘れていましたが殆ど自分のためのメモです。
なんかいろいろいじってたらうまくいってやり方は忘れてしまったということがよくあるので&#8230;
実のところ全然できて [...]]]></description>
			<content:encoded><![CDATA[<p>すいません。以前書いたメールサーバーの設定ですが書くのを忘れていましたが殆ど自分のためのメモです。<br />
なんかいろいろいじってたらうまくいってやり方は忘れてしまったということがよくあるので&#8230;</p>
<p>実のところ全然できていません。一時メールが受信できるようになったのに次の瞬間ユーザー名とパスワードが通らなかったり。SMTPは全然だめだし。OP25Bが施されているプロバイダ(K-OPTI.COM)なので25番ポートでの標準的な送信ができないし。</p>
<p>以前書いた諸事情で30日までには成功させないといけません。そのときにはちゃんとまとめる予定です。自分のためにも&#8230;</p>
<p>rsyncの件ですが近日中にパッチをあてたAFP経由でrsyncしてみます。なにせiTunesライブラリのバックアップで80G弱必要なところにiTunesバックアップ用に準備したハードディスクが80Gで。いったん全部消さないといけないなと思っています。一からした方が気分がいいので。<br />
HATさんにはいつもご丁寧に教えていただき大変勉強になっております。本当にありがとうございます。</p>
<p>今日21日は昼頃から学校で単位認定会議です。高三になれるかどうかが決まる日なのですが、大丈夫であることを祈ります。2回も入院したり退院後もときどき休んだりして出席日数が&#8230;.なので。欠課のところはどうなるのか&#8230;英語も&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2008/03/21_01_133.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>netatalkをCJKパッチ付きでインストール</title>
		<link>http://blog.chibiegg.net/2008/03/18_23_132.htm</link>
		<comments>http://blog.chibiegg.net/2008/03/18_23_132.htm#comments</comments>
		<pubDate>Tue, 18 Mar 2008 14:41:56 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[サーバー管理]]></category>

		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/2008/03/18_23_132.htm</guid>
		<description><![CDATA[HATさんに当サイトへトラックバックしていただいた「Netatalk 2.0.3 with SSL and CJK on Debian 4.0」を実践してみました。
理由はDebian上のファイルをAFP経由Macからで [...]]]></description>
			<content:encoded><![CDATA[<p>HATさんに当サイトへトラックバックしていただいた「Netatalk 2.0.3 with SSL and CJK on Debian 4.0」を実践してみました。<br />
理由はDebian上のファイルをAFP経由Macからでファイルの一覧は正常に取得できるのに特定のファイルが開こうとマウスで選択した瞬間Finderから消失するという現象があったので、CJKパッチを当てたら直るかなぁという希望があったのです。(同じファイルでもファイル名を変更すると正常にAFP経由でも開けるので。)</p>
<p><a href="http://www003.upp.so-net.ne.jp/hat/netatalk/debian40.html">こちら</a>のページでは大変丁寧に順番が記載されているので簡単にインストールすることができました。<br />
<code>
<pre>
<font color="#0000FF">~/</font>$ cd /tmp/
<font color="#0000FF">/tmp</font>$ mkdir netatalkbuild
<font color="#0000FF">/tmp</font>$ cd netatalkbuild/
<font color="#0000FF">/tmp/netatalkbuild</font>$ export LANG=ja_JP.UTF-8
<font color="#0000FF">/tmp/netatalkbuild</font>$ echo $LANG
ja_JP.UTF-8
<font color="#0000FF">/tmp/netatalkbuild</font>$ sudo apt-get install fakeroot
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています... 完了
fakeroot はすでに最新バージョンです。
アップグレード: 0 個、新規インストール: 0 個、削除: 0 個、保留: 71 個。
<font color="#0000FF">/tmp/netatalkbuild</font>$ sudo apt-get install libssl-dev cracklib2-dev
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています... 完了
libssl-dev はすでに最新バージョンです。
cracklib2-dev はすでに最新バージョンです。
アップグレード: 0 個、新規インストール: 0 個、削除: 0 個、保留: 71 個。
<font color="#0000FF">/tmp/netatalkbuild</font>$ apt-get source netatalk
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています... 完了
1947kB のソースアーカイブを取得する必要があります。
取得:1 http://ftp.jp.debian.org etch/main netatalk 2.0.3-4 (dsc) [802B]
取得:2 http://ftp.jp.debian.org etch/main netatalk 2.0.3-4 (tar) [1921kB]
取得:3 http://ftp.jp.debian.org etch/main netatalk 2.0.3-4 (diff) [26.1kB]
1947kB を 1s で取得しました (1492kB/s)
gpg: Signature made 2006年01月14日 17時30分38秒 JST using DSA key ID 496A1827
gpg: Can't check signature: public key not found
dpkg-source: extracting netatalk in netatalk-2.0.3
dpkg-source: unpacking netatalk_2.0.3.orig.tar.gz
dpkg-source: applying ./netatalk_2.0.3-4.diff.gz
<font color="#0000FF">/tmp/netatalkbuild</font>$ sudo apt-get build-dep netatalk
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています... 完了
アップグレード: 0 個、新規インストール: 0 個、削除: 0 個、保留: 71 個。
<font color="#0000FF">/tmp/netatalkbuild</font>$ wget http://www003.upp.so-net.ne.jp/hat/files/netatalk-2.0.3-cjk-4.patch.gz
--22:54:47--  http://www003.upp.so-net.ne.jp/hat/files/netatalk-2.0.3-cjk-4.patch.gz
           =&gt; `netatalk-2.0.3-cjk-4.patch.gz'
www003.upp.so-net.ne.jp をDNSに問いあわせています... 210.132.253.3
www003.upp.so-net.ne.jp|210.132.253.3|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 32,916 (32K) 

100%[====================================&gt;] 32,916        --.--K/s             

22:54:47 (1.00 MB/s) - `netatalk-2.0.3-cjk-4.patch.gz' を保存しました [32916/32916]

<font color="#0000FF">/tmp/netatalkbuild</font>$ zcat netatalk-2.0.3-cjk-4.patch.gz &gt; netatalk-2.0.3/debian/patches/999-netatalk-2.0.3-cjk-4.diff
<font color="#0000FF">/tmp/netatalkbuild</font>$ DEB_BUILD_OPTIONS="ssl debuild"
<font color="#0000FF">/tmp/netatalkbuild</font>$ export DEB_BUILD_OPTIONS
ssl debuild
<font color="#0000FF">/tmp/netatalkbuild</font>$ cd netatalk-2.0.3
<font color="#0000FF">/tmp/netatalkbuild/netatalk-2.0.3</font>$ dpkg-buildpackage -rfakeroot

コンパイル中......

<font color="#0000FF">/tmp/netatalkbuild/netatalk-2.0.3</font>$ sudo dpkg -r netatalk
(データベースを読み込んでいます ... 現在 105050 個のファイルとディレクトリがインストールされています。)
netatalk を削除しています ...
Stopping AppleTalk Daemons: afpd papd timelord atalkd cnid_metad.
<font color="#0000FF">/tmp/netatalkbuild/netatalk-2.0.3</font>$ cd ../
<font color="#0000FF">/tmp/netatalkbuild</font>$ sudo dpkg -i netatalk_2.0.3-4_i386.deb
未選択パッケージ netatalk を選択しています。
(データベースを読み込んでいます ... 現在 104899 個のファイルとディレクトリがインストールされています。)
(netatalk_2.0.3-4_i386.deb から) netatalk を展開しています...
netatalk (2.0.3-4) を設定しています ...

設定ファイル `/etc/default/netatalk'
 ==&gt; これはインストールしてから (あなたかスクリプトによって) 変更されています。
 ==&gt; パッケージ配布元が更新版を提供しています。
   どうしますか? 以下の選択肢があります:
    Y か I  : パッケージメンテナのバージョンをインストールする
    N か O  : 現在インストールされている自分のバージョンを残す
      D     : 両バージョンの差異を表示する
      Z     : この処理をバックグラウンドにし、状況を確認する
 デフォルトでは現在使っている自分のバージョンを残します。
*** netatalk (Y/I/N/O/D/Z) [デフォルト=N] ? <font color="#ff0000">Y</font>
設定ファイル /etc/default/netatalk を新規にインストールしています ...
設定ファイル /etc/pam.d/netatalk を新規にインストールしています ...
Starting AppleTalk services (this will take a while):  atalkd papd afpd cnid_metad.
</pre>
<p></code></p>
<p>インストールは以上です。以下は設定ファイルの変更。</p>
<p>「/etc/default/netatalk」の</p>
<pre><core>export ATALK_MAC_CHARSET
export ATALK_UNIX_CHARSET</code></pre>
<p>を</p>
<pre><core>export ATALK_MAC_CHARSET<font color="#ff0000">='MAC_JAPANESE'</font>
export ATALK_UNIX_CHARSET<font color="#ff0000">='UTF8'</font></code></pre>
<p>に変更。(UTF8は付け加えました。)</p>
<p>「/etc/netatalk/afpd.conf」の最後の行に</p>
<pre><core>- -uamlist uams_dhx.so,uams_clrtxt.so -maccodepage MAC_JAPANESE</code></pre>
<p>を追記。</p>
<p>「/etc/netatalk/AppleVolumes.default」のコメント群の最後</p>
<pre><core># By default all users have access to their home directories.</code></pre>
<p>の下に</p>
<pre><core>:DEFAULT: options:upriv,usedots cnidscheme:dbd maccharset:MAC_JAPANESE</code></pre>
<p>を追加。</p>
<p>念のためavahi-daemonの確認。<br />
「/etc/avahi/services/afpd.service」を以下の内容で作成。</p>
<pre><core>&lt;?xml version="1.0" standalone='no'?&gt;
&lt;!DOCTYPE service-group SYSTEM "avahi-service.dtd"&gt;
&lt;service-group&gt;
        &lt;name replace-wildcards="yes"&gt;%h&lt;/name&gt;
        &lt;service&gt;
                &lt;type&gt;_afpovertcp._tcp&lt;/type&gt;
                &lt;port&gt;548&lt;/port&gt;
        &lt;/service&gt;
&lt;/service-group&gt;</code></pre>
<p>でavahi-daemonの再起動。</p>
<pre><core>$ sudo /etc/init.d/avahi-daemon restart</code></pre>
<p>さて、最後に緊張のCJKパッチの確認とSSLが有効になっているかの確認をコマンドを2つ実行して行います。<br />
赤字の部分が確認事項です。<br />
<font color="#0000FF">/tmp/netatalkbuild</font>$ /usr/sbin/afpd -V<br />
afpd 2.0.3<font color="#ff0000">+cjk4</font> - Apple Filing Protocol (AFP) daemon of Netatalk</p>
<p>This program is free software; you can redistribute it and/or modify it under<br />
the terms of the GNU General Public License as published by the Free Software<br />
Foundation; either version 2 of the License, or (at your option) any later<br />
version. Please see the file COPYING for further information and details.</p>
<p>afpd has been compiled with support for these features:</p>
<p>        AFP3.1 support:	Yes<br />
      Transport layers:	TCP/IP DDP<br />
         CNID backends:	cdb dbd last<br />
           SLP support:	<font color="#ff0000">Yes</font><br />
  TCP wrappers support:	Yes<br />
         Quota support:	Yes<br />
   Admin group support:	Yes<br />
    Valid shell checks:	Yes<br />
      cracklib support:	Yes<br />
        Dropbox kludge:	No<br />
  Force volume uid/gid:	No</p>
<p>             afpd.conf:	/etc/netatalk/afpd.conf<br />
   AppleVolumes.system:	/etc/netatalk/AppleVolumes.system<br />
  AppleVolumes.default:	/etc/netatalk/AppleVolumes.default<br />
       UAM search path:	/usr/lib/netatalk/</p>
<p><font color="#0000FF">/tmp/netatalkbuild</font>$ /usr/bin/asip-status.pl localhost<br />
AFP reply from localhost:548<br />
Flags: 1  Cmd: 3  ID: 57005<br />
Reply: DSIGetStatus<br />
Request ID: 57005<br />
Machine type: Netatalk<br />
AFP versions: AFPVersion 1.1,AFPVersion 2.0,AFPVersion 2.1,AFP2.2,AFPX03,AFP3.1<br />
UAMs: Cleartxt Passwrd,<font color="#ff0000">DHCAST128</font><br />
Flags: SupportsCopyFile,SupportsServerMessages,SupportsServerSignature,SupportsTCP/IP,SupportsSrvrNotifications,SupportsOpenDirectory,SupportsUTF8Servername,SupportsSuperClient<br />
Server name: Debian-Server<br />
Signature:<br />
** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** **  &#8230;&#8230;&#8230;&#8230;&#8230;.</p>
<p>Network address: ***.***.*.** (TCP/IP address)<br />
Network address: *****.*** (ddp address)<br />
UTF8 Servername: Debian-Server</p>
<p>これでOKです。Leopardからも接続確認できました。<br />
しかし、残念ながら最初に書いたような現象は改善されず。<br />
rsync経由でMacからSSHで送ったファイルの一部が駄目なようです。<br />
iTunesのバックアップをSSH経由でやっているのですが今度SSHではなくAFPでマウントして同期してみようと思います。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2008/03/18_23_132.htm/feed</wfw:commentRss>
		</item>
		<item>
		<title>メールサーバーの構築(1)</title>
		<link>http://blog.chibiegg.net/2008/03/15_00_129.htm</link>
		<comments>http://blog.chibiegg.net/2008/03/15_00_129.htm#comments</comments>
		<pubDate>Fri, 14 Mar 2008 15:57:49 +0000</pubDate>
		<dc:creator>chibiegg</dc:creator>
		
		<category><![CDATA[サーバー管理]]></category>

		<guid isPermaLink="false">http://blog.chibiegg.net/2008/03/15_00_129.htm</guid>
		<description><![CDATA[メールサーバーの構築をしてみようと思う。
きっかけは友達にメールサーバーの設置方法を教えてほしいと言われたからだ。(なんと単純な&#8230;)
まずは実験ということでMac上のParallels DesktopにDeb [...]]]></description>
			<content:encoded><![CDATA[<p>メールサーバーの構築をしてみようと思う。<br />
きっかけは友達にメールサーバーの設置方法を教えてほしいと言われたからだ。(なんと単純な&#8230;)<br />
まずは実験ということでMac上のParallels DesktopにDebianをクリーンインストールし、一から設置しようと思う。(成功してません)</p>
<p>目標：Postfix + PostfixAdmin + MySQL + Courier-IMAP でOP25B対策付きのPOP/IMAP 仮想ユーザー環境</p>
<p>クリーンインストールからの実験なのでSQLのインストールも一からする。ということはApacheとかも&#8230;<br />
ということでめんどくさいのでセキュリティと保守性は無視していきます。</p>
<p>とりあえず本格的な設定に入るまで&#8230;(Courier-IMAPにはまだ手をつけてません)<br />
<span id="more-129"></span><br />
<strong>Apache2のインストール</strong></p>
<pre><code>$su
#apt-get install apache2
#apt-get install php5 php5-dev
#apt-get install libapache2-mod-php5</code></pre>
<p>そして「/etc/apache2/sites-available/default」を以下のように編集(セキュリティーは気にしていない)</p>
<pre><code>NameVirtualHost *
&lt;VirtualHost *&gt;
	ServerAdmin webmaster@localhost

	DocumentRoot /var/www/
	&lt;Directory /&gt;
		Options FollowSymLinks
		AllowOverride All
	&lt;/Directory&gt;
	&lt;Directory /var/www/&gt;
		Options Indexes FollowSymLinks MultiViews
		AllowOverride All
		Order allow,deny
		allow from all
		# This directive allows us to have apache2's default start page
                # in /apache2-default/, but still have / go to the right place
	&lt;/Directory&gt;

	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
	&lt;Directory "/usr/lib/cgi-bin"&gt;
		AllowOverride None
		Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
		Order allow,deny
		Allow from all
	&lt;/Directory&gt;

	ErrorLog /var/log/apache2/error.log

	# Possible values include: debug, info, notice, warn, error, crit,
	# alert, emerg.
	LogLevel warn

	CustomLog /var/log/apache2/access.log combined
	ServerSignature On

&lt;/VirtualHost&gt;</code></pre>
<p>で、Apache2の再起動。</p>
<pre><code>#/etc/init.d/apache2 restart</code></pre>
<p><strong>MySQLのインストール</strong></p>
<pre><code>#apt-get install mysql-server-5.0
#apt-get install mysql-client
#apt-get install mysql-common
#apt-get install php5-mysql</code></pre>
<p>ここでMySQLのユーザーの設定をする。<br />
やることはrootのパスワードを設定する。</p>
<pre><code>#mysqladmin -u root password '設定したいパスワード'
#mysql -u root -p</code></pre>
<p>として、MySQLにログインし、以下のように作業をする。</p>
<pre><code>Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 10
Server version: 5.0.32-Debian_7etch5-log Debian etch distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> select host,user,password from mysql.user;      //ユーザーの確認
+-------------+------------------+-------------------------------------------+
| host        | user             | password                                  |
+-------------+------------------+-------------------------------------------+
| localhost   | root             | *9CFBBC772F3F6C106020035386DA5BBBF1249A11 |
| test-debian | root             |                                           |
| localhost   | debian-sys-maint | *C23DC1F950ACBE84A7EAD04697082E8FEC3D7403 |
+-------------+------------------+-------------------------------------------+
3 rows in set (0.00 sec)

mysql> delete from mysql.user where user="debian-sys-maint";     //不要なユーザーの削除
Query OK, 1 row affected (0.00 sec)

mysql> set password for root@'test-debian'=password('設定したいパスワード');      //test-debianドメインのrootのパスワード設定
Query OK, 0 rows affected (0.00 sec)

mysql> select host,user,password from mysql.user;      //ユーザーの確認
+-------------+------+-------------------------------------------+
| host        | user | password                                  |
+-------------+------+-------------------------------------------+
| localhost   | root | *9CFBBC772F3F6C106020035386DA5BBBF1249A11 |
| test-debian | root | *9CFBBC772F3F6C106020035386DA5BBBF1249A11 |
+-------------+------+-------------------------------------------+
2 rows in set (0.00 sec)

mysql> exit      //ログアウト
Bye</code></pre>
<p>以前の記事を参考にphpMyAdminを入れると便利。</p>
<p><strong>Postfixのインストール</strong></p>
<pre><code>#apt-get install postfix postfix-mysql postfix-tls</code></pre>
<p>インストール時に設定を求められます。<br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2008/03/postfix-2.jpg"><img src='http://blog.chibiegg.net/wp-content/uploads/2008/03/postfix-2.thumbnail.jpg' title='postfix-2.jpg' alt='postfix-2.jpg' /></a><br />
「了解」を選択し、<br />
「インターネットサイト」を選択し、<br />
「chibiegg.net」に設定しました。</p>
<p><strong>PostfixAdminのインストール</strong></p>
<pre><code>#cd /usr/src</code></pre>
<p>「http://www.high5.net/postfixadmin/」から最新版をダウンロード</p>
<pre><code>#wget http://jaist.dl.sourceforge.net/sourceforge/postfixadmin/postfixadmin-2.2.0-rc3.tar.gz
#tar -zxvf postfixadmin-2.2.0-rc3.tar.gz
#mv ./postfixadmin-2.2.0-rc3 /var/www/postfixadmin
#cd /var/www/postfixadmin
#mysql -uroot -pパスワード < DATABASE_MYSQL.TXT</code></pre>
<p>ここで「http://サーバーのIPアドレス/postfixadmin/setup.php」に接続すると以下のようなページが見れればOK。<br />
まだMySQLに接続できないなどエラーがありますが、postfix用のユーザーの設定をすれば行けるでしょう。<br />
<a href="http://blog.chibiegg.net/wp-content/uploads/2008/03/postfixadmin-setuperr.jpg"><img src='http://blog.chibiegg.net/wp-content/uploads/2008/03/postfixadmin-setuperr.thumbnail.jpg' title='postfixadmin-setuperr.jpg' alt='postfixadmin-setuperr.jpg' /></a></p>
<p>まだまだ続きます。続きは明日。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chibiegg.net/2008/03/15_00_129.htm/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
