<?xml version="1.0" encoding="euc-jp"?>
<rdf:RDF
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:foaf="http://xmlns.com/foaf/0.1/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns="http://purl.org/rss/1.0/"
>
<channel rdf:about="http://planet.debian.or.jp/">
	<title>Planet Debian JP</title>
	<link>http://planet.debian.or.jp/</link>
	<description>Planet Debian JP - http://planet.debian.or.jp/</description>

	<items>
		<rdf:Seq>
			<rdf:li rdf:resource="http://www.nigauri.org/~iwamatsu/d/?date=20100209#p03" />
			<rdf:li rdf:resource="http://www.nigauri.org/~iwamatsu/d/?date=20100209#p02" />
			<rdf:li rdf:resource="http://www.nigauri.org/~iwamatsu/d/?date=20100209#p01" />
			<rdf:li rdf:resource="http://www.nigauri.org/~iwamatsu/d/?date=20100208#p01" />
			<rdf:li rdf:resource="http://www.netfort.gr.jp/~dancer/diary/daily/2010-Feb-10.html.ja#2010-Feb-10-01:07:06" />
			<rdf:li rdf:resource="http://d.hatena.ne.jp/mkouhei/20100208/1265597102" />
			<rdf:li rdf:resource="http://www.debian.or.jp/blog/events/tokyodebian-61.html" />
			<rdf:li rdf:resource="http://d.ma-aya.to/?date=20100206#p03" />
			<rdf:li rdf:resource="http://www.netfort.gr.jp/~dancer/diary/daily/2010-Feb-6.html.ja#2010-Feb-6-18:13:07" />
			<rdf:li rdf:resource="http://d.ma-aya.to/?date=20100206#p02" />
			<rdf:li rdf:resource="http://d.ma-aya.to/?date=20100206#p01" />
			<rdf:li rdf:resource="http://www.debian.or.jp/blog/events/kansaidebian-32.html" />
			<rdf:li rdf:resource="http://www.nigauri.org/~iwamatsu/d/?date=20100203#p02" />
			<rdf:li rdf:resource="http://www.nigauri.org/~iwamatsu/d/?date=20100201#p01" />
			<rdf:li rdf:resource="http://www.nigauri.org/~iwamatsu/d/?date=20100203#p01" />
			<rdf:li rdf:resource="http://www.nigauri.org/~iwamatsu/d/?date=20100204#p01" />
			<rdf:li rdf:resource="http://d.hatena.ne.jp/mkouhei/20100204/1265295143" />
			<rdf:li rdf:resource="http://www.debian.org/security/2010/dsa-1992" />
			<rdf:li rdf:resource="http://www.debian.org/security/2010/dsa-1991" />
			<rdf:li rdf:resource="http://www.netfort.gr.jp/~dancer/diary/daily/2010-Feb-4.html.ja#2010-Feb-4-01:25:06" />
		</rdf:Seq>
	</items>
</channel>

<item rdf:about="http://www.nigauri.org/~iwamatsu/d/?date=20100209#p03">
	<title>iwamatsu: Macbook pro</title>
	<link>http://www.nigauri.org/~iwamatsu/d/?date=20100209#p03</link>
	<content:encoded>&lt;h3&gt;Macbook pro&lt;/h3&gt;&lt;p&gt;結局新しい Macbook Proは出なかったようだ。
&lt;/p&gt;&lt;p&gt;3月に出るらしい。&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.nigauri.org/~iwamatsu/d/?date=20100209#c&quot;&gt;ツッコミを入れる&lt;/a&gt;&lt;/p&gt;</content:encoded>
	<dc:date>2010-02-10T02:52:13+00:00</dc:date>
</item>
<item rdf:about="http://www.nigauri.org/~iwamatsu/d/?date=20100209#p02">
	<title>iwamatsu: Upload slim, winwrangler and pvm</title>
	<link>http://www.nigauri.org/~iwamatsu/d/?date=20100209#p02</link>
	<content:encoded>&lt;h3&gt;Upload slim, winwrangler and pvm&lt;/h3&gt;&lt;p&gt;pvm はNMU。&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.nigauri.org/~iwamatsu/d/?date=20100209#c&quot;&gt;ツッコミを入れる&lt;/a&gt;&lt;/p&gt;</content:encoded>
	<dc:date>2010-02-10T02:52:13+00:00</dc:date>
</item>
<item rdf:about="http://www.nigauri.org/~iwamatsu/d/?date=20100209#p01">
	<title>iwamatsu: cross コンパイラ用のapt-lineを作った</title>
	<link>http://www.nigauri.org/~iwamatsu/d/?date=20100209#p01</link>
	<content:encoded>&lt;h3&gt;cross コンパイラ用のapt-lineを作った&lt;/h3&gt;sh4 クロスコンパイラ用のapt-lineを作った。適当ですが。
&lt;pre&gt;
deb http://debian-sh4.nigauri.org/cross-compiler/bin ./
&lt;/pre&gt;
&lt;p&gt;&lt;a href=&quot;http://www.nigauri.org/~iwamatsu/d/?date=20100209#c&quot;&gt;ツッコミを入れる&lt;/a&gt;&lt;/p&gt;</content:encoded>
	<dc:date>2010-02-10T02:52:13+00:00</dc:date>
</item>
<item rdf:about="http://www.nigauri.org/~iwamatsu/d/?date=20100208#p01">
	<title>iwamatsu: ghc6のビルドがこけていた</title>
	<link>http://www.nigauri.org/~iwamatsu/d/?date=20100208#p01</link>
	<content:encoded>&lt;h3&gt;ghc6のビルドがこけていた&lt;/h3&gt;&lt;p&gt;ショックすぐる。ghc6 いらなくね？&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.nigauri.org/~iwamatsu/d/?date=20100208#c&quot;&gt;ツッコミを入れる&lt;/a&gt;&lt;/p&gt;</content:encoded>
	<dc:date>2010-02-09T18:43:28+00:00</dc:date>
</item>
<item rdf:about="http://www.netfort.gr.jp/~dancer/diary/daily/2010-Feb-10.html.ja#2010-Feb-10-01:07:06">
	<title>dancerj: 久しぶりにnetfortのメールを読んだ。</title>
	<link>http://www.netfort.gr.jp/~dancer/diary/daily/2010-Feb-10.html.ja#2010-Feb-10-01:07:06</link>
	<content:encoded>久しぶりにnetfortのメールを読んだ。
	  11月以来のようだ。
	  数万通のメールの中から機械処理をしたあと、6000通の残ったSPAMから数十通の本当に必要なメールを探し出す作業。
	  非常に効率がよろしくない。なんかもっと機械化しないと。
	  気づいたら&lt;a href=&quot;http://www.linuxsymposium.org/2010/cfp.php&quot;&gt;
	    Linux SymposiumのCFPが出てた&lt;/a&gt;。</content:encoded>
	<dc:date>2010-02-09T16:07:06+00:00</dc:date>
</item>
<item rdf:about="http://d.hatena.ne.jp/mkouhei/20100208/1265597102">
	<title>mkouhei: [Debian][Unix/Linux][仮想化]lxc 0.6.4でlxc-debian createしてもコンテナを起動できない罠。</title>
	<link>http://d.hatena.ne.jp/mkouhei/20100208/1265597102</link>
	<content:encoded>&lt;div class=&quot;section&quot;&gt;
			&lt;p&gt;Debian 勉強会用のネタ用にLennyの環境がほしくてlxcのコンテナで新しく用意することにしたのだが、lxcを使い始めた0.6.3ではハマらず、現在の0.6.4でハマる罠に遭遇。&lt;/p&gt;
			&lt;p&gt;lxcでコンテナを作るときは、lxcパッケージに含まれているlxc-debianスクリプト(/usr/share/doc/lxc/examples/lxc-debian.gz)を使用するのだが、コンテナとしてマウントするためのdebootstrapで作るrootfsは、どこにあっても良いのでホームディレクトリ直下で、&lt;/p&gt;
