<?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>ものぐさ備忘録 &#187; CentOS</title>
	<atom:link href="http://www.ginriki.net/wd/category/centos/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ginriki.net/wd</link>
	<description>ソフトウェア関係の話を中心とした備忘録的日記</description>
	<lastBuildDate>Sun, 11 Jul 2010 15:48:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>色々なtarフォーマットの確認方法</title>
		<link>http://www.ginriki.net/wd/2010/06/14/136/</link>
		<comments>http://www.ginriki.net/wd/2010/06/14/136/#comments</comments>
		<pubDate>Sun, 13 Jun 2010 17:01:09 +0000</pubDate>
		<dc:creator>ginriki</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[tar]]></category>

		<guid isPermaLink="false">http://www.ginriki.net/wd/?p=136</guid>
		<description><![CDATA[tarファイルには、いくつかのフォーマットがあるのだけど、何らかのコマンドで作成したtarファイルが
どのフォーマットで作られているか判断するやり方が見当たらないのでメモしとく。
なお、メジャーなフォーマットは以下]]></description>
			<content:encoded><![CDATA[<p>tarファイルには、いくつかのフォーマットがあるのだけど、何らかのコマンドで作成したtarファイルが<br />
どのフォーマットで作られているか判断するやり方が見当たらないのでメモしとく。</p>
<p>なお、メジャーなフォーマットは以下らしい<sup>1</sup>。</p>
<ul>
<li>POSIX.1-1988 ustar format</li>
<li>GNU tar format</li>
<li>POSIX.1-2001 pax format</li>
</ul>
<p>利用者から見たフォーマット間の大きな違いは、ustar形式のtarフォーマットの場合、tarでまとめる各ファイルのファイル名が256文字制限だったり、各ファイルのサイズ制限が8GBになってること。残りの２つのフォーマットは制限なし。その代わり、他と比べてustar形式は歴史がある形式なので、対応しているツールも多い。</p>
<p>ちなみに、普通のlinux上のtarプログラム(=GNU tar)がデフォルトで使うtarフォーマットは&#8211;helpを付ければわかる。<br />
以下のように、最近のtarプログラムならgnuフォーマットのはず。</p>
<pre>
# tar --help
[...略]
*This* tar defaults to:
--format=gnu -f- -b20 --quoting-style=escape --rmt-command=/sbin/rmt
</pre>
<p><br/></p>
<h1>・tarファイルのフォーマットの見分け方</h1>
<p>hexdumpコマンドでtarファイルを出力し、tarファイル内にアーカイブされた各ファイルのtarヘッダ（とpaxヘッダ)で見分けます。<sup>2</sup></p>
<p>hexdump -C <tar file>で出力された情報のなかで、<br />
それぞれのフォーマットごとに特徴的なヘッダ部分は以下。</p>
<ul>
<li>ustar format
<pre>
00000100  ...(省略)...  |.ustar.00root...|
</pre>
</li>
<li> GNU tar format
<pre>
00000100  ...(省略)...  |.ustar  .root...|
</pre>
</li>
<li>pax format
<pre>
00000000  ...(省略)...  |./PaxHeaders.108|
</pre>
</li>
</ul>
<p>以下、各フォーマットの確認例です。</p>
<pre>
# echo "hello" > foo.txt
# tar --format=gnu -cvf test.gnu.tar foo.txt
# tar --format=ustar -cvf test.ustar.tar foo.txt
# tar --format=pax -cvf test.pax.tar foo.txt

# hexdump -C test.ustar.tar
00000000  66 6f 6f 2e 74 78 74 00  00 00 00 00 00 00 00 00  |foo.txt.........|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000060  00 00 00 00 30 30 30 30  36 34 34 00 30 30 30 30  |....0000644.0000|
00000070  30 30 30 00 30 30 30 30  30 30 30 00 30 30 30 30  |000.0000000.0000|
00000080  30 30 30 30 30 30 36 00  31 31 34 30 35 31 37 34  |0000006.11405174|
00000090  33 30 34 00 30 31 32 33  37 33 00 20 30 00 00 00  |304.012373. 0...|
000000a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000100  00 75 73 74 61 72 00 30  30 72 6f 6f 74 00 00 00  |.ustar.00root...|
00000110  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000120  00 00 00 00 00 00 00 00  00 72 6f 6f 74 00 00 00  |.........root...|
00000130  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000140  00 00 00 00 00 00 00 00  00 30 30 30 30 30 30 30  |.........0000000|
00000150  00 30 30 30 30 30 30 30  00 00 00 00 00 00 00 00  |.0000000........|
00000160  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000200  68 65 6c 6c 6f 0a 00 00  00 00 00 00 00 00 00 00  |hello...........|
00000210  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00002800

# hexdump -C test.gnu.tar
00000000  66 6f 6f 2e 74 78 74 00  00 00 00 00 00 00 00 00  |foo.txt.........|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000060  00 00 00 00 30 30 30 30  36 34 34 00 30 30 30 30  |....0000644.0000|
00000070  30 30 30 00 30 30 30 30  30 30 30 00 30 30 30 30  |000.0000000.0000|
00000080  30 30 30 30 30 30 36 00  31 31 34 30 35 31 37 34  |0000006.11405174|
00000090  33 30 34 00 30 31 31 30  37 33 00 20 30 00 00 00  |304.011073. 0...|
000000a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000100  00 75 73 74 61 72 20 20  00 72 6f 6f 74 00 00 00  |.ustar  .root...|
00000110  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000120  00 00 00 00 00 00 00 00  00 72 6f 6f 74 00 00 00  |.........root...|
00000130  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000200  68 65 6c 6c 6f 0a 00 00  00 00 00 00 00 00 00 00  |hello...........|
00000210  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00002800

# hexdump -C test.pax.tar
00000000  2e 2f 50 61 78 48 65 61  64 65 72 73 2e 31 30 38  |./PaxHeaders.108|
00000010  31 2f 66 6f 6f 2e 74 78  74 00 00 00 00 00 00 00  |1/foo.txt.......|
00000020  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000060  00 00 00 00 30 30 30 30  36 34 34 00 30 30 30 30  |....0000644.0000|
00000070  30 30 30 00 30 30 30 30  30 30 30 00 30 30 30 30  |000.0000000.0000|
00000080  30 30 30 30 30 35 30 00  31 31 34 30 35 31 37 34  |0000050.11405174|
00000090  34 30 31 00 30 31 33 34  34 31 00 20 78 00 00 00  |401.013441. x...|
000000a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000100  00 75 73 74 61 72 00 30  30 00 00 00 00 00 00 00  |.ustar.00.......|
00000110  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000140  00 00 00 00 00 00 00 00  00 30 30 30 30 30 30 30  |.........0000000|
00000150  00 30 30 30 30 30 30 30  00 00 00 00 00 00 00 00  |.0000000........|
00000160  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000200  32 30 20 61 74 69 6d 65  3d 31 32 37 36 34 34 32  |20 atime=1276442|
00000210  38 37 30 0a 32 30 20 63  74 69 6d 65 3d 31 32 37  |870.20 ctime=127|
00000220  36 34 34 32 38 32 30 0a  00 00 00 00 00 00 00 00  |6442820.........|
00000230  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000400  66 6f 6f 2e 74 78 74 00  00 00 00 00 00 00 00 00  |foo.txt.........|
00000410  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000460  00 00 00 00 30 30 30 30  36 34 34 00 30 30 30 30  |....0000644.0000|
00000470  30 30 30 00 30 30 30 30  30 30 30 00 30 30 30 30  |000.0000000.0000|
00000480  30 30 30 30 30 30 36 00  31 31 34 30 35 31 37 34  |0000006.11405174|
00000490  33 30 34 00 30 31 32 33  37 33 00 20 30 00 00 00  |304.012373. 0...|
000004a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000500  00 75 73 74 61 72 00 30  30 72 6f 6f 74 00 00 00  |.ustar.00root...|
00000510  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000520  00 00 00 00 00 00 00 00  00 72 6f 6f 74 00 00 00  |.........root...|
00000530  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000540  00 00 00 00 00 00 00 00  00 30 30 30 30 30 30 30  |.........0000000|
00000550  00 30 30 30 30 30 30 30  00 00 00 00 00 00 00 00  |.0000000........|
00000560  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000600  68 65 6c 6c 6f 0a 00 00  00 00 00 00 00 00 00 00  |hello...........|
00000610  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00002800
</pre>
<ol class="footnotes"><li id="footnote_0_136" class="footnote"><a href="http://pythonjp.sourceforge.jp/dev/library/tarfile.html">Pythonのtarfileライブラリのマニュアル</a>参照。</li><li id="footnote_1_136" class="footnote">ヘッダの概説は<a href=http://www.jp.freebsd.org/cgi/mroff.cgi?sect=5&#038;cmd=&#038;lc=1&#038;subdir=man&#038;dir=jpman-6.0.0/man&#038;subdir=man&#038;man=tar">FreeBSDのtarマニュアル</a>がわかりやすいです。もっと知りたい場合は各tar形式の仕様書を見た方が良いです。</li></ol>]]></content:encoded>
			<wfw:commentRss>http://www.ginriki.net/wd/2010/06/14/136/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hyper Estraierで文書検索 (+ CentOS用rpm作成)</title>
		<link>http://www.ginriki.net/wd/2009/12/07/94/</link>
		<comments>http://www.ginriki.net/wd/2009/12/07/94/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 20:55:42 +0000</pubDate>
		<dc:creator>ginriki</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Hyper Estraier]]></category>

		<guid isPermaLink="false">http://www.ginriki.net/wd/?p=94</guid>
		<description><![CDATA[扱う文章の数が膨大になって管理しづらくなってきたので、Hyper Estraierの導入を検討しました。せっかくなので導入手順をメモ。
ちなみに、自分のローカルマシン(Windows)内の文書を管理したいだけなら、Hyp [...]]]></description>
			<content:encoded><![CDATA[<p>扱う文章の数が膨大になって管理しづらくなってきたので、<a href="http://hyperestraier.sourceforge.net/index.ja.html">Hyper Estraier</a>の導入を検討しました。せっかくなので導入手順をメモ。<br />
ちなみに、自分のローカルマシン(Windows)内の文書を管理したいだけなら、Hyper Estraierをエンジンに積んだ<a href="http://freemind.s57.xrea.com/desktophe/">DesktopHE</a>を使えば十分と思います。<sup>1</sup></p>
<p>FedoraやVine LinuxだとEstraierのrpmパッケージが公式に存在するので、yumとかapt-getでインストールすればいいのですが、CentOSにはrpmパッケージがありません。</p>
<p>調べてみると、<a href="http://tel.cocolog-nifty.com/blog/2008/11/centos5hypere-1.html">Vine Linuxのsrpmを使うと楽</a>ということなので、srpmからrpmbuildします。<sup>2</sup></p>
<p>まず、<a href="http://www.ring.gr.jp/pub/linux/Vine/VineSeed/SRPMS.plus/">Vine LinuxのSRPMリポジトリ</a>からqdbm,mecab,mecab-ipadic,hyperestraierをダウンロードします。<br />
その後、以下のようにrpmbuild &#038; install (rpmbuildなどは、yum install rpm-buildなどで入れておくこと)。</p>
<pre>
# rpmbuild --rebuild qdbm-1.8.77-1vl5.src.rpm
# rpm -ivh /usr/src/redhat/RPMS/[arch]/qdbm-1.8.77-1.i386.rpm qdbm-devel-1.8.77-1.i386.rpm

# rpmbuild --rebuild mecab-0.97-2vl5.src.rpm
# rpm -ivh /usr/src/redhat/RPMS/[arch]/mecab-0.97-2.i386.rpm mecab-devel-0.97-2.i386.rpm

# rpmbuild --rebuild mecab-ipadic-2.7.0.20070801-1vl5.src.rpm
# rpm -ivh /usr/src/redhat/RPMS/[arch]/mecab-ipadic-2.7.0.20070801-1.i386.rpm

# rpmbuild --rebuild hyperestraier-1.4.13-2vl5.src.rpm
# rpm -ivh /usr/src/redhat/RPMS/[arch]/hyperestraier-1.4.13-2.i386.rpm hyperestraier-perl-1.4.13-2.i386.rpm
</pre>
<p>これでインストールは完了。</p>
<p>インデックスの作成方法は以下ページ参照。</p>
<ul>
<li><a href="http://hyperestraier.sourceforge.net/intro-ja.html#deployment">ローカルマシンの特定のディレクトリ以下の文書をインデックス化する場合(estcmd gather)</a></li>
<li><a href="http://www.avant-tokyo.com/solaris/hyper_estraier_estwaver.html">Webサーバの文書をcrawlする場合 (estwaver)</a></li>
</ul>
<p>/home/user/doc以下の文書をインデックス化して、/var/estraier/indexにインデックス作成する場合のコマンド例は以下。</p>
<pre>
$ estcmd gather -il ja -sd /var/estraier/index /home/user/doc
</pre>
<p>後は、検索用のWebページを用意すれば終わり。CentOSの場合は以下の通り。</p>
<pre>
# yum install httpd
# service httpd start
# cp /usr/libexec/estseek.cgi /var/www/cgi-bin/.
# /usr/share/hyperestraier/estseek.* /var/www/cgi-bin/.
</pre>
<p>上記を実行した後、/var/www/cgi-bin/estseek.confのindexnameの項目を編集します。</p>
<pre>
indexname: /var/estraier/index
...省略
</pre>
<p>手元のブラウザから、estseek.cgiへアクセスすると検索ページが見れます。<br />
もしこの時、「Error: the index is missing or broken.」とか出てくるようなら、indexファイルへのアクセス権がapacheにないせいかもしれません。<br />
estseek.conf内の項目の意味は、<a href="http://hyperestraier.sourceforge.net/uguide-ja.html#estseek">Hyper Estraierのユーザマニュアル</a>を参照してください。</p>
<ol class="footnotes"><li id="footnote_0_94" class="footnote">でも、index作成がなんか遅い気がする。まあ、気のせいかも</li><li id="footnote_1_94" class="footnote">だれかCentOS用hyperestraierのyumリポジトリ作ってくれませんか？(他力本願)</li></ol>]]></content:encoded>
			<wfw:commentRss>http://www.ginriki.net/wd/2009/12/07/94/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 5にAspire Timeline (3810T)の有線LANドライバを入れる</title>
		<link>http://www.ginriki.net/wd/2009/11/04/73/</link>
		<comments>http://www.ginriki.net/wd/2009/11/04/73/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 21:34:43 +0000</pubDate>
		<dc:creator>ginriki</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.ginriki.net/wd/?p=73</guid>
		<description><![CDATA[今年(2009年)の夏に、Aspire Timeline(3810T)を買いました。
元々Windows Vistaが入っていましたが、ついでにCentOS 5.31を入れてデュアルブートできるようにしました。
ただ、C [...]]]></description>
			<content:encoded><![CDATA[<p>今年(2009年)の夏に、Aspire Timeline(3810T)を買いました。<br />
元々Windows Vistaが入っていましたが、ついでにCentOS 5.3<sup>1</sup>を入れてデュアルブートできるようにしました。</p>
<p>ただ、CentOS 5.3には (たぶん、CentOS 5.4にも) Aspire Timelineの有線LANドライバが入ってないので、ドライバを探してきて入れました。</p>
<p><s>ドライバは、<a href="http://partner.atheros.com/Drivers.aspx">http://partner.atheros.com/Drivers.aspx</a>のAR81Family Linux Driverになります。</s>私がダウンロードしたときは、AR81Family-linux-v1.0.0.10.tar.gzっていうバージョンでした。</p>
<p><b>いつの間にか、リンク切れになってました（partner.atheros.comのサイト自体なくなったようです）。12/2時点では、ドライバは<a href="ftp://starlane.gotdns.org/AR81Family-linux-v1.0.1.0/">ここ</a>にあります。（katty9015さん、情報ありがとうございます）<br />
ファイル名もAR81Family-linux-v1.0.0.10.tar.gzからAR81Family-linux-v1.0.1.0.tar.gzに変わったので、以下の記事を読むときは注意してください。</b></p>
<p>USBメモリとかでAspire TimelineのCentOS上にAR81Family-linux-v1.0.0.10.tar.gzを入れた後は、以下のようにコンパイル/インストールすれば、有線LANが使えるようになります。</p>
<pre>
$ tar xzvf AR81Family-linux-v1.0.0.10.tar
$ cd src/
$ make
$ make install       # 要root権限
$ reboot             # 再起動
</pre>
<p><br/></p>
<h1>おまけ (Intel VTの有効化)</h1>
<p>Aspire Timeline(3810T)のCPUはIntel VTに対応してるのですが、BIOSで有効化できないため、そのままだとIntel VTが使えません。<br />
とはいえ、CentOSのXenでWindowsが起動できないのも味気ないです。<br />
以下の２つのリンク先を参考にいじれば、BIOSでIntel VTを有効にできます。Acerのサポート外になってしまうので、いじるときは自己責任でお願いします。</p>
<ul>
<li><a href="http://karl0204.at.webry.info/200908/article_2.html">Acer Aspire Timeline AS3810T-H22のIntel VT機能を有効にする</a></li>
<li><a href="http://feature-enable.blogspot.com/2009/07/enable-vt-on-insydeh2o-based-sony-vaio.html">Enable VT on InsydeH2O based Sony Vaio laptops, the EFI way</a></li>
</ul>
<ol class="footnotes"><li id="footnote_0_73" class="footnote">2009/10に、CentOS 5.4がリリースされましたね</li></ol>]]></content:encoded>
			<wfw:commentRss>http://www.ginriki.net/wd/2009/11/04/73/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>crashコマンド使ってみた</title>
		<link>http://www.ginriki.net/wd/2009/07/13/58/</link>
		<comments>http://www.ginriki.net/wd/2009/07/13/58/#comments</comments>
		<pubDate>Sun, 12 Jul 2009 17:37:05 +0000</pubDate>
		<dc:creator>ginriki</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[GDB]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[debugger]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.ginriki.net/wd/?p=58</guid>
		<description><![CDATA[Kernelのコアダンプファイルを解析するのに、crashコマンドが便利だという話を聞いたので、練習として触ってみました。
手元にCentOS 5のマシンがあるので、それを使います。
解析にあたってkernelのデバッグ情報がいるので、debuginfoのRPMをインストール]]></description>
			<content:encoded><![CDATA[<p>Kernelのコアダンプファイルを解析するのに、crashコマンドが便利だという話を聞いたので、練習として触ってみました。</p>
<p>手元にCentOS 5のマシンがあるので、それを使います。</p>
<p>解析にあたってkernelのデバッグ情報がいるので、debuginfoのRPMをインストールします<sup>1</sup>。</p>
<pre>
 $ uname -a
Linux localhost.localdomain 2.6.18-128.1.16.el5 #1 SMP Tue Jun 30 06:10:28 EDT 2009 i686 i686 i386 GNU/Linux

 $ wget http://debuginfo.centos.org/5/i386/kernel-debuginfo-2.6.18-128.1.16.el5.i686.rpm
 $ wget http://debuginfo.centos.org/5/i386/kernel-debuginfo-common-2.6.18-128.1.16.el5.i686.rpm
 $ rpm -ivh kernel-debuginfo-common-2.6.18-128.1.16.el5.i686.rpm kernel-debuginfo-2.6.18-128.1.16.el5.i686.rpm
</pre>
<p>んで、crashコマンド実行。<br />
SVR4 UNIXのcrashコマンドをベースにGDBを統合したやつだそうで<sup>2</sup>、GDBになじんでる私には結構使いやすいです。</p>
<div class="igBar"><span id="lcode-2"><a href="#" onclick="javascript:showPlainTxt('code-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-2">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$ crash</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; KERNEL: /usr/lib/debug/lib/modules/<span style="color:#800000;color:#800000;">2</span>.<span style="color:#800000;color:#800000;">6</span>.<span style="color:#800000;color:#800000;">18</span>-<span style="color:#800000;color:#800000;">128</span>.<span style="color:#800000;color:#800000;">1</span>.<span style="color:#800000;color:#800000;">16</span>.<span style="">el5</span>/vmlinux</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; DUMPFILE: /dev/crash</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; CPUS: <span style="color:#800000;color:#800000;">1</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; DATE: Mon Jul <span style="color:#800000;color:#800000;">13</span> <span style="color:#800000;color:#800000;">02</span>:<span style="color:#800000;color:#800000;">17</span>:<span style="color:#800000;color:#800000;">05</span> <span style="color:#800000;color:#800000;">2009</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; UPTIME: <span style="color:#800000;color:#800000;">06</span>:<span style="color:#800000;color:#800000;">52</span>:<span style="color:#800000;color:#800000;">42</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">LOAD AVERAGE: <span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">16</span>, <span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">03</span>, <span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">01</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;TASKS: <span style="color:#800000;color:#800000;">86</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; NODENAME: localhost.<span style="">localdomain</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;RELEASE: <span style="color:#800000;color:#800000;">2</span>.<span style="color:#800000;color:#800000;">6</span>.<span style="color:#800000;color:#800000;">18</span>-<span style="color:#800000;color:#800000;">128</span>.<span style="color:#800000;color:#800000;">1</span>.<span style="color:#800000;color:#800000;">16</span>.<span style="">el5</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;VERSION: #1 SMP Tue Jun <span style="color:#800000;color:#800000;">30</span> <span style="color:#800000;color:#800000;">06</span>:<span style="color:#800000;color:#800000;">10</span>:<span style="color:#800000;color:#800000;">28</span> EDT <span style="color:#800000;color:#800000;">2009</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;MACHINE: i686&nbsp; <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">1197</span> Mhz<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; MEMORY: <span style="color:#800000;color:#800000;">758</span>.<span style="color:#800000;color:#800000;">9</span> MB</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PID: <span style="color:#800000;color:#800000;">3848</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;COMMAND: <span style="color:#CC0000;">"crash"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; TASK: ef67c000&nbsp; <span style="color:#006600; font-weight:bold;">&#91;</span>THREAD_INFO: d9120000<span style="color:#006600; font-weight:bold;">&#93;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CPU: <span style="color:#800000;color:#800000;">0</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;STATE: TASK_RUNNING <span style="color:#006600; font-weight:bold;">&#40;</span>ACTIVE<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;crash&gt; set <span style="color:#800000;color:#800000;">1</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; PID: <span style="color:#800000;color:#800000;">1</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">COMMAND: <span style="color:#CC0000;">"init"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;TASK: c16f5aa0&nbsp; <span style="color:#006600; font-weight:bold;">&#91;</span>THREAD_INFO: c16f6000<span style="color:#006600; font-weight:bold;">&#93;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; CPU: <span style="color:#800000;color:#800000;">0</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; STATE: TASK_INTERRUPTIBLE</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;crash&gt; p $tmp = jiffies</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; $<span style="color:#800000;color:#800000;">1</span> = <span style="color:#800000;color:#800000;">24873000</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;crash&gt; x modprobe_path</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; 0xc0680be0 &lt;modprobe_path&gt;:&nbsp; &nbsp; &nbsp;das</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;crash&gt; show convenience</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;$tmp = <span style="color:#800000;color:#800000;">24873000</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;$__ = void</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;$_ = <span style="color:#006600; font-weight:bold;">&#40;</span>examine_i_type *<span style="color:#006600; font-weight:bold;">&#41;</span> 0xc0680be0 <span style="color:#CC0000;">"/sbin/modprobe"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;crash&gt; exit </div>
</li>
</ol>
</div>
</div>
</div>
<p>
gdbスクリプトをsourceで読み込むこともできる。<br />
まだ、まともな使い方は全然してないけど、Debug Hacksにいろいろ書いてあるので、それを読みながらやる予定。<br />
<table class="amazonBanner amazonTable" summary="Debug Hacks -デバッグを極めるテクニック&amp;ツール">
	<tbody>
		<tr>
			<td rowspan="4" class="amazonImageTable"><a href="http://ecx.images-amazon.com/images/I/41TmOAawDsL.jpg" title="Debug Hacks -デバッグを極めるテクニック&amp;ツール"><img src="http://ecx.images-amazon.com/images/I/41TmOAawDsL._SL160_.jpg" alt="Debug Hacks -デバッグを極めるテクニック&amp;ツール" style="border:none ! important; width:100px;" /></a></td> 
			<td style="height:36px;" class="amazonName"><a href="http://www.amazon.co.jp/Debug-Hacks-%E3%83%87%E3%83%90%E3%83%83%E3%82%B0%E3%82%92%E6%A5%B5%E3%82%81%E3%82%8B%E3%83%86%E3%82%AF%E3%83%8B%E3%83%83%E3%82%AF-%E3%83%84%E3%83%BC%E3%83%AB-%E5%90%89%E5%B2%A1/dp/4873114047%3FSubscriptionId%3DAKIAJCPLMOWTU2MWO7FQ%26tag%3Dgikogeek-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D4873114047" title="Debug Hacks -デバッグを極めるテクニック&amp;ツール">Debug Hacks -デバッグを極めるテクニック&amp;ツール</a></td>
		</tr>
		<tr>
			<td style="height:36px;"><a href="http://www.amazon.co.jp/review/product/4873114047%3FSubscriptionId%3DAKIAJCPLMOWTU2MWO7FQ%26tag%3Dgikogeek-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3D4873114047" title="Debug Hacks -デバッグを極めるテクニック&amp;ツール" class="bold">レビューを見る (3)</a></td>
		</tr>
		<tr>
			<td style="height:36px;"><a href="http://www.amazon.co.jp/gp/registry/wishlist/add-item.html%3Fasin.0%3D4873114047%26SubscriptionId%3DAKIAJCPLMOWTU2MWO7FQ%26tag%3Dgikogeek-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3D4873114047" title="Debug Hacks -デバッグを極めるテクニック&amp;ツール">欲しいものリストに追加</a></td>
		</tr>
		<tr>
			<td style="height:36px;"><span class="amazonPrice">価格:3360円 在庫あり。</span><span class="amazonCopy"><small>powered by <a href="http://www.amazon.co.jp/">Amazon.co.jp</a></small></span></td>
		</tr>
	</tbody>
</table></p>
<ol class="footnotes"><li id="footnote_0_58" class="footnote">最初、yumでinstallしたら、なぜか2.6.18-92.1.6.el5.centos.plusが入りました。kernelバージョンと合ってないので、rpmコマンドで入れなおし。</li><li id="footnote_1_58" class="footnote"><a href="http://people.redhat.com/anderson/crash_whitepaper/">Crash Whitepaper</a>のAbstract参照</li></ol>]]></content:encoded>
			<wfw:commentRss>http://www.ginriki.net/wd/2009/07/13/58/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOSのyum追加パッケージ &#8211; RPMForge</title>
		<link>http://www.ginriki.net/wd/2008/10/08/44/</link>
		<comments>http://www.ginriki.net/wd/2008/10/08/44/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 12:35:08 +0000</pubDate>
		<dc:creator>ginriki</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[RPMForge]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://www.gikogeek.net/wd/?p=44</guid>
		<description><![CDATA[CentOSのyumはFedora等に比べてyumでインストール可能なパッケージ数が少ないです。
そのため、インストールしようと思ったパッケージが存在しなくて困るときがあります。
この前は、inkscapeを入れようとし [...]]]></description>
			<content:encoded><![CDATA[<p>CentOSのyumはFedora等に比べてyumでインストール可能なパッケージ数が少ないです。<br />
そのため、インストールしようと思ったパッケージが存在しなくて困るときがあります。</p>
<p>この前は、<a href='http://www.inkscape.org/'>inkscape</a>を入れようとしたけどパッケージが存在しなくて困りました。</p>
<p>ソースやrpmからインストールするには、いろんな依存パッケージをインストールする必要があって面倒です。</p>
<p>そこで、yumでインストール可能なパッケージを増やすために、RPMForgeを導入しました。<br />
導入方法は、下記リンク先に書いてある通りです。</p>
<p><a href='http://wiki.centos.org/AdditionalResources/Repositories/RPMForge'>http://wiki.centos.org/AdditionalResources/Repositories/RPMForge</a></p>
<p>導入後は、以下のようにyumでインストールできました。</p>
<pre>
$ yum install inkscape
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ginriki.net/wd/2008/10/08/44/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
