<?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>DOOM! DOOMER!! DOOMEST!? &#187; PC</title>
	<atom:link href="http://g-taki.com/wordpress/category/pc/feed" rel="self" type="application/rss+xml" />
	<link>http://g-taki.com/wordpress</link>
	<description>日刊　カリブNow!!</description>
	<lastBuildDate>Fri, 10 Feb 2012 06:23:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://g-taki.com/wordpress/category/pc/feed" />
		<item>
		<title>OS X で、isoファイルを作る方法 2</title>
		<link>http://g-taki.com/wordpress/web/6035.html</link>
		<comments>http://g-taki.com/wordpress/web/6035.html#comments</comments>
		<pubDate>Fri, 10 Feb 2012 06:19:33 +0000</pubDate>
		<dc:creator>ıʞɐʇ‾ƃ</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[PC]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[ディスクユーティリティ]]></category>

		<guid isPermaLink="false">http://g-taki.com/wordpress/?p=6035</guid>
		<description><![CDATA[以前メモを書いたんだけど、isoファイルの作成方法。 複数のフォルダから寄せ集めてイメージを作る場合、 手元にすべてのファイルを集めてやれば良いんだろうけど、 OS Xに標準で付いてるディスクユーティリティで楽出来ないか &#8230; <a href="http://g-taki.com/wordpress/web/6035.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>以前メモを書いたんだけど、<a title="OS X で、isoファイルを作る方法" href="http://g-taki.com/wordpress/pc/1416.html" target="_blank">isoファイルの作成方法</a>。</p>
<p>複数のフォルダから寄せ集めてイメージを作る場合、<br />
手元にすべてのファイルを集めてやれば良いんだろうけど、<br />
OS Xに標準で付いてるディスクユーティリティで楽出来ないかな。。。と。</p>
<p>だって、滅多に使わないコマンドのオプションなんか覚えてないって。</p>
<p>早速ディスクユーティリティを立ち上げて、オプションを設定してみる。と馬鹿正直にCDサイズのファイルができあがる。中身は空っぽなのに！！</p>
<div id="attachment_6036" class="wp-caption alignnone" style="width: 362px"><a href="http://g-taki.com/wordpress/wp-content/uploads/2012/02/c881f7a79a981450c4ce4320827b3ab5.png" rel="lightbox[6035]"><img src="http://g-taki.com/wordpress/wp-content/uploads/2012/02/c881f7a79a981450c4ce4320827b3ab5-352x300.png" alt="オプションはこんな感じかな" title="オプションはこんな感じかな" width="352" height="300" class="size-medium wp-image-6036 " /></a><p class="wp-caption-text">オプションはこんな感じかな</p></div>
<p>マウントすれば、普通のフォルダとしてアクセスできるので、必要なファイルをドロップ。して、あうんマウントすればいいわけだが、、、<br />
このままじゃWindowsから読めない</p>
<p>《ﾟДﾟ》ｺﾞﾗｧｧｧｧｧｧｧｧｧｧｧｧｱ!!</p>
<p>となると結局hdiutil のお世話にならなくちゃいけない。</p>
<blockquote><p>hdiutil makehybrid -iso -joliet -o output.iso imput.cdr</p></blockquote>
<p>またこれをすると、実際のファイルの使用量に応じたisoファイルができあがる。<br />
つまり、ディスクユーティリティを使ってイメージを作っても、このhdiutilを使った作業が実質必須ということか？</p>
<p>パーティションフォーマットをFATなどにもしてみたけど、どうも期待通りの動作をしないんだよね。<br />
hdiutilのmakehybridに相当する動きをディスクユーティリティにしてもらいたいんだが&#8230;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://g-taki.com/wordpress/web/6035.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://g-taki.com/wordpress/web/6035.html" />
	</item>
		<item>
		<title>メモリ増やしたよ</title>
		<link>http://g-taki.com/wordpress/pc/6038.html</link>
		<comments>http://g-taki.com/wordpress/pc/6038.html#comments</comments>
		<pubDate>Thu, 02 Feb 2012 06:19:42 +0000</pubDate>
		<dc:creator>ıʞɐʇ‾ƃ</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[PC]]></category>
		<category><![CDATA[メモリ]]></category>

		<guid isPermaLink="false">http://g-taki.com/wordpress/?p=6038</guid>
		<description><![CDATA[パソコンのメモリを増やしたよ。 普通に手に入るメモリの上限、16GB。 これでVMwareを使いながらもSwap起こさずに作業できるかな。 次は、HDDを再びSSDにすることだな。]]></description>
			<content:encoded><![CDATA[<div id="attachment_6039" class="wp-caption alignleft" style="width: 255px"><a href="http://g-taki.com/wordpress/wp-content/uploads/2012/02/4aecb67765d22cd0dfdaaaad0f219ee0.png" rel="lightbox[6038]"><img src="http://g-taki.com/wordpress/wp-content/uploads/2012/02/4aecb67765d22cd0dfdaaaad0f219ee0-245x300.png" alt="16GB!!" title="16GB!!" width="245" height="300" class="size-medium wp-image-6039" /></a><p class="wp-caption-text">16GB!!</p></div>
<p>パソコンのメモリを増やしたよ。<br />
普通に手に入るメモリの上限、16GB。</p>
<p>これでVMwareを使いながらもSwap起こさずに作業できるかな。</p>
<p>次は、HDDを再びSSDにすることだな。</p>
]]></content:encoded>
			<wfw:commentRss>http://g-taki.com/wordpress/pc/6038.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://g-taki.com/wordpress/pc/6038.html" />
	</item>
		<item>
		<title>Just System イメージ悪すぎ</title>
		<link>http://g-taki.com/wordpress/web/6003.html</link>
		<comments>http://g-taki.com/wordpress/web/6003.html#comments</comments>
		<pubDate>Mon, 23 Jan 2012 01:34:58 +0000</pubDate>
		<dc:creator>ıʞɐʇ‾ƃ</dc:creator>
				<category><![CDATA[PC]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[ATOK]]></category>

		<guid isPermaLink="false">http://g-taki.com/wordpress/?p=6003</guid>
		<description><![CDATA[#処理の待ち時間にざっと書いたので、乱文失礼。^^; 今朝、MacのATOKに更新があり、コンピュータも再起動させたら、こんな画面が キャンセルとか、「今はしない」といった選択肢が見当たらない。まぁ左上の赤い丸印を押せば &#8230; <a href="http://g-taki.com/wordpress/web/6003.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>#処理の待ち時間にざっと書いたので、乱文失礼。^^;</p>
<p>今朝、MacのATOKに更新があり、コンピュータも再起動させたら、こんな画面が<a href="http://g-taki.com/wordpress/wp-content/uploads/2012/01/5831e596f2b62a614f18b5331532cdb8.png" rel="lightbox[6003]"><img src="http://g-taki.com/wordpress/wp-content/uploads/2012/01/5831e596f2b62a614f18b5331532cdb8-366x300.png" alt="" title="スクリーンショット 2012-01-23 9.58.08" width="366" height="300" class="alignleft size-medium wp-image-6004" /></a></p>
<p>キャンセルとか、「今はしない」といった選択肢が見当たらない。まぁ左上の赤い丸印を押せば閉じることは出来るんだけど、問題はそれだけじゃない。</p>
<p>「ATOK Syncは無料でご利用いただけます」。ふむ。</p>
<p>ねんのためブラウザを立ち上げて確認してみると、ATOK 2011では「ATOK Sync アドバンス」を”<strong>1年間</strong>無料で”使えますとな。<br />
けっ、やっぱり1年だけで有料じゃん。</p>
<p>あれ、昔はWebDavサーバを自前で用意すれば(他のクラウドサービスでも良い)、逃げ道にならなかったっけ？<a title="ATOK Syncを使って無料で辞書を同期する | penchi.jp" href="http://penchi.jp/archives/105.html" target="_blank">こんなページ (ATOK Syncを使って無料で辞書を同期する | penchi.jp)</a>もあったよなぁ。</p>
<p>とよく見ると、バージョンが違う。<br />
確かにJust Systemのページを見ると、2011の場合と、2010以前とで別れてる。</p>
<p>なるほど2010までにあった逃げ道を2011では塞いだのね。</p>
<p>Syncさせたきゃお布施を払えと。</p>
<p>DropBoxや、iCloudといったサービスに意地でも対抗したいのだろうか？金を取るだけのアドバンテージが見いだせない。<br />
この人も半年前に全く同じ事を書いてる。「<a title="ATOK Sync：たいして回収できない月額料金を回収するためのコスト" href="http://kumadigital.livedoor.biz/archives/51907060.html" target="_blank">ATOK Sync：たいして回収できない月額料金を回収するためのコスト</a>」</p>
<p>会社がキーエンスに買収されて浮川さんが退社してから、どうもJustSystemの製品のこういう挙動、というかインターフェースというか。。。やらしくなったよなぁ。</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://g-taki.com/wordpress/web/6003.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://g-taki.com/wordpress/web/6003.html" />
	</item>
		<item>
		<title>CentOS の SELinuxを無効にする</title>
		<link>http://g-taki.com/wordpress/web/5888.html</link>
		<comments>http://g-taki.com/wordpress/web/5888.html#comments</comments>
		<pubDate>Wed, 11 Jan 2012 02:54:17 +0000</pubDate>
		<dc:creator>ıʞɐʇ‾ƃ</dc:creator>
				<category><![CDATA[PC]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://g-taki.com/wordpress/?p=5888</guid>
		<description><![CDATA[CentOS インストール直後、 Apache の mod_aliasを使うと、 (13)Permission denied: access to /hoge/hoge denied といったメッセージが出る。 ネット上 &#8230; <a href="http://g-taki.com/wordpress/web/5888.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>CentOS インストール直後、<br />
Apache の mod_aliasを使うと、</p>
<blockquote><p>(13)Permission denied: access to /hoge/hoge denied</p></blockquote>
<p>といったメッセージが出る。</p>
<p>ネット上に公開するサーバにはおすすめしないけど、<br />
手物のVMWareで手っ取り早く動かしたいので、Slinuxを無効にする。</p>
<p>キーワードは&#8221;enforce&#8221;。</p>
<p>現在の状態を取得するには、</p>
<blockquote><p>getenforce</p></blockquote>
<p>Enforcingと表示されれば、SELinuxが有効になっている。</p>
<p>一時的に無効にするには、</p>
<blockquote><p>setenforce 0</p></blockquote>
<p>この状態で getenforce をすると、Permissive となる。この状態で、Apacheの動作確認などを行うことができる。</p>
<p>再起動したら設定が戻っちゃうので、無効のまま起動させるために、/etc/sysconfig/selinux を書き換える。</p>
<blockquote><p>SELINUX=disabled</p></blockquote>
<p>このファイルには、以下のように親切に書かれているので、書き換えるファイルさえわかれば迷わないはず。</p>
<blockquote><p># SELINUX= can take one of these three values:<br />
#     enforcing &#8211; SELinux security policy is enforced.<br />
#     permissive &#8211; SELinux prints warnings instead of enforcing.<br />
#     disabled &#8211; No SELinux policy is loaded.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://g-taki.com/wordpress/web/5888.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://g-taki.com/wordpress/web/5888.html" />
	</item>
		<item>
		<title>CentOS の Apache にアクセス出来ない？ iptablesか！</title>
		<link>http://g-taki.com/wordpress/web/5883.html</link>
		<comments>http://g-taki.com/wordpress/web/5883.html#comments</comments>
		<pubDate>Wed, 11 Jan 2012 02:53:13 +0000</pubDate>
		<dc:creator>ıʞɐʇ‾ƃ</dc:creator>
				<category><![CDATA[PC]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://g-taki.com/wordpress/?p=5883</guid>
		<description><![CDATA[VMWareにCentosを入れて、yum でapacheを入れる。でもそれだけじゃアクセス出来ない。 CentOSのFirewall 、iptablesの設定を更新する必要がある。 まずは初期状態の確認。 [root@ &#8230; <a href="http://g-taki.com/wordpress/web/5883.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>VMWareにCentosを入れて、yum でapacheを入れる。でもそれだけじゃアクセス出来ない。</p>
<p>CentOSのFirewall 、iptablesの設定を更新する必要がある。</p>
<p>まずは初期状態の確認。</p>
<blockquote><p>[root@centos ~]# iptables -L &#8211;line-number<br />
Chain INPUT (policy ACCEPT)<br />
num target prot opt source destination<br />
1 ACCEPT all &#8212; anywhere anywhere state RELATED,ESTABLISHED<br />
2 ACCEPT icmp &#8212; anywhere anywhere<br />
3 ACCEPT all &#8212; anywhere anywhere<br />
4 ACCEPT tcp &#8212; anywhere anywhere state NEW tcp dpt:ssh<br />
5 REJECT all &#8212; anywhere anywhere reject-with icmp-host-prohibited</p>
<p>Chain FORWARD (policy ACCEPT)<br />
num target prot opt source destination<br />
1 REJECT all &#8212; anywhere anywhere reject-with icmp-host-prohibited</p>
<p>Chain OUTPUT (policy ACCEPT)<br />
num target prot opt source destination</p></blockquote>
<p>Chain INPUTがフィルターの流れ。<br />
4行目でsshが許可されているが、次の5行目で残りがrejectされるようになっている。<br />
つまりこの間に、httpやhttpsといった外部からつなげたいポートを許可する設定を書くって訳だ。</p>
<blockquote><p># /sbin/iptables -I INPUT 5 -p tcp &#8211;dport https -j ACCEPT<br />
# /sbin/iptables -I INPUT 5 -p tcp &#8211;dport http -j ACCEPT</p></blockquote>
<p>確認。</p>
<blockquote><p>[root@centos ~]# iptables -L &#8211;line-number<br />
Chain INPUT (policy ACCEPT)<br />
num target prot opt source destination<br />
1 ACCEPT all &#8212; anywhere anywhere state RELATED,ESTABLISHED<br />
2 ACCEPT icmp &#8212; anywhere anywhere<br />
3 ACCEPT all &#8212; anywhere anywhere<br />
4 ACCEPT tcp &#8212; anywhere anywhere state NEW tcp dpt:ssh<br />
5 ACCEPT tcp &#8212; anywhere anywhere tcp dpt:http<br />
6 ACCEPT tcp &#8212; anywhere anywhere tcp dpt:https<br />
7 REJECT all &#8212; anywhere anywhere reject-with icmp-host-prohibited</p>
<p>Chain FORWARD (policy ACCEPT)<br />
num target prot opt source destination<br />
1 REJECT all &#8212; anywhere anywhere reject-with icmp-host-prohibited</p>
<p>Chain OUTPUT (policy ACCEPT)<br />
num target prot opt source destination</p></blockquote>
<p>よしよし。</p>
<p>設定を保存。</p>
<blockquote><p># /sbin/service iptables save</p></blockquote>
<p>後からpostgresを許可したければ、こんな感じにすればいいのかな。</p>
<blockquote><p># /sbin/iptables -I INPUT 7 -p tcp &#8211;dport 5432 -j ACCEPT</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://g-taki.com/wordpress/web/5883.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://g-taki.com/wordpress/web/5883.html" />
	</item>
		<item>
		<title>vmshrink の最新版は何処？</title>
		<link>http://g-taki.com/wordpress/web/5814.html</link>
		<comments>http://g-taki.com/wordpress/web/5814.html#comments</comments>
		<pubDate>Mon, 07 Nov 2011 03:07:27 +0000</pubDate>
		<dc:creator>ıʞɐʇ‾ƃ</dc:creator>
				<category><![CDATA[PC]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[shrink]]></category>
		<category><![CDATA[vmshlink]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://g-taki.com/wordpress/?p=5814</guid>
		<description><![CDATA[「仮想の背中」さんが閉鎖されてからだいぶ経ちますが、「VMwareのディスク使用量を減らす &#8211; VMwareToolsがインストールされていない場合」のページは「vmshrink」でGoogle検索すると2番 &#8230; <a href="http://g-taki.com/wordpress/web/5814.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>「仮想の背中」さんが閉鎖されてからだいぶ経ちますが、「<a title="VMwareのディスク使用量を減らす – VMwareToolsがインストールされていない場合" href="http://g-taki.com/wordpress/pc/1282.html">VMwareのディスク使用量を減らす &#8211; VMwareToolsがインストールされていない場合</a>」のページは「vmshrink」でGoogle検索すると2番目に表示されるようですね。</p>
<p>HDDの容量が大きくなった昨今、vmshrink の必要性はかなり減ったとは思います。<br />
また最近のVMwareのバージョンであれば、「仮想マシンのクリーンアップ」機能があり、これが同じような働きをしているのでは無いでしょうか?（検証したわけではないので間違っているかもしれません）</p>
<p>ですが、vmshrink などの開発は止まっちゃったのかな？とか、作者さんはご健在？といった疑問は残るわけです。</p>
<p>vmshrink.cの冒頭を見てみると、</p>
<pre>	vmshrink.c
	virtual disk shrink utility

	Copyright (c) 2006 Ken Kato</pre>
<p>とあります。これと「vmshrink」で検索したら、&#8221;それらしい&#8221;ページがサイトがあるじゃないですか。</p>
<p><a title="VMware Command Line Tools - VM Back" href="https://sites.google.com/site/chitchatvmback/index" target="_blank">VMware Command Line Tools &#8211; VM Back</a></p>
<p>このサイトのオーナーに関する情報を見つけるには至っていませんが、掲載されている内容からするに、 「仮想の背中」の後継のサイトとみて良さそうです。</p>
]]></content:encoded>
			<wfw:commentRss>http://g-taki.com/wordpress/web/5814.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://g-taki.com/wordpress/web/5814.html" />
	</item>
		<item>
		<title>Memo:ディレクトリ内のファイル数を数える</title>
		<link>http://g-taki.com/wordpress/pc/5778.html</link>
		<comments>http://g-taki.com/wordpress/pc/5778.html#comments</comments>
		<pubDate>Tue, 04 Oct 2011 05:41:22 +0000</pubDate>
		<dc:creator>ıʞɐʇ‾ƃ</dc:creator>
				<category><![CDATA[PC]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://g-taki.com/wordpress/?p=5778</guid>
		<description><![CDATA[どんどん蓄積されるファイル群の期間ごとのファイル数を知りたくて、いつものようにこんなコマンドを打ったんだけど、ファイル数が多いと時間がかかるのよね。そこで調べたら、速度比較までして検証しているサイトがあった。 ディレクト &#8230; <a href="http://g-taki.com/wordpress/pc/5778.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>どんどん蓄積されるファイル群の期間ごとのファイル数を知りたくて、いつものようにこんなコマンドを打ったんだけど、ファイル数が多いと時間がかかるのよね。そこで調べたら、速度比較までして検証しているサイトがあった。 <a title="ディレクトリ内のファイル数を速く数える" href="http://groundwalker.com/blog/2008/02/count_files_in_a_directory.html" target="_blank">ディレクトリ内のファイル数を速く数える(Linux,ext3,ls,find,wc)</a>。そこにも書かれているけど、find はいろいろ使えるので、メモ。</p>
<p>ls コマンドは通常ファイル名でSortが発生するので、普通に使ったのでは遅い。だから単にlsと打ったのではだめ。</p>
<blockquote><p>ls . | wc -l</p></blockquote>
<p>ls のソートを止めるには、オプションの -f を使う。</p>
<blockquote><p>ls -f . | wc -l</p></blockquote>
<p>一番高速なのが、find コマンドを使う方法。</p>
<blockquote><p>find . -type f | wc -l</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://g-taki.com/wordpress/pc/5778.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://g-taki.com/wordpress/pc/5778.html" />
	</item>
		<item>
		<title>Unable to copy the users Xauthorization file.</title>
		<link>http://g-taki.com/wordpress/pc/5727.html</link>
		<comments>http://g-taki.com/wordpress/pc/5727.html#comments</comments>
		<pubDate>Tue, 13 Sep 2011 05:00:55 +0000</pubDate>
		<dc:creator>ıʞɐʇ‾ƃ</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[PC]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://g-taki.com/wordpress/?p=5727</guid>
		<description><![CDATA[メモ。サポート環境の整備のためにリモートデスクトップ接続。 LAN1 -(INTERNET)-&#62; LAN2 -(VPN)-&#62; LAN3 ちと面倒な接続で、LAN3には外部から直接アクセスできないので、LAN2 &#8230; <a href="http://g-taki.com/wordpress/pc/5727.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>メモ。サポート環境の整備のためにリモートデスクトップ接続。</p>
<p>LAN1 -(INTERNET)-&gt; LAN2 -(VPN)-&gt; LAN3</p>
<p>ちと面倒な接続で、LAN3には外部から直接アクセスできないので、LAN2内のPCを経由する必要がある。というわけで、中継用のPCとして、ライセンス云々が面倒な事にならないUbuntuなノートを用意。</p>
<p>順調にリモートデスクトップを使っていたのだが、パッケージ管理の様に管理者権限が必要とされるアプリケーションを起動させようとすると、エラーメッセージが表示される。</p>
<blockquote><p>Unable to copy the users Xauthorization file.</p></blockquote>
<p>で、このエラーメッセージで調べたところ、<a title="ubuntuにwindows7からリモートデスクトップ接続したときのメモ" href="http://blogs.yahoo.co.jp/topitopi38/26183561.html" target="_blank">ubuntuにwindows7からリモートデスクトップ接続したときのメモ</a>というタイトルでそのまんまの記事を発見！オリジナルはUbuntuのフォーラムの<a title="[ubuntu] xrdp user permissions problem - Ubuntu Forums" href="http://ubuntuforums.org/showthread.php?t=1138337" target="_blank">[ubuntu] xrdp user permissions problem &#8211; Ubuntu Forums</a>。</p>
<blockquote><p>touch ~/.Xauthority<br />
chmod 600 ~/.Xauthority</p></blockquote>
<p>あっさり解決できて良かった。</p>
]]></content:encoded>
			<wfw:commentRss>http://g-taki.com/wordpress/pc/5727.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://g-taki.com/wordpress/pc/5727.html" />
	</item>
		<item>
		<title>Lionのイメージはダウンロードとインストールの間にコピーしておけ？</title>
		<link>http://g-taki.com/wordpress/pc/mac/5474.html</link>
		<comments>http://g-taki.com/wordpress/pc/mac/5474.html#comments</comments>
		<pubDate>Fri, 22 Jul 2011 00:42:32 +0000</pubDate>
		<dc:creator>ıʞɐʇ‾ƃ</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://g-taki.com/wordpress/?p=5474</guid>
		<description><![CDATA[一昨日の夜、ダウンロード販売が開始されたOS X Lion。 今年の頭に買ったMBPに突っ込んだのですが、インストールが終わったら、ダウンロードしてきたインストーラーが見当たらない。 「Install Mac  OS X &#8230; <a href="http://g-taki.com/wordpress/pc/mac/5474.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>一昨日の夜、ダウンロード販売が開始されたOS X Lion。</p>
<p>今年の頭に買ったMBPに突っ込んだのですが、インストールが終わったら、ダウンロードしてきたインストーラーが見当たらない。</p>
<p>「Install Mac  OS X Lion.app」という、約3.7GBのアプリケーションがダウンロードされるんだけど、どこ行った？</p>
<p>リアルタイムで呟いてみたけど、似たような情報は無し。周囲にはそこまでホットな人は居ないし、ホットな人はみな目の前のLionに釘付けだったろうからね <img src='http://g-taki.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>念のためにとっておいたバックアップから古いOSで起動して、再度Lionをダウンロードしてみました。<br />
パッケージの内容を表示させてみたところ、</p>
<p>Contents -&gt; SharedSupport -&gt; InstallESD.dmg が 3.74GB占めていることが判明。名前からしてもこれがLionのイメージなんだろうな。<br />
<a href="http://www.google.co.jp/search?q=installesd.dmg" target="_blank">Installesd.dmg で検索すると</a>、案の定いっぱい情報が出てくる。</p>
<p>8月には、USBに入ったLionが販売されるようだけど、別途費用が発生するようだ。<br />
流れに従っていくと、勝手に消されるイメージ。HDDがクラッシュしたら古いOSのインストールから始めなくちゃいけなくなるけど、それがAppleの考える、今回の戦略なのかな？</p>
]]></content:encoded>
			<wfw:commentRss>http://g-taki.com/wordpress/pc/mac/5474.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://g-taki.com/wordpress/pc/mac/5474.html" />
	</item>
		<item>
		<title>zf.shが使えなくてはまった。</title>
		<link>http://g-taki.com/wordpress/web/5386.html</link>
		<comments>http://g-taki.com/wordpress/web/5386.html#comments</comments>
		<pubDate>Fri, 01 Jul 2011 06:34:39 +0000</pubDate>
		<dc:creator>ıʞɐʇ‾ƃ</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[PC]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://g-taki.com/wordpress/?p=5386</guid>
		<description><![CDATA[メモ 最新のzf.zipをダウンロードして解凍。 /usr/local に、zend/share/ZendFramework/ を作成。 解凍したZF一式をここにコピー。 sudo ln -s /usr/local/ze &#8230; <a href="http://g-taki.com/wordpress/web/5386.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>メモ</p>
<ol>
<li>最新のzf.zipをダウンロードして解凍。</li>
<li>/usr/local に、zend/share/ZendFramework/ を作成。</li>
<li>解凍したZF一式をここにコピー。</li>
<li>sudo ln -s /usr/local/zend/share/ZendFramework/bin/zf.sh /usr/bin/zf<br />
sudo ln -s /usr/local/zend/share/ZendFramework/bin/zf.php /usr/bin/zf.php</li>
</ol>
<p>ここまでやって、コマンドラインからzfを実行してみたところエラーがでた。</p>
<blockquote><p>***************************** ZF ERROR ********************************<br />
In order to run the zf command, you need to ensure that Zend Framework<br />
is inside your include_path.  There are a variety of ways that you can<br />
ensure that this zf command line tool knows where the Zend Framework<br />
library is on your system, but not all of them can be described here.</p>
<p>The easiest way to get the zf command running is to give it the include<br />
path via an environment variable ZEND_TOOL_INCLUDE_PATH or<br />
ZEND_TOOL_INCLUDE_PATH_PREPEND with the proper include path to use,<br />
then run the command &#8220;zf &#8211;setup&#8221;.  This command is designed to create<br />
a storage location for your user, as well as create the zf.ini file<br />
that the zf command will consult in order to run properly on your<br />
system.</p>
<p>Example you would run:</p>
<p>$ ZEND_TOOL_INCLUDE_PATH=/path/to/library zf &#8211;setup</p>
<p>Your are encourged to read more in the link that follows.<br />
Zend_Tool &amp; CLI Setup Information<br />
(available via the command line &#8220;zf &#8211;info&#8221;)<br />
* Home directory found in environment variable HOME with value /Users/hoge<br />
* Storage directory assumed in home directory at location /Users/hoge/.zf/<br />
* Storage directory does not exist at /Users/hoge/.zf/<br />
* Config file assumed in home directory at location /Users/hoge/.zf.ini<br />
* Config file does not exist at /Users/hoge/.zf.ini</p>
<p>To change the setup of this tool, run: &#8220;zf &#8211;setup&#8221;</p></blockquote>
<p>ふむ。<br />
確かに、include_pathに、zendのライブラリを追加登録してないからね。でもこのメッセージを見ると、ホームディレクトリに.zf.iniを作れば良さそうだな。</p>
<blockquote><p>ZEND_TOOL_INCLUDE_PATH=/usr/local/zend/share/ZendFramework/library zf &#8211;setup</p></blockquote>
<p>を実行してみたところエラーも無く表示された。</p>
<blockquote><p>ZF Command Line Tool &#8211; Setup<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Current Paths (Existing or not):<br />
Home Directory: /Users/hoge<br />
Storage Directory: /Users/hoge/.zf/<br />
Config File: /Users/hoge/.zf.ini</p>
<p>Important Environment Variables:<br />
ZF_HOME<br />
- the directory this tool will look for a home directory<br />
- directory must exist<br />
ZF_STORAGE_DIRECTORY<br />
- where this tool will look for a storage directory<br />
- directory must exist<br />
ZF_CONFIG_FILE<br />
- where this tool will look for a configuration file<br />
ZF_INCLUDE_PATH<br />
- set the include_path for this tool to use this value<br />
ZF_INCLUDE_PATH_PREPEND<br />
- prepend the current php.ini include_path with this value</p>
<p>Search Order:<br />
Home Directory:<br />
- ZF_HOME, then HOME (*nix), then HOMEPATH (windows)<br />
Storage Directory:<br />
- ZF_STORAGE_DIR, then {home}/.zf/<br />
Config File:<br />
- ZF_CONFIG_FILE, then {home}/.zf.ini, then {home}/zf.ini,<br />
then {storage}/zf.ini</p>
<p>Commands:<br />
zf &#8211;setup storage-directory<br />
- setup the storage directory, directory will be created<br />
zf &#8211;setup config-file<br />
- create the config file with some default values</p></blockquote>
<p>一番最後zf &#8211;setup config-file、これが .zf.iniの作成だな。直前の命令の最後にconfig-fileを追加してみたところ、</p>
<blockquote><p>NOTE: the php include_path to be used with the tool has been written<br />
to the config file, using ZF_INCLUDE_PATH (or other include_path setters)<br />
is no longer necessary.</p>
<p>Config file written to /Users/hoge/.zf.ini</p></blockquote>
<p>良さそうだ。<br />
中身を見ると、</p>
<blockquote><p>php.include_path = &#8220;/usr/local/zend/share/ZendFramework/library&#8221;</p></blockquote>
<p>。。。<br />
これでいいのかな？<br />
念のため、</p>
<blockquote><p>php.include_path = &#8220;./usr/lib/php:/usr/local/zend/share/ZendFramework/library&#8221;</p></blockquote>
<p>として上書き保存。</p>
<p>これでzfがローカルな環境でzfが使えるようになった。</p>
<p>OSXのWEB共有、このzf (PHP) 、sqliteで、Webアプリケーションの開発ができるな。mysqlやpostgresもosxにインストールしてしまえば、vmwareが不要になりそうだな。<br />
だが後数日でLionがでるようだから、それが落ち着いてからにしよう。</p>
]]></content:encoded>
			<wfw:commentRss>http://g-taki.com/wordpress/web/5386.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://g-taki.com/wordpress/web/5386.html" />
	</item>
	</channel>
</rss>

