<?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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>lllnorikolll@online &#187; メモ箱</title>
	<atom:link href="http://blog.lllnorikolll.com/archives/category/%e3%83%a1%e3%83%a2%e7%ae%b1/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.lllnorikolll.com</link>
	<description>オンライン - WEBアプリケーション開発関連のメモなど</description>
	<lastBuildDate>Sat, 15 Oct 2011 05:08:36 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>CakePHP の マニュアルを MacOS10.7 に入れたメモ</title>
		<link>http://blog.lllnorikolll.com/archives/652</link>
		<comments>http://blog.lllnorikolll.com/archives/652#comments</comments>
		<pubDate>Sat, 15 Oct 2011 04:58:00 +0000</pubDate>
		<dc:creator>lllnorikolll</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[メモ箱]]></category>
		<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[マニュアル]]></category>

		<guid isPermaLink="false">http://blog.lllnorikolll.com/?p=652</guid>
		<description><![CDATA[CakePHP のマニュアルは、github で公開されている。 https://github.com/cakephp/docs これを Mac に入れて、オフラインでも（飛行機の中でも）見れるようにしてみた。 $ mk [...]]]></description>
			<content:encoded><![CDATA[<p>CakePHP のマニュアルは、github で公開されている。<br />
<a href="https://github.com/cakephp/docs">https://github.com/cakephp/docs</a></p>
<p>これを Mac に入れて、オフラインでも（飛行機の中でも）見れるようにしてみた。</p>
<p>$ mkdir CakeDoc<br />
↑ ディレクトリ名は何でもOK</p>
<p>$ cd CakeDoc<br />
$ git clone https://github.com/cakephp/docs.git .<br />
$ sudo easy_install sphinx<br />
$ sudo easy_install sphinxcontrib-phpdomain<br />
$ make html</p>
<p>ここまですると、 CakeDoc の中に build/html というディレクトリが出来ていて、そこに en, ja などなど マニュアルの HTMLファイルができている。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lllnorikolll.com/archives/652/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php.net でコナミコマンド</title>
		<link>http://blog.lllnorikolll.com/archives/540</link>
		<comments>http://blog.lllnorikolll.com/archives/540#comments</comments>
		<pubDate>Wed, 20 Apr 2011 16:46:47 +0000</pubDate>
		<dc:creator>lllnorikolll</dc:creator>
				<category><![CDATA[メモ箱]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ネタ]]></category>

		<guid isPermaLink="false">http://blog.lllnorikolll.com/?p=540</guid>
		<description><![CDATA[一時的なネタなのかと思ったら、まだ使えたので記念メモ。 www.php.net で「上上下下左右左右ba(Return)」と押して、画面左上のphpロゴ部分に注目。]]></description>
			<content:encoded><![CDATA[<p>一時的なネタなのかと思ったら、まだ使えたので記念メモ。</p>
<p><a href="http://www.php.net" target="_blank">www.php.net</a> で「上上下下左右左右ba(Return)」と押して、画面左上のphpロゴ部分に注目。</p>
<p><a href="http://blog.lllnorikolll.com/files/2011/04/1004567fa7deba36588d1c810612de5d.png"><img class="aligncenter size-full wp-image-541" title="php.netコナミコマンド" src="http://blog.lllnorikolll.com/files/2011/04/1004567fa7deba36588d1c810612de5d.png" alt="" width="223" height="128" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lllnorikolll.com/archives/540/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VAIO type U に Ubuntu 10.10 Desktop 日本語版 を ネットワークインストール</title>
		<link>http://blog.lllnorikolll.com/archives/507</link>
		<comments>http://blog.lllnorikolll.com/archives/507#comments</comments>
		<pubDate>Mon, 04 Apr 2011 20:22:30 +0000</pubDate>
		<dc:creator>lllnorikolll</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[メモ箱]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.lllnorikolll.com/?p=507</guid>
		<description><![CDATA[VAIO type U に CentOS5 を入れていたが、Ubuntu 10.10 Desktop 日本語版 を ネットワークインストール してみた。 CentOS では、php, ruby などの各種バージョンが古め [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-weight:bold;">VAIO type U</span> に <span style="font-weight:bold;">CentOS5</span> を入れていたが、<span style="font-weight:bold;">Ubuntu 10.10 Desktop 日本語版</span> を ネットワークインストール してみた。<br />
<span style="font-weight:bold;">CentOS</span> では、php, ruby などの各種バージョンが古めなことで、使いたいもののインストールに手間がかかるので、手軽に使えそうな <span style="font-weight:bold;">Ubuntu</span> を試してみようと思った。<br />
今回、なぜ ネットワークインストール にしたかというと、<span style="font-weight:bold;">CentOS</span> にして以来、外付DVDドライブやUSBメモリからのブートが出来なくなってしまったからだったりする。</p>
<p>参考にしたのはこちらのサイト→ <a href="http://kawaji.wordpress.com/2009/07/03/ubuntu-9-04-livecd-network-boot/" target="_blank">古いノートPCで Ubuntu 9.04 LiveCD のネットワークブート</a></p>
<p>上記サイトでは、バージョン<span style="font-weight:bold;">9.04</span> をインストールしているが、今回は <span style="font-weight:bold;">10.10 Desktop 日本語版</span> をインストールしたため若干異なる点もあった。</p>
<p>まず、インストール前に手元にあったもの。</p>
<ul>
<li>CentOS5が入っている VAIO type U</li>
<li>VMware Fusion をインストール済みの MacBook Air</li>
<li>DHCP機能がついているルータ</li>
</ul>
<p>行った手順</p>
<ol>
<li>MacBook Air の VMware Fusion に PXEサーバとなる Ubuntu をインストール</li>
<li>PXEサーバの設定</li>
<li>VAIO type U に PXEサーバから Ubuntu をネットワークインストール</li>
<li>インストール後のネットワーク設定</li>
</ol>
<p>以下、それぞれの手順について詳しく。</p>
<h3>1. MacBook Air の VMware Fusion に PXEサーバとなる Ubuntu をインストール</h3>
<p>MacBook Air で、<a href="http://www.ubuntulinux.jp/products/JA-Localized/download" target="_blank">Ubuntu Desktop 日本語 Remix CDのダウンロードページ</a> から<br />
ubuntu-ja-10.10-desktop-i386.iso（CDイメージ） をダウンロードする。</p>
<p>VMware Fusion で ダウンロードした iso ファイルから 新規仮想マシンを作成（以下 <span style="font-weight:bold;">UbuntuVM</span> と略）。</p>
<p><span style="font-weight:bold;">UbuntuVM</span> は、VMware Fusion の設定で、ネットワークを <span style="font-weight:bold;">ブリッジ接続</span> に設定する。</p>
<h3>2. PXEサーバの設定</h3>
<p><span style="font-weight:bold;">UbuntuVM</span> を起動し、アプリケーション>ターミナル を立ち上げ、<span style="font-weight:bold;">ifconfig</span> でローカルIPアドレスを調べる。</p>
<p>自分の環境の場合、<br />
・ルータ→ <span style="font-weight:bold;">192.168.73.1</span><br />
・UbuntuVM→ <span style="font-weight:bold;">192.168.73.6</span><br />
となっていた。</p>
<p>ローカルIPアドレスを調べたら、PXEサーバの設定をする。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">su</span> -
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>pxe
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>pxe<span style="color: #000000; font-weight: bold;">/</span>images
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>pxe<span style="color: #000000; font-weight: bold;">/</span>images<span style="color: #000000; font-weight: bold;">/</span>ubuntu
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>pxe<span style="color: #000000; font-weight: bold;">/</span>pxelinux.cfg
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.kernel.org<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>linux<span style="color: #000000; font-weight: bold;">/</span>utils<span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>syslinux<span style="color: #000000; font-weight: bold;">/</span>syslinux-<span style="color: #000000;">4.03</span>.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf syslinux-<span style="color: #000000;">4.03</span>.tar.gz
<span style="color: #c20cb9; font-weight: bold;">cp</span> syslinux-<span style="color: #000000;">4.03</span><span style="color: #000000; font-weight: bold;">/</span>core<span style="color: #000000; font-weight: bold;">/</span>pxelinux.0 <span style="color: #000000; font-weight: bold;">/</span>pxe<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">cp</span> syslinux-<span style="color: #000000;">4.03</span><span style="color: #000000; font-weight: bold;">/</span>com32<span style="color: #000000; font-weight: bold;">/</span>menu<span style="color: #000000; font-weight: bold;">/</span>menu.c32 <span style="color: #000000; font-weight: bold;">/</span>pxe<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>pxe<span style="color: #000000; font-weight: bold;">/</span>pxelinux.cfg<span style="color: #000000; font-weight: bold;">/</span>default</pre></div></div>

<p>以下の内容を書いて保存。</p>
<blockquote><p>
DEFAULT menu.c32<br />
PROMPT 0<br />
NOESCAPE 0<br />
ALLOWOPTIONS 0<br />
TIMEOUT 600<br />
MENU TITLE PXE Boot Menu</p>
<p>LABEL Ubuntu Jaunty Live Desktop<br />
kernel images/ubuntu/casper/vmlinuz<br />
append boot=casper netboot=nfs nfsroot=<span style="font-weight:bold;">192.168.73.6</span>:/pxe/images/ubuntu initrd=images/ubuntu/casper/initrd.<span style="color:red;font-weight:bold;">lz</span> &#8212; splashd</p>
<p>LABEL Ubuntu Jaunty Live Install<br />
kernel images/ubuntu/casper/vmlinuz<br />
append boot=casper netboot=nfs nfsroot=<span style="font-weight:bold;">192.168.73.6</span>:/pxe/images/ubuntu initrd=images/ubuntu/casper/initrd.<span style="color:red;font-weight:bold;">lz</span> &#8212; splash only-ubiquity
</p></blockquote>
<p>以下の手順で、<span style="font-weight:bold;">UbuntuVM</span> の中でも、<a href="http://www.ubuntulinux.jp/products/JA-Localized/download" target="_blank">Ubuntu Desktop 日本語 Remix CDのダウンロードページ</a> から<br />
ubuntu-ja-10.10-desktop-i386.iso（CDイメージ） をダウンロードし、マウントする。<br />
これは、最終的にネットワークインストールに使うイメージとなる。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>ftp.kddilabs.jp<span style="color: #000000; font-weight: bold;">/</span>Linux<span style="color: #000000; font-weight: bold;">/</span>packages<span style="color: #000000; font-weight: bold;">/</span>ubuntu-jp<span style="color: #000000; font-weight: bold;">/</span>release-cd<span style="color: #000000; font-weight: bold;">/</span>releases<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10.10</span><span style="color: #000000; font-weight: bold;">/</span>ubun
tu-ja-<span style="color: #000000;">10.10</span>-desktop-i386.iso
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> loop,ro ubuntu-ja-<span style="color: #000000;">10.10</span>-desktop-i386.iso <span style="color: #000000; font-weight: bold;">/</span>pxe<span style="color: #000000; font-weight: bold;">/</span>images<span style="color: #000000; font-weight: bold;">/</span>ubuntu</pre></div></div>

<p>マウントできたか確認。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-al</span> pxe<span style="color: #000000; font-weight: bold;">/</span>images<span style="color: #000000; font-weight: bold;">/</span>ubuntu</pre></div></div>

<p>と打って、ディレクトリやファイルの一覧が表示されたら、マウントできている。</p>
<p>以下の手順で、<span style="font-weight:bold;">dnsmasq</span> と <span style="font-weight:bold;">nfs-kernel-server</span> をインストールし設定。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> dnsmasq nfs-kernel-server
<span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>dnsmasq.conf</pre></div></div>

<p>以下の内容を書いて保存。</p>
<blockquote><p>
no-hosts<br />
server=/localnet/<span style="font-weight:bold;">192.168.73.1</span><br />
dhcp-range=<span style="font-weight:bold;">192.168.73.10</span>,<span style="font-weight:bold;">192.168.73.20</span>,2h<br />
dhcp-boot=pxelinux.0<br />
enable-tftp<br />
tftp-root=/pxe<br />
dhcp-option=3,<span style="font-weight:bold;">192.168.73.1</span>
</p></blockquote>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>exports</pre></div></div>

<p>以下の内容を書いて保存。</p>
<blockquote><p>
/pxe/images/ubuntu *(ro,all_squash,no_subtree_check,crossmnt)
</p></blockquote>
<p><span style="font-weight:bold;">dnsmasq</span> と <span style="font-weight:bold;">nfs-kernel-server</span> を再起動</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>dnsmasq restart
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>nfs-kernel-server reload</pre></div></div>

<h3>3. VAIO type U に PXEサーバから Ubuntu をネットワークインストール</h3>
<p>ネットワークブートできるよう、<span style="font-weight:bold;">VAIO type U</span> のBIOS設定をする。<br />
起動音が聞こえたらすぐに F2 を押すと、BIOS設定画面が現れる。<br />
Advanced の Network Boot を <span style="font-weight:bold;">Enabled</span> にする。<br />
Boot の Boot priority order で Network を最優先にすべきところを、念のため Network のみ有効とした。<br />
設定を保存して Setup Utility を終了する。</p>
<p>すると、何やらネットワークを探しているような白い文字が数秒間表示され、しばらくすると、参考サイトにあるような <span style="font-weight:bold;">PXE Boot Menu</span> という画面が表示される。<br />
↓カーソルキーで <span style="font-weight:bold;">Install</span> の方を選択し、Enter。</p>
<p>Ubuntu ロゴが表示され、インストールが始まるので、ユーザ名などなど記入し、インストール。<br />
インストールが完了したら、再起動。<br />
このとき、再度 F2 で BIOS設定画面を開き、<br />
Advanced の Network Boot を Disabled に、Boot の Boot priority order を元に戻して、F10 で保存・BIOS設定終了する。</p>
<h3>4. インストール後のネットワーク設定</h3>
<p>Ubuntuを再起動して気付いた。<br />
<b>ネット繋がらない！</b><br />
ifconfig で確認するも、eth0 は無く、lo だけが表示される。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>network<span style="color: #000000; font-weight: bold;">/</span>interfaces</pre></div></div>

<p>eth0のところを dhcp と書き換えて、保存。</p>
<blockquote><p>
auto lo<br />
iface lo inet loopback<br />
auto eth0<br />
iface eth0 inet <span style="color:blue;font-weight:bold;">dhcp</span>
</p></blockquote>
<p>ネットワークを再起動。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>networking restart</pre></div></div>

<p>これで、ネットに繋がった。</p>
<h3>おまけ</h3>
<p>インストールしたままでは、ssh でリモートから接続できないようなので、<span style="font-weight:bold;">OpenSSH</span> をインストールする。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> openssh-server</pre></div></div>

<p>GUIでリモート操作するには、リモートデスクトップ設定をする。<br />
参考サイト→ <a href="http://diary.lampetty.net/20080322.html" target="_blank">Ubuntuマシンにリモートデスクトップ(VNC)で接続</a></p>
<p>正しくインストールできたことを確認したら、PXEサーバとしての <span style="font-weight:bold;">UbuntuVM</span> はもう使わないので、シャットダウンしてVMファイルごと削除。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lllnorikolll.com/archives/507/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MacOS10.6SnowLeopardに常に最新のPHPマニュアルをSVNから作成する</title>
		<link>http://blog.lllnorikolll.com/archives/430</link>
		<comments>http://blog.lllnorikolll.com/archives/430#comments</comments>
		<pubDate>Sun, 31 Oct 2010 02:53:56 +0000</pubDate>
		<dc:creator>lllnorikolll</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[メモ箱]]></category>
		<category><![CDATA[PHPマニュアル]]></category>

		<guid isPermaLink="false">http://blog.lllnorikolll.com/?p=430</guid>
		<description><![CDATA[PHPマニュアルがSVN管理されるようになり、以前のCVSからのビルドとは少し変わったのでメモ。 SVNのインストール $ sudo port install subversion PhDのインストール $ sudo p [...]]]></description>
			<content:encoded><![CDATA[<p>PHPマニュアルがSVN管理されるようになり、以前の<a href="http://blog.lllnorikolll.com/archives/323" target="_blank">CVSからのビルド</a>とは少し変わったのでメモ。</p>
<h3>SVNのインストール</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> subversion</pre></div></div>

<h3>PhDのインストール</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> pear channel-discover doc.php.net
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> pear <span style="color: #c20cb9; font-weight: bold;">install</span> doc.php.net<span style="color: #000000; font-weight: bold;">/</span>phd
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> pear <span style="color: #c20cb9; font-weight: bold;">install</span> doc.php.net<span style="color: #000000; font-weight: bold;">/</span>phd_php</pre></div></div>

<h3>SVNからから日本語ドキュメント関連のファイルを取得</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #c20cb9; font-weight: bold;">co</span> http:<span style="color: #000000; font-weight: bold;">//</span>svn.php.net<span style="color: #000000; font-weight: bold;">/</span>repository<span style="color: #000000; font-weight: bold;">/</span>phpdoc<span style="color: #000000; font-weight: bold;">/</span>modules<span style="color: #000000; font-weight: bold;">/</span>doc-ja phpdoc</pre></div></div>

<p>↑英語版のマニュアルにしたい場合は、doc-ja の部分を doc-en にしてください。</p>
<h3>マニュアルのビルド</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> phpdoc
$ php doc-base<span style="color: #000000; font-weight: bold;">/</span>configure.php <span style="color: #660033;">--with-lang</span>=ja</pre></div></div>

<p>↑英語版のマニュアルにしたい場合は、デフォルトが en なので &#8211;with-lang オプションをつけなくてOK。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ phd <span style="color: #660033;">-d</span> doc-base<span style="color: #000000; font-weight: bold;">/</span>.manual.xml <span style="color: #660033;">-P</span> PHP <span style="color: #660033;">-f</span> xhtml</pre></div></div>

<p>phpdocディレクトリの中に output というディレクトリが作成される。<br />
phpdoc/output/php-chunked-xhtml/index.htmlをブラウザで開く。<br />
完成☆</p>
<p>ちなみに、configure のオプションは他にもいろいろあるようです。以下のように -h でヘルプが表示されます。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ php doc-base<span style="color: #000000; font-weight: bold;">/</span>configure.php <span style="color: #660033;">-h</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.lllnorikolll.com/archives/430/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MacOS10.5Leopardに常に最新のPHPマニュアルをCVSから作成する</title>
		<link>http://blog.lllnorikolll.com/archives/323</link>
		<comments>http://blog.lllnorikolll.com/archives/323#comments</comments>
		<pubDate>Wed, 01 Jul 2009 02:14:01 +0000</pubDate>
		<dc:creator>lllnorikolll</dc:creator>
				<category><![CDATA[メモ箱]]></category>
		<category><![CDATA[PHPマニュアル]]></category>

		<guid isPermaLink="false">http://blog.lllnorikolll.com/archives/323</guid>
		<description><![CDATA[MacBookAir(MacOS10.5Leopard)に常に最新のZendFrameworkマニュアルを作成する に続いて、PHPマニュアルもやってみました。 （順番逆じゃない？というツッコミはさておき・・・） PHP [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.lllnorikolll.com/archives/235" target="_blank">MacBookAir(MacOS10.5Leopard)に常に最新のZendFrameworkマニュアルを作成する</a><br />
に続いて、PHPマニュアルもやってみました。<br />
（順番逆じゃない？というツッコミはさておき・・・）</p>
<blockquote><p><span style="color:blue;font-weight:bold;font-size:large">PHPマニュアルはSVN管理されるようになり、この記事に書いてあるビルド方法は古くなりました。新しいビルド方法は</span>　<span style="font-weight:bold;font-size:large"><a href="http://blog.lllnorikolll.com/archives/430">こちら</a></span>　<span style="color:blue;font-weight:bold;font-size:large">を参考にしてください。</span></p></blockquote>
<p>参考にしたのは↓のm-takagiさんのスライド。<br />
<a href="http://handsout.jp/slide/11" target="_blank">http://handsout.jp/slide/11</a></p>
<p>まずはCVSが入っていなかったのでインストール。<br />
最近SVNとGitばかり使っていたことを再確認させられました。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">cvs</span></pre></div></div>

<p>そしてPhDのインストール。<br />
参考にしたスライドより新しいバージョンのPhDをインストールする必要があるようです。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> pear channel-discover doc.php.net
<span style="color: #c20cb9; font-weight: bold;">sudo</span> pear <span style="color: #c20cb9; font-weight: bold;">install</span> doc.php.net<span style="color: #000000; font-weight: bold;">/</span>phd-beta</pre></div></div>

<p>CVSから日本語ドキュメント関連のファイルを取得</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cvs</span> -d:pserver:cvsread<span style="color: #000000; font-weight: bold;">@</span>cvs.php.net:<span style="color: #000000; font-weight: bold;">/</span>repository <span style="color: #c20cb9; font-weight: bold;">login</span></pre></div></div>

<p>パスワードを聞かれるので「phpfi」と入力。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cvs</span> -d:pserver:cvsread<span style="color: #000000; font-weight: bold;">@</span>cvs.php.net:<span style="color: #000000; font-weight: bold;">/</span>repository checkout phpdoc-ja</pre></div></div>

<p>マニュアルのビルド</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> phpdoc-ja
php configure.php <span style="color: #660033;">--with-lang</span>=ja
phd -d.manual.xml</pre></div></div>

<p>phpdoc-jaディレクトリの中にhtmlディレクトリが作成される。<br />
phpdoc-ja/html/index.htmlをブラウザで開く。</p>
<p>できた☆</p>
<p>更新をする場合は、phpdoc-jaディレクトリで↓の3ステップでOK</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cvs</span> update
php configure.php <span style="color: #660033;">--with-lang</span>=ja
phd -d.manual.xml</pre></div></div>

<p>デザインを変更したい場合は、<br />
/opt/local/lib/php/phd/themes/php/chunkedhtml.php<br />
を編集すればよいとのことですが、いちいちphd -d.manual.xmlをやりなおさなくてはいけない。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>php<span style="color: #000000; font-weight: bold;">/</span>phd<span style="color: #000000; font-weight: bold;">/</span>themes<span style="color: #000000; font-weight: bold;">/</span>php<span style="color: #000000; font-weight: bold;">/</span>chunkedhtml.php</pre></div></div>

<p>で、<br />
&lt;title&gt;の前に<br />
&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;phpdoc.css&#8221;&gt;<br />
の一行を追加して、phpdoc-ja/html/phpdoc.cssファイルを作成し、そこでCSSでデザインを変更すると楽にデザイン変更ができます。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lllnorikolll.com/archives/323/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>githubでPermission denied (publickey).</title>
		<link>http://blog.lllnorikolll.com/archives/286</link>
		<comments>http://blog.lllnorikolll.com/archives/286#comments</comments>
		<pubDate>Tue, 05 May 2009 11:24:40 +0000</pubDate>
		<dc:creator>lllnorikolll</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[メモ箱]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[github]]></category>

		<guid isPermaLink="false">http://blog.lllnorikolll.com/?p=286</guid>
		<description><![CDATA[githubにgit pushしようとしたら、↓のようなメッセージがでた。 SSH Keyの設定は、githubの説明（ここ）のとおり設定してある。 $ git push origin master Permission [...]]]></description>
			<content:encoded><![CDATA[<p>githubにgit pushしようとしたら、↓のようなメッセージがでた。<br />
SSH Keyの設定は、githubの説明（<a href="http://github.com/guides/providing-your-ssh-key" target="_blank">ここ</a>）のとおり設定してある。<br />
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">git</span> push origin master
Permission denied <span style="color: #7a0874; font-weight: bold;">&#40;</span>publickey<span style="color: #7a0874; font-weight: bold;">&#41;</span>.
fatal: The remote end hung up unexpectedly</pre></div></div>

<p>よくよく.~/.sshの中を見ると、configというファイルができていた。<br />
中身を見てみると、↓のようになっている。<br />
<strong>んっ？id_dsa？？？</strong>そりゃ動くわけないわ。。。id_rsaだもん。。。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">cat</span> config
Host github.com
  User <span style="color: #c20cb9; font-weight: bold;">git</span>
  Port <span style="color: #000000;">22</span>
  Hostname github.com
  IdentityFile ~<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_dsa
  TCPKeepAlive <span style="color: #c20cb9; font-weight: bold;">yes</span>
  IdentitiesOnly <span style="color: #c20cb9; font-weight: bold;">yes</span></pre></div></div>

<p>というわけで、「IdentityFile ~/.ssh/id_dsa」部分を「IdentityFile ~/.ssh/id_rsa」に書き換え。<br />
ついでに、同じく~/.sshの中にあるknown_hostsというファイルから、「github.com」で始まる一行を削除。</p>
<p>気を取り直してgit pushすると、できた☆</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lllnorikolll.com/archives/286/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Process Explorer &#8211; プロセスの親子関係を階層表示できるタスクマネージャー</title>
		<link>http://blog.lllnorikolll.com/archives/256</link>
		<comments>http://blog.lllnorikolll.com/archives/256#comments</comments>
		<pubDate>Sun, 12 Apr 2009 04:10:56 +0000</pubDate>
		<dc:creator>lllnorikolll</dc:creator>
				<category><![CDATA[メモ箱]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[フリーソフト]]></category>

		<guid isPermaLink="false">http://blog.lllnorikolll.com/?p=256</guid>
		<description><![CDATA[いつもソフト名を忘れるので、メモメモ。 プロセスの親子関係を階層表示できるタスクマネージャー。 フリーソフト Process Explorer]]></description>
			<content:encoded><![CDATA[<p>いつもソフト名を忘れるので、メモメモ。<br />
プロセスの親子関係を階層表示できるタスクマネージャー。<br />
フリーソフト<br />
<strong><a href="http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx" target="_blank">Process Explorer</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lllnorikolll.com/archives/256/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CORESERVERにgitをインストールしたメモ</title>
		<link>http://blog.lllnorikolll.com/archives/238</link>
		<comments>http://blog.lllnorikolll.com/archives/238#comments</comments>
		<pubDate>Tue, 03 Mar 2009 05:14:02 +0000</pubDate>
		<dc:creator>lllnorikolll</dc:creator>
				<category><![CDATA[メモ箱]]></category>
		<category><![CDATA[CORESERVER]]></category>
		<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://blog.lllnorikolll.com/?p=238</guid>
		<description><![CDATA[sshでCORESERVERにログイン。 （CORESERVER管理画面でssh登録を事前にすませておく） $ ssh &#91;アカウント&#93;@s&#91;数字&#93;.coreserver.jp ソースをCO [...]]]></description>
			<content:encoded><![CDATA[<p><strong>sshでCORESERVERにログイン。</strong><br />
（CORESERVER管理画面でssh登録を事前にすませておく）</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>アカウント<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #000000; font-weight: bold;">@</span>s<span style="color: #7a0874; font-weight: bold;">&#91;</span>数字<span style="color: #7a0874; font-weight: bold;">&#93;</span>.coreserver.jp</pre></div></div>

<p><strong>ソースをCORESERVERで取得</strong><br />
ここ↓から最新番のtar.gzファイルのリンクURLをコピー。（現在の最新は1.6.1.3）<br />
<a href="http://git-scm.com/" target="_blank">http://git-scm.com/</a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>http:<span style="color: #000000; font-weight: bold;">//</span>からはじまる、コピーしたtar.gzのURL<span style="color: #7a0874; font-weight: bold;">&#93;</span>
$ <span style="color: #c20cb9; font-weight: bold;">tar</span> xvzf <span style="color: #7a0874; font-weight: bold;">&#91;</span>tar.gzファイル名<span style="color: #7a0874; font-weight: bold;">&#93;</span>
$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>解凍してできたディレクトリ名<span style="color: #7a0874; font-weight: bold;">&#93;</span>
$ .<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--prefix</span>=<span style="color: #007800;">$HOME</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span>
$ <span style="color: #c20cb9; font-weight: bold;">gmake</span>
$ <span style="color: #c20cb9; font-weight: bold;">gmake</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>インストールされたか確認。下記をうつと、gitのバージョンが表示されていればOK</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">git</span> <span style="color: #660033;">--version</span></pre></div></div>

<p><strong>リポジトリ作成</strong><br />
適当な場所にディレクトリとファイルを作成し、リポジトリを作成してコミットしてみる。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #007800;">$HOME</span>
$ <span style="color: #c20cb9; font-weight: bold;">mkdir</span> gitrepos
$ <span style="color: #7a0874; font-weight: bold;">cd</span> gitrepos
$ <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;sample&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> README
$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #007800;">$HOME</span><span style="color: #000000; font-weight: bold;">/</span>gitrepos
$ <span style="color: #c20cb9; font-weight: bold;">git</span> init
$ <span style="color: #c20cb9; font-weight: bold;">git</span> add .
$ <span style="color: #c20cb9; font-weight: bold;">git</span> commit</pre></div></div>

<p>コミットしたよー的な.git/COMMIT_EDITMSGファイルの内容が表示されればOK</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lllnorikolll.com/archives/238/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MacからVPN接続+リモートデスクトップ</title>
		<link>http://blog.lllnorikolll.com/archives/138</link>
		<comments>http://blog.lllnorikolll.com/archives/138#comments</comments>
		<pubDate>Wed, 22 Oct 2008 05:47:51 +0000</pubDate>
		<dc:creator>lllnorikolll</dc:creator>
				<category><![CDATA[メモ箱]]></category>
		<category><![CDATA[未分類]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[リモートデスクトップ]]></category>

		<guid isPermaLink="false">http://blog.lllnorikolll.com/?p=138</guid>
		<description><![CDATA[以前、MacからWindowsXPProにリモートデスクトップできないの？という質問を投げかけたところ、 Remote Desktop Connection Client for Mac というソフトを教えていただきまし [...]]]></description>
			<content:encoded><![CDATA[<p>以前、MacからWindowsXPProにリモートデスクトップできないの？という質問を投げかけたところ、<br />
<strong><a href="http://www.microsoft.com/japan/mac/collaboration/rdc/default.mspx" target="_blank">Remote Desktop Connection Client for Mac</a></strong><br />
というソフトを教えていただきました。</p>
<p>で、今日はそれを試してみました。<br />
今回はMacとXPは別のネットワーク上にあったので、まずはVPN接続するところからスタート。<br />
そのメモメモ。</p>
<p><strong>【VPN接続】</strong><br />
<strong>１</strong>　システム環境設定からネットワークを選択。<br />
<strong>２</strong>　サービス一覧の左下の「＋」マークから新しいサービスを追加。<br />
　　インターフェイス項目でVPNを選択。VPNタイプを選択し、サービス名を入力。「作成」ボタンで作成。<br />
<strong>３</strong>　サーバーアドレス、アカウント名、パスワードなど、を入力し、「適用」ボタンをクリック。<br />
<strong>４</strong>　「接続」ボタンで接続</p>
<p><strong>【Remote Desktop Connection Client for Macインストール】</strong><br />
<strong>１</strong>　↓からRemote Desktop Connection Client for Macをダウンロード。<br />
　　<a href="http://www.microsoft.com/japan/mac/download/rdc/rdc20.mspx" target="_blank">http://www.microsoft.com/japan/mac/download/rdc/rdc20.mspx</a><br />
<strong>２</strong>　インストール方法は↓を参考に。<br />
　　<a href="http://www.microsoft.com/japan/mac/collaboration/rdc/001.mspx" target="_blank">http://www.microsoft.com/japan/mac/collaboration/rdc/001.mspx</a></p>
<p><strong>【リモートデスクトップ】</strong><br />
<strong>１</strong>　インストールしたRemote Desktop Connectionを起動し、コンピュータにローカルIPを入力して「接続」ボタンをクリック。<br />
<strong>２</strong>　ユーザ名など認証を聞かれるので、入力して接続。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lllnorikolll.com/archives/138/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ユーザー登録しまくった</title>
		<link>http://blog.lllnorikolll.com/archives/136</link>
		<comments>http://blog.lllnorikolll.com/archives/136#comments</comments>
		<pubDate>Fri, 17 Oct 2008 08:31:54 +0000</pubDate>
		<dc:creator>lllnorikolll</dc:creator>
				<category><![CDATA[メモ箱]]></category>
		<category><![CDATA[WEBサービス]]></category>
		<category><![CDATA[ユーザビリティ]]></category>

		<guid isPermaLink="false">http://blog.lllnorikolll.com/?p=136</guid>
		<description><![CDATA[いろんなWEBサービスにユーザ登録しまくっていますが、なんとなく気づいたことをメモ。 CAPTCHAは読みづらい画像が結構あるので、画像を選択するときは、ある程度見やすい画像を選んだほうがよい。 やっぱ入力チェックとかア [...]]]></description>
			<content:encoded><![CDATA[<p>いろんなWEBサービスにユーザ登録しまくっていますが、なんとなく気づいたことをメモ。</p>
<ul>
<li>CAPTCHAは読みづらい画像が結構あるので、画像を選択するときは、ある程度見やすい画像を選んだほうがよい。</li>
<li>やっぱ入力チェックとかアカウント重複チェックはAjaxで即時チェックが便利</li>
<li>登録したときに登録したよメールを送ってこない（もしくはgmailにはじかれる）サービスが意外とある。</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.lllnorikolll.com/archives/136/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

