<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>短期記憶容量少ナキ我ガ爲ノ備忘録也</title>
    <link rel="alternate" type="text/html" href="http://microgroove.jp/shaolin/" />
    <link rel="self" type="application/atom+xml" href="http://microgroove.jp/shaolin/atom.xml" />
    <id>tag:microgroove.jp,2010-03-17:/shaolin//3</id>
    <updated>2015-01-27T15:31:52Z</updated>
    
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.23-en</generator>

<entry>
    <title>(test)</title>
    <link rel="alternate" type="text/html" href="http://microgroove.jp/shaolin/2015/01/test.html" />
    <id>tag:microgroove.jp,2015:/shaolin//3.1051</id>

    <published>2015-01-27T15:31:16Z</published>
    <updated>2015-01-27T15:31:52Z</updated>

    <summary>(The quick brown fox jumps over the lazy dog)...</summary>
    <author>
        <name>Shaolin</name>
        <uri>http://microgroove.jp/</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://microgroove.jp/shaolin/">
        (The quick brown fox jumps over the lazy dog)
        
    </content>
</entry>

<entry>
    <title>AES-256-CBC encryption - ruby vs node</title>
    <link rel="alternate" type="text/html" href="http://microgroove.jp/shaolin/2014/05/aes-256-cbc_encryption_ruby_vs_node.html" />
    <id>tag:microgroove.jp,2014:/shaolin//3.1050</id>

    <published>2014-05-14T15:00:00Z</published>
    <updated>2014-05-29T00:20:01Z</updated>

    <summary> しばらく前にハマったのでメモ。 $ ruby -v ruby 2.0.0p451 ..... $ node -v v0.10.25 Ruby require &apos;openssl&apos; require &apos;digest&apos; require &apos;base64&apos; def encode(cryptkey, iv, cleardata) cipher = OpenSSL::Cipher.new(&apos;AES-256-CBC&apos;) cipher.encrypt cipher.key = cryptkey cipher.iv = iv encrypted = &apos;&apos; encrypted encode w/ Ruby...</summary>
    <author>
        <name>Shaolin</name>
        <uri>http://microgroove.jp/</uri>
    </author>
    
    <category term="aes256" label="AES256" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="cipher" label="Cipher" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="nodejs" label="Node.js" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ruby" label="Ruby" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://microgroove.jp/shaolin/">
        <![CDATA[<p lang="ja">
しばらく前にハマったのでメモ。
</p>

<br />

<pre lang="en" style="background-color: #636363; overflow: auto;">
$ ruby -v
ruby 2.0.0p451 .....

$ node -v
v0.10.25
</pre>

<br />

<h3 lang="en">Ruby</h3>

<pre lang="en" style="background-color: #636363; overflow: auto;">
require 'openssl'
require 'digest'
require 'base64'

def encode(cryptkey, iv, cleardata)
    cipher = OpenSSL::Cipher.new('AES-256-CBC')
    cipher.encrypt
    cipher.key = cryptkey
    cipher.iv  = iv

    encrypted = ''
    encrypted << cipher.update(cleardata)
    encrypted << cipher.final
    Base64.strict_encode64(encrypted)
end
</pre>

<br />

<h3>encode w/ Ruby</h3>

<pre lang="en" style="background-color: #636363; overflow: auto;">
data = 'The quick brown fox jumps over the lazy dog'
cryptkey = Digest::SHA256.digest('012345678901234567')
iv = '0a1b2c3d4e5f6g7h'
x = encode(cryptkey, iv, data)

=> "SWozLQpQiz2itvbl1PomOPBTvxMmIE6rl4gZlerajsnJrhAfvp6jj5MBSlu+8fle"
</pre>

<br />

<h3 lang="en">Node.js</h3>

<pre lang="en" style="background-color: #636363; overflow: auto;">
var crypto = require('crypto');

b64dec = function(data) {
  buf = new Buffer(data, 'base64');
  return buf.toString('binary')
};

decode = function(encrypted_64, cryptkey, iv) {
    var cryptkey = crypto.createHash('sha256').update(cryptkey).digest(),
        decipher = crypto.createDecipheriv('aes-256-cbc', cryptkey, iv),
        decoded  = decipher.update(b64dec(encrypted_64));

    return Buffer.concat([decoded, decipher.final()]);
}
</pre>

<br />

<h3>decode w/ Node.js</h3>

<pre lang="en" style="background-color: #636363; overflow: auto;">
decode('SWozLQpQiz2itvbl1PomOPBTvxMmIE6rl4gZlerajsnJrhAfvp6jj5MBSlu+8fle',
    '012345678901234567','0a1b2c3d4e5f6g7h').toString()

'The quick brown fox jumps over the lazy dog'
</pre>]]>
        
    </content>
</entry>

<entry>
    <title>あいぽんの位置情報がバカになった</title>
    <link rel="alternate" type="text/html" href="http://microgroove.jp/shaolin/2013/11/post_19.html" />
    <id>tag:microgroove.jp,2013:/shaolin//3.1049</id>

    <published>2013-11-06T00:14:40Z</published>
    <updated>2013-11-09T03:03:40Z</updated>

    <summary> 2〜3週間くらい前からでしょうか。なんだか GPS をうまく拾えてないような挙動。Google Map アプリでも Apple 謹製 Map アプリでも Waze でも、現在位置の追随性が著しく悪くなってしまいました。昨年秋に買った iPhone 5 でのお話。 5秒おきに、現在値がざっ、ざっ、と動くような感じ。向いてる方向もせわしなく動く。Google Map アプリのナビや Waze なんか使おうもんなら、移動してないのに向きがせわしなく切り替わったり、あっちいったりこっちいったり、斜め後ろ向いたままザザッと動き続けたり。 これは使えん。GPS アンテナか GPS ユニットが壊れたんかなぁ、と。 ところが、原因切り分けのために、ふと思い立って Wi-Fi を off にすると、急にまともに使えるように。Wi-Fi を on に戻すと、また不正確な位置と向きをせわしなく表示。ふーむ。 通常は GPS から取得した位置情報と Wi-Fi から取得した位置情報、そしてモバイルデータ通信から取得した位置情報をうまく使ってくれるはずなのですが、Wi-Fi を on にしていると、GPS...</summary>
    <author>
        <name>Shaolin</name>
        <uri>http://microgroove.jp/</uri>
    </author>
    
    <category term="gps" label="GPS" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="iphone" label="iPhone" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="位置情報" label="位置情報" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://microgroove.jp/shaolin/">
        <![CDATA[<p lang="ja">
2〜3週間くらい前からでしょうか。なんだか GPS をうまく拾えてないような挙動。Google Map アプリでも Apple 謹製 Map アプリでも Waze でも、現在位置の追随性が著しく悪くなってしまいました。昨年秋に買った iPhone 5 でのお話。
</p>

<p lang="ja">
5秒おきに、現在値がざっ、ざっ、と動くような感じ。向いてる方向もせわしなく動く。Google Map アプリのナビや Waze なんか使おうもんなら、移動してないのに向きがせわしなく切り替わったり、あっちいったりこっちいったり、斜め後ろ向いたままザザッと動き続けたり。
</p>

<p lang="ja">
これは使えん。GPS アンテナか GPS ユニットが壊れたんかなぁ、と。
</p>

<p lang="ja">
ところが、原因切り分けのために、ふと思い立って Wi-Fi を off にすると、急にまともに使えるように。Wi-Fi を on に戻すと、また不正確な位置と向きをせわしなく表示。ふーむ。
</p>

<p lang="ja">
通常は GPS から取得した位置情報と Wi-Fi から取得した位置情報、そしてモバイルデータ通信から取得した位置情報をうまく使ってくれるはずなのですが、Wi-Fi を on にしていると、GPS と Wi-Fi の位置情報を使わずにモバイルデータ通信からの位置情報のみを使ってくれているように見える。どうもソフトウェア的な何かの不具合に思えます。
</p>

<p lang="ja">
というわけで、PC にバックアップを手動でとったのち、いちど工場出荷状態に戻し、バックアップから復元し直しました。4000曲くらいが iTunes から同期されていているのですが、全て（ハイレゾや 16/44 から）192kbps AAC に変換されて同期されるので、復元にはもの凄く時間がかかります。寝る前に復元開始し、朝起きたら終わってました。あいぽんの空き容量も9GBくらいから14GBくらいに増えてる。いろんなアプリや iOS の吐くゴミデータで埋まってたのかな。
</p>

<p lang="ja">
<del>で、今朝幼稚園へ送る際に確認してみたところ、直ってました。</del>
</p>

<p lang="ja">
<del>もし復元でも直らなかったら、ジーニアスバーに持ち込んで新品に交換してもらおうと企んでいたのですが、それはなくなりました。ともあれまた意図した通りに動作してくれて一安心。。。</del>
</p>

<br />

<p lang="ja">
<strong style="color: #ff9999;">追記 (2013/11/06)：</strong>
<br />
直ってませんでした（涙）。というか状況の切り分けが間違ってました。
</p>

<p lang="ja">
正確にはこうでした。「<strong>カーオーディオにUSB接続すると、あいぽんのGPSがアホになる</strong>」。よって、自家用車による走行中のみ GPS がおかしかったことになります。手持ちで徒歩の時などは全く問題ないことを確認しました。普段歩きながらマップを見たりしないので、気付かなかった（状況切り分けを間違えた）という感じです。。。
</p>

<p lang="ja">
ちなみに車中のホルダーに装着していても、Lightning to USBケーブルによる接続を外せば、再び位置情報がまともになります。つまり、車中のために GPS 電波が拾いにくくなって不正確になっているのではない、ということです。
</p>

<p lang="ja">
エンジンを完全に off にすると、位置情報は正確に戻ります。そしてキーをひねって acc や on の位置にする（カーオーディオに通電する）と、とたんに位置情報が乱れ出します。今日はそこまで確認。
</p>

<p lang="ja">
問題は、数週間前まで、こんなことはなかった、ということ。ここから先の原因特定は少し難儀です。
</p>

<ol lang="ja">
<li>iPhone5 の内蔵 GPS アンテナが劣化（？）して感度が落ちてきてるのか？</li>
<ul><li>これはない気はしますが。。。</li></ul>
<li>iOS7 に上げたタイミングとおおよそ一緒？（な気がする）</li>
<ul><li>現在使用中のカーオーディオと iOS7 の問題な可能性も捨てきれません</li></ul>
<li>あるいは。。。クルマ側の電気系統側のなんらかの問題なのか？</li>
<ul><li>うちのクルマならありえる（涙）</li></ul>
<li>現在使用中の lightning to USB ケーブルのせい？</li>
<ul><li>これもないと思うけど、後日別のケーブルで比較検証することに</li></ul>
</ol>

<p lang="ja">
もうちょっと状況証拠を集めてみようと思います。
</p>

<br />

<p lang="ja">
<strong style="color: #ff9999;">追記 (2013/11/07)：</strong>
<br />
iPhone5s を借りてカーオーディオに接続してみたところ、（私の iPhone5 がかつてそうだったように）特に問題なく現在位置を捕捉していることを確認。ということで、
</p>

<ol lang="ja">
<li>iPhone5 の内蔵 GPS アンテナが劣化（？）して感度が落ちてきてるのか？</li>
</ol>

<p lang="ja">
のケースに該当していそう。Genius Bar で交換してもらえる程度なのかは微妙な気が。。。
</p>

<br />

<p lang="ja">
<strong style="color: #ff9999;">追記 (2013/11/09)：</strong>
<br />
なんと直ってしまった（笑）。壁打ちテニス中にあいぽんをポケットから落としたせいらしい。多分、基板からGPSセンサーが外れかけていて？接触不良で？、落とした衝撃でちゃんと繋がったのではないかと推察。。。Genius Bar 予約はとりあえずキャンセルすることに。
</p>]]>
        
    </content>