&lt;pre class=&quot;syntax-highlight&quot;&gt;
$ sudo bash lxc-debian create
What is the name &lt;span class=&quot;synStatement&quot;&gt;for&lt;/span&gt; the container ? &lt;span class=&quot;synStatement&quot;&gt;[&lt;/span&gt;debian&lt;span class=&quot;synStatement&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;synStatement&quot;&gt;test&lt;/span&gt;
What hostname &lt;span class=&quot;synStatement&quot;&gt;do&lt;/span&gt; you wish &lt;span class=&quot;synStatement&quot;&gt;for&lt;/span&gt; this container ? &lt;span class=&quot;synStatement&quot;&gt;[test&lt;/span&gt;]
What IP address do you wish for this container ? &lt;span class=&quot;synStatement&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt;172&lt;/span&gt;.&lt;span class=&quot;synConstant&quot;&gt;20&lt;/span&gt;.&lt;span class=&quot;synConstant&quot;&gt;0&lt;/span&gt;.&lt;span class=&quot;synConstant&quot;&gt;21&lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;]&lt;/span&gt;
What is the gateway IP address ? &lt;span class=&quot;synStatement&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt;172&lt;/span&gt;.&lt;span class=&quot;synConstant&quot;&gt;20&lt;/span&gt;.&lt;span class=&quot;synConstant&quot;&gt;0&lt;/span&gt;.&lt;span class=&quot;synConstant&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;]&lt;/span&gt;
What is the MTU size ? &lt;span class=&quot;synStatement&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt;1500&lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;]&lt;/span&gt;
Specify the location of the rootfs &lt;span class=&quot;synStatement&quot;&gt;[&lt;/span&gt;./rootfs.&lt;span class=&quot;synStatement&quot;&gt;test&lt;/span&gt;]
&lt;/pre&gt;

			&lt;p&gt;として実行し、質問形式で表示される設定項目を、コンテナ名、IPアドレス以外はデフォルトのままにしておくと、ホームディレクトリの直下に~/rootfs.test/として作られる。&lt;/p&gt;
			&lt;p&gt;lxcを使い始めた時、ホームディレクトリにせず、別のディレクトリにしていた。&lt;/p&gt;
&lt;pre class=&quot;syntax-highlight&quot;&gt;
$ sudo &lt;span class=&quot;synStatement&quot;&gt;mkdir&lt;/span&gt; /var/cache/lxc/debian
$ &lt;span class=&quot;synStatement&quot;&gt;cd&lt;/span&gt; /var/cache/lxc/debian
$ sudo bash ~/lxc-debian create
&lt;/pre&gt;

			&lt;p&gt;とすると、/var/cache/lxc/debianの下にrootfsが作られたのだが、ホームディレクトリでlxc-startコマンドを実行しても0.6.3の時は何の問題も無くコンテナをブートできたわけだ。&lt;/p&gt;
			&lt;p&gt;が、0.6.4になってから、この方法で行うと、rootfsが作成される場所は、/opt/lxcディレクトリ以下であるのは変わらないのだが、ホームディレクトリでlxc-startコマンドを実行すると、&lt;/p&gt;
&lt;pre class=&quot;syntax-highlight&quot;&gt;
$ sudo lxc-&lt;span class=&quot;synStatement&quot;&gt;start&lt;/span&gt; &lt;span class=&quot;synSpecial&quot;&gt;-n&lt;/span&gt; &lt;span class=&quot;synStatement&quot;&gt;test&lt;/span&gt;
lxc-&lt;span class=&quot;synStatement&quot;&gt;start&lt;/span&gt;: No such file or directory - failed to mount &lt;span class=&quot;synStatement&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt;./rootfs.test&lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;'&lt;/span&gt;-&lt;span class=&quot;synStatement&quot;&gt;&amp;#62;'&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt;/tmp/lxc-r7X8fyc&lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;'&lt;/span&gt;
lxc-&lt;span class=&quot;synStatement&quot;&gt;start&lt;/span&gt;: failed to &lt;span class=&quot;synStatement&quot;&gt;set&lt;/span&gt; rootfs &lt;span class=&quot;synStatement&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;synStatement&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt;test&lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;'&lt;/span&gt;
lxc-&lt;span class=&quot;synStatement&quot;&gt;start&lt;/span&gt;: failed to setup the container
&lt;/pre&gt;

			&lt;p&gt;となり、ホームディレクトリ(カレントディレクトリ)にrootfs.testが無いので起動できない。&lt;/p&gt;
			&lt;p&gt;これは0.6.4から、各コンテナの設定方法の仕様が変わったためで、testコンテナの設定ファイルは、/var/lib/lxc/test/configにある。&lt;/p&gt;
&lt;pre class=&quot;syntax-highlight&quot;&gt;
$ cat /var/lib/lxc/&lt;span class=&quot;synStatement&quot;&gt;test&lt;/span&gt;/config
lxc.utsname &lt;span class=&quot;synStatement&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;synStatement&quot;&gt;test&lt;/span&gt;
lxc.tty &lt;span class=&quot;synStatement&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;synConstant&quot;&gt;4&lt;/span&gt;
lxc.pts &lt;span class=&quot;synStatement&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;synConstant&quot;&gt;1024&lt;/span&gt;
lxc.network.&lt;span class=&quot;synStatement&quot;&gt;type&lt;/span&gt; &lt;span class=&quot;synStatement&quot;&gt;=&lt;/span&gt; veth
lxc.network.flags &lt;span class=&quot;synStatement&quot;&gt;=&lt;/span&gt; up
lxc.network.link &lt;span class=&quot;synStatement&quot;&gt;=&lt;/span&gt; br0
lxc.network.name &lt;span class=&quot;synStatement&quot;&gt;=&lt;/span&gt; eth0
lxc.network.mtu &lt;span class=&quot;synStatement&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;synConstant&quot;&gt;1500&lt;/span&gt;
lxc.rootfs &lt;span class=&quot;synStatement&quot;&gt;=&lt;/span&gt; ./rootfs.&lt;span class=&quot;synStatement&quot;&gt;test&lt;/span&gt;
lxc.cgroup.devices.deny &lt;span class=&quot;synStatement&quot;&gt;=&lt;/span&gt; a
&lt;span class=&quot;synComment&quot;&gt;# /dev/null and zero&lt;/span&gt;
lxc.cgroup.devices.allow &lt;span class=&quot;synStatement&quot;&gt;=&lt;/span&gt; c &lt;span class=&quot;synConstant&quot;&gt;1&lt;/span&gt;:&lt;span class=&quot;synConstant&quot;&gt;3&lt;/span&gt; rwm
lxc.cgroup.devices.allow &lt;span class=&quot;synStatement&quot;&gt;=&lt;/span&gt; c &lt;span class=&quot;synConstant&quot;&gt;1&lt;/span&gt;:&lt;span class=&quot;synConstant&quot;&gt;5&lt;/span&gt; rwm
&lt;span class=&quot;synComment&quot;&gt;# consoles&lt;/span&gt;
lxc.cgroup.devices.allow &lt;span class=&quot;synStatement&quot;&gt;=&lt;/span&gt; c &lt;span class=&quot;synConstant&quot;&gt;5&lt;/span&gt;:&lt;span class=&quot;synConstant&quot;&gt;1&lt;/span&gt; rwm
lxc.cgroup.devices.allow &lt;span class=&quot;synStatement&quot;&gt;=&lt;/span&gt; c &lt;span class=&quot;synConstant&quot;&gt;5&lt;/span&gt;:&lt;span class=&quot;synConstant&quot;&gt;0&lt;/span&gt; rwm
lxc.cgroup.devices.allow &lt;span class=&quot;synStatement&quot;&gt;=&lt;/span&gt; c &lt;span class=&quot;synConstant&quot;&gt;4&lt;/span&gt;:&lt;span class=&quot;synConstant&quot;&gt;0&lt;/span&gt; rwm
lxc.cgroup.devices.allow &lt;span class=&quot;synStatement&quot;&gt;=&lt;/span&gt; c &lt;span class=&quot;synConstant&quot;&gt;4&lt;/span&gt;:&lt;span class=&quot;synConstant&quot;&gt;1&lt;/span&gt; rwm
&lt;span class=&quot;synComment&quot;&gt;# /dev/{,u}random&lt;/span&gt;
lxc.cgroup.devices.allow &lt;span class=&quot;synStatement&quot;&gt;=&lt;/span&gt; c &lt;span class=&quot;synConstant&quot;&gt;1&lt;/span&gt;:&lt;span class=&quot;synConstant&quot;&gt;9&lt;/span&gt; rwm
lxc.cgroup.devices.allow &lt;span class=&quot;synStatement&quot;&gt;=&lt;/span&gt; c &lt;span class=&quot;synConstant&quot;&gt;1&lt;/span&gt;:&lt;span class=&quot;synConstant&quot;&gt;8&lt;/span&gt; rwm
lxc.cgroup.devices.allow &lt;span class=&quot;synStatement&quot;&gt;=&lt;/span&gt; c &lt;span class=&quot;synConstant&quot;&gt;136&lt;/span&gt;:* rwm
lxc.cgroup.devices.allow &lt;span class=&quot;synStatement&quot;&gt;=&lt;/span&gt; c &lt;span class=&quot;synConstant&quot;&gt;5&lt;/span&gt;:&lt;span class=&quot;synConstant&quot;&gt;2&lt;/span&gt; rwm
&lt;span class=&quot;synComment&quot;&gt;# rtc&lt;/span&gt;
lxc.cgroup.devices.allow &lt;span class=&quot;synStatement&quot;&gt;=&lt;/span&gt; c &lt;span class=&quot;synConstant&quot;&gt;254&lt;/span&gt;:&lt;span class=&quot;synConstant&quot;&gt;0&lt;/span&gt; rwm
&lt;/pre&gt;

			&lt;p&gt;lxc.rootfsの値が、&quot;./rootfs.test&quot;になっている。ただ、0.6.4にアップグレードした際も、元々のやつが起動できなかったことと、0.6.3の時もlxc-debian create時のrootfsのデフォルト値は相対パスだったのことを考えると、値は変わっていない気がする&lt;span class=&quot;footnote&quot;&gt;&lt;a href=&quot;http://d.hatena.ne.jp/mkouhei/#f1&quot; name=&quot;fn1&quot; title=&quot;0.6.3の環境が無いのとデグレートしてまで確認しようとは思わないので。&quot;&gt;*1&lt;/a&gt;&lt;/span&gt;。0.6.3の時はなぜ問題なかったのか？&lt;a href=&quot;http://d.hatena.ne.jp/mkouhei/20091031/1256922271&quot; target=&quot;_blank&quot;&gt;/var/lib/lxc/test/rootfs/rootfsが、/var/cache/lxc/debian/rootfs.testへのsymlinkになっていたからじゃないか&lt;/a&gt;なと。&lt;/p&gt;
			&lt;p&gt;回避方法は単純で、/var/lib/lxc/test/configのlxc.rootfsの値を相対パスから絶対パスに変えてやればよい。&lt;/p&gt;
			&lt;p&gt;結論としては、&quot;lxc-debian create&quot;するときは、相対パスのままにしないで、絶対パスでrootfsを指定しましょう、ということ。そんだけ。&lt;/p&gt;
		&lt;/div&gt;
		&lt;div class=&quot;footnote&quot;&gt;
			&lt;p class=&quot;footnote&quot;&gt;&lt;a href=&quot;http://d.hatena.ne.jp/mkouhei/#fn1&quot; name=&quot;f1&quot;&gt;*1&lt;/a&gt;：0.6.3の環境が無いのとデグレートしてまで確認しようとは思わないので。&lt;/p&gt;
		&lt;/div&gt;</content:encoded>
	<dc:date>2010-02-08T02:45:02+00:00</dc:date>
