<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Chinachu - カテゴリ - 気まぐれ</title><link>https://blog.onodai.com/categories/chinachu/</link><description>適当に書いていきます</description><generator>Hugo 0.169.0 &amp; FixIt v1.0.0-beta.5</generator><language>ja-JP</language><lastBuildDate>Wed, 13 Mar 2019 23:31:19 +0900</lastBuildDate><atom:link href="https://blog.onodai.com/categories/chinachu/index.xml" rel="self" type="application/rss+xml"/><item><title>ESXiの上にPT3とChinachuを載っけた(その2)</title><link>https://blog.onodai.com/posts/2016-02-14-sun/</link><pubDate>Sun, 14 Feb 2016 08:46:07 +0900</pubDate><guid>https://blog.onodai.com/posts/2016-02-14-sun/</guid><category domain="https://blog.onodai.com/categories/chinachu/">Chinachu</category><description>&lt;p&gt;&lt;a href="http://blog.onodai.com/posts/2016-02-13-sat" target="_blank" rel="external nofollow noopener noreferrer"&gt;その1&lt;i class="fa-solid fa-external-link-alt fa-xs ms-1 text-secondary" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;からの続き&lt;br&gt;&#10;Chinachuをインストールしまうｓ&lt;/p&gt;&#10;&lt;h3 class="heading-element" id="chinachuのインストール"&gt;&lt;span&gt;Chinachuのインストール&lt;/span&gt;&#10; &lt;a href="#chinachu%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;ol&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;実行ユーザの作成&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;$ sudo adduser chinachu &#10;$ su - chinachu &lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;GithubからChinachuをクローン&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;$ git clone git://github.com/kanreisa/Chinachu.git&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Chinachuのインストール&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;$ cd ~/chinachu/ &#10;$ ./chinachu installer&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;以下のように表示されるので&lt;code&gt;1) Auto (full)&lt;/code&gt;を選択&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;Chinachu Installer Menu:&#10;[!] These are installed under all /home/chinachu/downloads/Chinachu/... &#10;[!] Recommend the Auto installation. &#10;1) Auto (full)&#9;&#9;4) Node.js Environment&#9;7) ffmpeg &#10;2) Auto (fast)&#9;&#9;5) Node.js Modules &#10;3) submodule&#9;&#9;6) epgdump &#10;what do you install? &amp;amp;gt; &lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;設定ファイルの編集&lt;br&gt;&#10;&lt;a href="https://github.com/kanreisa/Chinachu/wiki/Configuration" target="_blank" rel="external nofollow noopener noreferrer"&gt;このへん&lt;i class="fa-solid fa-external-link-alt fa-xs ms-1 text-secondary" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;を見ながらいい感じに編集&lt;br&gt;&#10;チャンネルの設定は&lt;a href="http://www.maspro.co.jp/contact/bro/bro_ch.html" target="_blank" rel="external nofollow noopener noreferrer"&gt;このへん&lt;i class="fa-solid fa-external-link-alt fa-xs ms-1 text-secondary" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;を見ながら、住んでいる地域に合わせていい感じに変更してください&lt;br&gt;&#10;ちなみにボクはケツカンマの消し忘れで10分ぐらいjsonと格闘してました&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;$ cp config.sample.json config.json &#10;$ vi config.json &lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;空の録画ルールファイルを作成&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;$ echo &amp;#34;[]&amp;#34; &amp;amp;gt; rules.json &lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;動作確認&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;$ vi ./chinachu service operator execute&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;以下のように表示されることを確認したら、Ctrl + Cで抜ける&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;9 Feb 00:01:10 - READ: `/home/chinachu/downloads/Chinachu/data/reserves.json` is updated. &#10;9 Feb 00:01:10 - READ: `/home/chinachu/downloads/Chinachu/data/recorded.json` is updated. &#10;9 Feb 00:01:11 - SPAWN: node app-scheduler.js -f (pid=3432) &#10;9 Feb 00:01:11 - STREAM: ./log/scheduler &lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;EPG取得テスト&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;$ ./chinachu update -f&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;起動スクリプト設定&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;$ ./chinachu service operator initscript &amp;amp;gt; /tmp/chin achu-operator &#10;$ ./chinachu service wui initscript &amp;amp;gt; /tmp/chinachu- wui &#10;$ su - &#10;# cd /tmp &#10;# chown root:root chinachu-* &#10;# chown root:root /tmp/chinachu-operator /tmp/chinachu-wui &#10;# chmod &amp;#43;x /tmp/chinachu-operator /tmp/chinachu-wui &#10;# mv /tmp/chinachu-operator /tmp/chinachu-wui /etc/init.d/ &#10;# update-rc.d chinachu-operator defaults &#10;# update-rc.d chinachu-wui defaults &lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;サービスを開始&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;# service chinachu-operator start &#10;# service chinachu-wui start &lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#10;&lt;/ol&gt;</description></item><item><title>ESXiの上にPT3とChinachuを載っけた(その1)</title><link>https://blog.onodai.com/posts/2016-02-13-sat/</link><pubDate>Sat, 13 Feb 2016 06:25:54 +0900</pubDate><guid>https://blog.onodai.com/posts/2016-02-13-sat/</guid><category domain="https://blog.onodai.com/categories/chinachu/">Chinachu</category><description>&lt;p&gt;半年前にPT3を買ったまま放置してたけどやっと活躍できるね&lt;br&gt;&#10;ゲストにDebianがインストールされている前提で書いていきます&lt;/p&gt;&#10;&lt;p&gt;長いので今回はChinachuをインストールする前まで&lt;/p&gt;</description></item><item><title>CentOSでChinachuを使う(1) -KTV-FSPCIEの導入-</title><link>https://blog.onodai.com/posts/2014-09-14-sun/</link><pubDate>Sun, 14 Sep 2014 02:57:03 +0900</pubDate><guid>https://blog.onodai.com/posts/2014-09-14-sun/</guid><category domain="https://blog.onodai.com/categories/chinachu/">Chinachu</category><description>&lt;p&gt;Chinachuを導入するまでにしたことをちょっとずつ書いていきます。&lt;br&gt;&#10;今回はCentOSでKTV-FSPCIEを使えるようにします。&lt;/p&gt;&#10;&lt;h3 class="heading-element" id="必要なもの"&gt;&lt;span&gt;必要なもの&lt;/span&gt;&#10; &lt;a href="#%e5%bf%85%e8%a6%81%e3%81%aa%e3%82%82%e3%81%ae" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;ul&gt;&#10;&lt;li&gt;CentOS 6.5&lt;/li&gt;&#10;&lt;li&gt;ゴニョゴニョして動作確認済みのKTV-FSPCIE&lt;/li&gt;&#10;&lt;li&gt;Linuxの知識&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;どこのご家庭にも上の2つはすでにあると思うのでここでは説明を省きます。&lt;br&gt;&#10;以下、手順です。&lt;br&gt;&#10;基本的にrootで作業します（どうせローカルだし）。&lt;/p&gt;</description></item></channel></rss>