</entry>

<entry>
    <title>CrashPlan Keeps Stopping and Starting</title>
    <link rel="alternate" type="text/html" href="http://microgroove.jp/shaolin/2013/07/crashplan_keeps_stopping_and_starting.html" />
    <id>tag:microgroove.jp,2013:/shaolin//3.1048</id>

    <published>2013-07-15T22:49:00Z</published>
    <updated>2013-07-15T23:18:15Z</updated>

    <summary> NAS に保存してある膨大な写真や動画（や音楽）をバックアップするために、 CrashPlan の利用を開始しました。 BackBlaze や Bitcasa などと比較検討し、以下の点で採用を決定しました。 ローカルデバイス以外（外部接続デバイス、マウントしている NAS ドライブ）などもバックアップ対象に選べる マルチプラットフォーム 自宅のルータ兼サーバ（Vine Linux で稼働中）上で動かせ、ローカルネットワーク上にあって NFS マウントして使っている NAS（NETGEAR ReadyNAS）上のコンテンツをバックアップできる、という点で選定しました。デーモンも管理UIも Java で動くというスタイルのようです。...</summary>
    <author>
        <name>Shaolin</name>
        <uri>http://microgroove.jp/</uri>
    </author>
    
    <category term="backblaze" label="BackBlaze" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="backup" label="Backup" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="bitcasa" label="Bitcasa" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="crashplan" label="CrashPlan" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="linux" label="Linux" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="vinelinux" label="Vine Linux" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://microgroove.jp/shaolin/">
        <![CDATA[<p lang="ja">
NAS に保存してある膨大な写真や動画（や音楽）をバックアップするために、
<a href="http://www.crashplan.com/" target="_blank">CrashPlan</a>
の利用を開始しました。
</p>

<p lang="ja">
<a href="http://www.backblaze.com/" target="_blank">BackBlaze</a>
や
<a href="https://www.bitcasa.com/" target="_blank">Bitcasa</a>
などと比較検討し、以下の点で採用を決定しました。
</p>

<ul lang="ja">
<li>ローカルデバイス以外（外部接続デバイス、マウントしている NAS ドライブ）などもバックアップ対象に選べる
<li>マルチプラットフォーム
</ul>

<p lang="ja">
自宅のルータ兼サーバ（Vine Linux で稼働中）上で動かせ、ローカルネットワーク上にあって NFS マウントして使っている NAS（NETGEAR ReadyNAS）上のコンテンツをバックアップできる、という点で選定しました。デーモンも管理UIも Java で動くというスタイルのようです。
</p>]]>
        <![CDATA[
<br />
<hr width="80%" />
<br />

<p lang="ja">
まずは30日間のお試しから。先月中旬から開始して、いまだに写真（410GB オーバー）のバックアップが完了せず。。。（現在366GB完了、残り47GB）
</p>

<p lang="ja">
そしてお試し期間があと2日で終了となってしまいましたが、総合的にこれは使える判断し、サブクスリプション申込することにしました。1台のPCからの無制限バックアップのプラン（CrashPlan+ Unlimited）で、1月単位だと $5.99、1年単位だと月当たり $5.00、4年単位だと月当たり $3.96。今回は1年単位で申込しました。
</p>

<br />
<hr width="80%" />
<br />

<p lang="ja">
やれやれ、これで安心だ、と思っていたら、なんだかサーバの動作が不穏に。40秒から1分おきに負荷が急激に上がったり下がったり。
</p>

<p lang="ja">
どうやら CrashPlan のデーモン（java で動作しています）が突然死を繰り返しているみたい。ログにも特に何も有用な情報は残ってなさげ。
</p>

<p lang="ja">
恐らくメモリ回りではないかなぁ、と思って調べたら、やっぱりそうでした。
</p>

<ul lang="ja">
<li><a href="http://crashplan.probackup.nl/remote-backup/support/q/keeps-stopping-and-starting.en.html" target="_blank">CrashPlan engine keeps stopping and starting</a>
</ul>

<blockquote lang="en">
As a rule of thumb set about one gigabyte (=1024 MB) RAM for every terabyte in the file selection.
</blockquote>

<p lang="ja">
ということで、<code>/usr/local/crashplan/bin/run.conf</code> （この path は気持ち悪いですね。。。なんで bin 以下に設定ファイルが。。。）内の設定を <code>-Xmx512m</code> から <code><strong>-Xmx1024m</strong></code> に変更。これでデーモンの無限再起動が収まりました。
</p>

<p lang="ja">
が、NAS 上の動画や iTunes Music なども CrashPlan のバックアップ対象に追加したとたんに、またメモリー不足になることは目にみえていますが。。。はたしてどうなることやら。
</p>]]>
    </content>
</entry>

<entry>
    <title>xbmc</title>
    <link rel="alternate" type="text/html" href="http://microgroove.jp/shaolin/2013/03/xbmc.html" />
    <id>tag:microgroove.jp,2013:/shaolin//3.1047</id>

    <published>2013-03-21T11:25:29Z</published>
    <updated>2013-03-21T11:26:10Z</updated>

    <summary>リビングのマシン上での動作がすこぶる悪いので原因調査中。。。...</summary>
    <author>
        <name>Shaolin</name>
        <uri>http://microgroove.jp/</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://microgroove.jp/shaolin/">
        リビングのマシン上での動作がすこぶる悪いので原因調査中。。。
        
    </content>
</entry>

<entry>
    <title>変換名人 USB-RS232</title>
    <link rel="alternate" type="text/html" href="http://microgroove.jp/shaolin/2012/04/henkan_meijin_usb-rs232.html" />
    <id>tag:microgroove.jp,2012:/shaolin//3.1040</id>

    <published>2012-04-26T06:22:00Z</published>
    <updated>2012-06-14T02:50:31Z</updated>

    <summary> RS-232C (D-Sub 9 pin) なポートがついているマシンを引退させるのに伴い、仕事で必要なので、適当に安い USB シリアル変換アダプタを買いました。 USBをシリアル通信（RS232 9ピン）に変換　変換名人　USB-RS232 なんもせずにフツーに認識されてフツーに使えた。ややつまんないけど。 ドライバはそのまんま pl2303。 Bus 005 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass...</summary>
    <author>
        <name>Shaolin</name>
        <uri>http://microgroove.jp/</uri>
    </author>
    
        <category term="LINUX" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="VINE" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="converter" label="Converter" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="rs232c" label="RS232C" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="serial" label="Serial" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="usb" label="USB" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="vinelinux" label="Vine Linux" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://microgroove.jp/shaolin/">
        <![CDATA[<p lang="ja">
RS-232C (D-Sub 9 pin) なポートがついているマシンを引退させるのに伴い、仕事で必要なので、適当に安い USB シリアル変換アダプタを買いました。
</p>

<br />

<div style="text-align: center;">
<a href="http://www.amazon.co.jp/gp/product/B002AW6LXQ/ref=as_li_qf_sp_asin_il?ie=UTF8&tag=mercuryrecord-22&linkCode=as2&camp=247&creative=1211&creativeASIN=B002AW6LXQ"><img border="0" src="http://ws.assoc-amazon.jp/widgets/q?_encoding=UTF8&Format=_SL160_&ASIN=B002AW6LXQ&MarketPlace=JP&ID=AsinImage&WS=1&tag=mercuryrecord-22&ServiceVersion=20070822" ></a><img src="http://www.assoc-amazon.jp/e/ir?t=mercuryrecord-22&l=as2&o=9&a=B002AW6LXQ" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
<br />
<br />
<a href="http://www.amazon.co.jp/gp/product/B002AW6LXQ/ref=as_li_qf_sp_asin_il?ie=UTF8&tag=mercuryrecord-22&linkCode=as2&camp=247&creative=1211&creativeASIN=B002AW6LXQ">USBをシリアル通信（RS232 9ピン）に変換　変換名人　USB-RS232</a>
</div>

<br />

<p lang="ja">
なんもせずにフツーに認識されてフツーに使えた。ややつまんないけど。
</p>

<p lang="ja">
ドライバはそのまんま <strong><code>pl2303</code></strong>。
</p>

<br />

<blockquote lang="en" style="overflow: auto;">
<pre lang="en">
Bus 005 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x067b Prolific Technology, Inc.
  idProduct          0x2303 PL2303 Serial Port
  bcdDevice            3.00
  iManufacturer           1 Prolific Technology Inc.
  iProduct                2 USB-Serial Controller
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           39
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x000a  1x 10 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
Device Status:     0x0000
  (Bus Powered)
</pre>
</blockquote>]]>
        
    </content>
</entry>