</item>
<item rdf:about="http://www.debian.or.jp/blog/events/tokyodebian-61.html">
	<title>Debian JP Blog: 第61回 東京エリア Debian 勉強会「でびあん温泉＠木更津」のお知らせ</title>
	<link>http://www.debian.or.jp/blog/events/tokyodebian-61.html</link>
	<content:encoded>&lt;p&gt;
東京近辺にいらっしゃる皆様こんにちは。今年も Debian 勉強会が開かれます！&lt;/p&gt;

&lt;p&gt;
Debian 勉強会とは、Debian 
の開発者になれることをひそかに夢見るユーザたちと、
ある時にはそれを優しく手助けをし、またある時には厳しく叱咤激励する Debian 
開発者らが Face to Face で Debian GNU/Linux のさまざまなトピック
（新しいパッケージ、Debian 特有の機能の仕組について、Debian 界隈で起こった出来事、etc）
について語り合うイベントです。&lt;/p&gt;
&lt;p&gt;
参加される方は主に東京を中心に関東近郊の国籍・性別不問の Debian ユーザです 
(Debian をまだ使ったことが無いが興味があるので…とか、かなり遠い所から来てくださる方もいます)。
開発の最前線にいるDebian の公式開発者や開発者予備軍の方も居ますので、
普段は聞けないような様々な情報を得るチャンスです。
興味と時間があった方、是非御参加下さい。
（また、勉強会で話をしてみたいという方も随時募集しています）。&lt;/p&gt;

