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

<channel>
	<title>lab.naoki.sato.name &#187; linux</title>
	<atom:link href="http://naoki.sato.name/lab/archives/category/os/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://naoki.sato.name/lab</link>
	<description>lab for naoki.sato</description>
	<lastBuildDate>Sun, 20 Mar 2011 06:02:24 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://naoki.sato.name/lab/archives/category/os/linux/feed" />
		<item>
		<title>[コネタ] Ubuntu 10.10でGTX 460の音声を有効にする</title>
		<link>http://naoki.sato.name/lab/archives/258</link>
		<comments>http://naoki.sato.name/lab/archives/258#comments</comments>
		<pubDate>Tue, 18 Jan 2011 13:26:51 +0000</pubDate>
		<dc:creator>naoki</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[os]]></category>

		<guid isPermaLink="false">http://naoki.sato.name/lab/?p=258</guid>
		<description><![CDATA[どうやらこれを行ったら有効になったようなので備忘録。

aptでkernelを最新のものにアップデート (記事作成時では2.6.35-24)。
/etc/modprobe.d/alsa-base.conf の最後に以下を [...]]]></description>
			<content:encoded><![CDATA[<p>どうやらこれを行ったら有効になったようなので備忘録。</p>
<ol>
<li>aptでkernelを最新のものにアップデート (記事作成時では2.6.35-24)。</li>
<li><code>/etc/modprobe.d/alsa-base.conf</code> の最後に以下を追加:<br />
<code>options snd-hda-intel model=hp-dv5 enable_msi=1</code></li>
<li>再起動。</li>
</ol>
<p>再起動後 alsamixer を開いてミュートされていないか確認するとなお良。</p>
]]></content:encoded>
			<wfw:commentRss>http://naoki.sato.name/lab/archives/258/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://naoki.sato.name/lab/archives/258" />
	</item>
		<item>
		<title>EmacsからBlog記事を投稿する</title>
		<link>http://naoki.sato.name/lab/archives/237</link>
		<comments>http://naoki.sato.name/lab/archives/237#comments</comments>
		<pubDate>Sun, 31 Oct 2010 14:39:15 +0000</pubDate>
		<dc:creator>naoki</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[os]]></category>

		<guid isPermaLink="false">http://naoki.sato.name/lab/?p=237</guid>
		<description><![CDATA[テスト投稿。
EmacsにWeblogger modeをインストールしてテストしてみる。
HTMLがそのまま出てしまったのでバージョンを新しいのにして再挑戦。
Bold表示がBoldになるか？
とりあえずHTMLタグは使 [...]]]></description>
			<content:encoded><![CDATA[<p>テスト投稿。<br />
Emacsに<a href="http://www.emacswiki.org/emacs/WebloggerMode">Weblogger mode</a>をインストールしてテストしてみる。</p>
<p>HTMLがそのまま出てしまったのでバージョンを新しいのにして再挑戦。<br />
<b>Bold表示がBoldになるか</b>？</p>
<p>とりあえずHTMLタグは使えるようになった模様。<br />
が、カテゴリが設定できない？<br />
どうやらEmacs上ではメールのテンプレートを使っているようで、<br />
Keywordsを設定するHeaderはあるものの、CategoryやTagを設定する部分はなさそう。</p>
<p><span id="more-237"></span><br />
続きを読むは使えている模様。</p>
<p>投稿はC-c C-c。</p>
]]></content:encoded>
			<wfw:commentRss>http://naoki.sato.name/lab/archives/237/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://naoki.sato.name/lab/archives/237" />
	</item>
		<item>
		<title>VAIO type XにUbuntuをインストールする</title>
		<link>http://naoki.sato.name/lab/archives/230</link>
		<comments>http://naoki.sato.name/lab/archives/230#comments</comments>
		<pubDate>Thu, 28 Oct 2010 14:38:27 +0000</pubDate>
		<dc:creator>naoki</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[os]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vaiox]]></category>

		<guid isPermaLink="false">http://naoki.sato.name/lab/?p=230</guid>
		<description><![CDATA[世の中では新しいMacBook Airの良さが話題になっているここ最近、何故かその流れに贖ってWindows PCを買いました。モノはVAIO type X、 サイズも厚さも重さもiPadと同じくらいのLaptopという [...]]]></description>
			<content:encoded><![CDATA[<p>世の中では<a href="http://www.apple.com/jp/macbookair/">新しいMacBook Air</a>の良さが話題になっているここ最近、何故かその流れに贖ってWindows PCを買いました。モノは<a href="http://www.vaio.sony.co.jp/vaio/products/X11/">VAIO type X</a>、 サイズも厚さも重さもiPadと同じくらいのLaptopという結構な優れもの。元々Windows用というよりもLinux用に1台持っておきたく、そんなにスペックはいらないからとにかく持ち歩けるものを、ということで今回の購入となりました(そろそろ店頭在庫も少なくなってきたという事情もありますが)。</p>
<p>そこで、早速Linuxをインストールしたのですが、新し目の機種ということもあってなかなかすんなりいかない部分もあり。次回以降インストールし直す時のために、作業記録として残しておきます。</p>
<p>Linuxのディストリビューションはここ数年Ubuntuしか使っていないので<a href="http://www.ubuntulinux.jp/">Ubuntu</a>を選びました。現時点での最新版はUbuntu 10.10ですが、先進的すぎるためかスペックを抑えたVAIO type Xとは相性がいま一つのため、今回はUbuntu 9.10を使っています。</p>
<p>作業概要は以下の通り。現在進行中です。</p>
<ol>
<li>事前準備
<ul>
<li>プリインストールされているWindowsでリカバリディスクを作成</li>
<li>リカバリディスクから復元、Linux用のパーティションを設定</li>
<li>インストール用のCDまたはUSBを作成</li>
</ul>
</li>
<li>Ubuntu 9.10のインストール</li>
<li>Windowsブートマネージャの設定</li>
<li>psbドライバのインストール</li>
<li>サウンドの設定</li>
<li>サスペンド関連の調整</li>
<li>mozcのビルド、インストール</li>
<li>Ubuntu Tweakのインストール</li>
<li>Chromium、Dropboxのインストール</li>
<li>Nevernoteのインストール</li>
<li>git-core, GNOME Do, VLCのインストール</li>
<li>Emacsのインストール</li>
<li>&#8230;</li>
</ol>
<p>以下、詳細です。<span id="more-230"></span></p>
<h3>事前準備</h3>
<p>VAIO Type Xにはリカバリディスクが同梱されていないので、自分で作成する必要があります。VAIOリカバリーセンター(？)から作成できます。</p>
<p>注意点としては、<strong>DVDドライブとしてポータブルタイプの物を使うときは、必ずアダプタ等で電源を供給させること</strong>。そうしないと原因不明でディスクの作成に失敗します。</p>
<p>パーティションの設定はお好みで。</p>
<h3>Ubuntu 9.10のインストール</h3>
<p>今回はUbuntu 9.10の日本語Remixを使いました。また、何故か起動用USBを作成してもそこから起動ができなかったので、CDを作成しています。</p>
<p>VAIO Xで外部メディアからの起動の可否を設定するには、電源を入れた直後の画面でF2を押して出てくるBIOS画面を使います。</p>
<p>インストールの詳細は省略しますが、今回はWindows 7とUbuntu 9.10のデュアルブートとし、起動はWindowsブートマネージャを使用するので、grubのインストール先をUbuntuのインストール先とします。</p>
<h3>Windowsブートマネージャの設定</h3>
<p>WindowsブートマネージャからWindowsとUbuntuを起動できるように設定します。<a href="http://www.os-museum.com/win7multboot/win7multboot.htm">こちら</a>を参考にさせていただきました。</p>
<p>まず、Ubuntuのブートセクタをファイルにします。Ubuntuで以下の作業を行います。</p>
<blockquote>
<pre>$ dd if=/dev/sda5 of=/home/ubuntu/ubuntu.img bs=512 count=1</pre>
</blockquote>
<p>ここで、<code>/dev/sda5</code>はgrubをインストールしたパーティションです。<br />
作成された<code>ubuntu.img</code>を、WindowsへコピーできるようにUSBドライブ等に移します。</p>
<p>次に、Windowsを起動し、上で作成した<code>ubuntu.img</code>を任意の場所(ここでは C:\ 直下)にコピーします。<br />
その後、コマンドプロンプトを管理者として実行し、以下の作業を行います。</p>
<blockquote>
<pre>&gt; bcdedit /create /d "Ubuntu 9.10" /application bootsector
※{ID}が表示されます
&gt; bcdedit /set {ID} device partition=C:
&gt; bcdedit /set {ID} path \ubuntu.img
&gt; bcdedit /displayorder {ID} /addlast</pre>
</blockquote>
<h3>psbドライバのインストール</h3>
<p>画面表示用のドライバとしてGMA500用のpsbドライバというものをインストールしておきます。これを利用することで描画がとてもスムーズになります。</p>
<p>詳細は<a href="https://wiki.ubuntu.com/HardwareSupportComponentsVideoCardsPoulsbo/">こちらのWiki</a>を参考に。手順は<a href="http://cassini.edu.waseda.ac.jp/diary/20100115.html">こちら</a>を参考にさせていただきました。</p>
<ol>
<li>PPAの追加、ドライバ、モジュールのインストール<br />
<blockquote>
<pre>$ sudo add-apt-repository ppa:gma500/ppa
$ sudo apt-get update
$ sudo apt-get install poulsbo-driver-2d poulsbo-driver-3d poulsbo-config psb-firmware psb-kernel-source</pre>
</blockquote>
</li>
<li><code>/etc/modprobe.d/blacklist.conf</code> の編集<br />
末尾に &#8220;blacklist i915&#8243; を追加</p>
<blockquote>
<pre>$ vi /etc/modprobe.d/blacklist.conf
...
blacklist i915</pre>
</blockquote>
</li>
<li>ramfsの更新。<br />
<blockquote>
<pre>$ sudo update-initramfs -u</pre>
</blockquote>
</li>
<li><code>/etc/X11/xorg.conf</code> の作成<br />
<blockquote>
<pre>$ vi /etc/X11/xorg.conf
Section "Device"
  Identifier      "GMA500"
  Option "AccelMethod" "EXA"
  Option "DRI" "on"
  Option "MigrationHeuristic" "greedy"
  Option "IgnoreACPI" "yes"
  Driver "psb"
EndSection

Section "DRI"
    Mode    0666
EndSection</pre>
</blockquote>
</li>
<li><code>/etc/default/grub</code> の編集<br />
<code>GRUB_CMDLINE_LINUX_DEFAULT</code> を変更</p>
<blockquote>
<pre>GRUB_CMDLINE_LINUX_DEFAULT="quiet splash mem=1920mb"</pre>
</blockquote>
</li>
<li>grubの更新<br />
<blockquote>
<pre>$ update-grub</pre>
</blockquote>
</li>
</ol>
<h3>サウンドの設定</h3>
<p>インストール後何故かサウンドが鳴らないので、多少ファイルを編修します。上と同じく<a href="http://cassini.edu.waseda.ac.jp/diary/20100115.html">こちら</a>を参考にさせていただきました。</p>
<p><code>/etc/modprobe.d/alsa-base.conf</code>を編集して最後に以下の２行を追加します。</p>
<blockquote>
<pre>$ vi /etc/modprobe.d/alsa-base.conf
...
alias snd-card-0 index=0
options snd-hda-intel model=basic</pre>
</blockquote>
<h3>サスペンド関連の調整</h3>
<p>試行錯誤中。</p>
<p>現在は<a href="http://westhoffswelt.de/blog/0041_sony_vaio_x_ubuntu_installation_experience.html">こちら</a>の<em>Suspend/Resume</em>と<em>WLAN after wakeup</em>を参考に設定して様子見。</p>
<p><span style="color: #993300;">＊2010/12/12追記</span></p>
<p><span style="color: #993300;">上記の設定と、<a href="https://wiki.ubuntu.com/HardwareSupportComponentsVideoCardsPoulsbo/">こちらのWiki</a>の<em>Tweaks</em>にある<em>Suspend by moving 99video</em>の設定を両方行ったところほぼ問題はなくなった感じ。</span></p>
<h3>mozcのビルド、インストール</h3>
<p><a href="http://code.google.com/p/mozc/wiki/LinuxBuildInstructions">こちら</a>の<em>Build and install debian package</em>の手順に従って処理。<br />
特に問題なく完了しました。</p>
<h3>Ubuntu Tweakのインストール</h3>
<p><a href="http://ubuntu-tweak.com/downloads/">オフィシャルページ</a>にある手順に従ってPPAを追加し、apt-getでインストールします。</p>
<blockquote>
<pre>$ sudo add-apt-repository ppa:tualatrix/ppa
$ sudo apt-get update
$ sudo apt-get install ubuntu-tweak</pre>
</blockquote>
<h3>Chromium、Dropboxのインストール</h3>
<p>Ubuntu TweakのSource CenterからUbuntu ChromiumやDropbox Official Sourceを有効にして、apt-getやSoftware Centerなどからインストール。楽ちん。</p>
<h3>Nevernoteのインストール</h3>
<p><a href="http://nevernote.sourceforge.net/">JavaベースのEvernoteクローン</a>。オフィシャルページからdebパッケージが入手できますが、Javaが必要なので事前にdefault-jreをインストールしておきます。</p>
<blockquote>
<pre>$ sudo apt-get install default-jre
$ sudo dpkg -i nevernote-xxx.deb</pre>
</blockquote>
<h3>git-core, GNOME Do, VLCのインストール</h3>
<p>あとは必要なアプリケーションをapt-getでインストール。実に楽ちん。</p>
<blockquote>
<pre>$ sudo apt-get install git-core
$ sudo apt-get install gnome-do
$ sudo apt-get install vlc
$ ...</pre>
</blockquote>
<h3>Emacsのインストール</h3>
<p>Emacsもaptからインストール。フォントのアンチエイリアスを有効にしたいので今回はEmacs23を選択。</p>
<blockquote>
<pre>$ sudo apt-get install emacs23</pre>
</blockquote>
<p>その後便利ツールとして<a href="http://www.emacswiki.org/emacs/TwitteringMode">Twittering Mode</a>と<a href="http://www.emacswiki.org/emacs/WebloggerMode">Weblogger Mode</a>をインストール。</p>
<h3>&#8230;</h3>
]]></content:encoded>
			<wfw:commentRss>http://naoki.sato.name/lab/archives/230/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://naoki.sato.name/lab/archives/230" />
	</item>
		<item>
		<title>ImageMagickのコマンドメモ</title>
		<link>http://naoki.sato.name/lab/archives/89</link>
		<comments>http://naoki.sato.name/lab/archives/89#comments</comments>
		<pubDate>Sun, 24 Jan 2010 14:22:31 +0000</pubDate>
		<dc:creator>naoki</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[imagemagick]]></category>

		<guid isPermaLink="false">http://naoki.sato.name/lab/?p=89</guid>
		<description><![CDATA[いつも忘れるのでメモ。主にScanSnapで取り込んだ画像を手直しする時などに役立ちそうなもの。

convert: 画像を変換する
identify: 画像の情報を得る
display: 画像を表示する (MacOSX [...]]]></description>
			<content:encoded><![CDATA[<p>いつも忘れるのでメモ。主にScanSnapで取り込んだ画像を手直しする時などに役立ちそうなもの。</p>
<ul>
<li>convert: 画像を変換する</li>
<li>identify: 画像の情報を得る</li>
<li>display: 画像を表示する (MacOSXの場合はX11が立ち上がる)</li>
</ul>
<p>やや複雑なコマンド。</p>
<pre>convert -geometry 500x500! source.jpg result.jpg</pre>
<p>source.jpgのサイズを500&#215;500に強制的に変換に変換したresult.jpgを作成する。「!」がないときはアスペクト比が保持される。</p>
<pre>convert -density 72x72 -unit PixelsPerInch source.jpg result.jpg</pre>
<p>source.jpgの解像度を72dpiに変換したresult.jpgを作成する。</p>
<pre>convert *.jpg -adjoin hoge.pdf</pre>
<p>ディレクトリ内のjpgファイルをまとめて1つのhoge.pdfを作成する。</p>
<pre>identiify -format "%f: %wx%h\n" source.jpg</pre>
<p>source.jpgの情報を&#8221;ファイル名: 幅x高さ&#8221;の型式で表示する。</p>
]]></content:encoded>
			<wfw:commentRss>http://naoki.sato.name/lab/archives/89/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://naoki.sato.name/lab/archives/89" />
	</item>
		<item>
		<title>Gnomeの設定を変更するgconf-editor</title>
		<link>http://naoki.sato.name/lab/archives/22</link>
		<comments>http://naoki.sato.name/lab/archives/22#comments</comments>
		<pubDate>Fri, 11 Dec 2009 13:31:24 +0000</pubDate>
		<dc:creator>naoki</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://naoki.sato.name/lab/archives/22</guid>
		<description><![CDATA[Gnomeの設定、例えばパネルのサイズ変更や自動的に隠す設定をするには、gconf-editor を使う。
gconf-editor
表示されたウィンドウから、Windowsのレジストリエディタの様に、設定を変更する事が [...]]]></description>
			<content:encoded><![CDATA[<p>Gnomeの設定、例えばパネルのサイズ変更や自動的に隠す設定をするには、gconf-editor を使う。</p>
<pre>gconf-editor</pre>
<p>表示されたウィンドウから、Windowsのレジストリエディタの様に、設定を変更する事が可能。<br />例えば、パネルの場合は</p>
<pre>/apps/panel/toplevels</pre>
<p>の各設定項目を修正すれば良い。</p>
]]></content:encoded>
			<wfw:commentRss>http://naoki.sato.name/lab/archives/22/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://naoki.sato.name/lab/archives/22" />
	</item>
		<item>
		<title>Bilbo</title>
		<link>http://naoki.sato.name/lab/archives/5</link>
		<comments>http://naoki.sato.name/lab/archives/5#comments</comments>
		<pubDate>Mon, 30 Nov 2009 14:11:05 +0000</pubDate>
		<dc:creator>naoki</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://naoki.sato.name/lab/archives/5</guid>
		<description><![CDATA[Ubuntu上のBlog Editor, Bilboからテスト投稿。
Bilboのインストール自体は
sudo apt-get install bilbo

で可能。
ただし、QT(KDE)環境でSCIMで日本語を入力す [...]]]></description>
			<content:encoded><![CDATA[<p>Ubuntu上のBlog Editor, Bilboからテスト投稿。</p>
<p>Bilboのインストール自体は</p>
<blockquote><p>sudo apt-get install bilbo</p>
</blockquote>
<p>で可能。</p>
<p>ただし、QT(KDE)環境でSCIMで日本語を入力するために scim-bridge-client-qt4 をインストールしておく。</p>
<blockquote><p>sudo apt-get install scim-bridge-client-qt4</p>
</blockquote>
<p>その上で、Bilboのテキストフィールドを右クリックしてIMとして scim-bridge を選択するか、もしくは事前にterminal等でscim-bridgeを起動した後にBilboを立ち上げれば、日本語を入力できる。</p>
<p>エディタの機能自体は、基本的なところは揃っていて特に悪くは無い。</p>
]]></content:encoded>
			<wfw:commentRss>http://naoki.sato.name/lab/archives/5/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://naoki.sato.name/lab/archives/5" />
	</item>
	</channel>
</rss>