<entry>
    <title>Storing VM disk image files on a sparse bundle</title>
    <link rel="alternate" type="text/html" href="http://microgroove.jp/shaolin/2011/10/storing_vm_disk_image_files_on_a_sparse_bundle.html" />
    <id>tag:microgroove.jp,2011:/shaolin//3.1028</id>

    <published>2011-10-11T07:12:00Z</published>
    <updated>2012-06-14T02:50:44Z</updated>

    <summary> VirtualBox などで使用する、仮想マシン用のディスクイメージ。これを効率的にバックアップするのには少しコツが要ります。既に広く知られているとは思いますが、個人的メモも兼ねて書いておきます。...</summary>
    <author>
        <name>Shaolin</name>
        <uri>http://microgroove.jp/</uri>
    </author>
    
        <category term="LINUX" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="MAC" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="VINE" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="mac" label="Mac" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="osx" label="OSX" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="sparcebundle" label="Sparce Bundle" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="virtualbox" label="VirtualBox" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://microgroove.jp/shaolin/">
        <![CDATA[<p lang="ja">
<a href="http://www.virtualbox.org/" target="_blank">VirtualBox</a> などで使用する、仮想マシン用のディスクイメージ。これを効率的にバックアップするのには少しコツが要ります。既に広く知られているとは思いますが、個人的メモも兼ねて書いておきます。
</p>]]>
        <![CDATA[<p lang="ja">
ホストOSが Mac OS X (Leopard 以降) の場合、
<a href="http://www.apple.com/jp/macosx/apps/#timemachine" target="_blank">Time Machine</a>
を使ってバックアップを取ることが多いと思いますが、
その OS X 上で VirtualBox や VMWare といった仮想化ソフトウェアを使用する場合、仮想マシン用のディスクイメージは単一ファイルであり、ゲストOS上でファイルを1つ修正したとしても、ホストOS側からみると大きなディスクイメージ1つに変更が加えられた、と判断されます。
</p>

<p lang="ja">
そのため Time Machine によるバックアップも、（仮想化ソフトウェアでゲストOSを全く使用していない時を除き）毎回数GB〜数10GB単位で行われることになり、あっという間にバックアップ領域がいっぱいになってしまいます。
</p>

<p lang="ja">
そこで、仮想マシン用のディスクイメージが保存されているディレクトリ、VirtualBox の場合は「<code><strong>~/VirtualBox VMs</strong></code>」を、Time Machine のバックアップ除外リストに指定し、これらディスクイメージを別途バックアップする、いう使い方をされている方も少なくないでしょう。
</p>

<br />

<div style="text-align: center;">
<img alt="[Time Machine Exclude Paths]" src="http://microgroove.jp/shaolin/img/TimeMachine_Exclude_Paths.png" />
</div>

<br />

<p lang="ja">
あるいは、ゲストOS上で直接、古式ゆかしき <code><strong>dump</strong></code>、あるいは <code><strong>rsync</strong></code> や　<code><strong>pdumpfs</strong></code> などを使って、バックアップを取るという方法を取られている方もいるでしょう。
</p>

<br />
<hr width="80%" />
<br />

<p lang="ja">
OS X (Leopard) 以降では、<a href="http://en.wikipedia.org/wiki/Sparse_image#Sparse_bundle" target="_blank">スパースバンドルディスクイメージ</a> (Sparse Bundle Disk Image) がサポートされています。これは、従来の単一ファイルのディスクイメージではなく、OS X Finder 上でディスクイメージのように見えているものはバンドル（ディレクトリ）で、その中には 8MB ごとに分割されたフラグメントが収められています。このディスクイメージをマウントし、その中にファイルを追加したり削除したり変更を加えたりすると、8MB 単位で分割されたフラグメント単位で増えたり減ったり修正が加わったりするわけです。
</p>

<ul lang="en">
<li><a href="http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/hdiutil.1.html" target="_blank">Mac OS X Developer Library: hdiutil (1) man page</a>
</ul>

<p lang="ja">
なので、このスパースバンドルディスク上に、仮想マシン用のディスクイメージを保存しておけば、Time Machine によるバックアップでも効率よくバックアップできる、ということになります。とはいっても、ゲストOSを起動するだけで、結構な差分量が生じるようですが。。。それでも通常の Time Machine バックアップよりはましになるのでよしとしましょう。
</p>

<br />
<hr width="80%" />
<br />

<p lang="ja">
現在 OS X 上で VirtualBox を使っているとして、仮想マシンのディスクイメージをスパースバンドルディスクに移行するおおまかな手順は以下の通りです。
</p>

<ol lang="ja">
<li>VirtualBox のすべてのゲスト OS を終了しておく
<li>OS X 上でディスクユーティリティを起動、「新規イメージ」をクリックする
</ol>

<br />

<div style="text-align: center;">
<img alt="[Disk Utility - New Image - Sparse Bundle]" src="http://microgroove.jp/shaolin/img/DiskUtility_NewImage_SparseBundle.png" />
</div>

<br />

<ol start="3" lang="ja">
<li>作成したスパースバンドルイメージをマウントし、そこに <code>~/VirtualBox VMs/</code> の中のフォルダをすべてコピーする
<li><code>~/VirtualBox VMs</code> をリネームするなり、削除する
<li>ターミナルを使い、<strong>シンボリックリンク</strong> を作成する
<br />
（このとき OS X Finder 上でのエイリアス作成ではだめです。VirtualBox はエイリアスを解釈してくれません。かならずシンボリックリンクにする必要があります）
</ol>

<br />

<div style="text-align: center;">
<img alt="[Symlinking VM directory]" src="http://microgroove.jp/shaolin/img/SymLink_VM_Directory.png" />
</div>

<br />

<ol start="6" lang="ja">
<li>「システム環境設定」→「ユーザとグループ」→「ログイン項目」で、上で作ったスパースバンドルディスクイメージを選び、システム起動時にディスクイメージがマウントされるようにしておく
</ol>

<br />

<div style="text-align: center;">
<img alt="[Startup Items on Login]" src="http://microgroove.jp/shaolin/img/StartupItemsOnLogin.png" />
</div>

<br />
<hr width="80%" />
<br />

<p lang="ja">
と、まあ、いまのところは、こんな感じで使っています。Time Machine であれ、rsync であれ、これで毎回のバックアップで無駄に差分が生じることはなくなるはずです。
</p>

<p lang="ja">
この MacBook Air でも、じきに OS X の VirtualBox 上で Vine を常用する形態から、直接 Vine を起動して常用することになっていくとは思いますが、とりあえずいまはこんな感じで。。。
</p>]]>
    </content>
</entry>

<entry>
    <title>Apple Products I Ever Bought</title>
    <link rel="alternate" type="text/html" href="http://microgroove.jp/shaolin/2011/10/apple_products_i_ever_bought.html" />
    <id>tag:microgroove.jp,2011:/shaolin//3.1027</id>

    <published>2011-10-07T02:15:00Z</published>
    <updated>2012-06-14T02:50:56Z</updated>

    <summary> 今までに買ってきた/所有してきた Apple 製品を思い出してみた。ただなんとなく。 故 Jobs 氏への強い思い入れは不思議とほとんどなかったのかな、 と改めて思いました。 むしろ Bill Atkinson さん、故 Jeff Raskin さん、 Andy Hertzfeld さん、Joanna Hoffman さん、といった、 エンジニアな方々への興味の方が強かったのかな、と。...</summary>
    <author>
        <name>Shaolin</name>
        <uri>http://microgroove.jp/</uri>
    </author>
    
        <category term="LINUX" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="MAC" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="VINE" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="apple" label="Apple" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="iphone" label="iPhone" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="macbook" label="MacBook" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="macintosh" label="Macintosh" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="powermac" label="Power Mac" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="powerbook" label="PowerBook" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="vinelinux" label="Vine Linux" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://microgroove.jp/shaolin/">
        <![CDATA[<p lang="ja">
今までに買ってきた/所有してきた Apple 製品を思い出してみた。ただなんとなく。
</p>

<p lang="ja">
故 Jobs 氏への強い思い入れは不思議とほとんどなかったのかな、
と改めて思いました。
むしろ Bill Atkinson さん、故 Jeff Raskin さん、
Andy Hertzfeld さん、Joanna Hoffman さん、といった、
エンジニアな方々への興味の方が強かったのかな、と。
</p>
]]>
        <![CDATA[
<br />
<hr width="80%" />
<br />

<h3>1990: Macintosh SE (HDFD, 2MB RAM, 20MB HDD)</h3>
<p lang="ja">大学生協で買ったこれが自分で所有した最初。はじめて触ったのは 1988年頃の Plus だったかな。1983年、当時定期購読していた科学雑誌ウータンに Lisa の特集記事が載っていたのも懐かしい。不思議と Apple II との接点はあまりありませんでした。</p>
<p lang="ja">最終的には外付 SCSI 100MB HDD をつけたり、メモリを 4MB に増設したりしながら、漢字Talk 6.0.7〜GomTalk〜漢字Talk7.0.1までなんとか使ったんやったかな。</p>
<p lang="ja">当時好んで使っていたキーボードは今でも大事に持っていますが、ADB接続なので使えません。。。</p>
<br />
<div style="text-align: center;">
<a href="http://instagr.am/p/NsLvq/" target="_blank"><img class="link" alt="[Apple ADB Keyboard]" width="306" height="306" src="http://distillery.s3.amazonaws.com/media/2011/09/20/78367f07ae2746fb9ef4487b5a10fad1_6.jpg" /></a>
</div>
<br />

<br />
<hr width="80%" />
<br />

<h3>1990: ImageWriter II</h3>
<p lang="ja">本体と一緒に買ったドットインパクトプリンタ。これでよく印刷してプログラミングのレポートとか提出した記憶がある。しかも Pascal のソースコードを Los Angeles フォントで印刷とかアホなことをしていた記憶が。のちに白黒の HP DeskWriter を買うまでは大変お世話になりました。</p>

<br />
<hr width="80%" />
<br />

<h3>1992: Macintosh IIci + Apple Portrait Display</h3>
<p lang="ja">バイトしまくって買った。4MBメモリ、80MB HDD くらいだった記憶。縦長のブラウン管ディスプレイと一緒に。縦に広いとこんなにも楽なんだというのを実感した最初。そのバイト先では IIcx や PowerBook 140 などもあって、頻繁に使った記憶。</p>

<br />
<hr width="80%" />
<br />

<h3>1994: Macintosh Quadra 800</h3>
<p lang="ja">またまたバイトしまくって買った。スペックは覚えてないけど、のちに PowerPC Upgrade Card を挿して延命した。この私物を当時いた大学の研究室に持ち込み、10Base-2 経由でインターネットに接続していた。今であれば、一瞬でセキュリティ担当がすっ飛んできてこっぴどく叱られるであろう、のどかな時代。</p>

<br />
<hr width="80%" />
<br />

<h3>1995: Power Macintosh 8500/120</h3>
<p lang="ja">最初の就職先で使用。後半は web サーバとして使用されていた記憶。のちに Vine Linux for PowerMac 開発マシンとなる。</p>

<br />
<hr width="80%" />
<br />

<h3>1996: Motrola StarMax 4000/200</h3>
<p lang="ja">唯一買った互換機。アメリカから並行輸入。PowerMac 4400 と同等のマザーボードだったと思いますが、ADB 以外に PS/2 コネクタも装備していたのが互換機っぽかった記憶。</p>
<br />
<div style="text-align: center;">
<img alt="[Motorola StarMax 4000/200]" width="300" height="400" src="http://microgroove.jp/shaolin/img/19970604_BigBird.jpg" />
</div>
<br />

<br />
<hr width="80%" />
<br />

<h3>1996: PowerBook 5300cs</h3>
<p lang="ja">職場で使用。あまり記憶にない。</p>
<br />
<div style="text-align: center;">
<img alt="[Apple PowerBook 5300cs]" width="400" height="300" src="http://microgroove.jp/shaolin/img/19970621_Ernie.jpg" />
</div>
<br />

<br />
<hr width="80%" />
<br />

<h3>1997: Power Macintosh G3 MT</h3>
<p lang="ja">職場で使用。のちにこれが最初の Vine Linux for PowerMac 開発マシンとなる。</p>

<br />
<hr width="80%" />
<br />

<h3>1999: Power Macintosh G4 AGP Graphics 400MHz</h3>
<p lang="ja">自宅で使用。</p>

<br />
<hr width="80%" />
<br />

<h3>PowerBook 2400c/240</h3>
<p lang="ja">職場で使用。同室の助手の方が置いていったもの。これも最後は Vine マシンになった。</p>

<br />
<hr width="80%" />
<br />

<h3>2000: iMac G3 DV (Slot-Loading)</h3>
<p lang="ja">自宅で妻が使用。たしか Apple Store でリファービッシュ品（整備済製品）として買ったんだったかな。ストロベリー色の iMac。これものちに Vine 開発機として大活躍しました。このマシン自体を持って行き、Linux のイベントで発表したこともありました（iMac をプロジェクタにつないで発表。。。）</p>

<br />
<hr width="80%" />
<br />

<h3>2001: PowerBook G4 Titanium 400MHz</h3>
<p lang="ja">転職した直後に秋葉館で購入した記憶。OS X 10.1 はインストールはされたもののほとんど使われることもなく、Vine マシンとして 2008年まで酷使し続けました。</p>

<br />
<hr width="80%" />
<br />

<h3>2001: Power Mac 7600/200</h3>
<p lang="ja">OldWorld Mac が家からなくなっていたので、秋葉原で中古を購入、Vine のテスト機として机の下で待機していました。</p>
<br />
<div style="text-align: center;">
<img alt="[Apple Power Mac 7600/200]" width="480" height="320" src="http://microgroove.jp/shaolin/img/20011128_140821_DCP_0159.jpg" />
</div>
<br />

<br />
<hr width="80%" />
<br />

<h3>2002: iMac G4 Flat Panel (Jan 2002)</h3>
<p lang="ja">某所の某氏より無償で貸していただいていたもの。長らく Vine サブ開発マシンとして活躍してくれました。鏡餅が懐かしい。</p>

<br />
<hr width="80%" />
<br />

<h3>2004: Power Mac G4 Dual (Mirrored Drive Doors)</h3>
<p lang="ja">耳をつんざかんばかりの轟音と共に、Vine 開発マシンとしてつい先日まで活躍してくれました。OS X は見事に一切使われませんでした。</p>
<br />
<div style="text-align: center;">
<img alt="[Power Mac G4 Dual (Mirrored Drive Doors)]" width="400" height="267" src="http://microgroove.jp/shaolin/img/20040527_000541_DCP_1052.jpg" />
</div>
<br />

<br />
<hr width="80%" />
<br />

<h3>2006: Power Mac G3 (Blue &amp; White)</h3>
<p lang="ja">スキャナマシンとして使っていた G4 AGP が故障した際、某氏が提供してくれたマシン。ありがとうございました。</p>
<br />
<div style="text-align: center;">
<img alt="[Apple Power Mac G3 (Blue &amp; White)]" width="300" height="225" src="http://microgroove.jp/shaolin/img/IMG_1980.jpg" />
</div>
<br />

<br />
<hr width="80%" />
<br />

<h3>2008: MacBook (Early 2008)</h3>
<p lang="ja">PowerBook G4 Titanium がぶっ壊れたのでやむなく購入。やはりほとんど Vine 開発マシンとして日々使われました。</p>
<br />
<div style="text-align: center;">
<img alt="[Apple MacBook (Early 2008)]" width="480" height="320" src="http://microgroove.jp/shaolin/img/20111007_105657_DSC0312.jpg" />
</div>
<br />

<br />
<hr width="80%" />
<br />

<h3>2010: PowerBook G3 (FireWire)</h3>
<p lang="ja">某氏からタダで譲って頂いたもの（ありがとうございます）。基本的に Vine のテスト用。既に iMac G3 だの iMac G4 だのは家になく、OS 9 が動く古いマシンで Linux テストするためにあると便利なので。。。</p>

<br />
<hr width="80%" />
<br />

<h3>2010: iPhone4</h3>
<p lang="ja">私にとっては、CD ウォークマン以来、初めての携帯ディジタル音楽プレーヤー、という点が一番大きかったかも。なにせ音楽メインソースはいまだにレコードでしたから。。。家の音楽CDのリッピングはいまだに終わっていません。。。まだあと数百枚。。。</p>

<br />
<hr width="80%" />
<br />

<h3>2011: MacBook Air 11-inch Core i7 (Middle 2011)</h3>
<p lang="ja">現在も VirtualBox 上で Vine を使うのがメイン。</p>
<p lang="ja">MacBook White (Early 2008) は現在妻がメインマシンとして使用中。</p>
<br />
<div style="text-align: center;">
<a href="http://instagr.am/p/J74AO/" target="_blank"><img class="link" alt="[MacBook Air Mid 2011 11-inch]" width="306" height="306" src="http://distillery.s3.amazonaws.com/media/2011/08/11/b3198d2f6ccf42099dafe7cf4644aa56_6.jpg" /></a>
</div>
<br />

<br />
<hr width="80%" />
<br />

<h3>2011: Power Mac G5 2.0GHz DP (June 2004)</h3>
<p lang="ja">G4 MDD がついに壊れたので中古で購入。いまさら Vine/ppc64 を開発。。。することは今のところなく、普通に iTunes 母艦＆スキャナマシンとして使われています。</p>
<br />
<div style="text-align: center;">
<a href="http://instagr.am/p/NlFJl/" target="_blank"><img class="link" alt="[Apple Power Mac G5 2.0GHz DP (June 2004)]" width="306" height="306" src="http://distillery.s3.amazonaws.com/media/2011/09/19/dcb02e24a26e47ad99d51f064b87f10a_6.jpg" /></a>
</div>
<br />]]>
    </content>
