<?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>おれ最前線ねっと &#187; Ubuntu</title>
	<atom:link href="http://ore.saizensen.net/archives/category/unix/ubuntu/feed" rel="self" type="application/rss+xml" />
	<link>http://ore.saizensen.net</link>
	<description>イェ〜〜ィ。見てる〜〜〜？？</description>
	<lastBuildDate>Tue, 12 Jul 2011 06:31:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ore.saizensen.net/archives/category/unix/ubuntu/feed" />
		<item>
		<title>[PostgreSQL]PostgreSQLチューニング方法まとめサイト[Ubuntu]</title>
		<link>http://ore.saizensen.net/archives/228</link>
		<comments>http://ore.saizensen.net/archives/228#comments</comments>
		<pubDate>Wed, 20 May 2009 05:08:47 +0000</pubDate>
		<dc:creator>bubbkis</dc:creator>
				<category><![CDATA[DB]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://ore.saizensen.net/?p=228</guid>
		<description><![CDATA[昨日、Ubuntu9.04のPostgreSQL8.3をチューニングしてみました。 すでにチューニング方法を詳細に載せていてくれるサイトがいくつか有るので、今回はそのサイトの紹介です。 Y-110&#8242;s Wik [...]]]></description>
			<content:encoded><![CDATA[				<p>昨日、<strong>Ubuntu9.04</strong>の<strong>PostgreSQL8.3</strong>をチューニングしてみました。<br />
				すでにチューニング方法を詳細に載せていてくれるサイトがいくつか有るので、今回はそのサイトの紹介です。</p>
				<ul>
				<li><a href="http://php.y-110.net/wiki/index.php?PostgreSQL%A1%A7%A5%C1%A5%E5%A1%BC%A5%CB%A5%F3%A5%B0%B4%AA%BD%EA">Y-110&#8242;s Wiki &#8211; PostgreSQL：チューニング勘所</a></li>
				<li><a href="http://www.tsujita.jp/blojsom/blog/default/Linux/2007/07/23/PostgreSQL-%E3%83%81%E3%83%A5%E3%83%BC%E3%83%8B%E3%83%B3%E3%82%B0%E3%81%BE%E3%81%A8%E3%82%81.html">徒然なるままにBlog &#8211; PostgreSQL パフォーマンスチューニングまとめ</a></li>
				<li><a href="http://www.asahi-net.or.jp/~aa4t-nngk/pgsql5.html">Stray Penguin &#8211; Linux Memo(PostgreSQL-5)</a></li>
				<li><a href="http://postgresql.g.hatena.ne.jp/umitanuki/20090224/1235485047">象と戯れ &#8211; 空気を読まずにPostgreSQLのを高速化する10のポイント</a></li>
				<li><a href="http://www.nonsensecorner.com/wp25/?p=3888">独り言v6 &#8211; PostgreSQLを本当に高速化したい人のための10のポイント</a></li>
				<li><a href="http://d.hatena.ne.jp/nekoruri/20090226/">めもおきば &#8211; PostgreSQL小ネタ</a></li>
				<li><a href="http://neta.ywcafe.net/000960.html">Web屋のネタ帳 &#8211; PostgreSQLを高速化する16のポイント</a></li>
				<li><a href="http://prepro.wordpress.com/2009/01/08/postgresql%E3%81%AEshmmax%E3%81%AE%E8%A8%88%E7%AE%97%E5%BC%8F%E3%81%AE%E6%A4%9C%E8%A8%BC/">ひよっこ &#8211; PostgreSQLのSHMMAXの計算式の検証</a></li>
				</ul>
				<p>ここまで細かく載せていてくれると、私なんかが言えることはございません。<br />
				まま使わせてもらってチューニングしました。</p>
				<p>あ、一つだけ。<br />
				ubuntuで/proc/sys/kernel/shmmaxへ値を上書きしても再起動時に元の値へ戻ってしまっていました。<br />
				ということで↓のように。</p>
				<pre>
# sudo vi /etc/sysctl.conf
##ファイル末尾へ
kernel.shmmax = 設定値
</pre>
				<p>ファイル保存後、</p>
				<pre>
# sysctl -p
</pre>
				<p>としましょう。</p>
]]></content:encoded>
			<wfw:commentRss>http://ore.saizensen.net/archives/228/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ore.saizensen.net/archives/228" />
	</item>
		<item>
		<title>[Ubuntu]Ubuntu8.10へObjective-C環境をインストールしてみた。[Objective-C]</title>
		<link>http://ore.saizensen.net/archives/200</link>
		<comments>http://ore.saizensen.net/archives/200#comments</comments>
		<pubDate>Fri, 06 Feb 2009 09:15:56 +0000</pubDate>
		<dc:creator>bubbkis</dc:creator>
				<category><![CDATA[Lang]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://ore.saizensen.net/?p=200</guid>
		<description><![CDATA[1週間くらい前からObjective-Cを触り始めて見ました。Cすら一度も触ったことないから分からんことだらけですけど・・・ で、前は初代Macbookを持っていたんですけどThinkpadX61へ乗り換えと同時に手放し [...]]]></description>
			<content:encoded><![CDATA[				<p>1週間くらい前から<strong>Objective-C</strong>を触り始めて見ました。Cすら一度も触ったことないから分からんことだらけですけど・・・<br />
				で、前は初代Macbookを持っていたんですけどThinkpadX61へ乗り換えと同時に手放してしまったので<br />
				X61上の<strong>Ubuntu8.10でObjective-C</strong>を学習しときます。<br />
				学習用に「<strong>詳解Objective-C2.0</strong>」という本を用意しました。この本を終えたら新しくMacbookを購入し直そうと思います。<br />
				iPhoneだって持ってないんですけどね・・・・</p>
				<div style="text-align: center;">
				<div class="imageframe centered" style="width: 200px;"><a title="詳解Objective-C2.0" rel="lightbox[pics200]" href="http://ore.saizensen.net/wp-content/uploads/2009/02/51kl8v91cel_ss400_.jpg"><img class="attachment wp-att-203" src="http://ore.saizensen.net/wp-content/uploads/2009/02/51kl8v91cel_ss400_.thumbnail.jpg" alt="" width="200" height="200" /></a></p>
				<div class="imagecaption"><a href="http://www.amazon.co.jp/gp/product/4797346809/ref=sib_rdr_dp">詳解Objective-C2.0</a></div>
				</div>
				</div>
				<p>とりあえずいつも通り、<strong>Ubuntu8.10へのObjective-C環境のインストール方法</strong>をまとめておきます。</p>
				<ol>
				<li>いろいろとインストール。こんだけ入れると取り合えず<strong>Objective-C</strong>の環境は整います。
				<pre>sudo apt-get install build-essential gobjc gobjc-multilib libgnustep-base-dev gnustep gnustep-devel gnustep-dl2 doxygen</pre>
</li>
<li>↑だけインストールするだけだとNSObjectが使えないので↓も行う。（Objective-C2.0本を進めていると、どうしてもNSObjectが必要だったので・・・つかNSObjectが使えないとretain、releaseとかが無い！）<br />
・Foundationフレームワークを使えるようにパスが通るディレクトリへリンクを張る為に↓を作成。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
&nbsp;
<span style="color: #007800;">frompath</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>GNUstep
<span style="color: #007800;">topath</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>gcc<span style="color: #000000; font-weight: bold;">/</span>i486-linux-gnu<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">4.3</span><span style="color: #000000; font-weight: bold;">/</span>include
&nbsp;
<span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #ff0000;">&quot;AppKit&quot;</span> <span style="color: #ff0000;">&quot;Cocoa&quot;</span> <span style="color: #ff0000;">&quot;Cynthiune&quot;</span> <span style="color: #ff0000;">&quot;DBKit&quot;</span> <span style="color: #ff0000;">&quot;EOAccess&quot;</span> <span style="color: #ff0000;">&quot;EOControl&quot;</span> <span style="color: #ff0000;">&quot;EOInterface&quot;</span> <span style="color: #ff0000;">&quot;EOModeler&quot;</span> <span style="color: #ff0000;">&quot;FSNode&quot;</span> <span style="color: #ff0000;">&quot;Foundation&quot;</span> <span style="color: #ff0000;">&quot;Frameworks&quot;</span> <span style="color: #ff0000;">&quot;GNUMail&quot;</span> <span style="color: #ff0000;">&quot;GNUstepBase&quot;</span> <span style="color: #ff0000;">&quot;GNUstepGUI&quot;</span> <span style="color: #ff0000;">&quot;GormCore&quot;</span> <span style="color: #ff0000;">&quot;GormObjCHeaderParser&quot;</span> <span style="color: #ff0000;">&quot;GormPrefs&quot;</span> <span style="color: #ff0000;">&quot;HighlighterKit&quot;</span> <span style="color: #ff0000;">&quot;Inspector&quot;</span> <span style="color: #ff0000;">&quot;InterfaceBuilder&quot;</span> <span style="color: #ff0000;">&quot;Operation&quot;</span> <span style="color: #ff0000;">&quot;PostgreSQLEOAdaptor&quot;</span> <span style="color: #ff0000;">&quot;ProjectCenter&quot;</span> <span style="color: #ff0000;">&quot;Renaissance&quot;</span> <span style="color: #ff0000;">&quot;TalkSoupBundles&quot;</span> <span style="color: #ff0000;">&quot;WizardKit&quot;</span> <span style="color: #ff0000;">&quot;gnustep&quot;</span>
<span style="color: #000000; font-weight: bold;">do</span>
	<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #007800;">$frompath</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$i</span> <span style="color: #007800;">$topath</span>
<span style="color: #000000; font-weight: bold;">done</span></pre></div></div>
				
				<p>リンク張っているのは/usr/include/GNUstep以下にある全てをリンクしてるだけです。勉強始めたばっかなんで各ファイルにどんな機能、役割があんのかは全くもって不明ですwww<br />
				で、作成したスクリプトファイルを実行。</p>
				<pre>sudo sh /保存したスクリプトのパス/link_libobjc.sh</pre>
</li>
</ol>
<p>以上で<strong>Ubuntu8.10へのObjective-C環境構築</strong>はおわりです。<br />
これで「<strong>詳解Objective-C2.0</strong>」に載ってるソースそのままで動くと思います。（どっかで躓いたらまた記事修正しときます。）<br />
最後に、Ubuntu8.10上でソースをコンパイルする時なんですが</p>
<pre>gcc ソースファイル名 -o コンパイル後ファイル名 -lobjc -lgnustep-base</pre>
				<p>としてください。<br />
				あと、分からんというか面倒くさいというか、mainソースファイルから自前で作成したヘッダファイル(.hファイル)を読み込んでコンパイルするとき</p>
				<pre>gcc ソースファイル名 -o コンパイル後ファイル名 -lobc -lgnustep-base -include ヘッダファイル名1 -include ヘッダファイル名2</pre>
<p>みたいにしないとコンパイル出来んのですが、複数のヘッダファイルを読み込むとき、「-include ヘッダファイル名」を何度も書くのは面倒くさいですな・・・なんか良い方法あるんですかねぇ？</p>
<p><strong>2009/02/17 追記</strong><br />
Tomuteさんコメントありがとうございます。助かりました。<br />
<strong>詳解Objective-C2.0</strong>を読み進めていると、Tomuteさんのブログにも書いてるようにコンパイル時に</p>
<pre> error: cannot find interface declaration for ‘NXConstantString</pre>
				<p>とエラー返してくるので、コンパイルオプションに&#8221;-fconstant-string-class=NSConstantString&#8221;を追加しないとダメみたいです。またTomuteさんに教えてもらった-Iオプションも追加。</p>
				<pre>gcc ソースファイル名1 ソースファイル名2 ソースファイル名3 -o コンパイル後ファイル名 -lobjc -lgnustep-base -I/指定ディレクトリ -fconstant-string-class=NSConstantString</pre>
<p>こんな風にするみたいです。</p>
<p>< 参考にしたサイト： <a href="http://d.hatena.ne.jp/tomute/20090112/1231809116">Tomute’s Notes [Linux] Ubuntu LinuxでObjective-C></p>
]]></content:encoded>
			<wfw:commentRss>http://ore.saizensen.net/archives/200/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ore.saizensen.net/archives/200" />
	</item>
		<item>
		<title>[Ubuntu]Ubuntu8.10でRailsをアップデートしたよ。[Rails]</title>
		<link>http://ore.saizensen.net/archives/187</link>
		<comments>http://ore.saizensen.net/archives/187#comments</comments>
		<pubDate>Fri, 12 Dec 2008 02:51:05 +0000</pubDate>
		<dc:creator>bubbkis</dc:creator>
				<category><![CDATA[Lang]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[インストールメモ]]></category>

		<guid isPermaLink="false">http://ore.saizensen.net/?p=187</guid>
		<description><![CDATA[Rails2.1.0をインストールしていたけど、新しいRails2.2.2をインストールするよ。 rubygemsのバージョンをアップデートする。 % sudo gem install rubygems-update % [...]]]></description>
			<content:encoded><![CDATA[				<p><strong>Rails2.1.0</strong>をインストールしていたけど、新しい<strong>Rails2.2.2</strong>をインストールするよ。</p>
				<ol>
				<li><strong>rubygems</strong>のバージョンをアップデートする。
				<pre>
% sudo gem install rubygems-update
% sudo gem update rubygems-update
</pre>
				</li>
				<li><strong>Rails</strong>をインストールする。
				<pre>% sudo gem update rails</pre>
<p>MySQLのドライバーがねーよ！とか言われた人はMysqlのドライバーもインストールする。↓</p>
<pre>
%sudo apt-get install libmysqlclient15-dev
%sudo gem install mysql
</pre>
				<p>他にもインストールしたいのあれば参考に→<a href="http://ore.saizensen.net/archives/148">[Ubuntu]Ubuntu8.10へRailsをインストールしたよ。[Rails]</a>
				</li>
				<li>既存のアプリケーションが利用している<strong>Rails</strong>のバージョンを上げる。
				<pre>
% cd /var/www/rails/app  ## Railsアプリケーションまで移動する。移動先は自分の環境に合わせて
% vi config/environment.rb
RAILS_GEM_VERSION = '2.1.0'
↓ ## 使いたいRailsのバージョンへ修正。
RAILS_GEM_VERSION = '2.2.2'
% rake rails:update
</pre>
				</li>
				</ol>
				<p>以上で<strong>Rails</strong>のバージョンが上がったよと。</p>
]]></content:encoded>
			<wfw:commentRss>http://ore.saizensen.net/archives/187/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ore.saizensen.net/archives/187" />
	</item>
		<item>
		<title>[Ubuntu]ThinkpadX61へUbuntu8.10をインストールしたら日本語入力出来なかった。[ThinkpadX61]</title>
		<link>http://ore.saizensen.net/archives/179</link>
		<comments>http://ore.saizensen.net/archives/179#comments</comments>
		<pubDate>Thu, 04 Dec 2008 12:41:29 +0000</pubDate>
		<dc:creator>bubbkis</dc:creator>
				<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[SCIM]]></category>
		<category><![CDATA[ThinkpadX61]]></category>
		<category><![CDATA[インストールメモ]]></category>

		<guid isPermaLink="false">http://ore.saizensen.net/?p=179</guid>
		<description><![CDATA[昨日、重い腰を起こして家のThinkpadX61へUbuntu8.10をインストールしました。 [Ubuntu]Ubuntu8.10をインストールしてみたよ。で、インストール設定メモ。[Linux]を、そのままに色々とイ [...]]]></description>
			<content:encoded><![CDATA[				<p>昨日、重い腰を起こして家の<strong>ThinkpadX61</strong>へ<strong>Ubuntu8.10</strong>をインストールしました。<br />
				<a href="http://ore.saizensen.net/archives/115">[Ubuntu]Ubuntu8.10をインストールしてみたよ。で、インストール設定メモ。[Linux]</a>を、そのままに色々とインストールし初期設定を終えました。</p>
				<p>で、テキストエディタで<strong>日本語入力</strong>をしようと[Ctrl]+[Space]を押して<strong>scim</strong>を起動しようとしても起動しない。連打しても起動しない。<br />
				キーボード設定、SCIM入力メソッド設定と無限ループのように設定しなおし続けても・・・沈黙。</p>
				<p>ということで、Google先生の出番です。見つかったのは以下のページ↓。<br />
				<a href="http://http://www.ashineko.com/index.php?option=com_content&#038;view=article&#038;catid=43%3Agadgets&#038;id=214%3Aubuntu-804-hardy-heron&#038;Itemid=57&#038;lang=ja">Ubuntu 8.04 Hardy Heronで日本語入力</a><br />
				ここに載ってることをそのままやったら<strong>日本語入力</strong>出来るようになりました。<br />
				一応メモっとく。</p>
				<ul>
				<li>Synaptic Package Managerを起動</li>
				<li>&#8220;<strong>SCIM</strong>&#8220;でパッケージを検索
				<pre>
scim-anthy
scim-bridge-agent
scim-bridge-agent-gtk
scim-bridge-agent-qt
scim-bridge-agent-qt4
scim-gtk2-immodule
scim-qtimm
</pre>
				<p>をインストールするパッケージとしてマーク。インストール済みのは再インストール指定。</li>
				<li>&#8220;<strong>ANTHY</strong>&#8220;でパッケージを検索
				<pre>kasumi</pre>
<p>をインストールするパッケージとしてマーク。インストール済みのは再インストール指定。</li>
<li>インストール実行。</li>
<li>次に、<strong>Ubuntuの起動時にSCIMを標準の言語入力インターフェイスとして定義するため</strong>にファイル作成 or 編集
<pre># vi gedit /etc/X11/Xsession.d/74custom-scim_startup</pre>
				<p>74custom-scim_startupが既に存在する場合は以下の行を追加、ない場合は新規に作成します。</p>
				<pre>
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE="scim"
export XIM_PROGRAM="scim -d"
export QT_IM_MODULE="scim"
</pre>
				</li>
				<li>OS再起動。</li>
				</ul>
]]></content:encoded>
			<wfw:commentRss>http://ore.saizensen.net/archives/179/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ore.saizensen.net/archives/179" />
	</item>
		<item>
		<title>[Ubuntu]Ubuntu8.10でPostGISを使えるようにする。[PostGIS]</title>
		<link>http://ore.saizensen.net/archives/160</link>
		<comments>http://ore.saizensen.net/archives/160#comments</comments>
		<pubDate>Wed, 26 Nov 2008 09:29:52 +0000</pubDate>
		<dc:creator>bubbkis</dc:creator>
				<category><![CDATA[DB]]></category>
		<category><![CDATA[PostGIS]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[インストールメモ]]></category>

		<guid isPermaLink="false">http://ore.saizensen.net/?p=160</guid>
		<description><![CDATA[PostgreSQLとかPostGISをインストールしてない人はインストールする。 # apt-get install postgresql postgresql-8.3-postgis Postgresの設定は[Ubu [...]]]></description>
			<content:encoded><![CDATA[				<ol>
				<li>PostgreSQLとかPostGISをインストールしてない人はインストールする。
				<pre># apt-get install postgresql postgresql-8.3-postgis</pre>
<p>Postgresの設定は<a href="http://ore.saizensen.net/archives/122">[Ubuntu]Ubuntu8.10へApache、PHP、MySQL、PostgreSQLをインストールする。[LAMP]</a>でも参照して下さい。</li>
<li>PostGIS用に初期化済テンプレートDBを構築する。
<pre>
$ su - postgres
$ createdb templategis
$ createlang plpgsql templategis
$ psql -d templategis -f /usr/share/postgresql-8.3-postgis/lwpostgis.sql
$ psql -d templategis -f /usr/share/postgresql-8.3-postgis/spatial_ref_sys.sql
</pre>
				</li>
				<li>PostGIS用テンプレートDBを利用して、作成したいDBを作る。
				<pre>createdb -T templategis newdb</pre>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://ore.saizensen.net/archives/160/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ore.saizensen.net/archives/160" />
	</item>
		<item>
		<title>[Ubuntu]Ubuntu8.10へRailsをインストールしたよ。[Rails]</title>
		<link>http://ore.saizensen.net/archives/148</link>
		<comments>http://ore.saizensen.net/archives/148#comments</comments>
		<pubDate>Fri, 21 Nov 2008 08:18:09 +0000</pubDate>
		<dc:creator>bubbkis</dc:creator>
				<category><![CDATA[Lang]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[インストールメモ]]></category>

		<guid isPermaLink="false">http://ore.saizensen.net/?p=148</guid>
		<description><![CDATA[rubyとかrailsとかImagemagickとかごった煮インストール。 % sudo apt-get install ruby ruby-dev irb rubygems libruby-extras libgit- [...]]]></description>
			<content:encoded><![CDATA[				<ol>
				<li>rubyとかrailsとかImagemagickとかごった煮インストール。
				<pre>
% sudo apt-get install ruby ruby-dev irb rubygems libruby-extras libgit-ruby librmagick-ruby vim-ruby vim-rails imagemagick libmagick++9-dev sqlite libsqlite0-dev libsqlite3-dev sqlitebrowser libmysqlclient15-dev  postgresql-server-dev-8.3
% sudo apt-get install lighttpd libfcgi-dev
% sudo gem install rails
% sudo gem install rmagick
% sudo gem install sqlite3-ruby
% sudo gem install mysql
% sudo gem install postgres
% sudo gem install postgres-pr
% sudo gem install vim-ruby
% sudo gem install mongrel
% sudo gem install mongrel_cluster
% sudo gem install fcgi
% sudo gem install net-ssh
% sudo gem install net-sftp
% sudo gem install Selenium
% sudo gem install jpmobile
% sudo gem install ruby-debug
% sudo gem install refe
% sudo gem install xml-simple
</pre>
				</li>
				<li>次に<a href="http://i.loveruby.net/ja/prog/refe.html">Refe</a>をインストールする。
				<ul>
				<li>インストール。
				<pre>
% wget http://i.loveruby.net/archive/refe/refe-0.8.0-withdocsrc.tar.gz
% tar zxvf refe-0.8.0-withdocsrc.tar.gz
% cd refe-0.8.0
% ruby setup.rb config
% ruby setup.rb setup
% sudo ruby setup.rb install
</pre>
				</li>
				<li>環境変数を設定する。
				<pre>
$ vi .zshrc
# Refe
REFE_DATA_DIR=/usr/share/refe
export REFE_DATA_DIR
</pre>
				</li>
				</ul>
				</li>
				</ol>
				<p><strong>※</strong>　% sudo gem install xml-simple をインストールのは、Ubuntu8.10で ruby script/generate　とかすると以下のwarningを吐く為。</p>
				<pre>
/usr/lib/ruby/1.8/xmlsimple.rb:275: warning: already initialized constant KNOWN_OPTIONS
/usr/lib/ruby/1.8/xmlsimple.rb:280: warning: already initialized constant DEF_KEY_ATTRIBUTES
/usr/lib/ruby/1.8/xmlsimple.rb:281: warning: already initialized constant DEF_ROOT_NAME
/usr/lib/ruby/1.8/xmlsimple.rb:282: warning: already initialized constant DEF_CONTENT_KEY
/usr/lib/ruby/1.8/xmlsimple.rb:283: warning: already initialized constant DEF_XML_DECLARATION
/usr/lib/ruby/1.8/xmlsimple.rb:284: warning: already initialized constant DEF_ANONYMOUS_TAG
/usr/lib/ruby/1.8/xmlsimple.rb:285: warning: already initialized constant DEF_FORCE_ARRAY
/usr/lib/ruby/1.8/xmlsimple.rb:286: warning: already initialized constant DEF_INDENTATION
/usr/lib/ruby/1.8/xmlsimple.rb:287: warning: already initialized constant DEF_KEY_TO_SYMBOL
</pre>
]]></content:encoded>
			<wfw:commentRss>http://ore.saizensen.net/archives/148/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ore.saizensen.net/archives/148" />
	</item>
		<item>
		<title>[Ubuntu]Ubuntu8.10へDropboxをインストールしたよ。真似したんですけどね。[Dropbox]</title>
		<link>http://ore.saizensen.net/archives/135</link>
		<comments>http://ore.saizensen.net/archives/135#comments</comments>
		<pubDate>Thu, 13 Nov 2008 09:21:03 +0000</pubDate>
		<dc:creator>bubbkis</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[インストールメモ]]></category>

		<guid isPermaLink="false">http://ore.saizensen.net/?p=135</guid>
		<description><![CDATA[よくDropboxって文字をweb上では見てたんですけど、今まで使ってなかったんですよね。 おれ最前線ねっとにssh-fuseで繋げて必要なファイルをバックアップしたりリストアしたりしてました。 とまぁそれで何も不自由し [...]]]></description>
			<content:encoded><![CDATA[				<p>よく<a href="https://www.getdropbox.com/">Dropbox</a>って文字をweb上では見てたんですけど、今まで使ってなかったんですよね。<br />
				<a href="http://ore.saizensen.net">おれ最前線ねっと</a>にssh-fuseで繋げて必要なファイルをバックアップしたりリストアしたりしてました。<br />
				とまぁそれで何も不自由してなかったんですけど、なんか他の人が快適すぎてウマーって言ってるのを見るとちょっと真似してみるかと。</p>
				<p>と釣られましたんで以下メモ。インストールはすげー簡単。<strong>ubuntu</strong>ならさらに簡単。<strong>Dropbox</strong>のサイト上に載ってるのそのままやればOK。</p>
				<ol>
				<li>/etc/apt/sources.listへDropboxのリポジトリを追加する。
				<pre>
deb http://linux.getdropbox.com/ubuntu intrepid main
deb-src http://linux.getdropbox.com/ubuntu intrepid main
</pre>
				</li>
				<li>インストールする。
				<pre>
 $ sudo apt-get update
 $ sudo apt-get install nautilus-dropbox
 $ killall nautilus
</pre>
				</li>
				</ol>
				<p>インストールはこんだけ。<br />
				あとは<a href="http://d.hatena.ne.jp/a2c/20081028/1225177946">DropBoxを使って、まっさらな環境から5分で継続的で快適な環境を作る方法</a>を真似する。つーか、これ見て「あ、Dropbox入れよう。」と思いました。<br />
				そのまま載ってるシェルスクリプトをコピペして実行してみたら動かなかったのでちょっと変えた。</p>
				<ol>
				<li>Dropboxディレクトリの中に環境構築用のドットファイルディレクトリを作る。</li>
				<li>作ったディレクトリに.vimrcとか.vimとか.zshrcとか↓のシェルスクリプトとかをぶち込む。</li>
				<li>アップロードしたシェルスクリプトに実行権限与えて実行。</li>
				<li>終わり。</li>
				</ol>
				
				<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #007800;">path</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">pwd</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #ff0000;">&quot;.vim&quot;</span> <span style="color: #ff0000;">&quot;.vimrc&quot;</span> <span style="color: #ff0000;">&quot;.zshrc&quot;</span> <span style="color: #ff0000;">&quot;.screenrc&quot;</span> <span style="color: #ff0000;">&quot;.vimperatorrc&quot;</span> <span style="color: #ff0000;">&quot;.vimperator&quot;</span> <span style="color: #ff0000;">&quot;.mozilla&quot;</span> <span style="color: #ff0000;">&quot;.inputrc&quot;</span> <span style="color: #ff0000;">&quot;.Xmodmap&quot;</span>
<span style="color: #000000; font-weight: bold;">do</span>
 <span style="color: #c20cb9; font-weight: bold;">mv</span> ~<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$i</span> ~<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$i</span>.org
 <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #007800;">$path</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$i</span> ~<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$i</span>
<span style="color: #000000; font-weight: bold;">done</span></pre></div></div>
]]></content:encoded>
			<wfw:commentRss>http://ore.saizensen.net/archives/135/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ore.saizensen.net/archives/135" />
	</item>
		<item>
		<title>[Ubuntu]Ubuntu8.10へApache、PHP、MySQL、PostgreSQLをインストールする。[LAMP]</title>
		<link>http://ore.saizensen.net/archives/122</link>
		<comments>http://ore.saizensen.net/archives/122#comments</comments>
		<pubDate>Wed, 12 Nov 2008 03:26:06 +0000</pubDate>
		<dc:creator>bubbkis</dc:creator>
				<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[インストールメモ]]></category>

		<guid isPermaLink="false">http://ore.saizensen.net/?p=122</guid>
		<description><![CDATA[[Ubuntu]Ubuntu8.10をインストールしてみたよ。で、インストール設定メモ。[Linux] → [Ubuntu]Ubuntu8.10へVirtualboxをインストール。[Virtualbox]とまだ環境作り [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://ore.saizensen.net/archives/115">[Ubuntu]Ubuntu8.10をインストールしてみたよ。で、インストール設定メモ。[Linux]</a> → <a href="http://ore.saizensen.net/archives/119">[Ubuntu]Ubuntu8.10へVirtualboxをインストール。[Virtualbox]</a>とまだ環境作りは続いとります。そろそろメンドイなぁと。<br />
				ということで、<strong>Ubuntu8.10</strong>へ<strong>Apache</strong>、<strong>PHP</strong>、<strong>MySQL</strong>、<strong>PostgreSQL</strong>をインストールしてローカルLAMP環境を作ります。</p>
				<ol>
				<li><strong>Apache</strong>、<strong>PHP</strong>、<strong>MySQL</strong>、<strong>PostgreSQL</strong>をインストール。
				<pre># apt-get install php5 php5-mcrypt php5-imagick php5-xcache php5-pgsql php5-cli php5-sqlite php5-mysql php-pear php5-gd php5-cgi php5-curl php5-geoip apache2 mysql-client-5.0 mysql-server mysql-client mysql-admin postgresql postgresql-8.3-postgis pgadmin3</pre>
</li>
<li>PHP設定。
<pre>
# vi /etc/php5/apache2/php.ini
post_max_size = 8M
↓
post_max_size = 64M ##変更
magic_quotes_gpc = On
↓
magic_quotes_gpc = Off ##変更
upload_max_filesize = 8M
↓
upload_max_filesize = 64M ##変更
</pre>
				</li>
				<li>Apache設定。
				<pre>
# mkdir /var/www/html
# chown -R hoge.hoge /var/www ##hogeは適当な一般ユーザーへ
# vi /etc/apache2/httpd.conf
ServerName localhost:80 ## 追加
# vi /etc/apache2/site-available/default
</pre>
				
				<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">&lt;<span style="color: #000000; font-weight:bold;">virtualhost</span> *:<span style="color: #ff0000;">80</span>&gt;
        <span style="color: #00007f;">ServerAdmin</span> webmaster@localhost
        <span style="color: #00007f;">ServerName</span> localhost
&nbsp;
        <span style="color: #00007f;">DocumentRoot</span> /var/www/html
        &lt;<span style="color: #000000; font-weight:bold;">directory</span> /&gt;
                <span style="color: #00007f;">Options</span> <span style="color: #0000ff;">FollowSymLinks</span>
                <span style="color: #00007f;">AllowOverride</span> <span style="color: #0000ff;">None</span>
&nbsp;
        &lt;<span style="color: #000000; font-weight:bold;">directory</span> /var/www/html&gt;
                <span style="color: #00007f;">Options</span> <span style="color: #0000ff;">Indexes</span> <span style="color: #0000ff;">Includes</span> ExecCGI <span style="color: #0000ff;">FollowSymLinks</span> MultiViews
                <span style="color: #00007f;">AllowOverride</span> <span style="color: #00007f;">All</span>
                <span style="color: #00007f;">Order</span> <span style="color: #00007f;">allow</span>,<span style="color: #00007f;">deny</span>
                <span style="color: #00007f;">allow</span> <span style="color: #00007f;">from</span> <span style="color: #00007f;">all</span>
        &lt;/<span style="color: #000000; font-weight:bold;">directory</span>&gt;
&nbsp;
        <span style="color: #00007f;">ScriptAlias</span> /cgi-bin/ /usr/lib/cgi-bin/
        &lt;<span style="color: #000000; font-weight:bold;">directory</span> <span style="color: #7f007f;">&quot;/usr/lib/cgi-bin&quot;</span>&gt;
                <span style="color: #00007f;">AllowOverride</span> <span style="color: #0000ff;">None</span>
                <span style="color: #00007f;">Options</span> +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                <span style="color: #00007f;">Order</span> <span style="color: #00007f;">allow</span>,<span style="color: #00007f;">deny</span>
                <span style="color: #00007f;">Allow</span> <span style="color: #00007f;">from</span> <span style="color: #00007f;">all</span>
        &lt;/<span style="color: #000000; font-weight:bold;">directory</span>&gt;
&nbsp;
        <span style="color: #00007f;">ErrorLog</span> /var/log/apache2/error.log
&nbsp;
        <span style="color: #adadad; font-style: italic;"># Possible values include: debug, info, notice, warn, error, crit,</span>
        <span style="color: #adadad; font-style: italic;"># alert, emerg.</span>
        <span style="color: #00007f;">LogLevel</span> warn
&nbsp;
        <span style="color: #00007f;">CustomLog</span> /var/log/apache2/access.log combined
&nbsp;
    <span style="color: #00007f;">Alias</span> /doc/ <span style="color: #7f007f;">&quot;/usr/share/doc/&quot;</span>
    &lt;<span style="color: #000000; font-weight:bold;">directory</span> <span style="color: #7f007f;">&quot;/usr/share/doc/&quot;</span>&gt;
        <span style="color: #00007f;">Options</span> <span style="color: #0000ff;">Indexes</span> MultiViews <span style="color: #0000ff;">FollowSymLinks</span>
        <span style="color: #00007f;">AllowOverride</span> <span style="color: #0000ff;">None</span>
        <span style="color: #00007f;">Order</span> <span style="color: #00007f;">deny</span>,<span style="color: #00007f;">allow</span>
        <span style="color: #00007f;">Deny</span> <span style="color: #00007f;">from</span> <span style="color: #00007f;">all</span>
        <span style="color: #00007f;">Allow</span> <span style="color: #00007f;">from</span> 127.0.0.0/255.0.0.0 ::<span style="color: #ff0000;">1</span>/<span style="color: #ff0000;">128</span>
    &lt;/<span style="color: #000000; font-weight:bold;">directory</span>&gt;
&lt;/<span style="color: #000000; font-weight:bold;">virtualhost</span>&gt;</pre></div></div>
				
				<pre>
# a2enmod rewrite ## mod_rewriteを有効化
# /etc/init.d/apache2 restart
</pre>
				<ul>
				<li><strong>※UbuntuでのApacheのモジュールを有効化するには</strong>
				<pre># a2enmod < モジュール名></pre>
<p>というコマンドを使う。（< モジュール名>にはphp5、rewriteとかを指定）</li>
<li>逆にApacheのモジュールを無効化するには
<pre># a2dismod < モジュール名></pre>
				<p>というコマンドを使う。</li>
				</ul>
				</li>
				<li>MySQL設定。
				<pre>
# vi /etc/mysql/my.cnf
##[mysqld]の項目へ追加
character-set-server = utf8
collation-server = utf8_unicode_ci
init-connect = 'SET NAMES utf8'
skip-character-set-client-handshake

##[mysqldump]の項目へ追加
default-character-set = utf8

##[mysql]の項目へ追加
default-character-set = utf8

# /etc/init.d/mysql restart
</pre>
				</li>
				<li>PostgreSQL設定。
				<pre>
# passwd postgres ##postgresユーザーのパスワードを設定。
# su postgres
$ psql template1
template1=# alter user postgres with password '******'; ## ******は適当なパスワードを設定。
template1=# \q ## \qで終了。
$ createuser -AdPE hoge ## hogeは適当な一般ユーザーへ。一般ユーザへのデータベース作成権限設定。
$ vi /etc/postgresql/8.3/main/postgresql.conf
listen_addresses = 'localhost'
↓
listen_addresses = '*' ##'*'へ変更。
$ vi /etc/postgresql/8.3/main/pg_hba.conf
##以下をファイル最下部へ追加。192.168.11.1は各自ネットワーク環境へ。
local   all         all                               trust
host    all         all  192.168.11.1 255.255.255.255  trust
host    all         all  0.0.0.0     0.0.0.0          password crypt

$ exit
# /etc/init.d/postgresql-8.3 restart
</pre>
				</li>
				</ol>
				<p>これで、とりあえずローカル開発環境作りは終わりにしておきます。疲れたんで。これでCakePHPをぶち込んでローカルで開発出来るよ。これで仕事出来るよ。でも仕事無いよ。誰か仕事ちょーだいよ。</p>
				<p>RubyとかRailsなんかも入れないとね・・・ま、そのうちということで。</p>
]]></content:encoded>
			<wfw:commentRss>http://ore.saizensen.net/archives/122/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ore.saizensen.net/archives/122" />
	</item>
		<item>
		<title>[Ubuntu]Ubuntu8.10へVirtualboxをインストール。[Virtualbox]</title>
		<link>http://ore.saizensen.net/archives/119</link>
		<comments>http://ore.saizensen.net/archives/119#comments</comments>
		<pubDate>Wed, 12 Nov 2008 03:03:05 +0000</pubDate>
		<dc:creator>bubbkis</dc:creator>
				<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Virtualbox]]></category>
		<category><![CDATA[インストールメモ]]></category>

		<guid isPermaLink="false">http://ore.saizensen.net/?p=119</guid>
		<description><![CDATA[[Ubuntu]Ubuntu8.10をインストールしてみたよ。で、インストール設定メモ。[Linux]からの続きで、次はVirtualboxをインストールします。 ※Virtualboxのリポジトリを追加していない人だけ [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://ore.saizensen.net/archives/115">[Ubuntu]Ubuntu8.10をインストールしてみたよ。で、インストール設定メモ。[Linux]</a>からの続きで、次は<strong>Virtualbox</strong>をインストールします。</p>
				<ol>
				<li>※Virtualboxのリポジトリを追加していない人だけ(<a href="http://ore.saizensen.net/archives/115">[Ubuntu]Ubuntu8.10をインストールしてみたよ。で、インストール設定メモ。[Linux]</a>で追加した人は必要無し)。
				<ul>
				<li>/etc/apt/sources.listへ追加。
				<pre>deb http://download.virtualbox.org/virtualbox/debian intrepid non-free</pre>
</li>
<li>ターミナルで実行する。
<pre># wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add -
# apt-get update</pre>
				</li>
				</ul>
				</li>
				<li><strong>Virtualbox</strong>をインストール。
				<pre># apt-get install virtualbox-2.0</pre>
</li>
<li>vboxusersグループにユーザを追加。<br />
システム->システム管理->ユーザとグループを選択。<br />
ユーザのアカウントを選択->プロパティをクリック。<br />
「ユーザの権限」タブ->「VirtualBoxを使用できる」をチェックする</li>
<li>USBを有効にする。<br />
/etc/fstab を編集。（最下部に↓を追加）</p>
<pre>
#usbfs
none /proc/bus/usb usbfs devgid=126,devmode=664 0 0
</pre>
				<p>devgidの所にはvboxusersのグループIDが入る。グループIDは「ユーザとグループ」の「グループの管理」で調べられる。</p>
				<pre>% sudo mount -a</pre>
<p>を今回だけ実行。次回起動時は必要無し。
</li>
<li>※ブリッジ接続をする場合は↓も行う。
<ul>
<li>ゴニョゴニョ
<pre># apt-get install bridge-utils
# vi /etc/network/interfaces
	auto lo
	iface lo inet loopback

	# eth0の設定をクリア
	auto eth0
	iface eth0 inet static
	address 0.0.0.0

	auto br0
	# eth0のアドレスをDHCPにする場合
	#iface br0 inet dhcp

	# eth0のアドレスを固定にする場合
	iface br0 inet static
	address 192.168.11.8
	netmask 255.255.255.0
	gateway 192.168.11.1
	network 192.168.11.0
	broadcast 192.168.11.255

	bridge_ports eth0
# /etc/init.d/networking restart
# VBoxAddIF vbox0 &lt; ユーザー名&gt; br0 ##&lt; ユーザー名&gt;は普段使う一般ユーザーを指定。</pre>
				<p><strong>※VirtualBox にてネットワークアダプタの割り当てに「ホストインターフェース」、インターフェース名に vbox0 を指定(vbox0 は TAP デバイス。VM を複数立ち上げる際にはそれぞれ別途 VBoxAddIF で作成した固有の TAP デバイスを指定すること)</strong></li>
				<li><strong>※これらのVirtualboxの設定後、[システム] &gt; [設定] &gt; [Network Configuration]の設定からDNS設定が消えてしまったので、手動で/etc/resolv.confへ設定。</strong>
				<pre># vi /etc/resolv.conf
nameserver 192.168.11.2</pre>
				</li>
				</ul>
				</li>
				</ol>
				<p>これで<strong>Virtualbox</strong>のインストールは終わり。<br />
				まだApache、PHP、MySQL、PosttgreSQLをインストールしてないので開発環境作りは続きます。</p>
]]></content:encoded>
			<wfw:commentRss>http://ore.saizensen.net/archives/119/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ore.saizensen.net/archives/119" />
	</item>
		<item>
		<title>[Ubuntu]Ubuntu8.10をインストールしてみたよ。で、インストール設定メモ。[Linux]</title>
		<link>http://ore.saizensen.net/archives/115</link>
		<comments>http://ore.saizensen.net/archives/115#comments</comments>
		<pubDate>Wed, 12 Nov 2008 02:27:30 +0000</pubDate>
		<dc:creator>bubbkis</dc:creator>
				<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[インストールメモ]]></category>
		<category><![CDATA[初期設定]]></category>

		<guid isPermaLink="false">http://ore.saizensen.net/?p=115</guid>
		<description><![CDATA[昨日、会社のPCへUbuntu8.10をインストールしたから、インストール後の設定を残しておきます。 インストール後のUbuntu8.10がなかなか軽快で良さげなので、家のThinkpadX61も8.04から8.10へ変 [...]]]></description>
			<content:encoded><![CDATA[				<p>昨日、会社のPCへ<strong>Ubuntu8.10</strong>をインストールしたから、インストール後の設定を残しておきます。<br />
				インストール後の<strong>Ubuntu8.10</strong>がなかなか軽快で良さげなので、家のThinkpadX61も8.04から8.10へ変えようかと。もちろんクリーンインストールで。<br />
				今回のエントリーは、ほとんど家のPCへインストールする時のメモのようなものです。</p>
				<ol>
				<li><strong>※ nvidiaのグラフィックカード刺してる人だけ。</strong>
				<ul>
				<li>[システム] > [システム管理] > [ハードウェア・ドライバ]からNVIDIA accelerated graphics driverをインストール。</li>
				<li>[システム] > [システム管理] > [NVIDIA X Server Settings]からグラフィック設定をしてもXorg.confへ保存できないのでroot権限で設定する。（TwinViewを指定してデュアルモニタへ）</li>
				<li>ターミナルで実行。
				<pre>$ sudo /usr/bin/nvidia-settings</pre>
</li>
</ul>
</li>
<li>[システム] > [システム管理] > [日本語環境セットアップ・ヘルパ]から色々とインストール。（thunderbird、ttf-umefont、flashplugin-nonfreeとか）</li>
<li>不要なアプリを削除。
<ul>
<li>[アプリケーション] > [追加と削除]からGames関連全て、Orcaスクリーン・リーダと拡大鏡 を削除。</li>
<li>[システム] > [システム管理] > [Synapticパッケージマネージャ]からtracker、Evolutionを削除。</li>
</ul>
</li>
<li>リポジトリ編集 &#038;&#038; 追加(他に必要なリポジトリが有れば、<a href="http://www10.atwiki.jp/drag11/pages/16.html">http://www10.atwiki.jp/drag11/pages/16.html</a>を参照)
<ul>
<li>/etc/apt/sources.listを編集。
<pre>
# vi /etc/apt/sources.list
##jp.archive.ubuntu.com を全て ftp.riken.go.jp/Linux へ変更
deb http://packages.medibuntu.org/ intrepid free non-free ## 追加
deb-src http://packages.medibuntu.org/ intrepid free non-free ## 追加
deb http://wine.budgetdedicated.com/apt intrepid main ## 追加
deb-src http://wine.budgetdedicated.com/apt intrepid main ## 追加
deb http://dl.google.com/linux/deb/ stable non-free ## 追加
deb http://download.virtualbox.org/virtualbox/debian intrepid non-free ## 追加
	</pre>
				</li>
				<li>以下をターミナルで実行する。
				<pre>
# wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -
# wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
# wget https://dl-ssl.google.com/linux/linux_signing_key.pub -O- | sudo apt-key add -
# wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add -
# apt-get update
	</pre>
				</li>
				</ul>
				</li>
				<li>マルチメディア関連をインストールする。
				<ul>
				<li>プレイヤー類やらDVD類やらコーデック類やら色々
				<pre>
# apt-get install ubuntu-restricted-extras
# apt-get install realplayer vlc mplayer
# apt-get install libdvdcss2 libdvdread3 w32codecs non-free-codecs gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly gstreamer0.10-ffmpeg libxine1-ffmpeg libdvdread3
# apt-get install gstreamer0.10-pitfdll
	</pre>
				</li>
				</ul>
				</li>
				<li>シェルをzshへ変更。。
				<ul>
				<li>zshをインストール
				<pre># apt-get install zsh</pre>
</li>
<li>rootユーザーから一般ユーザーへ戻り、シェルを変更する。
<pre>$ chsh</pre>
				</li>
				<li>新しいログインシェルのパスを聞いてくるので、
				<pre>/bin/zsh</pre>
<p>と入力。</li>
</ul>
</li>
<li>色々インストール。
<ul>
<li>ごった煮で
<pre># apt-get install g++ sun-java6-jdk sun-java6-plugin compizconfig-settings-manager nautilus-gksu nautilus-open-terminal nautilus-image-converter gnome-do manpages-ja xmanpages-ja
 google-desktop-linux picasa wine build-essential scim-bridge-client-qt kde-i18n-ja network-manager-openvpn samba libgtk2.0-dev screenlets</pre>
				</li>
				<li>※ gccは最初から入っている。</li>
				<li>nautilus-gksu ## 選択したフォルダを右クリックから管理者権限で開く(Ubuntu8.04ではsudo cp /usr/lib/nautilus/extensions-1.0/libnautilus-gksu.so /usr/lib/nautilus/extensions-2.0/ を実行して一旦ログアウトしてログイン画面でCtrl + Alt + BackSpaceキーを押してX Window Systemを再起動してからログインしなおすと使えるようになる。)</li>
				<li>nautilus-open-terminal ## 選択したフォルダを右クリックからターミナルで開く</li>
				<li>nautilus-image-converter ## 選択した画像を右クリックからリサイズ/回転する</li>
				<li>gnome-do ## Quicksilver風のコマンドラインランチャー</li>
				<li>manpages-ja ## manを日本語化</li>
				<li>screenlets ## デスクトップwidget</li>
				</ul>
				</li>
				<li>ブラウザからダウンロードしてインストール。
				<ul>
				<li>Compiz-Switch ## CompizFusionのOn/Off<br /><a href="http://forlong.blogage.de/entries/pages/Compiz-Switch">http://forlong.blogage.de/entries/pages/Compiz-Switch</a>へアクセスしてdebパッケージをダウンロードし、インストール。</li>
				</ul>
				</li>
				<li>基本設定。
				<ul>
				<li>ディレクトリ名を日本語から英語へ変更。コマンドラインから通常ユーザーで↓を実行。
				<pre>$ LANG=C xdg-user-dirs-gtk-update</pre>
</li>
<li>FirefoxのWebサイト表示を早くする。<br />FireFoxのアドレスバーに、about:config と入力し、フィルタのところに dnsと入力、network.dns.disableIPv6 というところを右クリックして「切り替え」をダブルクリックすることで設定を true にする。</li>
<li>Firefoxへアドオンをインストール。(今回はubuntu8.04の時のホームディレクトリ直下の.mozillaをそのまま持ってきた。)バックアップ無い人は以前のエントリーの<a href="http://ore.saizensen.net/archives/91">[Firefox]第１回Firefoxアドオンまとめ[Add-ons]</a>でも参照しる。</li>
</ul>
</li>
</ol>
<p>足りないとこがあったら後日また修正するかも。<br />
これでとりあえず基本設定は終了ということで、まだ開発環境を作らないといけないので続きます。</p>
]]></content:encoded>
			<wfw:commentRss>http://ore.saizensen.net/archives/115/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ore.saizensen.net/archives/115" />
	</item>
		<item>
		<title>[Ubuntu8.04] Virtualboxをインストールしたけど入力デバイスが制御不能。</title>
		<link>http://ore.saizensen.net/archives/72</link>
		<comments>http://ore.saizensen.net/archives/72#comments</comments>
		<pubDate>Sun, 04 May 2008 19:01:42 +0000</pubDate>
		<dc:creator>bubbkis</dc:creator>
				<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Virtualbox]]></category>
		<category><![CDATA[Vitualbox]]></category>
		<category><![CDATA[インストールメモ]]></category>

		<guid isPermaLink="false">http://ore.saizensen.net/archives/72</guid>
		<description><![CDATA[Ubuntu8.04を先日インストールして、快適な環境が出来上がりましたので しばらくはこの鳥を使っていこうかと思っているこの頃です。 で、UbuntuのパッケージマネージャーからいつのまにかVmwareが消えていたので [...]]]></description>
			<content:encoded><![CDATA[				<p><strong>Ubuntu8.04</strong>を先日インストールして、快適な環境が出来上がりましたので<br />
				しばらくはこの鳥を使っていこうかと思っているこの頃です。</p>
				<p>で、UbuntuのパッケージマネージャーからいつのまにかVmwareが消えていたので、<br />
				<strong>Virtualbox</strong>をインストールしてみたんですよ。<br />
				じゃあ、タイトル通りの状況でして・・・足止め喰らったぜ。<br />
				解決策が出てくるまで放置しよう。<br />
				一応、またインストールメモを置いておくよ。解決したら修正します。</p>
				<ol>
				<li>まず、最新の<a href="http://www.virtualbox.org/wiki/Downloads">Virtualbox</a>を取ってくる。<br />
				5月5日段階では、最新は1.6です。</li>
				<li>普通にダブルクリックしてインストール（ubnntu8.04用のdebパッケージ）</li>
				<li>メインユーザーを<strong>vboxuser</strong>グループへ追加。</li>
				<li>デフォルトでは、USB機器が使用不能なので以下の設定。<br />
				ちなみにそのエラーメッセージはこんなの。</p>
				<pre>Could not load the Host USB Proxy Service (VERR_FILE_NOT_FOUND). The service might be not installed on the host computer.</pre>
<p>こっから設定。</p>
<pre>$ gksudo gedit /etc/init.d/mountdevsubfs.sh</pre>
				<pre>
#
# Magic to make /proc/bus/usb work
#
#mkdir -p /dev/bus/usb/.usbfs
#domount usbfs “” /dev/bus/usb/.usbfs　-obusmode=0700,devmode=0600,listmode=0644
#ln -s .usbfs/devices /dev/bus/usb/devices
#mount –rbind /dev/bus/usb /proc/bus/usb
</pre>
				<p>↓　のように修正。</p>
				<pre>
#
# Magic to make /proc/bus/usb work
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs “” /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount –rbind /dev/bus/usb /proc/bus/usb
</pre>
				<p>次に、</p>
				<pre>$ gksu gedit /etc/udev/rules.d/40-permissions.rules</pre>
<pre>
# USB serial converters
SUBSYSTEM=="usb_device", GOTO="usb_serial_start"
</pre>
				<p>↓　のように修正。</p>
				<pre>
# USB serial converters
SUBSYSTEM=="usb_device", GROUP="usbusers", MODE="0664", GOTO="usb_serial_start"
</pre>
				</li>
				<li>「システム」ー「システム管理」ー「ユーザとユーザグループ」から、「グループの管理」ボタンを押して、「グループの追加」ボタンを押し「<strong>usbusers</strong>」を追加し、メインユーザーをグループに入れる。<br />
				そのあと、システムを再起動。</li>
				</ol>
				<p>で、windowsを入れようとして、インストールディスク突っ込んでインストール開始のEnterキー押しても、うんともすんとも・・・・<br />
				ホストOSとゲストOS切り替えの右Ctrl押しても、もちろん反応なし。<br />
				たぶん、ThinkpadX61のキーボードがUSB接続だからだと思うんですがね。</p>
				<p>まぁこんな感じ。<br />
				試しに一度、Virtualbox1.6を削除して、ubuntuのパッケージマネージャーから</p>
				<pre>sudo apt-get install virtualbox-ose virtualbox-ose-modules-generic </pre>
<p>してこっちもインストールしてみたけど、キーボード操作不能。うがーーーーー！！</p>
]]></content:encoded>
			<wfw:commentRss>http://ore.saizensen.net/archives/72/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ore.saizensen.net/archives/72" />
	</item>
		<item>
		<title>[Ubuntu]Ubuntu8.04をインストールしてみた。[Linux]</title>
		<link>http://ore.saizensen.net/archives/71</link>
		<comments>http://ore.saizensen.net/archives/71#comments</comments>
		<pubDate>Sun, 27 Apr 2008 17:17:21 +0000</pubDate>
		<dc:creator>bubbkis</dc:creator>
				<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[インストールメモ]]></category>
		<category><![CDATA[デュアルディスプレイ設定]]></category>
		<category><![CDATA[マルチモニタ設定]]></category>
		<category><![CDATA[初期設定]]></category>

		<guid isPermaLink="false">http://ore.saizensen.net/archives/71</guid>
		<description><![CDATA[インストール機種：ThinkpadX61 メモリー４GB 英語キーボード使用 外部ディスプレイ：Sonyの19インチ液晶。(1280&#215;1024) 仕様メディア：ubuntu-desktop-ja_i386 とり [...]]]></description>
			<content:encoded><![CDATA[				<ul>
				<li>インストール機種：ThinkpadX61</li>
				<li>メモリー４GB</li>
				<li>英語キーボード使用</li>
				<li>外部ディスプレイ：Sonyの19インチ液晶。(1280&#215;1024)</li>
				<li>仕様メディア：ubuntu-desktop-ja_i386</li>
				</ul>
				<p>とりあえず、普通の構成のPCです。<br />
				この<strong>Ubuntu8.04</strong>をインストールする前は、<br />
				Windows Vista（Home Edition 32bit）とMandriva2008_x86-64（64bit）のマルチブート構成でした。<br />
				Mandriva2008は比較的軽くて安定しているいいディストリでした。<br />
				ただ、私が64bit版に手を出したのが悪いんですが、FirefoxでFlashを見ていると頻繁に落ちる現象に嫌気が差してきましてね。<br />
				まぁ、あれですよ。adobeがさっさと64bit版のFlashを出しやがれと。<br />
				そんな感じで、<strong>ubuntu8.04</strong>のインストールメモを残しておくよ。</p>
				<ol>
				<li>パーティション構成(Mandrivaから引き継いでる。)<br />
				/　25GB<br />
				/boot　256MB<br />
				/usr/local　20GB<br />
				/home　60GB<br />
				swap　8GB ←こんなにいらん。</li>
				<li>xorg.conf設定（デュアルディスプレイ設定とか）<br />
				Ubuntu8.04のxorgのバージョンが7.3、intelドライバが2.2（GM965 Expressチップセット対応）になったようで、デュアルディスプレイ設定の設定がほぼ設定要らず。<br />
				まず,Thinkpad-X61本体のマウスボタン（トラックポイント？）設定。<br />
				私は実際には使ってませんが。（X61の真ん中のボタンをスクロール設定にしたい人用。）<br />
				InputDeviceセクションのConfigured Mouseサブセクションを削除して以下を。</p>
				<pre>
Section "InputDevice"
        Identifier      "Trackpoint"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ImPS/2"
        Option          "ZAxisMapping"          "4 5"
        Option          "Emulate3Buttons"       "true"
        Option          "EmulateWheel"          "true"
        Option          "EmulateWheelButton"    "2"
EndSection</pre>
				<p>または、５ボタンマウスを使用する場合は以下。（Microsoft IntelliMouse Optical）</p>
				<pre>
Section "InputDevice"
    Identifier     "Configured Mouse"
    Driver         "mouse"
    Option         "CorePointer"
    Option         "Emulate3Buttons" "false"
    Option         "Buttons" "7"
    Option         "ButtonMapping" "1 2 3 6 7"
EndSection</pre>
				<p>次に、Deviceセクションに以下を追加。</p>
				<pre>
        Option          "AccelMethod" "EXA"
        Option          "ExaNoComposite" "false"
        Option          "MigrationHeuristic" "greedy"</pre>
				<p><strong>デュアルディスプレイ設定</strong>。ScreenセクションへDisplayサブセクションを追加。</p>
				<pre>
Subsection "Display"
        Virtual 5000 2000
EndSubsection</pre>
				<p>次に、ユーザーのホーム直下へ「dualdisplay_config.sh」を作成。中身は</p>
				<pre>
#!/bin/bash

xrandr --output VGA --mode "1280x1024"
xrandr --output VGA --right-of LVDS</pre>
				<p>次に、「dualdisplay_config.sh」へ実行権限付加。</p>
				<pre>
$ chmod +x dualdisplay_config.sh</pre>
				<p>で、デスクトップなんかにランチャを作成して「dualdisplay_config.sh」へリンク貼って起動すればOK。</li>
				<li>/etc/apt/sources.listを編集。<br />
				<strong>jp.archive.ubuntu.com</strong>　を全て <strong>ftp.riken.go.jp/Linux</strong>　へ変更。</p>
				<pre>
deb http://packages.medibuntu.org/ hardy free non-free
deb http://wine.budgetdedicated.com/apt hardy main</pre>
				<p>を最下部へ追加する。以下をターミナルで実行する。</p>
				<pre>
$ wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -
$ wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
$ sudo apt-get update</pre>
				</li>
				<li><strong>codec類</strong>をインストールする。<br />
				DVD関連やら色々。</p>
				<pre>
$ sudo apt-get install ubuntu-restricted-extras
$ sudo apt-get install realplayer
$ sudo apt-get install libdvdcss2 libdvdread3 w32codecs gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly gstreamer0.10-ffmpeg libxine1-ffmpeg libdvdread3
$ sudo apt-get install gstreamer0.10-pitfdll</pre>
				</li>
				<li><strong>Firefox2、Firefox3</strong>の共存。<br />
				Firefox2のインストール。</p>
				<pre>
$ sudo apt-get install firefox-2 firefox-2-gnome-support
$ sudo apt-get install mozilla-firefox-locale-ja-jp</pre>
				<p>プロファイルの作成。<br />
				Firefox2、Firefox3用に２コ作る。</p>
				<pre>$ firefox -ProfileManager</pre>
<p>起動リンクのプロファイル指定。</p>
<pre>
Firefox2の場合
firefox-2 %u -P Firefox2用プロファイル名 -no-remote

Firefox3の場合
firefox-3.0 %u -P Firefox3用プロファイル名 -no-remote</pre>
				</li>
				<li>Firefox3使っていると、一定間隔（5秒くらい）おきにHDDにアクセスするせいで、Firefoxが頻繁に固まって、まともにWebを見れなくなる問題。<br />
				設定→セキュリティ→<br />
				□表示中のサイトが攻撃サイトである疑いがある場合は警告する<br />
				□表示中のサイトに偽装サイトの疑いがある場合は警告する<br />
				のチェックを外して、firefoxを終了させたら<br />
				~/.mozilla/firefox/以下にある<br />
				urlclassifier3.sqlite<br />
				urlclassifier3.sqlite-journal<br />
				を削除。[MASTER] High CPU Consumption<br />
				(p)<a href="https://bugs.launchpad.net/firefox/+bug/215728">https://bugs.launchpad.net/firefox/+bug/215728</a><br />
				Bug 430530 excess disk IO when updating the url-classifier<br />
				(p)<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=430530">https://bugzilla.mozilla.org/show_bug.cgi?id=430530</a></li>
				</ol>
]]></content:encoded>
			<wfw:commentRss>http://ore.saizensen.net/archives/71/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ore.saizensen.net/archives/71" />
	</item>
	</channel>
</rss>

