<?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/"
	>

<channel>
	<title>わすれないように. &#187; サーバー系</title>
	<atom:link href="http://www.makies.com/tags/%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e7%b3%bb/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.makies.com</link>
	<description>メモ書き程度。</description>
	<lastBuildDate>Sun, 13 Nov 2011 13:58:27 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Debianのlocaleを改めて設定した</title>
		<link>http://www.makies.com/2011/11/287/</link>
		<comments>http://www.makies.com/2011/11/287/#comments</comments>
		<pubDate>Tue, 08 Nov 2011 15:15:27 +0000</pubDate>
		<dc:creator>maki</dc:creator>
				<category><![CDATA[コマンド]]></category>
		<category><![CDATA[サーバー系]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[locale]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.makies.com/?p=287</guid>
		<description><![CDATA[家Xenのロケール設定が今さらおかしいのに気がついたので以下の作業を行った $ sudo aptitude install locales # 多国語サポート (ロケール) 用データインストール $ sudo dpkg-reconfigure locales # 設定画面開く。 ja_JP.EUC-JP EUC-JP, ja_JP.UTF-8 UTF-8を選択。 デフォルトのロケールを ja_JP.UTF-8 にしとく。 git diff などのコマンド出力結果で日本語を表示するところが文字化けしていた問題、これでようやく解決した。もっと早くやればよかった・・・。]]></description>
			<content:encoded><![CDATA[<p>家Xenのロケール設定が今さらおかしいのに気がついたので以下の作業を行った</p>
<blockquote><p>$ sudo aptitude install locales   # 多国語サポート (ロケール) 用データインストール<br />
$ sudo dpkg-reconfigure locales  # 設定画面開く。
</p></blockquote>
<p><strong>ja_JP.EUC-JP EUC-JP, ja_JP.UTF-8 UTF-8</strong>を選択。</p>
<p>デフォルトのロケールを<br />
<strong>ja_JP.UTF-8</strong><br />
にしとく。</p>
<p>git diff などのコマンド出力結果で日本語を表示するところが文字化けしていた問題、これでようやく解決した。もっと早くやればよかった・・・。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.makies.com/2011/11/287/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Macで git push したら git-receive-pack: command not found のエラーが出たときの対処法</title>
		<link>http://www.makies.com/2011/11/285/</link>
		<comments>http://www.makies.com/2011/11/285/#comments</comments>
		<pubDate>Sat, 05 Nov 2011 02:13:31 +0000</pubDate>
		<dc:creator>maki</dc:creator>
				<category><![CDATA[git]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[コマンド]]></category>
		<category><![CDATA[サーバー系]]></category>
		<category><![CDATA[command]]></category>

		<guid isPermaLink="false">http://www.makies.com/?p=285</guid>
		<description><![CDATA[Macでインストーラー版gitをインストールした場合、git push コマンドを実行すると、こんなエラーが出る bash: line1: command not found: git-receive-pack fatal: The remote end hung up unexpectedly パスが通ってないのが原因なので、.bashrc にこの1行を追加すればOK export PATH=$PATH:/usr/local/bin]]></description>
			<content:encoded><![CDATA[<p>Macでインストーラー版gitをインストールした場合、git push コマンドを実行すると、こんなエラーが出る</p>
<blockquote><p>bash: line1: command not found: git-receive-pack<br />
fatal: The remote end hung up unexpectedly</p></blockquote>
<p>パスが通ってないのが原因なので、.bashrc にこの1行を追加すればOK</p>
<blockquote><p>export PATH=$PATH:/usr/local/bin</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.makies.com/2011/11/285/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac OS X (10.7) Lion で 簡単にsshfsマウントする方法</title>
		<link>http://www.makies.com/2011/10/274/</link>
		<comments>http://www.makies.com/2011/10/274/#comments</comments>
		<pubDate>Sat, 29 Oct 2011 15:49:45 +0000</pubDate>
		<dc:creator>maki</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[コマンド]]></category>
		<category><![CDATA[サーバー系]]></category>

		<guid isPermaLink="false">http://www.makies.com/?p=274</guid>
		<description><![CDATA[MacからCentOSやDebian,Ubuntu 等 ssh アクセスできるサーバーをマウントする方法。 マウントしてしまえばFinderからはローカルにあるディレクトリと同じようにファイル操作ができるし、 サーバー上にあるファイルをEclipseから編集することもできる(※1)。 開発を始めるたびにターミナルからコマンドを叩くのは間違えてしまうこともあるので、 アイコンをダブルクリックするだけでマウントできるようにしておきたい。 会社に置きっぱなしのデスクトップマシンだと、.bash_profileに書いてしまうという選択肢もあるだろうが 自分が使っているのはMacBook Air で毎日持ち歩いているため、家では自宅サーバーを、会社では今担当しているプロジェクト用のサーバーをマウントしたい（場合により別なサーバーを参照することもある）環境なため、必要なときに必要なところにだけ接続するようにしている。 Mac OS X (10.7) にしてから、MacFuse公式(?) Google Docs にあるパッケージをDLしてインストールしても そのままでは動かなくなってしまったので、操作手順をまとめておく。 http://blog.philippklaus.de/2011/04/fix-sshfs-with-macfuse-on-mac-os-x-10-6-7-snow-leopard/ こちらの記事を参考にした。 this macfuse version このリンクから macfuse-core-10.5-2.1.9.dmg をダウンロード。 マウント後、MacFUSE Core.pkg をダブルクリックしてインストーラーの指示に従って MacFuseをインストールする sshfs のバイナリファイルをsvnチェックアウト 保存はお好きなところへ。 $ svn co http://macfuse.googlecode.com/svn/trunk/filesystems/sshfs/binary &#8230; <a href="http://www.makies.com/2011/10/274/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>MacからCentOSやDebian,Ubuntu 等 ssh アクセスできるサーバーをマウントする方法。    <br />マウントしてしまえばFinderからはローカルにあるディレクトリと同じようにファイル操作ができるし、     <br />サーバー上にあるファイルをEclipseから編集することもできる(※1)。</p>
<p>開発を始めるたびにターミナルからコマンドを叩くのは間違えてしまうこともあるので、    <br />アイコンをダブルクリックするだけでマウントできるようにしておきたい。</p>
<p>会社に置きっぱなしのデスクトップマシンだと、.bash_profileに書いてしまうという選択肢もあるだろうが    <br />自分が使っているのはMacBook Air で毎日持ち歩いているため、家では自宅サーバーを、会社では今担当しているプロジェクト用のサーバーをマウントしたい（場合により別なサーバーを参照することもある）環境なため、必要なときに必要なところにだけ接続するようにしている。</p>
<p>Mac OS X (10.7) にしてから、MacFuse公式(?) Google Docs にあるパッケージをDLしてインストールしても    <br />そのままでは動かなくなってしまったので、操作手順をまとめておく。     </p>
<p><a href="http://blog.philippklaus.de/2011/04/fix-sshfs-with-macfuse-on-mac-os-x-10-6-7-snow-leopard/">http://blog.philippklaus.de/2011/04/fix-sshfs-with-macfuse-on-mac-os-x-10-6-7-snow-leopard/</a>     <br />こちらの記事を参考にした。</p>
<p><span id="more-274"></span>
<p>this macfuse version    <br />このリンクから macfuse-core-10.5-2.1.9.dmg をダウンロード。 マウント後、MacFUSE Core.pkg をダブルクリックしてインストーラーの指示に従って MacFuseをインストールする</p>
<p>sshfs のバイナリファイルをsvnチェックアウト 保存はお好きなところへ。</p>
<blockquote><p>$ svn co <a href="http://macfuse.googlecode.com/svn/trunk/filesystems/sshfs/binary">http://macfuse.googlecode.com/svn/trunk/filesystems/sshfs/binary</a> sshfs-binaries     <br />$ cp sshfs-binaries/sshfs-static-leopard ~/bin/sshfs-static-leopard     <br />$ chmod 744 ~/bin/sshfs-static-leopard </p></blockquote>
<p>URKここまでやると、ターミナルからコマンドを叩いてsshfsマウントできる</p>
<blockquote><p># 先にマウントポイントを作成しておく      <br />$ mkdir ~mnt/example       <br /># マウント       <br />$ sshfs maki@example.com:/home/maki ~/mnt/example</p>
</blockquote>
<p>マウントできるとこのようなエラーが出るが、特に問題はないみたい。 </p>
<blockquote><p>sshfs: cannot find sshnodelay.so      <br />warning: ssh nodelay workaround disabled</p>
</blockquote>
<p>マウントしたいときにコマンドを叩けばこれでマウントできるようにはなったが、もう一工夫。</p>
<p>Automator.appを起動する。OS標準搭載のアプリで、Applicationフォルダに入っているので Spotlightから探すのも良し、Lion であればLaunchpad から起動しても良い。    <br /><a href="http://www.makies.com/uploads/automator-21.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="automator-2" border="0" alt="automator-2" src="http://www.makies.com/uploads/automator-2_thumb1.jpg" width="644" height="473" /></a></p>
<p>起動すると&quot;書類の種類&quot;を聞かれるので、ワークフロー を選択する。 ライブラリ &gt; ユーティリティー に シェルスクリプトを実行 があるので左側のエリアにドラッグアンドドロップ。 追加されたら、先程ターミナルで叩いたsshfsのコマンドをそのままペーストする。 保存するときにのフォーマットをアプリケーションに指定して自分のわかりやすい位置に保存する。自分はデスクトップに保存した。</p>
<p>これで保存したアプリケーションをダブルクリックするだけでマウントできるようになった。 デフォルトでAutomatorのアイコンになるので、お好みのアイコンに変更するとこんな感じ。    <br /><a href="http://www.makies.com/uploads/Desktop.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="Desktop" border="0" alt="Desktop" src="http://www.makies.com/uploads/Desktop_thumb.jpg" width="120" height="60" /></a></p>
<p>アイコンはここのを使わせてもらっている<br /><a href="http://kittenbella.deviantart.com/art/kawaii-babies-icons-96646250?q=boost%3Apopular%20in%3Acustomization%2Ficons%2Fdock&#038;qo=49" target="_blank">kawaii babies icons by ~kittenbella on deviantART</a></p>
<p>アイコンを変更する方法は tipshare.info の記事が参考になる。    <br /><a href="http://tipshare.info/view/4eaa41d14b2122294e000003">Macのデスクトップにあるweblocファイルのアイコンを変更 | tipshare.info</a></p>
<p>ダブルクリックするだけで&quot;簡単に&quot;マウントするためには、sshを公開鍵認証(パスフレーズなし）でログインできるようにしておくのがポイントになる。</p>
<p>記事で説明するために接続先を example.com としているが、実際には .ssh/config に設定を書いてサーバーのアドレスやポート、鍵ファイルを指定しなくても接続できるようにしている。こうしておくことで、サーバーのIPアドレスなどが変更になっても .ssh/config を書き換えるだけで、sshやsshfsコマンドはそれまでどおりで接続することができる。</p>
<p>&#160;</p>
<p>※1. ネットワーク的にローカルIPでアクセスできようともVPN越しのマウントでは帯域不足なのか、Eclipseから編集するのはもっさりどころかカクカクで全く作業にならなかった。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.makies.com/2011/10/274/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>そろそろまたvimを勉強しようかと</title>
		<link>http://www.makies.com/2011/08/241/</link>
		<comments>http://www.makies.com/2011/08/241/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 13:59:29 +0000</pubDate>
		<dc:creator>maki</dc:creator>
				<category><![CDATA[vim]]></category>
		<category><![CDATA[サーバー系]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.makies.com/?p=241</guid>
		<description><![CDATA[2011-05-15 そろそろしっかりvimを使う。dotfilesのgithub管理とvundleの導入。 &#8211; holyppの日記 ここを参考に、dotfilesをgit管理するようにしつつ、 vimのプラグイン管理でvundleを使うようにしてみた。 昨日は pathogen.vim っていうpluginと、git submodule　を使う方向でやってみたんだけど、 最近の流れとしてはvundleの方が良さそうなので、今のうちにサクッと乗り換えた。]]></description>
			<content:encoded><![CDATA[<blockquote><p><a href="http://d.hatena.ne.jp/holypp/20110515">2011-05-15 そろそろしっかりvimを使う。dotfilesのgithub管理とvundleの導入。 &#8211; holyppの日記</a></p></blockquote>
<p>ここを参考に、dotfilesをgit管理するようにしつつ、<br />
vimのプラグイン管理でvundleを使うようにしてみた。</p>
<p>昨日は pathogen.vim っていうpluginと、git submodule　を使う方向でやってみたんだけど、<br />
最近の流れとしてはvundleの方が良さそうなので、今のうちにサクッと乗り換えた。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.makies.com/2011/08/241/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vimの設定</title>
		<link>http://www.makies.com/2009/06/181/</link>
		<comments>http://www.makies.com/2009/06/181/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 02:23:41 +0000</pubDate>
		<dc:creator>maki</dc:creator>
				<category><![CDATA[サーバー系]]></category>

		<guid isPermaLink="false">http://www.makies.com/200906/181/</guid>
		<description><![CDATA[terminal.appからvi(vim)を使うときの設定 syntax on set tabstop=4 set encoding=utf-8 set termencoding=utf-8 set fileencodings=utf-8,euc-jp,cp932 ~/.vimrc のファイルにこの設定を書いておくと良いみたい。]]></description>
			<content:encoded><![CDATA[<p>terminal.appからvi(vim)を使うときの設定</p>
<blockquote>
<p>syntax on<br />
  set tabstop=4<br />
  set encoding=utf-8<br />
  set termencoding=utf-8<br />
  set fileencodings=utf-8,euc-jp,cp932</p>
</blockquote>
<p>~/.vimrc のファイルにこの設定を書いておくと良いみたい。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.makies.com/2009/06/181/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>/dev/fd/62: No such file or directory　のエラーが出た時の対処法</title>
		<link>http://www.makies.com/2009/06/177/</link>
		<comments>http://www.makies.com/2009/06/177/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 13:54:01 +0000</pubDate>
		<dc:creator>maki</dc:creator>
				<category><![CDATA[サーバー系]]></category>

		<guid isPermaLink="false">http://www.makies.com/200906/177/</guid>
		<description><![CDATA[Linux Tips: bash completion: /dev/fd/62: No such file or directory # tail -f /va&#60;TAB&#62;-bash: /dev/fd/62: No such file or directory -bash: /dev/fd/60: No such file or directory このようなエラーメッセージが出て、タブ補完が出来なくなってしまった時の対応 ln -s /proc/self/fd /dev/fd このコマンドをrootで実行するとエラーが出なくなった。]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ducea.com/2009/02/18/linux-tips-bash-completion-devfd62-no-such-file-or-directory/">Linux Tips: bash completion: /dev/fd/62: No such file or directory</a></p>
<blockquote><p># tail -f /va&lt;TAB&gt;-bash: /dev/fd/62: No such file or directory</p>
<p>-bash: /dev/fd/60: No such file or directory</p></blockquote>
<p>このようなエラーメッセージが出て、タブ補完が出来なくなってしまった時の対応</p>
<blockquote><p>ln -s /proc/self/fd /dev/fd</p></blockquote>
<p>このコマンドをrootで実行するとエラーが出なくなった。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.makies.com/2009/06/177/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>別マシンのPostgresqlにGUIツールから接続したい</title>
		<link>http://www.makies.com/2008/07/57/</link>
		<comments>http://www.makies.com/2008/07/57/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 05:08:43 +0000</pubDate>
		<dc:creator>maki</dc:creator>
				<category><![CDATA[DB]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[サーバー系]]></category>

		<guid isPermaLink="false">http://www.makies.com/200807/57/</guid>
		<description><![CDATA[ローカルのGUIツールから接続したい時の設定がわからなくてハマったのでメモ。 #tcpip_socket = false tcpip_socket = true ちなみに、入れてみたGUIツールは、こちら。 PGnJ http://www.slicedsoftware.com/software/pgnj http://blog.tofu-kun.org/071011180140.php]]></description>
			<content:encoded><![CDATA[<p>ローカルのGUIツールから接続したい時の設定がわからなくてハマったのでメモ。</p>
<blockquote><p>#tcpip_socket = false<br />
<br />
tcpip_socket = true</p></blockquote>
<p>ちなみに、入れてみたGUIツールは、こちら。<br />
</p>
<p><strong>PGnJ</strong><br />
<br />
<a href="http://www.slicedsoftware.com/software/pgnj">http://www.slicedsoftware.com/software/pgnj</a><br />
<br />
<a href="http://blog.tofu-kun.org/071011180140.php">http://blog.tofu-kun.org/071011180140.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.makies.com/2008/07/57/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSHパスワード認証のパスワードを毎回入力しなくてすむ方法</title>
		<link>http://www.makies.com/2008/05/50/</link>
		<comments>http://www.makies.com/2008/05/50/#comments</comments>
		<pubDate>Thu, 29 May 2008 00:16:13 +0000</pubDate>
		<dc:creator>maki</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[サーバー系]]></category>

		<guid isPermaLink="false">http://www.makies.com/200805/50/</guid>
		<description><![CDATA[SSHのパスフレーズ認証を便利に使う &#124; cles::blog$HOME/.ssh/config にHost *ControlMaster autoControlPath /tmp/%r@%h:%pと書いておくと、２回目以降はパスワード入力無しでログイン出来るようになる。 うぉ、すげー。]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.cles.jp/item/2563">SSHのパスフレーズ認証を便利に使う | cles::blog</a>$HOME/.ssh/config に<code>Host *ControlMaster autoControlPath   /tmp/%r@%h:%p</code>と書いておくと、２回目以降はパスワード入力無しでログイン出来るようになる。 うぉ、すげー。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.makies.com/2008/05/50/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