</entry>

<entry>
    <title>Installing Vine Linux on MacBook Air (Middle 2011)</title>
    <link rel="alternate" type="text/html" href="http://microgroove.jp/shaolin/2011/08/installing_vine_linux_on_macbook_air_middle_2011.html" />
    <id>tag:microgroove.jp,2011:/shaolin//3.1024</id>

    <published>2011-08-16T06:36:30Z</published>
    <updated>2011-09-16T00:48:49Z</updated>

    <summary> 要約: 日常的に Vine マシンとして使っている MacBook Early 2008 の後釜として、MacBook Air Middle 2011 を購入。現時点で Vine が MBA 上でどの程度動くか動かないか、とりあえず現状を確認しました。で、安定するまで当分は OS X 上の VirtualBox に Vine 環境を移そうか、と考えています。 Bought a MacBook Air (Middle 2011) - 11inch, US Keyboard, 4GB Memory, 128GB SSD and Core...</summary>
    <author>
        <name>Shaolin</name>
        <uri>http://microgroove.jp/</uri>
    </author>
    
        <category term="LINUX" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="MAC" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="VINE" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="macbook" label="MacBook" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="macbookair" label="MacBook Air" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="middle2011" label="Middle 2011" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="vinelinux" label="Vine Linux" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="virtualbox" label="VirtualBox" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://microgroove.jp/shaolin/">
        <![CDATA[<p lang="ja" style="font-style: italic;">
要約:
<br />
日常的に Vine マシンとして使っている MacBook Early 2008 の後釜として、MacBook Air Middle 2011 を購入。現時点で Vine が MBA 上でどの程度動くか動かないか、とりあえず現状を確認しました。で、安定するまで当分は OS X 上の VirtualBox に Vine 環境を移そうか、と考えています。
</p>

<br />
<hr width="80%" />
<br />

<p lang="en">
Bought a <strong>MacBook Air (Middle 2011)</strong>
 - 11inch, US Keyboard, 4GB Memory, 128GB SSD and Core i7 -
to replace my MacBook (Early 2008) that has served me very hard
as a Vine Linux development environment as a daily basis for a few years.
</p>

<br />

<div style="text-align: center;" lang="en">
<a href="http://instagr.am/p/J74AO/" target="_blank"><img class="link" alt="[MacBook Air Mid 2011 11-inch]" width="306" height="306" src="http://distillery.s3.amazonaws.com/media/2011/08/11/b3198d2f6ccf42099dafe7cf4644aa56_6.jpg" /></a>
</div>

<br />

<p lang="en">
To be honest,
I always have used my whity MacBook with Vine - Mac OS X is always there
on the harddrive in a separated partition, but I seldom booted it up on my
MacBook - maybe once or twice a year? Another OSX machine at home,
an old PowerMac G4 MDD, is still there and serving me as a daily basis as well,
to store my huge digital music contents (almost all in lossless format) on iTunes
(still hundreds of CDs left to get ripped though), 
and as a scanning machine (connected to the old SCSI A3 flatbed scanner).
</p>

<p lang="en">
The first thing I did on my new toy was to play around the new OS for a while
that amazed me a bit. This was the first time for me to play with the 
multi-touch trackpad and gestures. I felt Gestures and "Mission Control" are
really great for portable computers with small screens like this MBA 11inch.
</p>

<p lang="en">
And the next thing I gonna do was, of course, to figure out how well
this brand new machine is supported on Linux - I know there are so much
to get done on the Linux kernel, the X thing, and some userland utilities,
to run Linux on the MBA 2011 flawlessly, but I just thought it was worth
checking out and playing around.
</p>

<br />

<div style="text-align: center;" lang="en">
<img class="link" alt="[MacBook Air Mid 2011 11-inch vs MacBook Early 2008]" width="450" height="300" src="http://microgroove.jp/shaolin/img/MBA2011_vs_MB2008.jpg" />
</div>

<br />]]>
        <![CDATA[<hr width="80%" />
<br />

<h4 lang="en">Create Lion Recovery On Your USB Flash Drive</h4>

<p lang="en">
So you are going to try installing Vine Linux on your MacBook Air (Middle 2011) which doesn't come with any recovery media. Of course, if you have a wireless connection to the Internet, you will be able to restore OS X Lion through the net, without any install media. This is called &ldquo;<a href="http://www.apple.com/macosx/recovery/" target="_blank"><strong>Internet Recovery</strong></a>&rdquo;, built into newer Macs starting with Mac Mini (Middle 2011) and MacBook Air (Middle 2011).
</p>

<br />

<div style="text-align: center;" lang="en">
<img class="link" alt="[OS X Lion Internet Revoery]" width="470" height="351" src="http://microgroove.jp/shaolin/img/OSX_Lion_InternetRecovery.jpg" />
</div>

<br />

<p lang="en">
But you should be fully prepared - &ldquo;<strong>Providing is preventing</strong>&rdquo; - you would be happier to have the physical recovery medium, an USB flash drive, that contains OS X Lion Recovery, before facing some accidental issues.
</p>

<p lang="en">
All you need is an USB flash drive and <a href="http://support.apple.com/kb/DL1433" target="_blank"><strong>Lion Recovery Disk Assistant</strong></a>. Create the USB flash drive recovery media before installing Linux for safety.
</p>

<p lang="en">
In case you already build up your own environment on OS X Lion, you would better back up your whole system with <strong>Time Machine</strong> - this will simplify the process of restoring your entire OS X environment onto the specific partition of your harddrive.
</p>

<br />
<hr width="80%" />
<br />

<h4 lang="en">Boot up the Linux Installer, partition the drive, then install</h4>

<p lang="en">
Now you are nearly ready. Prepare another USB flash drive and make the USB install medium. If you already have Linux machines, connect the flash drive to the machine, identify the device name (such as <code>/dev/sdb</code>) very carefully, then just do this:
</p>

<blockquote lang="en">
<pre>
$ sudo dd if=Vine60-x86_64-DVD.iso of=/dev/sdb
</pre>
</blockquote>

<blockquote lang="en">
<pre>
(or alternatively)
$ sudo sh -c 'cat Vine60-x86_64-DVD.iso > /dev/sdb'
</pre>
</blockquote>

<p lang="en">
Similarly you can create the USB install medium on Windows machines, using <a href="http://www.si-linux.co.jp/wiki/silinux/index.php?DDforWindows" target="_blank">DDforWindows</a> or <a href="https://launchpad.net/win32-image-writer/" target="_blank">Image Writer for Windows</a>.
</p>

<br />

<p lang="en">
<strong style="color: #ff6666;">CAUTION, PLEASE NOTE: </strong>
Unfortunately a nasty bug is found on Vine Linux 6.0 x86_64 edition, that will cause some issues, when trying to install onto the <strong>harddrives with GPT partition table</strong>. The bug is already fixed (among the Vine developers) and will be released as a part of future releases of Vine Linux. 32bit edition does not suffer from this issue. You would install the 32bit edition instead, or wait for the minor fix version of the x86_64 edition.
</p>

<br />

<p lang="en">
Shut down your MacBook Air, plug the USB flash drive, hold the <code>option</code> key while pressing the power button, then you will see the boot selector named &ldquo;<a href="http://support.apple.com/kb/ht1310" target="_blank"><strong>Startup Manager</strong></a>&rdquo; that is built in Intel Macs. Select the USB flash drive and press return, and the initial screen of Vine Linux Installer would appear.
</p>

<br />

<div style="text-align: center;" lang="en">
<img class="link" alt="[Intel Mac Startup Manager]" width="400" height="300" src="http://microgroove.jp/shaolin/img/IntelMac_StartupManager.jpg" />
</div>

<br />

<p lang="en">
<strong>Be sure to select NOFB MODE</strong> before proceeding - otherwise your MBA will black out and will &ldquo;hard freeze&rdquo;. The KMS (Kernel-based Mode Setting), Intel Framebuffer driver and Xorg driver on Vine Linux 6.0 (even on breeding-edge Linux kernel and Xorg as of today) is <strong>NOT</strong> compatible with the 2011 MBA hardware yet.
</p>

<br />

<div style="text-align: center;" lang="en">
<img class="link" alt="[Vine Linux 6.0 Installer Options]" width="450" height="314" src="http://microgroove.jp/shaolin/img/Vine60_Installer_Options.jpg" />
</div>

<br />

<p lang="en">
Then the Vine Installer starts. As my MBA is brand new and I already have Recovery USB flash drive, so I don't hesitate to erase all the partition on the MBA SSD. If you already have your own OSX Lion environment, you would back up your whole OSX system with Time Machine as noted far above.
</p>

<p lang="en">
The only thing you should keep in mind is, place the Linux partitions first, then the OS X partition. This is a limitation of the GRUB bootloader (unless you use newer GRUB2 bootloader), as it only sees the MBR partition tables which can hold up to four partitions. OS X on Intel Macs, on the other hand, relies on the GPT (GUID Partition Table) that can hold more partitions. As long as you use the GRUB bootloader, Linux partitions (especially the <code>/</code> partition or <code>/boot</code> partition which holds Linux kernels and initrds) must be either of first four partition.
</p>

<p lang="en">
My case - I know MBA 2011 is not fully supported on Linux yet (and hopefully several months needed to get fully supported), so I decided the Vine Linux directly on MBA 2011 was just for testing purpose. 10GB for <code>/</code>, 2GB for <code>swap</code>, the rest (approximately 107GB) kept free to reinstall OS X later.
</p>

<p lang="en">
Did a few settings (selecting languages, keyboards, timezone and a few more) in the Vine Installer, then finally the installation process starts. As the MBA comes with a SSD harddrive, package installation itself is faster than you could imagine - just a few minutes - not long enough to grind coffee beans and drip brew. You would try instant coffee when installing Linux on machines with SSD.
</p>

<br />

<p lang="en">
Okay, you finished installing Vine Linux. But you need a few more to do. Otherwise the Linux system you just installed won't boot.
</p>

<br />
<hr width="80%" />
<br />

<h4 lang="en">Reinstall OS X (or Restore your OS X system from Time Machine)</h4>

<p lang="en">
Next, you need to reinstall OS X. Boot from the Restore USB flash drive, open Disk Utility, and create the HFS+ partition while keeping the Linux partitions intact. Then proceed restoring OS X. Alternatively you may restore your OS X system from the Time Machine backup onto the HFS+ partition you just created.
</p>

<br />

<div style="text-align: center;" lang="en">
<img class="link" alt="[Lion Recovery: Mac OS X Utilities]" width="386" height="295" src="http://microgroove.jp/shaolin/img/LionRecovery_MacOSXUtilities.png" />
</div>

<br />
<hr width="80%" />
<br />

<h4 lang="en">Install rEFIt</h4>

<p lang="en">
You are just one step away from the completion. Boot up the OS X you just reinstalled/resotred, grab <a href="http://refit.sourceforge.net/" target="_blank"><strong><strong>rEFIt</strong></strong></a>, then install.
</p>

<p lang="en">
Then open the Terminal, and type the following command.
</p>

<blockquote lang="en">
<pre>
$ cd /efi/refit
$ sudo ./enable.sh
</pre>
</blockquote>

<p lang="en">
Okay, now you are almost done. Reboot your MBA. If you did everything correctly, you will see the rEFIt boot selector.
</p>

<br />

<div style="text-align: center;" lang="en">
<img class="link" alt="[rEFIt OS Selector]" width="350" height="288" src="http://microgroove.jp/shaolin/img/rEFIt_Selector.jpg" />
</div>

<br />

<p lang="en">
But don't rush - you have <strong>one more thing</strong> left to do - syncronize GPT and MBR tables. On the rEFIt screen, use arrow key to select &ldquo;<strong>Partitioning Tool</strong>&rdquo; (<code>gptsync</code>) then press return. Press Y to syncronize the GPT/MBR partition tables. Then shut down your MBA once for safety.
</p>

<p lang="en">
Then you'll be able to boot into the Vine Linux, finally.
</p>

<br />
<hr width="80%" />
<br />

<h4 lang="en">Current Status: Vine Linux 6.0 / VineSeed on MBA 2011</h4>

<p lang="en">
Unfortunately, as I already noted far above, there are still so many things
to get done on the Linux kernel, the X thing, and some userland utilities,
to run Linux on the MBA 2011 flawlessly. You will see many restrictions on
Linux (not only Vine but also many other distros) on MBA 2011,
at least <strong style="color: #ff6666;">AS OF AUG. 16, 2011</strong>.
</p>

<p lang="en">
Vine Linux 6.0 doesn't fully support MBA 2011, while VineSeed (development version of Vine Linux) gradually supports MBA 2011 features - see the updates below.
</p>

<br />

<p lang="en">
(1) (Vine Linux 6) You'll need to add <code><strong>nomodeset</strong></code> to the grub.conf. Otherwise your MBA will hard-freeze during bootup.
<br />
<strong style="color: #ff6666;">UPDATE: (SEP. 6, 2011): </strong>
most recent VineSeed (kernel-3.0.4-1vl7) doesn't hard-freeze w/o <code>nomodeset</code>. However, you need Apple Mini DisplayPort (ThunderBolt) / DVI (or HDMI) Adapter to get the screen. Without <code>nomodeset</code>, the screen will only appears on the external display (built-in LCD will get blank).
<br />
<strong style="color: #ff6666;">UPDATE: (SEP. 16, 2011): </strong>
most recent VineSeed (kernel-3.0.4-2vl7) finally supports 1366x768 resolution on the built-in LCD. Now no need to add <code>nomodeset</code> to the grub.conf.
</p>

<br />

<p lang="en">
(2) (Vine Linux 6) <strong>X</strong> still can't do 1366x768. 1024x768 at most, strangely stretched wide.
<br />
<strong style="color: #ff6666;">UPDATE: (SEP. 6, 2011): </strong>
with recent kernel and without <code>nomodeset</code> described above,
you get normal 1024x768 on the external display. Intel HD Graphics can do
3D accelaration (w/ xorg-x11-drv-intel-2.16.0-2vl7) and compatible with
GNOME Shell.
<br />
<strong style="color: #ff6666;">UPDATE: (SEP. 16, 2011): </strong>
with recent kernel (3.0.4-2vl7) and without <code>nomodeset</code>
described above, you finally get 1366x768 on the built-in LCD display,
featuring 3D acceleration with GNOME Shell.
</p>

<br />

<p lang="en">
(3) <strong>Wireless network</strong> works out of the box - with <code>kernel-module-compat-wireless</code> package installed (on Vine6), or with kernel-3.0.1 (VineSeed).
</p>

<br />

<p lang="en">
(4) <strong>Sound output</strong> is initially muted, so you need the following tasks:
</p>

<ul lang="en">
<li>Execute <code><strong>alsamixer</strong></code>.</li>
<li>Press the <code>F6</code> key, and unmute the &ldquo;Surround&rdquo; or the likes. Press <code>ESC</code> to exit.</li>
<li>Execute <code><strong>sudo alsactl store</strong></code> to save the setting.</li>
</ul>

<div style="text-align: center;" lang="en">
<img class="link" alt="[alsamixer on MBA2011]" width="400" height="293" src="http://microgroove.jp/shaolin/img/alsamixer_MBA2011.png" />
</div>

<br />

<p lang="en">
(5) <strong>FaceTime Camera</strong> is properly recognized by Linux kernel with <code>uvcvideo</code>.
</p>

<br />

<p lang="en">
(6) <strong>Special keys</strong>, such as LCD backlight control (F1/F2), keyboard backlight control (F5/F6), sound mute/volume control (F10/F11/F12) does not work at all. The <code><strong>pommed</strong></code> will treat them like a charm on old MacBooks and MacBook Pros (or even some PowerBooks and iBooks), but unfortunately the pommed is not compatible with the new MacBook Air (Mid 2011) yet.
</p>

<br />

<p lang="en">
(7) As this is a Mac, there is no middle-click and right-click - you'll need to enable mouse button emulation to handle this. There are two ways to accomplish the mouse button emulation - one is sysctl way and and the other is Xmodmap way. Please search over the Internet as there are plenty of pages on this.
</p>

<br />

<p lang="en">
(8) <strong style="color: #ff6666;">UPDATE: (SEP. 16, 2011): </strong>
at least with most recent kernel (3.0.4-2vl7) on VineSeed, suspend/resume
works flawlessly on my MBA Mid2011 11-inch.
</p>

<br />
<hr width="80%" />
<br />

<h4 lang="en">Installing Vine on VirtualBox Instead</h4>

<p lang="en">
So the status of Vine Linux 6.0 on MBA 2011 for desktop purpose is still far from flawless (although there's a notable progress going on with the development version, VineSeed, as described above). But I have my old MacBook 2008 that runs VineSeed rock solid, and I have spent my daily computer life on this. I bought my MBA to replace my old MacBook.
</p>

<p lang="en">
That's why I decided to create rather small Linux partitions (10GB for <code>/</code>) on the SSD, keeping the OS X partition approximately 90% of its original size. I mean, sometimes (or very frequently) I may want to try if Linux (as of today) runs good on MBA, but too early to spend every minute on this.
</p>

<p lang="en">
So what did I do?
</p>

<p lang="en">
We have another (and very easy) way to install Linux on Intel Macs - <a href="http://www.virtualbox.org/" target="_blank">VirtualBox</a> (not V<strong>e</strong>rtualBox, but V<strong>i</strong>rtualBox - to whom it may concern). I mean, I install Vine Linux on a VirtualBox running on OS X Lion. I know there is yet another way - a similar solution - <a href="http://www.vmware.com/products/fusion/overview.html" target="_blank">VMWare Fusion</a>, a famous commercial product. But this time I go with VirtualBox as I've been already familiar with running VirtualBox on Vine Linux - testing Vine installer, using other Linux distributions for certain purposes, et al.
</p>

<p lang="en">
The installation itself is really a piece of cake. And you'll get the Linux running on a virtual machine like a charm. You don't have to worry about hardware compatibility issues. You can quickly let your Mac sleep by closing the lid, while Linux is on a virtual machine - no matter what that Linux is compatible with sleep or not. You can run Linux on full-screen mode (although VirtualBox is not OS X Lion's &lsquo;Full-Screen&rsquo; App yet) with 1366x768 resolution very quick and fast. You can instantly switch from OS X (host OS) and Vine Linux (guest OS) by swiping the trackpad with your three fingers - give another huge round of applause to Mission Control!
</p>

<br />

<div style="text-align: center;" lang="en">
<img class="link" alt="[Vine Linux VM on Missiion Control]" width="500" height="281" src="http://microgroove.jp/shaolin/img/MissionControl_VineLinux.png" />
</div>

<br />

<p lang="en">
This is &ldquo;insanely great&rdquo;, actually. Two Vine Linux developers (daisuke & munepi) bought MBA 2011 as well, and they do this way. They didn't ever tried to install Vine directly onto their MBAs like I did this time.
</p>

<p lang="en">
But in the meantime I will keep looking for some hacks and upstream fixes that will make Vine Linux running directly on newer Intel Macs flawlessly like it already does on my old whity MacBook. This is why I still keep small 10GB Linux partition on my MBA 2011's SSD.
</p>

<br />

<p lang="en">
Okay, so I need to move my current Vine environment on my MacBook to the VirtualBox on OS X Lion - hope it will not take long - and I gotta say to myself, installing Linux on MacBook Air is just the means of restoring my daily environment, not an end in itself (except when I am debugging and developing Vine Linux itself).
</p>]]>
    </content>
</entry>

<entry>
    <title>kernel panic on shutdown w/ vboxdrv</title>
    <link rel="alternate" type="text/html" href="http://microgroove.jp/shaolin/2011/08/kernel_panic_on_shutdown_w_vboxdrv.html" />
    <id>tag:microgroove.jp,2011:/shaolin//3.1023</id>

    <published>2011-08-09T04:26:57Z</published>
    <updated>2011-08-09T04:39:18Z</updated>

    <summary> On my environment (VineSeed/Vine Linux 6 on MacBook Early 2008), the system always crashes with a kernel panic when trying to shut the system down like this: panic occurred, switching back to text console BUG: scheduling while atomic: swapper/0/0x10010000...</summary>
    <author>
        <name>Shaolin</name>
        <uri>http://microgroove.jp/</uri>
    </author>
    
        <category term="LINUX" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="VINE" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="vinelinux" label="Vine Linux" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="vineseed" label="VineSeed" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="virtualbox" label="VirtualBox" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://microgroove.jp/shaolin/">
        <![CDATA[<p lang="en">
On my environment (VineSeed/Vine Linux 6 on MacBook Early 2008), the system always crashes with a kernel panic when trying to shut the system down like this:
</p>

<blockquote lang="en" style="overflow: auto">
<pre>
panic occurred, switching back to text console
BUG: scheduling while atomic: swapper/0/0x10010000
Modules linked in: sit tunnel4 rfcomm sco bnep l2cap vboxnetadp vboxnetflt vboxdrv autofs4 sunrpc
ipv6 acpi_cpufreq freq_table mperf dm_mirror dm_region_hash dm_log dm_mod uinput snd_hda_codec_realtek
snd_hda_intel lib80211_crypt_tkip snd_hda_codec wl(P) snd_hwdep uvcvideo btusb snd_seq_dummy
snd_seq_oss snd_seq_midi_event snd_seq videodev bluetooth ohci1394 v4l1_compat snd_seq_device
applesmc snd_pcm_oss snd_pcm hwmon rfkill lib80211 ieee1394 led_class snd_timer snd firewire_ohci
soundcore firewire_core i2c_i801 snd_page_alloc sky2 input_polldev mbp_nvidia_bl pcspkr crc_itu_t
joydev iTCO_wdt iTCO_vendor_support appletouch processor battery thermal ac ata_generic pata_acpi
uhci_hcd ohci_hcd ehci_hcd i915 dkms_kms_helper drm i2c_algo_bit button i2c_core video output
[last unloaded: cpufreq_ondemand]
Pid: 0, comm: swapper Tainted: P       D     2.6.35-20vl6 #1
Call Trace:
[&lt;c102d3a6&gt;] __schedule_bug+0x1/0x56
[&lt;c1359495&gt;] schedule+0x83/0x4b9
[&lt;f7d7b78e&gt;] ? drm_crtc_helper_set_config+0x84/0x65b [drm_kms_helper]
[&lt;c135999d&gt;] _cond_resched+0x2e/0x47
[&lt;c10c8b80&gt;] __kmalloc+0xa8/0x145
[&lt;f7d7b78e&gt;] drm_crtc_helper_set_config+0x94/0x65b [drm_kms_helper]
[&lt;c1005e37&gt;] ?show_trace_log_lvl+0x39/0x43
[&lt;f7d7aae8&gt;] drm_fb_helper_force_kernel_mode+0x2b/0x5b [drm_kms_helper]
[&lt;f7d7ab62&gt;] drm_fb_helper_panic+0x17/0x1d [drm_kms_helper]
[&lt;c104b6c3&gt;] notifier_call_chain+0x14/0x16
[&lt;c1359289&gt;] atomic_notifier_call_chain+0x14/0x16
[&lt;c1359289&gt;] panic+0x73/0xbc
[&lt;c1005c17&gt;] oops_end+0x7a/0x88
[&lt;c102088f&gt;] no_context+0x115/0x11f
[&lt;c102098a&gt;] __bad_area_nosemaphore+0xf1/0xf9
[&lt;c1020af0&gt;] ? do_page_fault+0x0/0x2eb
[&lt;c10209a4&gt;] bad_area_nosemaphore+0x12/0x15
[&lt;c1020c32&gt;] d0_page_fault+0x142/0x2eb
[&lt;c10080fd&gt;] ?sched_clock+0x9/0xd
[&lt;c104bfb3&gt;] ?sched_clock_local+0x17/0x11e
[&lt;c1020af0&gt;] ?do_page_fault_0x0/0x2eb
[&lt;c135b9b6&gt;] error_code+0x66/0x6c
[&lt;c104007b&gt;] ? ignore_signals+0x21/0x27
[&lt;c1020af0&gt;] ?do_page_fault+0x0/0x2eb
[&lt;f91a3e0d&gt;] ?rtMpNotificationLinuxOnCurrentCPU+0xa/0x9d [vboxdrv]
[&lt;f91a3a51&gt;] rtmpLinuxWrapper+0x22/0x27 [vboxdrv]
[&lt;c10572e7&gt;] generic_smp_call_function_single_interrupt+0xa0/0xba
[&lt;c1017e29&gt;] smp_call_function_single_interrupt+0xa0/0xba
[&lt;c135b546&gt;] call_function_single_interuupt+0x2a/0x30
[&lt;c104007b&gt;] ? ignore_signals+0x21/0x27
[&lt;f86fa1ea&gt;] ? acpi_idle_enter_bm+0x24d/0x289 [processor]
[&lt;c12b7475&gt;] cpuidle_idle_call+0x73/0xce
[&lt;c10023a3&gt;] cpu_idle+0x4e/0x67
[&lt;c1357280&gt;] start_secondary+0x1a8/0x1ad
</pre>
</blockquote>

<br />

<p lang="en">
I'd been looking for the solution to the issue, and finally I found this was it:
</p>

<ul lang="en">
<li><a href="http://www.virtualbox.org/ticket/9305" target="_blank">Ticket #9305: VBox modules randomly cause kernel panic on computer shutdown -&gt; fixed as of 28-Jul 2011</a>
</ul>

<br />

<p lang="en">
The fix itself was very trivial:
</p>

<blockquote lang="en" style="overflow: auto">
<pre>
--- src/VBox/Runtime/r0drv/linux/mpnotification-r0drv-linux.c	(revision 73209)
+++ src/VBox/Runtime/r0drv/linux/mpnotification-r0drv-linux.c	(revision 73210)
@@ -77,7 +77,7 @@
  * @param pvUser2           The notification event.
  * @remarks This can be invoked in interrupt context.
  */
-static void rtMpNotificationLinuxOnCurrentCpu(RTCPUID idCpu, void *pvUser1, void *pvUser2)
+static DECLCALLBACK(void) rtMpNotificationLinuxOnCurrentCpu(RTCPUID idCpu, void *pvUser1, void *pvUser2)
 {
     unsigned long ulNativeEvent = *(unsigned long *)pvUser2;
     NOREF(pvUser1);
</pre>
</blockquote>

<br />

<p lang="en">
Now the fix has been included on VirtualBox-4.1.0-2vl7 (VineSeed).
</p>

<p lang="en">
Same fix for Vine Linux 6 (more precisely, packages for VinePlus/6) will be uploaded as 4.1.0-2vl6 as well shortly.
</p>]]>
        
    </content>
</entry>

<entry>
    <title>Installing Vine Linux 6.0 beta2 on ZOTAC IONITX-P-E</title>
    <link rel="alternate" type="text/html" href="http://microgroove.jp/shaolin/2011/07/installing_vine_linux_60_beta2_on_zotac_ionitx-p-e.html" />
    <id>tag:microgroove.jp,2011:/shaolin//3.1022</id>

    <published>2011-07-06T08:01:00Z</published>
    <updated>2011-07-28T05:41:31Z</updated>

    <summary> 自宅のリビングのテレビに接続するメディアサーバ (xbmc とか vlc とか) 的な、省電力で安価なマシンが欲しかったので、ION + 定電圧 (CULV) 版 Celeron SU2300 という、変態(?)構成なマザーボード ZOTAC IONITX-P-E を購入し、ちょうどベータ版がリリースされている Vine Linux 6.0 をテストがてらインストールしてみました。...</summary>
    <author>
        <name>Shaolin</name>
        <uri>http://microgroove.jp/</uri>
    </author>
    
        <category term="LINUX" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="VINE" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="ion" label="ION" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ionitxpe" label="IONITX-P-E" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="nvidia" label="Nvidia" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="vinelinux" label="Vine Linux" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="xbmc" label="xbmc" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="xorg" label="XOrg" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="zotac" label="ZOTAC" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://microgroove.jp/shaolin/">
        <![CDATA[<p lang="ja">
自宅のリビングのテレビに接続するメディアサーバ (<a href="http://xbmc.org/" target="_blank">xbmc</a> とか <a href="http://www.videolan.org/" target="_blank">vlc</a> とか) 的な、省電力で安価なマシンが欲しかったので、ION + 定電圧 (CULV) 版 Celeron SU2300 という、変態(?)構成なマザーボード <a href="http://www.zotacusa.com/zotac-ionitx-p-e-intel-celeron-su2300-1-2ghz-dual-core-mini-itx-intel-motherboard.html" target="_blank">ZOTAC IONITX-P-E</a> を購入し、ちょうどベータ版がリリースされている <a href="http://vinelinux.org/" target="_blank">Vine Linux</a> 6.0 をテストがてらインストールしてみました。
</p>

<br />

<div style="text-align: center;">
<a href="http://www.zotacusa.com/zotac-ionitx-p-e-intel-celeron-su2300-1-2ghz-dual-core-mini-itx-intel-motherboard.html" target="_blank"><img alt="[ZOTAC IONITX-P-E]" src="http://microgroove.jp/shaolin/img/ZOTAC-IONITX-P-E.jpg" /></a>
</div>]]>
        <![CDATA[<p lang="ja">
このマザー、通常 Atom と組み合わされる ION が CULV Celeron と組まれてる以外は、意外と素直な構成というか、ほぼ全てのコンポーネントが特に問題なく使えました。これを 80W 電源がついた小さなケースに入れ、2GB メモリを2枚と、いちばん安い 2.5インチ 320GB ハードディスクを積んだものが今回のマシンです。
</p>

<p lang="ja">
以下、やったことのまとめ。
</p>


<br />
<hr width="80%" />
<br />


<h4 lang="ja">インストール</h4>

<p lang="ja">
USB に書き込んだ DVD インストーライメージ (x86_64) から起動、普通にインストール。特に問題もなく終了。
</p>

<br />

<h4 lang="ja">初回起動・確認</h4>

<p lang="ja">
コンソールは vesa モードで起動、普通に plymouth によるスプラッシュが出てきました。X も16bitで上下左右が幾分欠けてはいるものの、とりあえず動作しています。オンボードの無線ネットワーク (Atheros AR9285) も特になにもせずに使えました。やや拍子抜け。
</p>

<p lang="ja">
以下、<code>lspci</code> の出力。
</p>

<blockquote lang="en" style="overflow: auto">
<pre>
00:00.0 Host bridge: nVidia Corporation MCP79 Host Bridge (rev b1)
00:00.1 RAM memory: nVidia Corporation MCP79 Memory Controller (rev b1)
00:03.0 ISA bridge: nVidia Corporation MCP79 LPC Bridge (rev b3)
00:03.1 RAM memory: nVidia Corporation MCP79 Memory Controller (rev b1)
00:03.2 SMBus: nVidia Corporation MCP79 SMBus (rev b1)
00:03.3 RAM memory: nVidia Corporation MCP79 Memory Controller (rev b1)
00:03.5 Co-processor: nVidia Corporation MCP79 Co-processor (rev b1)
00:04.0 USB Controller: nVidia Corporation MCP79 OHCI USB 1.1 Controller (rev b1)
00:04.1 USB Controller: nVidia Corporation MCP79 EHCI USB 2.0 Controller (rev b1)
00:06.0 USB Controller: nVidia Corporation MCP79 OHCI USB 1.1 Controller (rev b1)
00:06.1 USB Controller: nVidia Corporation MCP79 EHCI USB 2.0 Controller (rev b1)
00:08.0 Audio device: nVidia Corporation MCP79 High Definition Audio (rev b1)
00:09.0 PCI bridge: nVidia Corporation MCP79 PCI Bridge (rev b1)
00:0a.0 Ethernet controller: nVidia Corporation MCP79 Ethernet (rev b1)
00:0b.0 IDE interface: nVidia Corporation MCP79 SATA Controller (rev b1)
00:0c.0 PCI bridge: nVidia Corporation MCP79 PCI Express Bridge (rev b1)
00:10.0 PCI bridge: nVidia Corporation MCP79 PCI Express Bridge (rev b1)
00:15.0 PCI bridge: nVidia Corporation MCP79 PCI Express Bridge (rev b1)
00:16.0 PCI bridge: nVidia Corporation MCP79 PCI Express Bridge (rev b1)
00:17.0 PCI bridge: nVidia Corporation MCP79 PCI Express Bridge (rev b1)
00:18.0 PCI bridge: nVidia Corporation MCP79 PCI Express Bridge (rev b1)
03:00.0 VGA compatible controller: nVidia Corporation C79 [ION] (rev b1)
04:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
</pre>
</blockquote>

<br />

<br />

<h4 lang="ja">プロプライエタリグラフィックドライバの追加</h4>

<p lang="ja">
このままでもまあまあ使えますが、今回はメインが動画閲覧目的ですので、まずはプロプライエタリな <code>nvidia</code> ドライバをインストール。
</p>

<blockquote lang="en">
<pre>
$ sudo apt-get update
$ sudo apt-get install xorg-x11-drv-nvidia
</pre>
</blockquote>

<br />

<p lang="ja">
あとは以下の手順で、とりあえず nvidia ドライバで X が使えるようになります。
</p>

<blockquote lang="en">
<pre>
$ sudo nvidia-xconfig (雛形的な xorg.conf が作られる)
$ sudo nvidia-config-display enable (必要な module path が追加される)
$ sudo reboot
</pre>
</blockquote>

<br />

<p lang="ja">
具体的には、<code>Files</code> セクションに、以下の <code>ModulePath</code> が追加され、
</p>

<blockquote lang="en">
<pre>
Section "Files"
        ModulePath   "/usr/lib64/xorg/modules/extensions/nvidia"
        ModulePath   "/usr/lib64/xorg/modules"
        FontPath     "/usr/share/fonts/default/Type1"
EndSection
</pre>
</blockquote>

<p lang="ja">
<code>Device</code> セクションでドライバに <code>nvidia</code> を指定するだけのようです。
</p>

<blockquote lang="en">
<pre>
Section "Device"
        Identifier  "Device0"
        Driver      "nvidia"
        VendorName  "NVIDIA Corporation"
EndSection
</pre>
</blockquote>

<br />

<p lang="ja">
その他、<code>DefaultDepth</code> や <code>Deph</code> も明示的に <code>24</code> になっています。
</p>

<blockquote lang="en">
<pre>
Section "Screen"
        Identifier "Screen0"
        Device     "Device0"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Depth     24
        EndSubSection
EndSection
</pre>
</blockquote>

<br />

<p lang="ja">
今回は、うちにあるテレビ (TOSHIBA REGZA 32R1) に HDMI 接続していますが、そのままだと上下左右が欠けてしまうので、<code>OverscanCompensation</code> の値を調整して、適切な表示になるようにします。設定は <code>nvidia-settings</code> から。この画面では、<code>OverscanCompensation=60</code> に指定しています。
</p>

<br />

<div style="text-align: center;">
<a href="http://microgroove.jp/shaolin/img/NVIDIA_X_Server_Settings-L.jpg" onclick="window.open('http://microgroove.jp/shaolin/img/NVIDIA_X_Server_Settings-L.jpg', 'popup', 'width=948,height=1056,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img alt="[nvidia-settings]" src="http://microgroove.jp/shaolin/img/NVIDIA_X_Server_Settings.jpg" /></a>
</div>

<br />

<p lang="ja">
毎回 X が起動する際にこの値を有効にするため、
</p>

<blockquote lang="en">
<pre>
nvidia-settings -a "OverscanCompensation=60"
</pre>
</blockquote>

<p lang="ja">
というコマンドを、どこかに書いておくことに。
</p>

<p lang="ja">
今回は、リビングで使うメディアサーバ的で、<code>gdm</code> で自動ログインするような使い方を念頭においてますので、<code>/etc/X11/gdm/PreSession/Default</code> に書いておくことに。もっと別の場所に書く方がスマートかもしれません。
</p>

<br />

<h4 lang="ja">サウンド</h4>

<p lang="ja">
今回はテレビと HDMI 接続するので、オーディオ出力も HDMI にします。が、デフォルトのままではオーディオが出力されていないようです。
</p>

<p lang="ja">
いろいろ調べると、HDMI 経由のディジタル出力が alsa 的にミュートされているらしいことが分かりました。なので、<code>alsamixer</code> でミュートを解除してみます。この画面では、一番右の <code>S/PDIF</code>、<code>S/PDIF D</code>、<code>S/PDIF 1</code> あたりが該当します。
</p>

<br />

<div style="text-align: center;">
<img alt="[alsamixer]" src="http://microgroove.jp/shaolin/img/alsamixer.jpg" />
</div>

<br />

<p lang="ja">
これで、次回起動時にもこの設定が有効になるように、以下のコマンドを実行して、<code>/etc/asound.state</code> に書きだしておきます。
</p>

<blockquote lang="en">
<pre>
$ sudo alsactl store
</pre>
</blockquote>

<br />

<h4 lang="ja">残りいろいろ</h4>

<p lang="ja">
もうこれで、普通に使う分には問題ない状態になってしまいました。拍子抜け。もっといろいろクセのあるハードであれこれいじりたかったところですが、まあそれだけ当たりのマザーを引いたということで、よしとしておきます。
</p>

<p lang="ja">
あとやったのは、今回必要となるあたりのソフトウェアをインストールしたり、
</p>

<blockquote lang="en">
<pre>
$ sudo apt-get install task-all-codecs self-build-vlc \
                       self-build-xbmc chromium
</pre>
</blockquote>

<br />

<p lang="ja">
<code>gdm2setup</code> などを使って自動ログインを有効にし、テレビからある程度離れて操作することを考えて、GNOME デスクトップのフォントや Chromium のフォントを大きめに設定することくらいです。
</p>

<p lang="ja">
これで、仕事部屋に置いてある NAS サーバ上に NFS なり SMB なりを経由して、動画ファイルや DVD からリッピングした ISO ファイル、それと写真などを <code>xbmc</code> で閲覧できる環境が整いました。
</p>

<p lang="ja">
CULV Celeron SU2300 (1.2GHz Dual Core) + ION という構成ですが、まあ普通に 1080i や 720p な動画を見る分には充分な感じです。また、妻が使っている DELL のノートPCの調子が最近特に悪く（使っていると勝手に電源が落ちたりする）、その当座のバックアップ環境ということで、web 閲覧環境がリビングに用意できたという面もあるかもしれません。
</p>

<p lang="ja">
あとは、うーんと、手元には USB なり Bluetooth なワイヤレスキーボードがないので、適当によさそうな奴を探すことくらいでしょうか。なんかオススメのものってありますかね。
</p>]]>
    </content>
</entry>

<entry>
    <title>any good sports for my daughter?</title>
    <link rel="alternate" type="text/html" href="http://microgroove.jp/shaolin/2011/06/any_good_sports_for_my_daughter.html" />
    <id>tag:microgroove.jp,2011:/shaolin//3.1021</id>

    <published>2011-06-13T21:00:00Z</published>
    <updated>2011-06-13T21:19:04Z</updated>

    <summary><![CDATA[ Yesterday afternoon we went to the tennis school (where we once lived near and I had regular lesson for several years) with my daughter to see how the kids tennis lesson (&ldquo;Kinder Class&rdquo;) was like. We just watched the...]]></summary>
    <author>
        <name>Shaolin</name>
        <uri>http://microgroove.jp/</uri>
    </author>
    
        <category term="こども" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="テニス" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://microgroove.jp/shaolin/">
        <![CDATA[<p lang="en">
Yesterday afternoon we went to the <a href="http://www.bigk.co.jp/" target="_blank">tennis school</a> (where we once lived near and I had regular lesson for several years) with my daughter to see how the kids tennis lesson (&ldquo;Kinder Class&rdquo;) was like.
</p>

<p lang="en">
We just watched the class behind the fence - not the trial lesson for my daughter. Sorry for her - she complained that she wanted to join the class and play with balls and racquets. Very sorry for her. Anyway we watched 80% of the whole lesson - about 40 minutes - until my daughter got bored of standing behind the fence, watching the kids class on the tennis court.
</p>

<p lang="en">
Not bad. We saw two children (two four-years-old boys) in the class on that day, while on the neighbouring court &ldquo;Players' Course&rdquo; (a very serious class for teens who wants to be professional tennis players) was playing very hard. The two kids were having fun at the class, moving and playing with much joy. They didn't look like they got bored.
</p>
]]>
        <![CDATA[<p lang="en">
To be honest, it was really a great introduction for 4-6 years old children, for parents who seriously wants their kids play tennis very hard in the near future.
</p>

<p lang="en">
But I don't think it was great for my daughter. Here's just a simple point why.
</p>

<br />

<h4>Too strict lesson for three years old kid to keep interests on tennis?</h4>

<p lang="en">
Stretching, running, holding balls on a racket (and moving around), hitting balls forehands and badkhands moving quick, etc... Okay. it's a nice &ldquo;introduction&rdquo; to tennis for kids, but my daughter still don't know how fun it is to play tennis seriously (she already likes to watch professional tennis matches on TV with me and she already loves to play with sponge balls and her kid racquet, though). I am just afraid if she would hate tennis before she got interested in tennis seriously.
</p>

<p lang="en">
I just thought it was not the right time for her. The class would work very good for her, after she would get interested in tennis very seriously. But in the meantime it's just that I want to look for any good kids class where my daughter can play with other kids and getting to know how the sport is like, getting interested in the sport, and getting to like the sport itself.
</p>

<p lang="en">
My conclusion is, that it is just too early for my three-years-old daughter to do a complete subset of what grown-up school students are doing IMHO. Maybe a few years later when she really gets to know tennis is fun. Or should I look for any other tennis schools for kids where they can feel and learn such &ldquo;everything even before the ABC's&rdquo;?
</p>

<br />

<p lang="en">
So what any good sport for my daughter? We've already observed some Kids Classical Ballet lessons that really amazed her so much. She always says &ldquo;I like pretty things. Ballet is pretty. Tennis is cool, but not pretty!&rdquo; Hahaha... Anyway maybe someday I do hope I play tennis with you...
</p>]]>
    </content>
</entry>

<entry>
    <title>Progress bar on the the Plymouth startup screen &quot;Script&quot; theme</title>
    <link rel="alternate" type="text/html" href="http://microgroove.jp/shaolin/2011/06/progress_bar_on_the_the_plymouth_startup_screen_script_theme.html" />
    <id>tag:microgroove.jp,2011:/shaolin//3.1018</id>

    <published>2011-06-09T05:08:00Z</published>
    <updated>2012-01-28T22:18:15Z</updated>

    <summary><![CDATA[ This is the startup screenshot of the soon-to-come Vine Linux 6.0 - the &ldquo;script&rdquo; theme from the Plymouth graphical boot animation. To tell the truth I have been always wondering, why the progress bar on the boot-up screen looks...]]></summary>
    <author>
        <name>Shaolin</name>
        <uri>http://microgroove.jp/</uri>
    </author>
    
        <category term="LINUX" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="VINE" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="plymouth" label="Plymouth" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="vinelinux" label="Vine Linux" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="vineseed" label="VineSeed" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://microgroove.jp/shaolin/">
        <![CDATA[<p lang="en">
This is the startup screenshot of the soon-to-come Vine Linux 6.0 - the &ldquo;script&rdquo; theme from the <a href="http://freedesktop.org/software/plymouth/releases" target="_blank">Plymouth</a> graphical boot animation.
</p>

<br />

<div style="text-align: center;">
<img src="http://microgroove.jp/shaolin/img/Plymouth_Script_Startup.jpg" />
</div>

<br />

<p lang="en">
To tell the truth I have been always wondering, why the <strong>progress bar</strong> on the boot-up screen looks like this. The progress bar is placed on the black background - the border is drawn in white colour - so the which is the progress bar itself, black one, or white one?
</p>

<p lang="en">
Seems like the &ldquo;script&rdquo; theme itself adopts black-coloured bar as a progress bar itself. So the following screenshot means that the boot-up process is now about 20% complete:
</p>

<br />

<div style="text-align: center;">
<img src="http://microgroove.jp/shaolin/img/Plymouth_Script_Progressbar.jpg" />
</div>

<br />

<p lang="en">
But don't you think it a bit strange? Sometimes do you see this as &ldquo;the progress bar coming from the right side, now approximately 80% complete&rdquo; or something?
</p>

<p lang="en">
I believe, in this example (black background, progress bar with white border),  the following screenshot should represents &ldquo;approximately 20% complete&rdquo; far better:
</p>

<br />

<div style="text-align: center;">
<img src="http://microgroove.jp/shaolin/img/Plymouth_Script_Progressbar2.jpg" />
</div>

<br />

<p lang="en">
If the latter one is still ambiguous, how about the following example whose border colour and the progress bar colour is bit different? I like this much better IMHO.
</p>

<br />

<div style="text-align: center;">
<img src="http://microgroove.jp/shaolin/img/Plymouth_Script_Progressbar3.jpg" />
</div>

<br />

<p lang="en">
What would you think? Am I the only one who think it different?
</p>

<br />

<p lang="en" style="font-style: italic;">
<strong>P.S.</strong><br />This change can be easily done by editing the following png files:
<p>

<blockquote lang="en">
<pre>/usr/share/plymouth/themes/script/progress_bar.png
/usr/share/plymouth/themes/script/progress_box.png</pre>
</blockquote>

<br />

<p lang="en" style="font-style: italic;">
And don't forget to execute &ldquo;<code>sudo /sbin/new-kernel-pkg --mkinitrd --depmod --install (kernel_version)</code>&rdquo; (<code>kernel_version</code> = <code>2.6.35-18vl6</code> for example)</code> to take effect.
</p>

<br />

<p lang="en" style="font-style: italic;">
<strong>P.S. 2</strong><br />
Soon after this article was published, I noticed other Vine members were talking on the IRC channel about changing the default Plymouth theme from Script to Spinfinity - okay, okay - that's another solution to avoid the Script theme...
</p>

<br />

<p lang="en" style="font-style: italic;">
<strong>P.S. 3</strong><br />
Then here's yet another canditate from <a href="http://dicey.org/blog/" target="_blank">Daisuke</a>-san - looking good. The very best IMHO.
Now we can clearly distinguish the progress bar itself - no confusion here.
</p>

<br />

<div style="text-align: center;">
<img src="http://microgroove.jp/shaolin/img/Plymouth_Script_Progressbar4.jpg" />
</div>]]>
        
    </content>
</entry>

<entry>
    <title>digikam vs libjpeg-turbo</title>
    <link rel="alternate" type="text/html" href="http://microgroove.jp/shaolin/2011/06/digikam_vs_libjpeg-turbo.html" />
    <id>tag:microgroove.jp,2011:/shaolin//3.1017</id>

    <published>2011-06-08T06:17:00Z</published>
    <updated>2011-06-08T06:17:04Z</updated>

    <summary> digikam can&apos;t compile on the current version of VineSeed (development/unstable version of Vine Linux, and soon-to-be Vine Linux 6.0). I found the following lines on the CMakeLists.txt in the digikam source code: # Extract version of libjpeg so that...</summary>
    <author>
        <name>Shaolin</name>
        <uri>http://microgroove.jp/</uri>
    </author>
    
        <category term="LINUX" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="VINE" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="digikam" label="digikam" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="vinelinux" label="Vine Linux" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="vineseed" label="VineSeed" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://microgroove.jp/shaolin/">
        <![CDATA[<p lang="en">
<a href="http://www.digikam.org/" target="_blank">digikam</a> can't compile on the current version of <a href="http://vinelinux.org/vineseed.html" target="_blank">VineSeed</a> (development/unstable version of Vine Linux, and soon-to-be Vine Linux 6.0).
</p>

<p lang="en">
I found the following lines on the <code>CMakeLists.txt</code> in the digikam source code:
</p>

<blockquote lang="en" style="overflow: auto">
<pre># Extract version of libjpeg so that we can use the appropriate dir
# See bug #227313, #228483
FILE(READ "${JPEG_INCLUDE_DIR}/jpeglib.h" jpeglib_h_content)
STRING(REGEX REPLACE ".*#define +JPEG_LIB_VERSION +([0-9]+).*" "\\1" jpeglib_version "${jpeglib_h_content}")
MESSAGE(STATUS "Identified libjpeg version: ${jpeglib_version}")

IF ("${jpeglib_version}" LESS 80)
    SET(DIGIKAM_LIBJPEG_DIR libjpeg-62)
ELSE ("${jpeglib_version}" LESS 80)
    SET(DIGIKAM_LIBJPEG_DIR libjpeg-80)
ENDIF ("${jpeglib_version}" LESS 80)</pre>
</blockquote>

<br />

<p lang="en">
while on the other hand  VineSeed now has <a href="http://libjpeg-turbo.virtualgl.org/" target="_blank">libjpeg-turbo</a> instead of the ancient <a href="http://libjpeg.sourceforge.net/" target="_blank">libjpeg6b</a>.
</p>

<p lang="en">
<code>jpeglib.h</code> from libjpeg-turbo does <strong>NOT</strong> have the line starting from <code>#define JPEG_LIB_VERSION</code>: instead the declaration is in another header file <code>jconfig.h</code> like this:
</p>

<blockquote lang="en" style="overflow: auto">
<pre>#define JPEG_LIB_VERSION 62</pre>
</blockquote>

<br />

<p lang="en">
So the trivial hack (<em>until the upstream fix this tiny issue</em>) is like this:
</p>

<blockquote lang="en" style="overflow: auto">
<pre>
--- digikam-1.9.0/CMakeLists.txt.orig   2011-02-28 05:16:18.000000000 +0900
+++ digikam-1.9.0/CMakeLists.txt        2011-06-08 14:10:15.000000000 +0900
@@ -153,7 +153,9 @@
 
 # Extract version of libjpeg so that we can use the appropriate dir
 # See bug #227313, #228483
-FILE(READ "${JPEG_INCLUDE_DIR}/jpeglib.h" jpeglib_h_content)
+# VINE: better check jconfig.h in place of jpeglib.h on libjpeg-turbo
+# FILE(READ "${JPEG_INCLUDE_DIR}/jpeglib.h" jpeglib_h_content)
+FILE(READ "${JPEG_INCLUDE_DIR}/jconfig.h" jpeglib_h_content)
 STRING(REGEX REPLACE ".*#define +JPEG_LIB_VERSION +([0-9]+).*" "\\1" jpeglib_version "${jpeglib_h_content}")
 MESSAGE(STATUS "Identified libjpeg version: ${jpeglib_version}")
</pre>
</blockquote>]]>
        
    </content>
</entry>

<entry>
    <title>懐かしの8ビットマイコンゲーム?</title>
    <link rel="alternate" type="text/html" href="http://microgroove.jp/shaolin/2011/03/hardware_acceleration_sometimes_might_no_do_any_good.html" />
    <id>tag:microgroove.jp,2011:/shaolin//3.1013</id>

    <published>2011-03-06T03:21:00Z</published>
    <updated>2011-03-06T03:25:21Z</updated>

    <summary> 現在の手元のマシン (MacBook w/ Intel GM965 Graphic Controller) の VineSeed、XOrg 1.10.0、xorg-x11-drv-intel-2.14.0-2vl6.i686、Adobe Flash Plugin10.2.152.27 で、 Tick Tock - student short film for Emory Campus MovieFest 2011 (YouTube) を観ようとすると、 。。。。 どこか懐かしさもある、大昔遊んだマイコンのテレビゲームみたいな。。。。 結局、Flash の ハードウェアアクセラレーションを無効にする、というのが正解だった模様です。特定の YouTube 映像のみでおかしくなっていたので、まあなんか特定のエンコーディング用のアクセラレータの問題ではないかと思ってはいたのですが。 なにせ VineSeed でちょうど XOrg 1.10 一式が投入された直後ということもあり、原因はなんだなんだということに。。。...</summary>
    <author>
        <name>Shaolin</name>
        <uri>http://microgroove.jp/</uri>
    </author>
    
        <category term="LINUX" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="MAC" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="VINE" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="acceleration" label="Acceleration" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="adobe" label="Adobe" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="flash" label="Flash" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="macbook" label="MacBook" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="plugin" label="Plugin" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="vinelinux" label="Vine Linux" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="vineseed" label="VineSeed" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="xorg" label="XOrg" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://microgroove.jp/shaolin/">
        <![CDATA[<p lang="ja">
現在の手元のマシン (MacBook w/ Intel GM965 Graphic Controller) の VineSeed、<code>XOrg 1.10.0</code>、<code lang="en">xorg-x11-drv-intel-2.14.0-2vl6.i686</code>、<code>Adobe Flash Plugin10.2.152.27</code> で、
</p>

<ul>
<li><a href="http://www.youtube.com/watch?v=w14v4vGUDdg" target="_blank">Tick Tock - student short film for Emory Campus MovieFest 2011</a> (YouTube)
</ul>

<p lang="ja">
を観ようとすると、
</p>

<br />

<div style="text-align: center;">
<img src="http://microgroove.jp/img/YouTube_TickTock_WithHardwareAcceleration.jpg" />
</div>

<br />

<p lang="ja">
。。。。
</p>

<p lang="ja">
どこか懐かしさもある、大昔遊んだマイコンのテレビゲームみたいな。。。。
</p>

<br />
<hr width="80%" />
<br />

<p lang="ja">
結局、Flash の <strong>ハードウェアアクセラレーションを無効にする</strong>、というのが正解だった模様です。特定の YouTube 映像のみでおかしくなっていたので、まあなんか特定のエンコーディング用のアクセラレータの問題ではないかと思ってはいたのですが。
<br />
なにせ VineSeed でちょうど <code>XOrg 1.10</code> 一式が投入された直後ということもあり、原因はなんだなんだということに。。。
</p>

<br />

<div style="text-align: center;">
<img src="http://microgroove.jp/img/AdobeFlash_DisableHardwareAcceleration.jpg" />
</div>

<br />

<blockquote lang="ja">
&lt;d&gt; flash10.2からVAAPI/VDPAUつかったh264のアクセラレーションが使われるようになったのだけど
<br />
&lt;d&gt; h264のプロファイルによっては壊れる
<br />
&lt;d&gt; &一回こわれるとflashプロセスを殺さないと
<br />
&lt;d&gt; 全部に影響するっぽい
</blockquote>

<br />

<p lang="ja">
ということだと。<a href="http://dicey.org/d/">だいさめ</a> 情報サンクス。
</p>

<br />

<div style="text-align: center;">
<img src="http://microgroove.jp/img/YouTube_TickTock_WithoutHardwareAceleration.jpg" />
</div>
]]>
        
    </content>
</entry>

</feed>
