<?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>DailyHckr &#187; tips</title>
	<atom:link href="http://hylom.net/tag/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://hylom.net</link>
	<description>Hack, Hacker, Hackest</description>
	<lastBuildDate>Mon, 16 Jan 2012 13:32:56 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>x86_64版CentOS 5.5で64ビット版FirefoxでJavaプラグインを使う</title>
		<link>http://hylom.net/2010/09/09/firefox-java-plugin-with-centos-64bit/</link>
		<comments>http://hylom.net/2010/09/09/firefox-java-plugin-with-centos-64bit/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 09:45:41 +0000</pubDate>
		<dc:creator>hylom</dc:creator>
				<category><![CDATA[Docs]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://hylom.net/?p=1317</guid>
		<description><![CDATA[　x86_64版CentOS 5.5のFirefoxでのJavaプラグイン導入に軽くハマったのでメモ。 　x86_64版のCentOS 5でFirefoxにJavaプラグインを導入したい場合、ググると「32ビット版Firefox＋32ビット版Javaランタイムを使え」という話がぼちぼちとヒットするわけですが、とりあえずJavaプラグインだけを使いたい場合は64ビット版でも可能なようです。ていうか自分の場合、32ビット版を導入しようとしたらうまくいきませんでした……。 　ということで、手順。まず64ビット版Firefoxをインストール。 $ sudo yum install firefox # 64ビット版Firefoxをインストール 　続いてjava.comのダウンロードページから「Linux x64 RPM」をダウンロード。 　RPMと書いてあるが、ダウンロードしたファイルはRPMではなくインストーラなので、root権限で実行してインストール。自動的にRPMがインストールされる。 $ chmod +x jre-6u21-linux-x64-rpm.bin $ sudo ./jre-6u21-linux-x64-rpm.bin 　続いて設定。インストールしたjreを利用するようalternativesコマンドで指定。 $ sudo /usr/sbin/alternatives --install /usr/bin/java java /usr/java/jre1.6.0_21/bin/java 2 $ sudo /usr/sbin/alternatives --config java 　最後にmozilla用プラグインフォルダにプラグインのシンボリックリンクを張って完了。 $ cd /usr/lib64/mozilla/plugins/ $ sudo ln -sf usr/java/jre1.6.0_21/lib/amd64/libnpjp2.so . 　あとはFirefoxでabout:pluginsを開きプラグインが正しくインストールされているか確認したり、java.comにアクセスして動作を確認するなり適当にどうぞ。]]></description>
			<content:encoded><![CDATA[<p>　x86_64版CentOS 5.5のFirefoxでのJavaプラグイン導入に軽くハマったのでメモ。</p>
<p>　x86_64版のCentOS 5でFirefoxにJavaプラグインを導入したい場合、ググると「32ビット版Firefox＋32ビット版Javaランタイムを使え」という話がぼちぼちとヒットするわけですが、とりあえずJavaプラグインだけを使いたい場合は64ビット版でも可能なようです。ていうか自分の場合、32ビット版を導入しようとしたらうまくいきませんでした……。</p>
<p>　ということで、手順。まず64ビット版Firefoxをインストール。</p>
<pre>
$ sudo yum install firefox  # 64ビット版Firefoxをインストール
</pre>
<p>　続いて<a href="http://www.java.com/en/download/manual.jsp">java.comのダウンロードページ</a>から「Linux x64 RPM」をダウンロード。</p>
<div class="wp-caption aligncenter" style="width: 510px"><img alt="「Linux x86 RPM」をダウンロードする" src="http://hylom.net/img/blog/100909/dl_jre.png" title="「Linux x86 RPM」をダウンロードする" width="500" height="238" /><p class="wp-caption-text">「Linux x86 RPM」をダウンロードする</p></div>
<p>　RPMと書いてあるが、ダウンロードしたファイルはRPMではなくインストーラなので、root権限で実行してインストール。自動的にRPMがインストールされる。</p>
<pre>
$ chmod +x jre-6u21-linux-x64-rpm.bin
$ sudo ./jre-6u21-linux-x64-rpm.bin
</pre>
<p>　続いて設定。インストールしたjreを利用するようalternativesコマンドで指定。</p>
<pre>
$ sudo /usr/sbin/alternatives --install /usr/bin/java java /usr/java/jre1.6.0_21/bin/java 2
$ sudo /usr/sbin/alternatives --config java
</pre>
<p>　最後にmozilla用プラグインフォルダにプラグインのシンボリックリンクを張って完了。</p>
<pre>
$ cd /usr/lib64/mozilla/plugins/
$ sudo ln -sf usr/java/jre1.6.0_21/lib/amd64/libnpjp2.so .
</pre>
<p>　あとはFirefoxでabout:pluginsを開きプラグインが正しくインストールされているか確認したり、java.comにアクセスして動作を確認するなり適当にどうぞ。</p>
]]></content:encoded>
			<wfw:commentRss>http://hylom.net/2010/09/09/firefox-java-plugin-with-centos-64bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gitでローカルファイルのバックアップ</title>
		<link>http://hylom.net/2009/04/14/20090414_git/</link>
		<comments>http://hylom.net/2009/04/14/20090414_git/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 06:31:31 +0000</pubDate>
		<dc:creator>hylom</dc:creator>
				<category><![CDATA[Docs]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://hylom.net/2009/04/14/20090414_git/</guid>
		<description><![CDATA[　Gitでローカルファイルの差分バックアップをやってみるテスト。 前提： ミラーリングされているファイルサーバーがある いままでは作業用PCがクラッシュしても大丈夫なように、作業後にいちいちファイルをファイルサーバー中のディレクトリに上書きコピーしていた ファイル数が多くなる/容量が大きくなると面倒 これだと履歴管理ができない（Emacsの~.1のようなバックアップファイルに頼ることに） 　ということで、下記の手順でGitで差分バックアップをやってみる。 作業ディレクトリをgitリポジトリ化する。 $ git init $ git add ＜対象ファイル＞ $ git commit -m "＜コメント＞" ファイルサーバーにgitのbareリポジトリを作る $ cd ＜バックアップディレクトリ＞ $ mkdir ＜適当なディレクトリ名＞.git $ cd ＜ディレクトリ名＞.git $ git init --bare ファイルサーバー内のbareリポジトリにコミット $ cd ＜作業ディレクトリ＞ $ git remote add origin ＜ファイルサーバー上のbareリポジトリのパス＞ $ git push master:master 　あとは作業が一段落したタイミングごとにコミット＋pushをしていけばいいだけのはず。しかしこういう目的で使い出すとWindows上で動く、使いやすいGUIフロントエンドがほしくなるところではある。]]></description>
			<content:encoded><![CDATA[<p> 　Gitでローカルファイルの差分バックアップをやってみるテスト。</p>
<p> 前提：</p>
<ul>
<li>  ミラーリングされているファイルサーバーがある </li>
<li>  いままでは作業用PCがクラッシュしても大丈夫なように、作業後にいちいちファイルをファイルサーバー中のディレクトリに上書きコピーしていた </li>
<li>  ファイル数が多くなる/容量が大きくなると面倒 </li>
<li>  これだと履歴管理ができない（Emacsの~.1のようなバックアップファイルに頼ることに） </li>
</ul>
<p> 　ということで、下記の手順でGitで差分バックアップをやってみる。</p>
<ol>
<li>  作業ディレクトリをgitリポジトリ化する。
<pre>
$ git init
$ git add ＜対象ファイル＞
$ git commit -m "＜コメント＞"
  </pre>
</li>
<li>  ファイルサーバーにgitのbareリポジトリを作る
<pre>
$ cd ＜バックアップディレクトリ＞
$ mkdir ＜適当なディレクトリ名＞.git
$ cd ＜ディレクトリ名＞.git
$ git init --bare
  </pre>
</li>
<li>  ファイルサーバー内のbareリポジトリにコミット
<pre>
$ cd ＜作業ディレクトリ＞
$ git remote add origin ＜ファイルサーバー上のbareリポジトリのパス＞
$ git push master:master
  </pre>
</li>
</ol>
<p> 　あとは作業が一段落したタイミングごとにコミット＋pushをしていけばいいだけのはず。しかしこういう目的で使い出すとWindows上で動く、使いやすいGUIフロントエンドがほしくなるところではある。</p>
]]></content:encoded>
			<wfw:commentRss>http://hylom.net/2009/04/14/20090414_git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

