MacBook Air(Mid 2011)にArchLinuxをインストールする

ArchLinuxインストールチャレンジ

前提

  • Mac OS XとArchLinuxのデュアルブート
  • EFIモードで使用
  • GUI環境はXfce4を使う
  • 基本Mac OS Xは使わないので、ArchLinuxが起動できればいい
  • 使用イメージはarchlinux-2016.07.01-dual.iso

Mac OS X側で下準備

Mac OS Xのクリーンインストール

した方がいいらしいので、適当にクリーンインストールを実施。

ThinkPad X61sにAntergosをインストールした

日本語が入力できてMikutterが使えるようになるまでやったことを書いていく

環境

  • ThinkPad X61s
  • デスクトップ環境はxfce
  • インストール時にAUR有効化
  • 指紋認証センサ付き
  • インストールメディアはantergos-2015.01.11-x86_64を使用

やったこと

  1. アップデート

    $ sudo pacman -Syu
  2. Antergosキーリング更新

    $ sudo pacman -Syy antergos-keyring
  3. 日本語フォント(ttf-koruri)インストール

    $ yaourt -S ttf-koruri
  4. フォントキャッシュ更新

    $ fc-cache -vf
  5. Vimインストール

    $ yaourt -S vim
  6. トラックポイント設定

    $ sudo vim ./etc/X11/xorg.conf.d/20-thinkpad.conf
    Section "InputClass"
    	Identifier	"Trackpoint Wheel Emulation"
    	MatchProduct	"TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint|ThinkPad USB Keyboard with TrackPoint|USB Trackpoint pointing device|Composite TouchPad / TrackPoint"
    	MatchDevicePath	"/dev/input/event*"
    	Option		"EmulateWheel"		"true"
    	Option		"EmulateWheelButton"	"2"
    	Option		"Emulate3Buttons"	"false"
    	Option		"XAxisMapping"		"6 7"
    	Option		"YAxisMapping"		"4 5"
    EndSection
  7. 中ボタンとトラックポイントでスクロール出来るようにする

    $ gpointing-device-settinfs

    ホイールエミュレーションを使用するにチェックを入れ、ボタンを2に変更する

  8. 指紋証明の作成

    $ fprintd-enroll onodai

    onodaiの部分は好きな名前でいい
    指をスキャンするように求められるので、指示に従う

  9. sudoとかログイン画面で指紋認証出来るようにする

    $ sudo vim /etc/pam.d/system-local-login  
    $ sudo vim /etc/pam.d/lightdm

    以下をauthセクションの一番上に追加

    auth sufficient pam_fprintd.so
  10. IME(fcitx & Mozc)インストール

    $ yaourt -S fcitx fcitx-mozc fcitx-im fcitx-configtool  
    $ vim .xprofile
    export GTK\_IM\_MODULE=fcitx
    export QT\_IM\_MODULE=fcitx
    export DefaultIMModule=fcitx
    export XMODIFIERS=@im=fcitx
    export XMODIFIER=@im=fcitx
  11. Mikutterインストール

    $ yaourt -S mikutter

Niconico用OBS設定

メモメモ

  • OBSバージョン
    • v0.657v 64bit
  • PCスペック
    • メモリ 32GB
    • CPU Core i7 3770K @ 3.50GHz
    • GPU GTX680

OBS01

OBS02

OBS03

OBS04

OBS05

OBS06

OBS07

OBS08

OBS09

OBS10

x264の詳細設定
<pre><code class=“language-textfile line-numbers line-numbers”>8x8dct=1 aq-mode=2 aq-strength=1.00 level=3.1 bframes=3 chroma-qp-offset=-1 crf-max=0 crf=20 cqm=flat deblock=-1,-1 direct=auto ipratio=1.30 me=umh merange=16 keyint=300 min-keyint=30 mixed-refs=1 threads=0 nr=0 b-adapt=2 b-bias=0 b-pyramid=2 no-dct-decimate=1 no-fast-pskip=1 partitions=all profile=high psy=1 psy-rd=0.0,0.0 qcomp=0.70 qpmax=69 qpmin=20 qpstep=8 ratetol=8.0 rc-lookahead=30 ref=6 scenecut=50 subme=10 trellis=2 vbv-init=0.9 weightb=1 weightp=2 colormatrix=smpte170m</code></pre>

ESXiの上にPT3とChinachuを載っけた(その2)

その1からの続き
Chinachuをインストールしまうs

Chinachuのインストール

  1. 実行ユーザの作成

    $ sudo adduser chinachu  
    $ su - chinachu  
  2. GithubからChinachuをクローン

    $ git clone git://github.com/kanreisa/Chinachu.git
  3. Chinachuのインストール

    $ cd ~/chinachu/  
    $ ./chinachu installer

    以下のように表示されるので1) Auto (full)を選択

    Chinachu Installer Menu:
    [!] These are installed under all /home/chinachu/downloads/Chinachu/...  
    [!] Recommend the Auto installation.  
    1) Auto (full)		4) Node.js Environment	7) ffmpeg  
    2) Auto (fast)		5) Node.js Modules  
    3) submodule		6) epgdump  
    what do you install? &gt;  
  4. 設定ファイルの編集
    このへんを見ながらいい感じに編集
    チャンネルの設定はこのへんを見ながら、住んでいる地域に合わせていい感じに変更してください
    ちなみにボクはケツカンマの消し忘れで10分ぐらいjsonと格闘してました

    $ cp config.sample.json config.json  
    $ vi config.json  
  5. 空の録画ルールファイルを作成

    $ echo "[]" &gt; rules.json  
  6. 動作確認

    $ vi ./chinachu service operator execute

    以下のように表示されることを確認したら、Ctrl + Cで抜ける

    9 Feb 00:01:10 - READ: `/home/chinachu/downloads/Chinachu/data/reserves.json` is updated.  
    9 Feb 00:01:10 - READ: `/home/chinachu/downloads/Chinachu/data/recorded.json` is updated.  
    9 Feb 00:01:11 - SPAWN: node app-scheduler.js -f (pid=3432)  
    9 Feb 00:01:11 - STREAM: ./log/scheduler  
  7. EPG取得テスト

    $ ./chinachu update -f
  8. 起動スクリプト設定

    $ ./chinachu service operator initscript &gt; /tmp/chin achu-operator  
    $ ./chinachu service wui initscript &gt; /tmp/chinachu- wui  
    $ su -  
    # cd /tmp    
    # chown root:root chinachu-*  
    # chown root:root /tmp/chinachu-operator /tmp/chinachu-wui  
    # chmod +x /tmp/chinachu-operator /tmp/chinachu-wui  
    # mv /tmp/chinachu-operator /tmp/chinachu-wui /etc/init.d/  
    # update-rc.d chinachu-operator defaults  
    # update-rc.d chinachu-wui defaults  
  9. サービスを開始

    # service chinachu-operator start  
    # service chinachu-wui start