&lt;p&gt;
今回は&lt;a href=&quot;http://www.kisarazu.ac.jp/&quot;&gt;木更津工業高等専門学校&lt;/a&gt; 情報工学科の方々のご協力を得まして木更津での開催になります。
都内だと遠くて参加できないという木更津近郊の方々、是非ともご参加ください。
&lt;br /&gt;
また今回は「でびあん温泉」と称して温泉合宿を同時に行います。
木更津以外からの参加者有志で集まって宿泊場所を確保し、よもやま話や温泉を楽しむ予定です。&lt;br /&gt;
&lt;strong&gt;温泉合宿と勉強会の参加申し込みは別になります。勉強会のみ参加というのも可能です。
また、温泉合宿申し込み締切りは勉強会申し込みの締切りより早め (2/10 まで）となります。ご注意ください&lt;/strong&gt;。
&lt;/p&gt;


&lt;dl&gt;
&lt;dt&gt;開催日時・会場&lt;/dt&gt;
&lt;dd&gt;
   &lt;li&gt;2010年2月20日（土）13:00~17:00&lt;br /&gt;
会場：&lt;a href=&quot;http://www.kisarazu.ac.jp/access/index.html&quot;&gt;木更津工業高等専門学校　第3研究棟1階専攻科講義室A&lt;/a&gt;
   &lt;li&gt;2010年2月21日（日） 9:00-12:00（予定）&lt;br /&gt;
会場：&lt;a href=&quot;http://www.city.kisarazu.lg.jp/shisetsu/083.html&quot;&gt;木更津市清見台公民館2階第1研修室&lt;/a&gt;&lt;/li&gt;
   &lt;li&gt;費用：500円（予定、&lt;strong&gt;宿泊には別途実費がかかります&lt;/strong&gt;）&lt;/li&gt;
   &lt;li&gt;その他：飲食可能。各自ゴミは必ず持ち帰ること&lt;/li&gt;
   &lt;/li&gt;&lt;/dd&gt;&lt;/dl&gt;


&lt;dt&gt;内容&lt;/dt&gt;
&lt;dd&gt;
現在調整中です。何か希望があればご連絡ください。&lt;/dd&gt;

&lt;dt&gt;参加方法と注意事項&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;勉強会に参加する方は、2/18 日 24 時までに下記の Debian 勉強会受付システムにて事前登録を行ってください。&lt;strong&gt;20、21日で登録が別々になります&lt;/strong&gt;のでご注意ください。&lt;br /&gt;
    &lt;a href=&quot;http://debianmeeting.appspot.com/event?eventid=7f337ce32d330102b25b03054acfff0be5d193a8&quot;&gt;2/20（土）&lt;/a&gt;分&lt;br /&gt;
    &lt;a href=&quot;http://debianmeeting.appspot.com/event?eventid=24235fd808ccfa9db0e6bd0c12742b4a5737f048&quot;&gt;2/21（日）&lt;/a&gt;分&lt;/li&gt;
&lt;li&gt;&lt;strong class=&quot;attention&quot;&gt;温泉合宿に参加される方は 2/10 までに登録を済ませ、登録の際にコメント欄にその旨ご連絡ください&lt;/strong&gt;。
&lt;li&gt;ノートPC、インターネット接続環境などは各自持参ください。&lt;/li&gt;
&lt;li&gt;GPGキーサインしたい人：フィンガープリントを印刷したもの（名刺などが望ましい）と、公的な証明書（パスポート、運転免許証）をご用意ください。&lt;/li&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;/dd&gt;


&lt;p&gt;
この件に関するお問い合わせは Debian 勉強会主催者：前田耕平 (mkouhei&amp;#64;{debian.or.jp} )
までお願いいたします。&lt;/p&gt;</content:encoded>
	<dc:date>2010-02-07T00:02:00+00:00</dc:date>
</item>
<item rdf:about="http://d.ma-aya.to/?date=20100206#p03">
	<title>Henrich: そういえば来月は熱血高校吹奏楽部の演奏会です</title>
	<link>http://d.ma-aya.to/?date=20100206#p03</link>
	<content:encoded>&lt;h3&gt;そういえば来月は熱血高校吹奏楽部の演奏会です&lt;/h3&gt;&lt;p&gt;
&lt;a href=&quot;http://www.nicovideo.jp/mylist/4690547&quot;&gt;予習&lt;/a&gt;をして臨みましょう。3/7@新宿です。&lt;/p&gt;</content:encoded>
	<dc:date>2010-02-06T10:13:15+00:00</dc:date>
</item>
<item rdf:about="http://www.netfort.gr.jp/~dancer/diary/daily/2010-Feb-6.html.ja#2010-Feb-6-18:13:07">
	<title>dancerj: bash プロンプトの設定。</title>
	<link>http://www.netfort.gr.jp/~dancer/diary/daily/2010-Feb-6.html.ja#2010-Feb-6-18:13:07</link>
	<content:encoded>bash プロンプトの設定。
	  以前設定した気がしていたのだが設定わすれていたので。
	  現在こんな感じ。&lt;tt&gt;PS1=&quot;$debian_chroot[\t]\$(__git_ps1 '[%s]')\h:\W&amp;gt; &quot;&lt;/tt&gt;
	  $debian_chroot は Debian の bash 初期化スクリプトで /etc/debian_chroot をみて勝手に設定される変数で、chrootの特徴を記録してくれる。
	  いろいろなchrootを縦横無尽に使いまくる人には必須アイテム。
	  あと、__git_ps1 は git と一緒に配布されているスクリプトで設定されているもので、
	  git のツリー内にいる場合は現在のブランチを表示してくれる。
	  あとは、現在のディレクトリを表示。
	  時間は結構重要で、コマンドの実行時刻や実行に必要な時間とかは常に計測しておかないと不安なあなたにおすすめ。</content:encoded>
	<dc:date>2010-02-06T09:13:07+00:00</dc:date>
</item>
<item rdf:about="http://d.ma-aya.to/?date=20100206#p02">
	<title>Henrich: tomoyo なパッケージ</title>
	<link>http://d.ma-aya.to/?date=20100206#p02</link>
	<content:encoded>&lt;h3&gt;tomoyo なパッケージ&lt;/h3&gt;&lt;p&gt;
squeezeのカーネルが2.6.32になってたので、linux-tomoyo-patch は折り合いをみて削除してもらいます。で、どうするかというと今 experimental にいる linux-tomoyo-patch1.7 を入れます。&lt;/p&gt;
&lt;p&gt;
tomoyo-ccstools は悩ましいというかアップデートしちゃうと困ってしまうのでやっぱりこれも同じように折を見て削除ですね。で、代わりに tomoyo-ccstools1.7 が入るように。2月真ん中目処ですね。&lt;/p&gt;
&lt;p&gt;
tomoyo-tools (2系）はどうしましょうねぇ…誰か気合のある人がいたらお任せしたいところ。パッケージ雛形自体はできています。&lt;/p&gt;</content:encoded>
	<dc:date>2010-02-06T08:16:32+00:00</dc:date>
</item>
<item rdf:about="http://d.ma-aya.to/?date=20100206#p01">
	<title>Henrich: 昨日／今日の作業</title>
	<link>http://d.ma-aya.to/?date=20100206#p01</link>
	<content:encoded>&lt;h3&gt;昨日／今日の作業&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;win32-loaderの追随
&lt;li&gt;webの更新準備
&lt;li&gt;non-free な ttf パッケージのアップデート準備
&lt;li&gt;uscanいじりというかコピペワーク
&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/ul&gt;</content:encoded>
	<dc:date>2010-02-06T08:04:19+00:00</dc:date>
</item>
<item rdf:about="http://www.debian.or.jp/blog/events/kansaidebian-32.html">
	<title>Debian JP Blog: 第32回 関西 Debian 勉強会のお知らせ</title>
	<link>http://www.debian.or.jp/blog/events/kansaidebian-32.html</link>
	<content:encoded>&lt;p&gt;
「&lt;a href=&quot;http://wiki.debian.org/KansaiDebianMeeting20100228&quot;&gt;第32回 関西 Debian 勉強会&lt;/a&gt;」 
のお知らせです。関西 Debian 勉強会は、関西方面の Debian ユーザ／ユーザ予備群／開発者らで 
Debian GNU/Linux のさまざまなトピックについて Face to Face で楽しく話し合っていく集まりです。&lt;/p&gt;

&lt;dl&gt;
&lt;dt&gt;開催日時・会場・持ち物等&lt;/dt&gt;
&lt;dd&gt;
  &lt;ul&gt;
  &lt;li&gt;日時：2010 年 2 月 28 日 (日) 13:30 - 17:00 (13:15 より受付)&lt;/li&gt;
  &lt;li&gt;会場：&lt;a href=&quot;http://www.city.osaka.lg.jp/shimin/page/0000016603.html&quot;&gt;大阪 福島区民センター 303会議室&lt;/a&gt;
(定員：22名)&lt;/li&gt;
  &lt;li&gt;費用：500円 (部屋代、印刷代などの諸費用のため)&lt;/li&gt;
  &lt;li&gt;事前課題: Debianを使ったサーバーを管理している人は「運用しているサーバのセキュリティについてどうしているか、どこに気をつけているか」を教えてください。そうでない人は、「今回から新しく使う&lt;a href=&quot;http://debianmeeting.appspot.com/event?eventid=30ae12bd501e1d4460574111d1d4d16d0d44c276&quot;&gt;Debian勉強会予約管理システム&lt;/a&gt;を利用してみての感想」を教えてください。&lt;/li&gt;
  &lt;/ul&gt;
&lt;/dd&gt;

&lt;dt&gt;内容&lt;/dt&gt;
&lt;dd&gt;
  &lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;Intro&lt;/strong&gt;&lt;br /&gt;
この勉強会の簡単な説明をします。&lt;/li&gt;

  &lt;li&gt;&lt;strong&gt;「あなたに 5 分あげます」&lt;/strong&gt; (担当：参加者全員)&lt;br /&gt;
5 分間で事前課題について自己紹介をしてください。
普通にしゃべるもよし、ネタをしゃべるもよし。&lt;/li&gt;

  &lt;li&gt;&lt;strong&gt;「Debian GNU/Linuxを実際にビジネスで使ったレンタルサーバー」&lt;/strong&gt; (担当：前田 学(&lt;a href=&quot;http://www.obitastar.co.jp/&quot;&gt;オビタスター&lt;/a&gt;))&lt;br /&gt;
Debian GNU/Linux使ってビジネスで、レンタルサーバーを行なっているオビタスター。 実際どのような形で利用し、何が課題で、どのようなことを今後望んでいるのか、実際に利用しているオビタスターから発表します。 &lt;/li&gt;

  &lt;li&gt;&lt;strong&gt;「PythyonもGoogle App Engineも知らない人が『Debian勉強会予約管理システム』のソースを見てみたよ」&lt;/strong&gt; (担当：のがたじゅん)&lt;br /&gt;
関西Debian勉強会でも&lt;a href=&quot;http://debianmeeting.appspot.com/event?eventid=30ae12bd501e1d4460574111d1d4d16d0d44c276&quot;&gt;Debian勉強会予約管理システム&lt;/a&gt;を今月から使い始めますが、そのソースは公開されています。ということで、PythyonもGoogle App Engineもまったく知らない人が、ほげってみた事を発表します。&lt;/li&gt;

  &lt;/ol&gt;
&lt;/dd&gt;
&lt;dt&gt;参加方法と注意事項&lt;/dt&gt;
&lt;dd&gt;
&lt;strong&gt;2 月 26 日 (金) 24:00 までに&lt;/strong&gt;
&lt;a href=&quot;http://debianmeeting.appspot.com/event?eventid=30ae12bd501e1d4460574111d1d4d16d0d44c276&quot;&gt;Debian勉強会予約管理システム&lt;/a&gt;を参照して、
事前登録をしてください。登録にはGoogleアカウントが必要になりますが、事情によりGoogleアカウントを使えない/登録できない方は担当者まで連絡してください
（締切りに間に合わなかった方は、下記連絡先から担当者と連絡を取ってください。
懇親会 (予定) に参加する場合は、二次会参加の欄にチェックしてください）。
&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;
この件に関するお問い合わせは 関西 Debian 勉強会 担当：野方 純 (nogajun&amp;#64;{debian.or.jp} ) までお願いいたします。&lt;/p&gt;</content:encoded>
	<dc:date>2010-02-06T07:47:00+00:00</dc:date>
</item>
<item rdf:about="http://www.nigauri.org/~iwamatsu/d/?date=20100203#p02">
	<title>iwamatsu: 恵方巻</title>
	<link>http://www.nigauri.org/~iwamatsu/d/?date=20100203#p02</link>
	<content:encoded>&lt;h3&gt;恵方巻&lt;/h3&gt;&lt;p&gt;嫁が玄関にある鬼のお面をかぶってリビングに入ってこい！というのでお面をかぶってリビングに入ったのはいいが、子供にキャッキャッと笑われる罠。思っていた反応と違ったのでガッカリですよ。&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.nigauri.org/~iwamatsu/d/?date=20100203#c&quot;&gt;ツッコミを入れる&lt;/a&gt;&lt;/p&gt;</content:encoded>
	<dc:date>2010-02-04T23:45:46+00:00</dc:date>
</item>
<item rdf:about="http://www.nigauri.org/~iwamatsu/d/?date=20100201#p01">
	<title>iwamatsu: あるイーサネットデバイスのリンクアップを知るには</title>
	<link>http://www.nigauri.org/~iwamatsu/d/?date=20100201#p01</link>
	<content:encoded>&lt;h3&gt;あるイーサネットデバイスのリンクアップを知るには&lt;/h3&gt;たまにはLinuxカーネルネタを書いてみるテスト。&lt;br /&gt;
Linux であるイーサネットデバイスのリンクアップを知るにはsysfsを見ればよいです。
&lt;pre&gt;
$ cat /sys/class/net/eth0/carrier
1
&lt;/pre&gt;
では、カーネル空間からチェックするにはどうしたらいいのか。
__dev_get_by_index で指定したネットワークデバイス番号のstruct net_deviceを取得し、netif_carrier_ok を使って、状態をチェックします。&lt;br /&gt;
キモはグローバル変数のinit_netを使うことですかね。あと、デバイス番号は見つかったネットワークデバイス番号なので、大抵の環境では lo が取れます。eth0 は2を指定します。ちゃんとしたい場合には name変数でデバイス名をチェックしましょう。
&lt;pre&gt;
struct net_device *dev;
dev = __dev_get_by_index(&amp;amp;init_net, 1);
if (dev)
  printk(&quot;%s: %d\n&quot;, dev-&gt;name, netif_carrier_ok(dev));
&lt;/pre&gt;
&lt;p&gt;&lt;a href=&quot;http://www.nigauri.org/~iwamatsu/d/?date=20100201#c&quot;&gt;ツッコミを入れる&lt;/a&gt;&lt;/p&gt;</content:encoded>
	<dc:date>2010-02-04T23:43:46+00:00</dc:date>
</item>
<item rdf:about="http://www.nigauri.org/~iwamatsu/d/?date=20100203#p01">
	<title>iwamatsu: ghc6 が動いた</title>
	<link>http://www.nigauri.org/~iwamatsu/d/?date=20100203#p01</link>
	<content:encoded>&lt;h3&gt;ghc6 が動いた&lt;/h3&gt;&lt;p&gt;ghc6 が動きました。stage2 &amp;amp; helloworld だけですが。
&lt;/p&gt;&lt;p&gt;今、stage2 を使って ghc6 パッケージをビルド中。&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.nigauri.org/~iwamatsu/d/?date=20100203#c&quot;&gt;ツッコミを入れる&lt;/a&gt;&lt;/p&gt;</content:encoded>
	<dc:date>2010-02-04T23:42:35+00:00</dc:date>
</item>
<item rdf:about="http://www.nigauri.org/~iwamatsu/d/?date=20100204#p01">
	<title>iwamatsu: binutils クロスコンパイル on amd64</title>
	<link>http://www.nigauri.org/~iwamatsu/d/?date=20100204#p01</link>
	<content:encoded>&lt;h3&gt;binutils クロスコンパイル on amd64&lt;/h3&gt;&lt;p&gt;先月の中頃までDebian/amd64でbinutilsのクロスコンパイルができなったのですが、&lt;a href=&quot;http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=557620&quot;&gt;zumbi がパッチを教えてくれた&lt;/a&gt;ので、コンパイルできるようになりました。sh4 のクロスコンパイラはいつもの場所に置いておきます。&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.nigauri.org/~iwamatsu/d/?date=20100204#c&quot;&gt;ツッコミを入れる&lt;/a&gt;&lt;/p&gt;</content:encoded>
	<dc:date>2010-02-04T23:41:49+00:00</dc:date>
</item>
<item rdf:about="http://d.hatena.ne.jp/mkouhei/20100204/1265295143">
	<title>mkouhei: [Unix/Linux][Debian]気がついたらだんだん増殖。</title>
	<link>http://d.hatena.ne.jp/mkouhei/20100204/1265295143</link>
	<content:encoded>&lt;div class=&quot;section&quot;&gt;
			&lt;p&gt;組合サーバのバックアップは、tarでデータだけを固めて、sshでDVD-RWドライブのついているリモートホストに転送しているのだが、なんか気がついたらスクリプトが増殖していた。前回バックアップを取得してから結構時間が経っているので、どうやるんだっけかなぁと確認してみたら、どうやら以前、一発実行スクリプトを用意していた。そんなことすら忘れていたのか。スクリプトを見ると組合鯖の運用の歴史を紐解ける(気がする)ので、洗い出してみた。&lt;/p&gt;
			&lt;p&gt;もともとのバックアップ用のスクリプトはこれ&lt;span class=&quot;footnote&quot;&gt;&lt;a href=&quot;http://d.hatena.ne.jp/mkouhei/#f1&quot; name=&quot;fn1&quot; title=&quot;/usr/local/sbin/backup.sh&quot;&gt;*1&lt;/a&gt;&lt;/span&gt;。&lt;/p&gt;
&lt;pre class=&quot;syntax-highlight&quot;&gt;
&lt;span class=&quot;synComment&quot;&gt;#!/bin/bash&lt;/span&gt;
&lt;span class=&quot;synIdentifier&quot;&gt;KEY&lt;/span&gt;=/home/user/.ssh/backup.key
&lt;span class=&quot;synIdentifier&quot;&gt;TARGETDIR&lt;/span&gt;=&lt;span class=&quot;synPreProc&quot;&gt;$1&lt;/span&gt;
&lt;span class=&quot;synStatement&quot;&gt;test&lt;/span&gt; &lt;span class=&quot;synSpecial&quot;&gt;-z&lt;/span&gt; &lt;span class=&quot;synPreProc&quot;&gt;$1&lt;/span&gt; &lt;span class=&quot;synStatement&quot;&gt;&amp;#38;&amp;#38;&lt;/span&gt; &lt;span class=&quot;synStatement&quot;&gt;echo&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt; -n &lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt;Target Dir (Full Path) : &lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt; &lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;&amp;#38;&amp;#38;&lt;/span&gt; &lt;span class=&quot;synStatement&quot;&gt;read&lt;/span&gt; TARGETDIR
&lt;span class=&quot;synIdentifier&quot;&gt;BACKUP&lt;/span&gt;=&lt;span class=&quot;synPreProc&quot;&gt;$2&lt;/span&gt;
&lt;span class=&quot;synStatement&quot;&gt;test&lt;/span&gt; &lt;span class=&quot;synSpecial&quot;&gt;-z&lt;/span&gt; &lt;span class=&quot;synPreProc&quot;&gt;$2&lt;/span&gt; &lt;span class=&quot;synStatement&quot;&gt;&amp;#38;&amp;#38;&lt;/span&gt; &lt;span class=&quot;synStatement&quot;&gt;echo&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt; -n &lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt;Backup File Name       : &lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt; &lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;&amp;#38;&amp;#38;&lt;/span&gt; &lt;span class=&quot;synStatement&quot;&gt;read&lt;/span&gt; BACKUP
&lt;span class=&quot;synIdentifier&quot;&gt;BACKUPFILE&lt;/span&gt;=&lt;span class=&quot;synPreProc&quot;&gt;${BACKUP}&lt;/span&gt;_&lt;span class=&quot;synPreProc&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;synSpecial&quot;&gt;date +%Y%m%d&lt;/span&gt;&lt;span class=&quot;synPreProc&quot;&gt;)&lt;/span&gt;.tgz
&lt;span class=&quot;synIdentifier&quot;&gt;USER&lt;/span&gt;=&lt;span class=&quot;synStatement&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt;user&lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;&quot;&lt;/span&gt;
&lt;span class=&quot;synIdentifier&quot;&gt;BACKUPHOST&lt;/span&gt;=&lt;span class=&quot;synStatement&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt;xxx.xxx.xxx.xxx&lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;&quot;&lt;/span&gt;
&lt;span class=&quot;synIdentifier&quot;&gt;BACKUPDIR&lt;/span&gt;=&lt;span class=&quot;synStatement&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt;~&lt;/span&gt;&lt;span class=&quot;synPreProc&quot;&gt;${USER}&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt;/backup/&lt;/span&gt;&lt;span class=&quot;synPreProc&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;synSpecial&quot;&gt;date +%Y%m%d&lt;/span&gt;&lt;span class=&quot;synPreProc&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;&quot;&lt;/span&gt;
tar zcf - &lt;span class=&quot;synPreProc&quot;&gt;$TARGETDIR&lt;/span&gt; &lt;span class=&quot;synStatement&quot;&gt;|&lt;/span&gt; ssh &lt;span class=&quot;synSpecial&quot;&gt;-i&lt;/span&gt; &lt;span class=&quot;synPreProc&quot;&gt;$KEY&lt;/span&gt; &lt;span class=&quot;synPreProc&quot;&gt;${USER}&lt;/span&gt;@&lt;span class=&quot;synPreProc&quot;&gt;${BACKUPHOST}&lt;/span&gt; &lt;span class=&quot;synStatement&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt;dd of=&lt;/span&gt;&lt;span class=&quot;synPreProc&quot;&gt;${BACKUPDIR}&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;synPreProc&quot;&gt;${BACKUPFILE}&lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;&quot;&lt;/span&gt;
&lt;span class=&quot;synStatement&quot;&gt;sleep&lt;/span&gt; &lt;span class=&quot;synConstant&quot;&gt;5&lt;/span&gt;
&lt;/pre&gt;

			&lt;p&gt;わざわざsshで転送しているのだが、そもそもこのホストと転送先のホストの間は、外部ネットワークからアクセスできないセグメントにしてあるんだからncで良かったんじゃねぇのと今更思うが、これ書いた当時はncなんてダメだ、sshでやらなあかん、という無意味にセキュリティ重視していたのだなと。&lt;/p&gt;
			&lt;p&gt;このホスト、MySQLも動かしているのでデータ量は大したことがないので、バックアップは上記スクリプトで/var以下を手動で指定して取得していたのだが、そのうちmysqldumpを取得するようにした。&lt;span class=&quot;footnote&quot;&gt;&lt;a href=&quot;http://d.hatena.ne.jp/mkouhei/#f2&quot; name=&quot;fn2&quot; title=&quot;/usr/local/sbin/mysqldump.sh&quot;&gt;*2&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre class=&quot;syntax-highlight&quot;&gt;
&lt;span class=&quot;synComment&quot;&gt;#!/bin/bash&lt;/span&gt;

&lt;span class=&quot;synIdentifier&quot;&gt;host&lt;/span&gt;=&lt;span class=&quot;synSpecial&quot;&gt;`awk &lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt;/^host/ {print $3}&lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;synSpecial&quot;&gt; /etc/mysql/debian.cnf`&lt;/span&gt;
&lt;span class=&quot;synIdentifier&quot;&gt;user&lt;/span&gt;=&lt;span class=&quot;synSpecial&quot;&gt;`awk &lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt;/^user/ {print $3}&lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;synSpecial&quot;&gt; /etc/mysql/debian.cnf`&lt;/span&gt;
&lt;span class=&quot;synIdentifier&quot;&gt;password&lt;/span&gt;=&lt;span class=&quot;synSpecial&quot;&gt;`awk &lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt;/^password/ {print $3}&lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;synSpecial&quot;&gt; /etc/mysql/debian.cnf`&lt;/span&gt;
&lt;span class=&quot;synIdentifier&quot;&gt;date&lt;/span&gt;=&lt;span class=&quot;synPreProc&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;synSpecial&quot;&gt;date +%Y%m%d&lt;/span&gt;&lt;span class=&quot;synPreProc&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;synIdentifier&quot;&gt;dbs&lt;/span&gt;=&lt;span class=&quot;synPreProc&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;synSpecial&quot;&gt;mysqlshow  -h &lt;/span&gt;&lt;span class=&quot;synPreProc&quot;&gt;$host&lt;/span&gt;&lt;span class=&quot;synSpecial&quot;&gt; -u &lt;/span&gt;&lt;span class=&quot;synPreProc&quot;&gt;$user&lt;/span&gt;&lt;span class=&quot;synSpecial&quot;&gt; --&lt;/span&gt;&lt;span class=&quot;synIdentifier&quot;&gt;password&lt;/span&gt;=&lt;span class=&quot;synPreProc&quot;&gt;$password&lt;/span&gt;&lt;span class=&quot;synSpecial&quot;&gt; &lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;synSpecial&quot;&gt; awk -F&lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt;| &lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;synSpecial&quot;&gt; &lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt;{print $2}&lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;synSpecial&quot;&gt; &lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;synSpecial&quot;&gt; &lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;egrep&lt;/span&gt;&lt;span class=&quot;synSpecial&quot;&gt; -v &lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt;^$&lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;synPreProc&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;synIdentifier&quot;&gt;tmpdir&lt;/span&gt;=/tmp/mysql
&lt;span class=&quot;synStatement&quot;&gt;test&lt;/span&gt; &lt;span class=&quot;synSpecial&quot;&gt;-d&lt;/span&gt; &lt;span class=&quot;synPreProc&quot;&gt;$tmpdir&lt;/span&gt; &lt;span class=&quot;synStatement&quot;&gt;||&lt;/span&gt; &lt;span class=&quot;synStatement&quot;&gt;mkdir&lt;/span&gt; &lt;span class=&quot;synPreProc&quot;&gt;$tmpdir&lt;/span&gt;
&lt;span class=&quot;synStatement&quot;&gt;for&lt;/span&gt; db &lt;span class=&quot;synStatement&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;synPreProc&quot;&gt;${dbs[&lt;/span&gt;@&lt;span class=&quot;synPreProc&quot;&gt;]}&lt;/span&gt;
&lt;span class=&quot;synStatement&quot;&gt;do&lt;/span&gt;
        mysqldump &lt;span class=&quot;synStatement&quot;&gt;-h&lt;/span&gt; &lt;span class=&quot;synPreProc&quot;&gt;$host&lt;/span&gt; &lt;span class=&quot;synStatement&quot;&gt;-u&lt;/span&gt; &lt;span class=&quot;synPreProc&quot;&gt;$user&lt;/span&gt; --&lt;span class=&quot;synIdentifier&quot;&gt;password&lt;/span&gt;=&lt;span class=&quot;synPreProc&quot;&gt;$password&lt;/span&gt; &lt;span class=&quot;synPreProc&quot;&gt;$db&lt;/span&gt; &lt;span class=&quot;synStatement&quot;&gt;&amp;#62;&lt;/span&gt; &lt;span class=&quot;synPreProc&quot;&gt;${tmpdir}&lt;/span&gt;/&lt;span class=&quot;synPreProc&quot;&gt;${db}&lt;/span&gt;_dumpfile_&lt;span class=&quot;synPreProc&quot;&gt;${date}&lt;/span&gt;.sql
&lt;span class=&quot;synStatement&quot;&gt;done&lt;/span&gt;
&lt;span class=&quot;synStatement&quot;&gt;exit&lt;/span&gt; &lt;span class=&quot;synConstant&quot;&gt;0&lt;/span&gt;
&lt;/pre&gt;

			&lt;p&gt;DebianのMySQLのパッケージは、/etc/mysql/debian.cnfに管理用のユーザ名、パスワードが設定してあるので、直接スクリプトに書くよりはマシだろうとそこから読み取り変数にしている。「&lt;a href=&quot;http://twitter.com/yssk22/status/7551873488&quot; target=&quot;_blank&quot;&gt;bashの配列なんか使うのをはじめて見た&lt;/a&gt;」と&lt;a href=&quot;http://groups.google.co.jp/group/couchdb-jp/web/couchdb-hackathon-relaxon&quot; target=&quot;_blank&quot;&gt;先月のrelaxon&lt;/a&gt;でも言われたのだが、まぁ、ここでも使っているんですな。&lt;/p&gt;
			&lt;br /&gt;

			&lt;p&gt;ある時点まで、これらのスクリプトを手動で実行していたのだが、だんだん面倒になって、スクリプト一発で取得できるように、と書いたのがこれ。&lt;span class=&quot;footnote&quot;&gt;&lt;a href=&quot;http://d.hatena.ne.jp/mkouhei/#f3&quot; name=&quot;fn3&quot; title=&quot;/usr/local/sbin/autobackup.sh&quot;&gt;*3&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre class=&quot;syntax-highlight&quot;&gt;
&lt;span class=&quot;synComment&quot;&gt;#!/bin/bash&lt;/span&gt;

&lt;span class=&quot;synIdentifier&quot;&gt;KEY&lt;/span&gt;=/home/user/.ssh/backup.key
&lt;span class=&quot;synIdentifier&quot;&gt;DATE&lt;/span&gt;=&lt;span class=&quot;synPreProc&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;synSpecial&quot;&gt;date +%Y%m%d&lt;/span&gt;&lt;span class=&quot;synPreProc&quot;&gt;)&lt;/span&gt;
ssh &lt;span class=&quot;synSpecial&quot;&gt;-i&lt;/span&gt; &lt;span class=&quot;synPreProc&quot;&gt;$KEY&lt;/span&gt; user@remotehost /usr/&lt;span class=&quot;synStatement&quot;&gt;local&lt;/span&gt;/bin/checkdir.sh &lt;span class=&quot;synPreProc&quot;&gt;$DATE&lt;/span&gt;
/usr/&lt;span class=&quot;synStatement&quot;&gt;local&lt;/span&gt;/sbin/mysqldump.sh
/usr/&lt;span class=&quot;synStatement&quot;&gt;local&lt;/span&gt;/sbin/prebackup.sh &lt;span class=&quot;synStatement&quot;&gt;stop&lt;/span&gt;
/usr/&lt;span class=&quot;synStatement&quot;&gt;local&lt;/span&gt;/sbin/backup.sh /etc       myhost_etc
/usr/&lt;span class=&quot;synStatement&quot;&gt;local&lt;/span&gt;/sbin/backup.sh /home      myhost_home
/usr/&lt;span class=&quot;synStatement&quot;&gt;local&lt;/span&gt;/sbin/backup.sh /var       myhost_var
/usr/&lt;span class=&quot;synStatement&quot;&gt;local&lt;/span&gt;/sbin/backup.sh /tmp/mysql myhost_mysqldump
/usr/&lt;span class=&quot;synStatement&quot;&gt;local&lt;/span&gt;/sbin/prebackup.sh &lt;span class=&quot;synStatement&quot;&gt;start&lt;/span&gt;
&lt;span class=&quot;synStatement&quot;&gt;echo&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt; &lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt;Backup executed at &lt;/span&gt;&lt;span class=&quot;synPreProc&quot;&gt;$(LANG&lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;synSpecial&quot;&gt;C date&lt;/span&gt;&lt;span class=&quot;synPreProc&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt; &lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;|&lt;/span&gt; mail &lt;span class=&quot;synSpecial&quot;&gt;-s&lt;/span&gt; &lt;span class=&quot;synStatement&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt;backup &lt;/span&gt;&lt;span class=&quot;synPreProc&quot;&gt;$DATE&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt; done.&lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;&quot;&lt;/span&gt; root
&lt;/pre&gt;

			&lt;p&gt;etc, home, var, mysqldumpをtarで固めてsshで転送しているのだが、他にもいくつか別のスクリプトを実行している。一つ目は、転送先のホストに指定のディレクトリがあるかをチェックするだけのスクリプト。&lt;span class=&quot;footnote&quot;&gt;&lt;a href=&quot;http://d.hatena.ne.jp/mkouhei/#f4&quot; name=&quot;fn4&quot; title=&quot;/usr/local/bin/checkdir.sh&quot;&gt;*4&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre class=&quot;syntax-highlight&quot;&gt;
&lt;span class=&quot;synComment&quot;&gt;#!/bin/bash&lt;/span&gt;
&lt;span class=&quot;synStatement&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;synStatement&quot;&gt;[&lt;/span&gt; &lt;span class=&quot;synStatement&quot;&gt;!&lt;/span&gt; &lt;span class=&quot;synStatement&quot;&gt;-d&lt;/span&gt; /home/user/backup/&lt;span class=&quot;synPreProc&quot;&gt;$1&lt;/span&gt; &lt;span class=&quot;synStatement&quot;&gt;];&lt;/span&gt;
&lt;span class=&quot;synStatement&quot;&gt;then&lt;/span&gt;
  &lt;span class=&quot;synStatement&quot;&gt;mkdir&lt;/span&gt; /home/user/backup/&lt;span class=&quot;synPreProc&quot;&gt;$1&lt;/span&gt;
&lt;span class=&quot;synStatement&quot;&gt;else&lt;/span&gt;
  &lt;span class=&quot;synStatement&quot;&gt;echo&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt; -n&lt;/span&gt;
&lt;span class=&quot;synStatement&quot;&gt;fi&lt;/span&gt;
&lt;/pre&gt;

			&lt;p&gt;二つ目は、tar実行前後にサービスを停止・起動するためのスクリプト。&lt;span class=&quot;footnote&quot;&gt;&lt;a href=&quot;http://d.hatena.ne.jp/mkouhei/#f5&quot; name=&quot;fn5&quot; title=&quot;/usr/local/sbin/prebackup.sh&quot;&gt;*5&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre class=&quot;syntax-highlight&quot;&gt;
&lt;span class=&quot;synComment&quot;&gt;#!/bin/bash&lt;/span&gt;
&lt;span class=&quot;synIdentifier&quot;&gt;SERVICE&lt;/span&gt;=&lt;span class=&quot;synStatement&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt;apache2 usermin webmin mysql samba nfs-kernel-server nfs-common portmap postfix&lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;&quot;&lt;/span&gt;
&lt;span class=&quot;synStatement&quot;&gt;case&lt;/span&gt; &lt;span class=&quot;synStatement&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;synPreProc&quot;&gt;$1&lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;synStatement&quot;&gt;in&lt;/span&gt;
start&lt;span class=&quot;synStatement&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;synIdentifier&quot;&gt;SERVICE&lt;/span&gt;=&lt;span class=&quot;synSpecial&quot;&gt;`echo &lt;/span&gt;&lt;span class=&quot;synPreProc&quot;&gt;$SERVICE&lt;/span&gt;&lt;span class=&quot;synSpecial&quot;&gt; &lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;synSpecial&quot;&gt; gawk -f /usr/&lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;local&lt;/span&gt;&lt;span class=&quot;synSpecial&quot;&gt;/bin/revword.awk`&lt;/span&gt;
&lt;span class=&quot;synIdentifier&quot;&gt;FLAG&lt;/span&gt;=&lt;span class=&quot;synStatement&quot;&gt;start&lt;/span&gt;
&lt;span class=&quot;synStatement&quot;&gt;;;&lt;/span&gt;
stop&lt;span class=&quot;synStatement&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;synIdentifier&quot;&gt;FLAG&lt;/span&gt;=&lt;span class=&quot;synStatement&quot;&gt;stop&lt;/span&gt;
&lt;span class=&quot;synStatement&quot;&gt;;;&lt;/span&gt;
*&lt;span class=&quot;synStatement&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;synStatement&quot;&gt;echo&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt; &lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt;Usage: &lt;/span&gt;&lt;span class=&quot;synPreProc&quot;&gt;$0&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt; {start|stop}&lt;/span&gt;&lt;span class=&quot;synStatement&quot;&gt;&quot;&lt;/span&gt;
&lt;span class=&quot;synStatement&quot;&gt;exit&lt;/span&gt; &lt;span class=&quot;synConstant&quot;&gt;1&lt;/span&gt;
&lt;span class=&quot;synStatement&quot;&gt;;;&lt;/span&gt;
&lt;span class=&quot;synStatement&quot;&gt;esac&lt;/span&gt;
&lt;span class=&quot;synStatement&quot;&gt;for&lt;/span&gt; i &lt;span class=&quot;synStatement&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;synPreProc&quot;&gt;$SERVICE&lt;/span&gt;
&lt;span class=&quot;synStatement&quot;&gt;do&lt;/span&gt;
        /etc/init.d/&lt;span class=&quot;synPreProc&quot;&gt;${i}&lt;/span&gt; &lt;span class=&quot;synPreProc&quot;&gt;$FLAG&lt;/span&gt;
&lt;span class=&quot;synStatement&quot;&gt;done&lt;/span&gt;
&lt;/pre&gt;

			&lt;p&gt;このなかで実行しているawkスクリプトは、$SERVICEに格納した文字列を逆順に並び替えるだけのワンライナー。&lt;span class=&quot;footnote&quot;&gt;&lt;a href=&quot;http://d.hatena.ne.jp/mkouhei/#f6&quot; name=&quot;fn6&quot; title=&quot;/usr/local/bin/revword.awk&quot;&gt;*6&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre class=&quot;syntax-highlight&quot;&gt;
&lt;span class=&quot;synComment&quot;&gt;#!/usr/bin/gawk&lt;/span&gt;
{&lt;span class=&quot;synStatement&quot;&gt;for&lt;/span&gt; (i=&lt;span class=&quot;synSpecial&quot;&gt;NF;&lt;/span&gt; i&amp;#62;&lt;span class=&quot;synConstant&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;synSpecial&quot;&gt;;&lt;/span&gt; i--) {&lt;span class=&quot;synStatement&quot;&gt;printf&lt;/span&gt; &lt;span class=&quot;synConstant&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;synSpecial&quot;&gt;%s&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt; &quot;&lt;/span&gt;&lt;span class=&quot;synSpecial&quot;&gt;,&lt;/span&gt; $i&lt;span class=&quot;synSpecial&quot;&gt;;&lt;/span&gt;} &lt;span class=&quot;synStatement&quot;&gt;printf&lt;/span&gt; &lt;span class=&quot;synConstant&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;synSpecial&quot;&gt;\n&lt;/span&gt;&lt;span class=&quot;synConstant&quot;&gt;&quot;&lt;/span&gt; }
&lt;/pre&gt;

			&lt;p&gt;あとはDVDに自動追記するスクリプトを書けば良いのだろうが、growisofsコマンドの-Mオプションで追記できているように一見見える&lt;span class=&quot;footnote&quot;&gt;&lt;a href=&quot;http://d.hatena.ne.jp/mkouhei/#f7&quot; name=&quot;fn7&quot; title=&quot;エラーが出てない&quot;&gt;*7&lt;/a&gt;&lt;/span&gt;のだが、マウントして確認するとなぜか最初に書き込んだファイルしか見えないので、まぁそれを解決できたらかなり楽になるんだが。とはいえ、メディアは自分で交換する必要はあるんだが。&lt;/p&gt;
		&lt;/div&gt;
		&lt;div class=&quot;footnote&quot;&gt;
			&lt;p class=&quot;footnote&quot;&gt;&lt;a href=&quot;http://d.hatena.ne.jp/mkouhei/#fn1&quot; name=&quot;f1&quot;&gt;*1&lt;/a&gt;：/usr/local/sbin/backup.sh&lt;/p&gt;
			&lt;p class=&quot;footnote&quot;&gt;&lt;a href=&quot;http://d.hatena.ne.jp/mkouhei/#fn2&quot; name=&quot;f2&quot;&gt;*2&lt;/a&gt;：/usr/local/sbin/mysqldump.sh&lt;/p&gt;
			&lt;p class=&quot;footnote&quot;&gt;&lt;a href=&quot;http://d.hatena.ne.jp/mkouhei/#fn3&quot; name=&quot;f3&quot;&gt;*3&lt;/a&gt;：/usr/local/sbin/autobackup.sh&lt;/p&gt;
			&lt;p class=&quot;footnote&quot;&gt;&lt;a href=&quot;http://d.hatena.ne.jp/mkouhei/#fn4&quot; name=&quot;f4&quot;&gt;*4&lt;/a&gt;：/usr/local/bin/checkdir.sh&lt;/p&gt;
			&lt;p class=&quot;footnote&quot;&gt;&lt;a href=&quot;http://d.hatena.ne.jp/mkouhei/#fn5&quot; name=&quot;f5&quot;&gt;*5&lt;/a&gt;：/usr/local/sbin/prebackup.sh&lt;/p&gt;
			&lt;p class=&quot;footnote&quot;&gt;&lt;a href=&quot;http://d.hatena.ne.jp/mkouhei/#fn6&quot; name=&quot;f6&quot;&gt;*6&lt;/a&gt;：/usr/local/bin/revword.awk&lt;/p&gt;
			&lt;p class=&quot;footnote&quot;&gt;&lt;a href=&quot;http://d.hatena.ne.jp/mkouhei/#fn7&quot; name=&quot;f7&quot;&gt;*7&lt;/a&gt;：エラーが出てない&lt;/p&gt;
		&lt;/div&gt;</content:encoded>
	<dc:date>2010-02-04T14:52:23+00:00</dc:date>
</item>
<item rdf:about="http://www.debian.org/security/2010/dsa-1992">
	<title>Debian security announce: DSA-1992 chrony</title>
	<link>http://www.debian.org/security/2010/dsa-1992</link>
	<content:encoded>several vulnerabilities</content:encoded>
	<dc:date>2010-02-04T00:00:00+00:00</dc:date>
</item>
<item rdf:about="http://www.debian.org/security/2010/dsa-1991">
	<title>Debian security announce: DSA-1991 squid/squid3</title>
	<link>http://www.debian.org/security/2010/dsa-1991</link>
	<content:encoded>denial of service</content:encoded>
	<dc:date>2010-02-04T00:00:00+00:00</dc:date>
</item>
<item rdf:about="http://www.netfort.gr.jp/~dancer/diary/daily/2010-Feb-4.html.ja#2010-Feb-4-01:25:06">
	<title>dancerj: distcc のソースコードを icecream のソースコードを眺めてみる。</title>
	<link>http://www.netfort.gr.jp/~dancer/diary/daily/2010-Feb-4.html.ja#2010-Feb-4-01:25:06</link>
	<content:encoded>distcc のソースコードを icecream のソースコードを眺めてみる。
	  気づいたのが、distccがCでicecreamがC++になっていること。
	  あと、distcc の負荷分散はかなりダサい。
	  しかし、icecreamも結構どろくさい感じがする。</content:encoded>
	<dc:date>2010-02-03T16:25:06+00:00</dc:date>
</item>

</rdf:RDF>
