<?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>Dazzling World 2 &#187; Linux</title>
	<atom:link href="http://www.dazzlingworld2.com/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dazzlingworld2.com</link>
	<description>に！</description>
	<lastBuildDate>Mon, 30 Jan 2012 12:13:26 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image>
		<url>http://www.dazzlingworld2.com/mephistopeles2/wp-content/themes/wikistyle/rss2.png</url>
		<title>Dazzling World 2 &#187; Linux</title>
		<link>http://www.dazzlingworld2.com/</link>
	</image>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>epgrecで録画失敗する</title>
		<link>http://www.dazzlingworld2.com/post_5691.html</link>
		<comments>http://www.dazzlingworld2.com/post_5691.html#comments</comments>
		<pubDate>Sun, 08 Jan 2012 13:03:28 +0000</pubDate>
		<dc:creator>だかね</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[epgrec]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[TV]]></category>

		<guid isPermaLink="false">http://www.dazzlingworld2.com/?p=5691</guid>
		<description><![CDATA[たまに、EPGを取得するときにrecfsusb2nが動いたままになって録画に失敗しているときがある。 どうやらrecfsusb2nは、放送されてない等、信号のないときに動くと終了しなくなるらしい。 あくまで引数で渡すのは [...]]]></description>
			<content:encoded><![CDATA[<p>たまに、EPGを取得するときにrecfsusb2nが動いたままになって録画に失敗しているときがある。</p>
<p>どうやらrecfsusb2nは、放送されてない等、信号のないときに動くと終了しなくなるらしい。<br />
あくまで引数で渡すのは&#8221;録画時間&#8221;なわけで、信号ないと録画されなくて録画時間もゼロで終了しなくなる。ってことかな。</p>
<p>ってことで、do-record.shを弄ってみた。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;CHANNEL : <span style="color: #007800;">$CHANNEL</span>&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;DURATION: <span style="color: #007800;">$DURATION</span>&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;OUTPUT  : <span style="color: #007800;">$OUTPUT</span>&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;TUNER : <span style="color: #007800;">$TUNER</span>&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;TYPE : <span style="color: #007800;">$TYPE</span>&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;MODE : <span style="color: #007800;">$MODE</span>&quot;</span>
&nbsp;
<span style="color: #007800;">RECORDER</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>recfsusb2n
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #800000;">${OUTPUT}</span> = <span style="color: #ff0000;">&quot;/tmp/__temp.ts&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
        <span style="color: #007800;">$RECORDER</span> <span style="color: #660033;">--b25</span> <span style="color: #007800;">$CHANNEL</span> <span style="color: #007800;">$DURATION</span> <span style="color: #800000;">${OUTPUT}</span> <span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000; font-weight: bold;">&amp;</span>
        <span style="color: #007800;">cmd_pid</span>=<span style="color: #007800;">$!</span>
        <span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">65</span>
        <span style="color: #007800;">result</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">ps</span> <span style="color: #660033;">-ef</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #007800;">$cmd_pid</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">grep</span><span style="color: #000000; font-weight: bold;">`</span>
        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${result}</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
        <span style="color: #000000; font-weight: bold;">then</span>
                <span style="color: #c20cb9; font-weight: bold;">kill</span> <span style="color: #007800;">$cmd_pid</span>
                logger <span style="color: #660033;">-t</span> getepg recfsusb2n_err
        <span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">else</span>
        <span style="color: #007800;">$RECORDER</span> <span style="color: #660033;">--b25</span> <span style="color: #007800;">$CHANNEL</span> <span style="color: #007800;">$DURATION</span> <span style="color: #800000;">${OUTPUT}</span> <span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
<span style="color: #000000; font-weight: bold;">fi</span></pre></td></tr></table></div>

<p>出力ファイルでgetepg.phpから呼び出されたか判別して、EPG取得だったらrecfsusb2nをバックグラウンドで動かして65秒後も動いていたら、プロセスを殺してシステムログに書き込むようにした。<br />
普通の録画はそのまま。</p>
<p>たぶん、これで大丈夫なはず。</p>
<hr />
<p><small>© <a href="http://www.dazzlingworld2.com">Dazzling World 2</a>, 2012. |
<a href="http://www.dazzlingworld2.com/post_5691.html">Permalink</a> |
<a href="http://www.dazzlingworld2.com/post_5691.html#comments">One comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.dazzlingworld2.com/post_5691.html&title=epgrecで録画失敗する">del.icio.us</a>
<br/>
Post tags: <a href="http://www.dazzlingworld2.com/tags/epgrec" rel="tag">epgrec</a>, <a href="http://www.dazzlingworld2.com/tags/fedora" rel="tag">Fedora</a>, <a href="http://www.dazzlingworld2.com/tags/tv" rel="tag">TV</a><br/>
</small></p>
	<h3>関連記事</h3>
	<ul class="st-related-posts">
	<li><a href="http://www.dazzlingworld2.com/post_5449.html" title="epgrecのインストール (2011年9月13日)">epgrecのインストール</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_5371.html" title="Fedoraでテレビ録画 (2011年8月27日)">Fedoraでテレビ録画</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_3671.html" title="日本語も不自由ですが日本語しか… (2009年11月21日)">日本語も不自由ですが日本語しか…</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_3668.html" title="休日だからこそ (2009年11月21日)">休日だからこそ</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_5686.html" title="Fedora16へ (2012年1月7日)">Fedora16へ</a></li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dazzlingworld2.com/post_5691.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fedora16へ</title>
		<link>http://www.dazzlingworld2.com/post_5686.html</link>
		<comments>http://www.dazzlingworld2.com/post_5686.html#comments</comments>
		<pubDate>Sat, 07 Jan 2012 11:39:06 +0000</pubDate>
		<dc:creator>だかね</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Fedora]]></category>

		<guid isPermaLink="false">http://www.dazzlingworld2.com/?p=5686</guid>
		<description><![CDATA[遅くなったけど 1 2 3 4 5 # rpm -Uvh \ &#62; http://download.fedora.redhat.com/pub/fedora/linux/releases/16/Fedora/x86_ [...]]]></description>
			<content:encoded><![CDATA[<p>遅くなったけど</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="text" style="font-family:monospace;"># rpm -Uvh \
&gt; http://download.fedora.redhat.com/pub/fedora/linux/releases/16/Fedora/x86_64/os/Packages/fedora-release-16-1.noarch.rpm \
&gt; http://download.fedora.redhat.com/pub/fedora/linux/releases/16/Fedora/x86_64/os/Packages/fedora-release-notes-16.1.0-1.fc16.noarch.rpm
# yum clean all
# yum upgrade</pre></td></tr></table></div>

<p><a href="http://download.fedora.redhat.com/pub/fedora/linux/releases/">http://download.fedora.redhat.com/pub/fedora/linux/releases/</a></p>
<hr />
<p><small>© <a href="http://www.dazzlingworld2.com">Dazzling World 2</a>, 2012. |
<a href="http://www.dazzlingworld2.com/post_5686.html">Permalink</a> |
<a href="http://www.dazzlingworld2.com/post_5686.html#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.dazzlingworld2.com/post_5686.html&title=Fedora16へ">del.icio.us</a>
<br/>
Post tags: <a href="http://www.dazzlingworld2.com/tags/fedora" rel="tag">Fedora</a><br/>
</small></p>
	<h3>関連記事</h3>
	<ul class="st-related-posts">
	<li><a href="http://www.dazzlingworld2.com/post_3671.html" title="日本語も不自由ですが日本語しか… (2009年11月21日)">日本語も不自由ですが日本語しか…</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_3668.html" title="休日だからこそ (2009年11月21日)">休日だからこそ</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_5371.html" title="Fedoraでテレビ録画 (2011年8月27日)">Fedoraでテレビ録画</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_5287.html" title="Fedora15を最小インストールする (2011年7月26日)">Fedora15を最小インストールする</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_5449.html" title="epgrecのインストール (2011年9月13日)">epgrecのインストール</a></li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dazzlingworld2.com/post_5686.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javaのインストール</title>
		<link>http://www.dazzlingworld2.com/post_5531.html</link>
		<comments>http://www.dazzlingworld2.com/post_5531.html#comments</comments>
		<pubDate>Sat, 24 Sep 2011 05:57:41 +0000</pubDate>
		<dc:creator>だかね</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[備忘録]]></category>

		<guid isPermaLink="false">http://www.dazzlingworld2.com/?p=5531</guid>
		<description><![CDATA[Java SE DownloadsからJava SE JDKをダウンロード。 今回は最新のJava SE 7(Linux x64 &#8211; RPM Installer)を選択。 インストール インストールして、環境 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html">Java SE Downloads</a>からJava SE JDKをダウンロード。<br />
今回は最新のJava SE 7(Linux x64 &#8211; RPM Installer)を選択。</p>
<h3>インストール</h3>
<p>インストールして、環境変数を変更してパスを通す。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> rpm <span style="color: #660033;">-ivh</span> jdk-<span style="color: #000000;">7</span>-linux-x64.rpm
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>profile
<span style="color: #666666; font-style: italic;">#最終行に追加</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">JAVA_HOME</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>java<span style="color: #000000; font-weight: bold;">/</span>jdk1.7.0
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PATH</span>=<span style="color: #007800;">$PATH</span>:<span style="color: #007800;">$JAVA_HOME</span><span style="color: #000000; font-weight: bold;">/</span>bin
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">CLASSPATH</span>=.:<span style="color: #007800;">$JAVA_HOME</span><span style="color: #000000; font-weight: bold;">/</span>jre<span style="color: #000000; font-weight: bold;">/</span>lib:<span style="color: #007800;">$JAVA_HOME</span><span style="color: #000000; font-weight: bold;">/</span>lib:<span style="color: #007800;">$JAVA_HOME</span><span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>tools.jar
$ <span style="color: #7a0874; font-weight: bold;">source</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>profile</pre></td></tr></table></div>

<h3>確認</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">which</span> <span style="color: #660033;">-a</span> java
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>java
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>java<span style="color: #000000; font-weight: bold;">/</span>jdk1.7.0<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>java
$ <span style="color: #c20cb9; font-weight: bold;">which</span> <span style="color: #660033;">-a</span> javac
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>javac
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>java<span style="color: #000000; font-weight: bold;">/</span>jdk1.7.0<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>javac
$ java <span style="color: #660033;">-version</span>
java version <span style="color: #ff0000;">&quot;1.6.0_22&quot;</span>
OpenJDK Runtime Environment <span style="color: #7a0874; font-weight: bold;">&#40;</span>IcedTea6 1.10.3<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>fedora-59.1.10.3.fc15-x86_64<span style="color: #7a0874; font-weight: bold;">&#41;</span>
OpenJDK <span style="color: #000000;">64</span>-Bit Server VM <span style="color: #7a0874; font-weight: bold;">&#40;</span>build <span style="color: #000000;">20.0</span>-b11, mixed mode<span style="color: #7a0874; font-weight: bold;">&#41;</span>
$ javac <span style="color: #660033;">-version</span>
javac 1.7.0</pre></td></tr></table></div>

<p>もともと、OpenJDKが入っており、環境変数の最後に追加したためOpenJDKの方が優先され古いバージョンになってしまう。<br />
OpenJDKをアンインストールすればいいのだが、オフィスソフトまで消えてしまうのでコマンドの切り替えで対処することにする。</p>
<h3>対処</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ update-alternatives <span style="color: #660033;">--config</span> java
&nbsp;
<span style="color: #000000;">2</span> プログラムがあり <span style="color: #ff0000;">'java'</span> を提供します。
&nbsp;
選択 コマンド
<span style="color: #660033;">-----------------------------------------------</span>
<span style="color: #000000;">1</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>jvm<span style="color: #000000; font-weight: bold;">/</span>jre-1.5.0-gcj<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>java
<span style="color: #000000; font-weight: bold;">*</span>+ <span style="color: #000000;">2</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>jvm<span style="color: #000000; font-weight: bold;">/</span>jre-1.6.0-openjdk.x86_64<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>java
&nbsp;
Enter を押して現在の選択 <span style="color: #7a0874; font-weight: bold;">&#91;</span>+<span style="color: #7a0874; font-weight: bold;">&#93;</span> を保持するか、選択番号を入力します:</pre></td></tr></table></div>

<p>&#8220;/usr/java/jdk1.7.0/bin/java&#8221;をupdate-alternativesが管理してないようなので、追加する。<br />
その前に、この二つの優先度を確認する。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ update-alternatives <span style="color: #660033;">--display</span> java
java -ステータスは自動です。
リンクは現在 <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>jvm<span style="color: #000000; font-weight: bold;">/</span>jre-1.6.0-openjdk.x86_64<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>java を指しています。
<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>jvm<span style="color: #000000; font-weight: bold;">/</span>jre-1.5.0-gcj<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>java - 優先項目 <span style="color: #000000;">1500</span>
スレーブ keytool: <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>jvm<span style="color: #000000; font-weight: bold;">/</span>jre-1.5.0-gcj<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>keytool
～略～
<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>jvm<span style="color: #000000; font-weight: bold;">/</span>jre-1.6.0-openjdk.x86_64<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>java - 優先項目 <span style="color: #000000;">16000</span>
スレーブ keytool: <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>jvm<span style="color: #000000; font-weight: bold;">/</span>jre-1.6.0-openjdk.x86_64<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>keytool
～略～
現在の「最適」バージョンは <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>jvm<span style="color: #000000; font-weight: bold;">/</span>jre-1.6.0-openjdk.x86_64<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>java です。
<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">/</span>text<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
優先度<span style="color: #000000;">17000</span>くらいで。 <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>優先度の値をみるとバージョンなのかもしれない<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>text <span style="color: #007800;">gutter</span>=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> update-alternatives <span style="color: #660033;">--install</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>java java <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>java<span style="color: #000000; font-weight: bold;">/</span>jdk1.7.0<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>java <span style="color: #000000;">17000</span>
$ update-alternatives <span style="color: #660033;">--config</span> java
&nbsp;
<span style="color: #000000;">3</span> プログラムがあり <span style="color: #ff0000;">'java'</span> を提供します。
&nbsp;
選択 コマンド
<span style="color: #660033;">-----------------------------------------------</span>
<span style="color: #000000;">1</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>jvm<span style="color: #000000; font-weight: bold;">/</span>jre-1.5.0-gcj<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>java
<span style="color: #000000;">2</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>jvm<span style="color: #000000; font-weight: bold;">/</span>jre-1.6.0-openjdk.x86_64<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>java
<span style="color: #000000; font-weight: bold;">*</span>+ <span style="color: #000000;">3</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>java<span style="color: #000000; font-weight: bold;">/</span>jdk1.7.0<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>java
&nbsp;
Enter を押して現在の選択 <span style="color: #7a0874; font-weight: bold;">&#91;</span>+<span style="color: #7a0874; font-weight: bold;">&#93;</span> を保持するか、選択番号を入力します:
&nbsp;
$ java <span style="color: #660033;">-version</span>
java version <span style="color: #ff0000;">&quot;1.7.0&quot;</span>
Java<span style="color: #7a0874; font-weight: bold;">&#40;</span>TM<span style="color: #7a0874; font-weight: bold;">&#41;</span> SE Runtime Environment <span style="color: #7a0874; font-weight: bold;">&#40;</span>build 1.7.0-b147<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Java HotSpot<span style="color: #7a0874; font-weight: bold;">&#40;</span>TM<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">64</span>-Bit Server VM <span style="color: #7a0874; font-weight: bold;">&#40;</span>build <span style="color: #000000;">21.0</span>-b17, mixed mode<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></td></tr></table></div>

<p>バージョンが変わった。</p>
<hr />
<p><small>© <a href="http://www.dazzlingworld2.com">Dazzling World 2</a>, 2011. |
<a href="http://www.dazzlingworld2.com/post_5531.html">Permalink</a> |
<a href="http://www.dazzlingworld2.com/post_5531.html#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.dazzlingworld2.com/post_5531.html&title=Javaのインストール">del.icio.us</a>
<br/>
Post tags: <a href="http://www.dazzlingworld2.com/tags/%e5%82%99%e5%bf%98%e9%8c%b2" rel="tag">備忘録</a><br/>
</small></p>
	<h3>関連記事</h3>
	<ul class="st-related-posts">
	<li><a href="http://www.dazzlingworld2.com/post_5522.html" title="Skypeのインストール (2011年9月24日)">Skypeのインストール</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_5515.html" title="Fedora最初の一歩 (2011年9月24日)">Fedora最初の一歩</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_5449.html" title="epgrecのインストール (2011年9月13日)">epgrecのインストール</a></li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dazzlingworld2.com/post_5531.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Skypeのインストール</title>
		<link>http://www.dazzlingworld2.com/post_5522.html</link>
		<comments>http://www.dazzlingworld2.com/post_5522.html#comments</comments>
		<pubDate>Sat, 24 Sep 2011 05:25:48 +0000</pubDate>
		<dc:creator>だかね</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[備忘録]]></category>

		<guid isPermaLink="false">http://www.dazzlingworld2.com/?p=5522</guid>
		<description><![CDATA[Skype for Linux 2.2ベータ版から、Fedora 13+を選んでダウンロード。 さくっとインストール。 1 $ sudo rpm -ivh skype-2.2.0.35-fedora.i586.rpm メ [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.skype.com/intl/ja/get-skype/on-your-computer/linux/">Skype for Linux 2.2ベータ版</a>から、Fedora 13+を選んでダウンロード。<br />
さくっとインストール。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> rpm <span style="color: #660033;">-ivh</span> skype-2.2.0.35-fedora.i586.rpm</pre></td></tr></table></div>

<p>メニューから起動してみるも、うんともすんとも言わないのでコマンドから実行してみると、ライブラリが足りないみたい。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ skype
skype: error <span style="color: #000000; font-weight: bold;">while</span> loading shared libraries: libXss.so.1: cannot open shared object <span style="color: #c20cb9; font-weight: bold;">file</span>: No such <span style="color: #c20cb9; font-weight: bold;">file</span> or directory
$ <span style="color: #c20cb9; font-weight: bold;">ldd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>skype 
	linux-gate.so.1 =<span style="color: #000000; font-weight: bold;">&gt;</span>  <span style="color: #7a0874; font-weight: bold;">&#40;</span>0x002ed000<span style="color: #7a0874; font-weight: bold;">&#41;</span>
	libasound.so.2 =<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libasound.so.2 <span style="color: #7a0874; font-weight: bold;">&#40;</span>0x00b9b000<span style="color: #7a0874; font-weight: bold;">&#41;</span>
	libXv.so.1 =<span style="color: #000000; font-weight: bold;">&gt;</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>libXv.so.1 <span style="color: #7a0874; font-weight: bold;">&#40;</span>0x006e5000<span style="color: #7a0874; font-weight: bold;">&#41;</span>
	libXss.so.1 =<span style="color: #000000; font-weight: bold;">&gt;</span> not found
	librt.so.1 =<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>librt.so.1 <span style="color: #7a0874; font-weight: bold;">&#40;</span>0x481c8000<span style="color: #7a0874; font-weight: bold;">&#41;</span>
	libQtDBus.so.4 =<span style="color: #000000; font-weight: bold;">&gt;</span> not found
	libQtGui.so.4 =<span style="color: #000000; font-weight: bold;">&gt;</span> not found
	libQtNetwork.so.4 =<span style="color: #000000; font-weight: bold;">&gt;</span> not found
	libQtCore.so.4 =<span style="color: #000000; font-weight: bold;">&gt;</span> not found
	libpthread.so.0 =<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libpthread.so.0 <span style="color: #7a0874; font-weight: bold;">&#40;</span>0x48179000<span style="color: #7a0874; font-weight: bold;">&#41;</span>
	libstdc++.so.6 =<span style="color: #000000; font-weight: bold;">&gt;</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>libstdc++.so.6 <span style="color: #7a0874; font-weight: bold;">&#40;</span>0x00865000<span style="color: #7a0874; font-weight: bold;">&#41;</span>
	libm.so.6 =<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libm.so.6 <span style="color: #7a0874; font-weight: bold;">&#40;</span>0x4819c000<span style="color: #7a0874; font-weight: bold;">&#41;</span>
	libgcc_s.so.1 =<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libgcc_s.so.1 <span style="color: #7a0874; font-weight: bold;">&#40;</span>0x48355000<span style="color: #7a0874; font-weight: bold;">&#41;</span>
	libc.so.6 =<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libc.so.6 <span style="color: #7a0874; font-weight: bold;">&#40;</span>0x47feb000<span style="color: #7a0874; font-weight: bold;">&#41;</span>
	libdl.so.2 =<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libdl.so.2 <span style="color: #7a0874; font-weight: bold;">&#40;</span>0x48195000<span style="color: #7a0874; font-weight: bold;">&#41;</span>
	libX11.so.6 =<span style="color: #000000; font-weight: bold;">&gt;</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>libX11.so.6 <span style="color: #7a0874; font-weight: bold;">&#40;</span>0x4841c000<span style="color: #7a0874; font-weight: bold;">&#41;</span>
	libXext.so.6 =<span style="color: #000000; font-weight: bold;">&gt;</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>libXext.so.6 <span style="color: #7a0874; font-weight: bold;">&#40;</span>0x0099d000<span style="color: #7a0874; font-weight: bold;">&#41;</span>
	<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ld-linux.so.2 <span style="color: #7a0874; font-weight: bold;">&#40;</span>0x47fca000<span style="color: #7a0874; font-weight: bold;">&#41;</span>
	libxcb.so.1 =<span style="color: #000000; font-weight: bold;">&gt;</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>libxcb.so.1 <span style="color: #7a0874; font-weight: bold;">&#40;</span>0x4859b000<span style="color: #7a0874; font-weight: bold;">&#41;</span>
	libXau.so.6 =<span style="color: #000000; font-weight: bold;">&gt;</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>libXau.so.6 <span style="color: #7a0874; font-weight: bold;">&#40;</span>0x48676000<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></td></tr></table></div>

<p>&#8220;/usr/lib&#8221;なので32bitなのを使うみたい。<br />
libXss.so.1はlibXScrnSaver.i686を、libQt～はqt-x11.i686をインストールする。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> yum <span style="color: #c20cb9; font-weight: bold;">install</span> libXScrnSaver.i686 qt-x11.i686</pre></td></tr></table></div>

<p>これでSkypeが動くようになるはず。</p>
<hr />
<p><small>© <a href="http://www.dazzlingworld2.com">Dazzling World 2</a>, 2011. |
<a href="http://www.dazzlingworld2.com/post_5522.html">Permalink</a> |
<a href="http://www.dazzlingworld2.com/post_5522.html#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.dazzlingworld2.com/post_5522.html&title=Skypeのインストール">del.icio.us</a>
<br/>
Post tags: <a href="http://www.dazzlingworld2.com/tags/%e5%82%99%e5%bf%98%e9%8c%b2" rel="tag">備忘録</a><br/>
</small></p>
	<h3>関連記事</h3>
	<ul class="st-related-posts">
	<li><a href="http://www.dazzlingworld2.com/post_5531.html" title="Javaのインストール (2011年9月24日)">Javaのインストール</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_5515.html" title="Fedora最初の一歩 (2011年9月24日)">Fedora最初の一歩</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_5449.html" title="epgrecのインストール (2011年9月13日)">epgrecのインストール</a></li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dazzlingworld2.com/post_5522.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora最初の一歩</title>
		<link>http://www.dazzlingworld2.com/post_5515.html</link>
		<comments>http://www.dazzlingworld2.com/post_5515.html#comments</comments>
		<pubDate>Sat, 24 Sep 2011 00:55:26 +0000</pubDate>
		<dc:creator>だかね</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[備忘録]]></category>

		<guid isPermaLink="false">http://www.dazzlingworld2.com/?p=5515</guid>
		<description><![CDATA[・自動起動の設定(gnome) 1 $ gnome-session-properties ・起動時NumLockをONにする 1 $ yum install numlockx ・sshで接続する 1 $ ssh ユーザー [...]]]></description>
			<content:encoded><![CDATA[<p>・自動起動の設定(gnome)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ gnome-session-properties</pre></td></tr></table></div>

<p>・起動時NumLockをONにする</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ yum <span style="color: #c20cb9; font-weight: bold;">install</span> numlockx</pre></td></tr></table></div>

<p>・sshで接続する</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">ssh</span> ユーザー名<span style="color: #000000; font-weight: bold;">@</span>接続先ip <span style="color: #660033;">-p</span> ポート</pre></td></tr></table></div>

<p>・sambaを起動時にマウントする</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>fstab
<span style="color: #000000; font-weight: bold;">//</span>192.168.1.1  <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>hogehoge               cifs    <span style="color: #007800;">username</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span>,<span style="color: #007800;">password</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span>pass<span style="color: #7a0874; font-weight: bold;">&#41;</span>,<span style="color: #007800;">file_mode</span>=0755,<span style="color: #007800;">dir_mode</span>=0755 <span style="color: #000000;">0</span> <span style="color: #000000;">0</span></pre></td></tr></table></div>

<p>・x64なFirefoxにFlash Playerをインストール<br />
<a href="http://labs.adobe.com/technologies/flashplatformruntimes/flashplayer11/">Adobe Labs</a>からダウンロード。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">tar</span> xzvf flashplayer11_rc1_install_lin_64_090611.tar.gz 
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> libflashplayer.so <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib64<span style="color: #000000; font-weight: bold;">/</span>mozilla<span style="color: #000000; font-weight: bold;">/</span>plugins<span style="color: #000000; font-weight: bold;">/</span></pre></td></tr></table></div>

<hr />
<p><small>© <a href="http://www.dazzlingworld2.com">Dazzling World 2</a>, 2011. |
<a href="http://www.dazzlingworld2.com/post_5515.html">Permalink</a> |
<a href="http://www.dazzlingworld2.com/post_5515.html#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.dazzlingworld2.com/post_5515.html&title=Fedora最初の一歩">del.icio.us</a>
<br/>
Post tags: <a href="http://www.dazzlingworld2.com/tags/%e5%82%99%e5%bf%98%e9%8c%b2" rel="tag">備忘録</a><br/>
</small></p>
	<h3>関連記事</h3>
	<ul class="st-related-posts">
	<li><a href="http://www.dazzlingworld2.com/post_5522.html" title="Skypeのインストール (2011年9月24日)">Skypeのインストール</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_5531.html" title="Javaのインストール (2011年9月24日)">Javaのインストール</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_5449.html" title="epgrecのインストール (2011年9月13日)">epgrecのインストール</a></li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dazzlingworld2.com/post_5515.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>epgrecのインストール</title>
		<link>http://www.dazzlingworld2.com/post_5449.html</link>
		<comments>http://www.dazzlingworld2.com/post_5449.html#comments</comments>
		<pubDate>Tue, 13 Sep 2011 11:44:09 +0000</pubDate>
		<dc:creator>だかね</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[epgrec]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[TV]]></category>
		<category><![CDATA[備忘録]]></category>

		<guid isPermaLink="false">http://www.dazzlingworld2.com/?p=5449</guid>
		<description><![CDATA[録画予約システムepgrecを参考にインストールする。 epgdumpr2のインストール ソースをダウンロードして展開、ビルドする。 できた実行ファイルをパスが通ってる所に置く。 1 2 3 4 5 [root@yste [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mda.or.jp/epgrec/index.php/%E3%83%88%E3%83%83%E3%83%97%E3%83%9A%E3%83%BC%E3%82%B8">録画予約システムepgrec</a>を参考にインストールする。</p>
<h3>epgdumpr2のインストール</h3>
<p>ソースをダウンロードして展開、ビルドする。<br />
できた実行ファイルをパスが通ってる所に置く。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">[root@yste download]# wget --content-disposition 'http://www.mda.or.jp/epgrec/index.php?plugin=attach&amp;amp;refer=%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E5%89%8D%E3%81%AE%E6%BA%96%E5%82%99&amp;amp;openfile=epgdumpr2.tar.gz'
[root@yste download]# tar xvzf epgdumpr2.tar.gz
[root@yste download]# cd epgdumpr2
[root@yste epgdumpr2]# make
[root@yste epgdumpr2]# cp epgdump /usr/local/bin</pre></td></tr></table></div>

<h3>atのインストール</h3>
<p>fedoraにはどこかのタイミングで入るんじゃないかなぁ？<br />
ない場合は</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">[root@yste epgdumpr2]# yum install at</pre></td></tr></table></div>

<p>でインストールする。</p>
<h4>/etc/at.denyの設定</h4>
<p>apacheユーザーがないか確認する。</p>
<h4>/etc/passwdの確認</h4>
<p>通常、apacheユーザーはログイン不可のnologinになってると思うので<br />
/sbin/nologin から /bin/sh<br />
に変更する。<br />
<br/>
<a href="http://www.dazzlingworld2.com/post_5449.html">epgrecのインストール</a> の続きを読む</p>
<hr />
<p><small>© <a href="http://www.dazzlingworld2.com">Dazzling World 2</a>, 2011. |
<a href="http://www.dazzlingworld2.com/post_5449.html">Permalink</a> |
<a href="http://www.dazzlingworld2.com/post_5449.html#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.dazzlingworld2.com/post_5449.html&title=epgrecのインストール">del.icio.us</a>
<br/>
Post tags: <a href="http://www.dazzlingworld2.com/tags/epgrec" rel="tag">epgrec</a>, <a href="http://www.dazzlingworld2.com/tags/fedora" rel="tag">Fedora</a>, <a href="http://www.dazzlingworld2.com/tags/tv" rel="tag">TV</a>, <a href="http://www.dazzlingworld2.com/tags/%e5%82%99%e5%bf%98%e9%8c%b2" rel="tag">備忘録</a><br/>
</small></p>
	<h3>関連記事</h3>
	<ul class="st-related-posts">
	<li><a href="http://www.dazzlingworld2.com/post_5691.html" title="epgrecで録画失敗する (2012年1月8日)">epgrecで録画失敗する</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_5371.html" title="Fedoraでテレビ録画 (2011年8月27日)">Fedoraでテレビ録画</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_3671.html" title="日本語も不自由ですが日本語しか… (2009年11月21日)">日本語も不自由ですが日本語しか…</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_3668.html" title="休日だからこそ (2009年11月21日)">休日だからこそ</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_5522.html" title="Skypeのインストール (2011年9月24日)">Skypeのインストール</a></li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dazzlingworld2.com/post_5449.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedoraでテレビ録画</title>
		<link>http://www.dazzlingworld2.com/post_5371.html</link>
		<comments>http://www.dazzlingworld2.com/post_5371.html#comments</comments>
		<pubDate>Sat, 27 Aug 2011 13:30:44 +0000</pubDate>
		<dc:creator>だかね</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[TV]]></category>

		<guid isPermaLink="false">http://www.dazzlingworld2.com/?p=5371</guid>
		<description><![CDATA[Windowsで処理済みKTV-FSPCIEの動作確認もできたので、ぼちぼち録画サーバーの準備でもはじめようかなと思います。 環境はFedora15 x64にKTV-FSPCIE(処理済) recfsusb2n for  [...]]]></description>
			<content:encoded><![CDATA[<p>Windowsで処理済み<a href="http://www.keian.co.jp/products/products_info/ktv-fsupcie/ktv-fsupcie.html">KTV-FSPCIE</a>の動作確認もできたので、ぼちぼち録画サーバーの準備でもはじめようかなと思います。</p>
<p>環境はFedora15 x64にKTV-FSPCIE(処理済)</p>
<p><a href="http://tri.dw.land.to/fsusb2n/recfsusb2n.html">recfsusb2n for linux</a>?を参考にインストールする。</p>
<h3>ユーザーとグループの作成</h3>
<p>video グループを作成する。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;"># groupadd video</pre></td></tr></table></div>

<p>作った ?video グループにデバイスを使用するユーザーを追加する。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;"># gpasswd -a foo_user video</pre></td></tr></table></div>

<h3>パーミッションルールの追加</h3>
<p><del datetime="2011-11-30T11:23:08+00:00">fedoraで実績がうんぬん書いてあるのに、Ubuntuの場合しか書いてない…<br />
ちょろっと調べてfedora用にする</del>。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">#?vi /etc/udev/rules.d/89-tuner.rules
&nbsp;
# FSUSB2N
#kernel-2.6.41.1-1から参考元と同じになる。
#BUS==&quot;usb&quot; SYSFS{idVendor}==&quot;0511&quot;, SYSFS{idProduct}==&quot;0029&quot;, MODE=&quot;0666&quot;, GROUP=&quot;video&quot;
SUBSYSTEM==&quot;usb&quot;, ENV{DEVTYPE}==&quot;usb_device&quot;, ATTRS{idVendor}==&quot;0511&quot;, ATTRS{idProduct}==&quot;0029&quot;, MODE=&quot;0664&quot;, GROUP=&quot;video&quot;</pre></td></tr></table></div>

<p>再起動ついでにデバイスを取り付ける。</p>
<p><br/>
<a href="http://www.dazzlingworld2.com/post_5371.html">Fedoraでテレビ録画</a> の続きを読む</p>
<hr />
<p><small>© <a href="http://www.dazzlingworld2.com">Dazzling World 2</a>, 2011. |
<a href="http://www.dazzlingworld2.com/post_5371.html">Permalink</a> |
<a href="http://www.dazzlingworld2.com/post_5371.html#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.dazzlingworld2.com/post_5371.html&title=Fedoraでテレビ録画">del.icio.us</a>
<br/>
Post tags: <a href="http://www.dazzlingworld2.com/tags/fedora" rel="tag">Fedora</a>, <a href="http://www.dazzlingworld2.com/tags/tv" rel="tag">TV</a><br/>
</small></p>
	<h3>関連記事</h3>
	<ul class="st-related-posts">
	<li><a href="http://www.dazzlingworld2.com/post_5449.html" title="epgrecのインストール (2011年9月13日)">epgrecのインストール</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_5691.html" title="epgrecで録画失敗する (2012年1月8日)">epgrecで録画失敗する</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_3671.html" title="日本語も不自由ですが日本語しか… (2009年11月21日)">日本語も不自由ですが日本語しか…</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_3668.html" title="休日だからこそ (2009年11月21日)">休日だからこそ</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_5686.html" title="Fedora16へ (2012年1月7日)">Fedora16へ</a></li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dazzlingworld2.com/post_5371.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora15を最小インストールする</title>
		<link>http://www.dazzlingworld2.com/post_5287.html</link>
		<comments>http://www.dazzlingworld2.com/post_5287.html#comments</comments>
		<pubDate>Tue, 26 Jul 2011 11:57:49 +0000</pubDate>
		<dc:creator>だかね</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Fedora15]]></category>

		<guid isPermaLink="false">http://www.dazzlingworld2.com/?p=5287</guid>
		<description><![CDATA[1.Fedoraをダウンロード Fedora ProjectからDVD isoをダウンロード。 ダウンロード→その他のオプション-形式→Fedora 15 DVD(32bit ｏｒ 64bit) 実機にインストールする場 [...]]]></description>
			<content:encoded><![CDATA[<p>1.Fedoraをダウンロード<br />
<a href="http://fedoraproject.org/ja/">Fedora Project</a>からDVD isoをダウンロード。<br />
ダウンロード→その他のオプション-形式→Fedora 15 DVD(32bit ｏｒ 64bit)<br />
実機にインストールする場合はDVDに書き込む。</p>
<p>2.インストール開始<br />
Install a new system or upgrade an existing systemを選択しＥｎｔｅｒ。<br />
<a href="http://www.dazzlingworld2.com/post_5287.html/dw2011072602"><img src="http://www.dazzlingworld2.com/uploads/2011/07/dw2011072602-512x384.jpg" alt="dw2011072602 512x384 Fedora15を最小インストールする" title="インストール開始" width="512" height="384" class="alignnone size-large wp-image-5303" /></a></p>
<p><br/>
<a href="http://www.dazzlingworld2.com/post_5287.html">Fedora15を最小インストールする</a> の続きを読む</p>
<hr />
<p><small>© <a href="http://www.dazzlingworld2.com">Dazzling World 2</a>, 2011. |
<a href="http://www.dazzlingworld2.com/post_5287.html">Permalink</a> |
<a href="http://www.dazzlingworld2.com/post_5287.html#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.dazzlingworld2.com/post_5287.html&title=Fedora15を最小インストールする">del.icio.us</a>
<br/>
Post tags: <a href="http://www.dazzlingworld2.com/tags/fedora" rel="tag">Fedora</a>, <a href="http://www.dazzlingworld2.com/tags/fedora15" rel="tag">Fedora15</a><br/>
</small></p>
	<h3>関連記事</h3>
	<ul class="st-related-posts">
	<li><a href="http://www.dazzlingworld2.com/post_3671.html" title="日本語も不自由ですが日本語しか… (2009年11月21日)">日本語も不自由ですが日本語しか…</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_3668.html" title="休日だからこそ (2009年11月21日)">休日だからこそ</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_5371.html" title="Fedoraでテレビ録画 (2011年8月27日)">Fedoraでテレビ録画</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_5686.html" title="Fedora16へ (2012年1月7日)">Fedora16へ</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_5449.html" title="epgrecのインストール (2011年9月13日)">epgrecのインストール</a></li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dazzlingworld2.com/post_5287.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>view internal: RFC 1918 response from Internet for xxx.xxx.168.192.in-addr.arpa</title>
		<link>http://www.dazzlingworld2.com/post_4471.html</link>
		<comments>http://www.dazzlingworld2.com/post_4471.html#comments</comments>
		<pubDate>Fri, 04 Jun 2010 11:25:36 +0000</pubDate>
		<dc:creator>だかね</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[エラー]]></category>
		<category><![CDATA[サーバー]]></category>
		<category><![CDATA[プライベートアドレス]]></category>
		<category><![CDATA[ログ]]></category>

		<guid isPermaLink="false">http://www.dazzlingworld2.com/?p=4471</guid>
		<description><![CDATA[ログを見ていたらbindの以下のようなエラーが出てた。 1 Jun 4 18:01:04 bar named[xxxx]: client 127.0.0.1#xxxxx: view internal: RFC 1918  [...]]]></description>
			<content:encoded><![CDATA[<p>ログを見ていたらbindの以下のようなエラーが出てた。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">Jun  4 18:01:04 bar named[xxxx]: client 127.0.0.1#xxxxx: view internal: RFC 1918 response from Internet for xxxx.xxxx.168.192.in-addr.arpa</pre></td></tr></table></div>

<p>調べてみると、「プライベートアドレスが外に漏れてますよ」という意味らしい。<br />
ためしにサーバー上で</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dig</span> <span style="color: #660033;">-x</span> 192.168.123.123</pre></td></tr></table></div>

<p>をやってみたら、プライベートアドレスが見えて、ログが残った。<br />
view internalなので、このログ自体には問題はないんだけど、そのうち本当に外に漏れるかもしれないし、他に問題が発生するかもしれないので対処する。</p>
<p>/etc/named.conf</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">zone <span style="color: #ff0000;">&quot;168.192.IN-ADDR.ARPA&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
        <span style="color: #7a0874; font-weight: bold;">type</span> master;
        <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #ff0000;">&quot;empty&quot;</span>;
<span style="color: #7a0874; font-weight: bold;">&#125;</span>;</pre></td></tr></table></div>

<p>/var/named/empty</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">@</span> <span style="color: #000000;">10800</span> IN SOA <span style="color: #000000; font-weight: bold;">&lt;</span>name-of-server<span style="color: #000000; font-weight: bold;">&gt;</span>. <span style="color: #000000; font-weight: bold;">&lt;</span>contact-email<span style="color: #000000; font-weight: bold;">&gt;</span>. <span style="color: #7a0874; font-weight: bold;">&#40;</span>
               <span style="color: #000000;">1</span> <span style="color: #000000;">3600</span> <span style="color: #000000;">1200</span> <span style="color: #000000;">604800</span> <span style="color: #000000;">10800</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">@</span> <span style="color: #000000;">10800</span> IN NS <span style="color: #000000; font-weight: bold;">&lt;</span>name-of-server<span style="color: #000000; font-weight: bold;">&gt;</span>.</pre></td></tr></table></div>

<p>最後にbindを再起動して、digコマンド打ってみてエラーが出なくなったことを確認する。</p>
<hr />
<p><small>© <a href="http://www.dazzlingworld2.com">Dazzling World 2</a>, 2010. |
<a href="http://www.dazzlingworld2.com/post_4471.html">Permalink</a> |
<a href="http://www.dazzlingworld2.com/post_4471.html#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.dazzlingworld2.com/post_4471.html&title=view internal: RFC 1918 response from Internet for xxx.xxx.168.192.in-addr.arpa">del.icio.us</a>
<br/>
Post tags: <a href="http://www.dazzlingworld2.com/tags/bind" rel="tag">bind</a>, <a href="http://www.dazzlingworld2.com/tags/%e3%82%a8%e3%83%a9%e3%83%bc" rel="tag">エラー</a>, <a href="http://www.dazzlingworld2.com/tags/%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc" rel="tag">サーバー</a>, <a href="http://www.dazzlingworld2.com/tags/%e3%83%97%e3%83%a9%e3%82%a4%e3%83%99%e3%83%bc%e3%83%88%e3%82%a2%e3%83%89%e3%83%ac%e3%82%b9" rel="tag">プライベートアドレス</a>, <a href="http://www.dazzlingworld2.com/tags/%e3%83%ad%e3%82%b0" rel="tag">ログ</a><br/>
</small></p>
	<h3>関連記事</h3>
	<ul class="st-related-posts">
	<li><a href="http://www.dazzlingworld2.com/post_1812.html" title="色々テスト (2009年7月4日)">色々テスト</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_3688.html" title="メンテナンスは大事です。（マジで！ (2009年11月22日)">メンテナンスは大事です。（マジで！</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_2447.html" title="プラグインと動作チェック (2009年7月13日)">プラグインと動作チェック</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_1598.html" title="ぷらぐいん (2009年6月13日)">ぷらぐいん</a></li>
	<li><a href="http://www.dazzlingworld2.com/post_4247.html" title="こっち見んな！ (2010年5月29日)">こっち見んな！</a></li>
</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dazzlingworld2.com/post_4471.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Logwatchが来なくなった！</title>
		<link>http://www.dazzlingworld2.com/post_4232.html</link>
		<comments>http://www.dazzlingworld2.com/post_4232.html#comments</comments>
		<pubDate>Mon, 24 May 2010 11:45:39 +0000</pubDate>
		<dc:creator>だかね</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.dazzlingworld2.com/?p=4232</guid>
		<description><![CDATA[サーバーの日々の診断書的なLogwatchが来なくなった。 cron.dailyにちゃんと入れてるので毎日動いてくれるはず何だけれど、何故か動かない。 てことで、cronのログを見てみた。 1 2 3 # less /v [...]]]></description>
			<content:encoded><![CDATA[<p>サーバーの日々の診断書的なLogwatchが来なくなった。</p>
<p>cron.dailyにちゃんと入れてるので毎日動いてくれるはず何だけれど、何故か動かない。<br />
てことで、cronのログを見てみた。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="text" style="font-family:monospace;"># less /var/log/cron
May 23 22:01:01 xxx anacron[22051]: Job `cron.daily' locked by another anacron - skipping
May 23 22:01:01 xxx anacron[22051]: Normal exit (0 jobs run)</pre></td></tr></table></div>

<p>おやー？<br />
「今動いてるからロックされてるよ。スキップするね。」的なメッセージが…</p>
<p><span style="color: #ff0000;">今　動　い　て　る　だ　と　？</span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="text" style="font-family:monospace;"># ps aux | grep cron
root      3905  0.0  0.0 106956   884 pts/0    SN+  19:19   0:00 grep cron
root     10936  0.0  0.0 111956  1268 ?        SNs  May23   0:00 crond
root     19192  0.0  0.0  14532   920 ?        SNs  May23   0:00 /usr/sbin/anacron -s
root     19681  0.0  0.0   9100  1140 ?        SN   May23   0:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     21888  0.0  0.0   9100  1096 ?        SN   May23   0:00 /bin/bash /etc/cron.daily/clamav.sh
root     21889  0.0  0.0   8952   740 ?        SN   May23   0:00 awk -v progname /etc/cron.daily/clamav.sh progname {?????   print progname &quot;:\n&quot;?????   progname=&quot;&quot;;????       }????       { print; }</pre></td></tr></table></div>

<p>clamav.shで止まってるっぽいね。<br />
clamav.shって、ウイルススキャンなんすけど…<br />
とりあえず、普通にスキャンしてみる。<br />
と、その前にclamav.sh殺しておこうかな。</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># kill 21888</pre></div></div>

<p>殺したら後続のが動いた。<br />
で、普通にスキャン。</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">LibClamAV Warning: fmap_readpage: pread fail: asked for 4094 bytes @ offset 2, got 0</pre></div></div>

<p>こんなメッセージが<strong>/sys</strong>でたくさん出て止まった…<br />
CPU使用率100%になったまま…</p>
<p>preadのエラーかな？<br />
ちなみに、clamdのヴァージョンは0.96.1<br />
ちょろっと検索してみたけど、解決策はないみたいで…<br />
ヴァージョンアップ待ちだってさ。</p>
<p>仕方ないので/sysをスキャンから除外。</p>
<p><br/>
<a href="http://www.dazzlingworld2.com/post_4232.html">Logwatchが来なくなった！</a> の続きを読む</p>
<hr />
<p><small>© <a href="http://www.dazzlingworld2.com">Dazzling World 2</a>, 2010. |
<a href="http://www.dazzlingworld2.com/post_4232.html">Permalink</a> |
<a href="http://www.dazzlingworld2.com/post_4232.html#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.dazzlingworld2.com/post_4232.html&title=Logwatchが来なくなった！">del.icio.us</a>
<br/>
Post tags: <a href="http://www.dazzlingworld2.com/tags/linux" rel="tag">Linux</a><br/>
</small></p>
	<h3>関連記事</h3>
	<ul class="st-related-posts">
	<li>関連記事はありません。</li>
	</ul>


<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dazzlingworld2.com/post_4232.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

