Feed


メモ(新)


chrootビルド環境を作る

2012/02/10 6:45 に スーパーバッカー が投稿   [ 2012/02/10 6:59 に更新しました ]

システムをインストール

# apt-get install debootstrap
//Ubuntu 10.04 i386 を /var/lucidi386/へインストール
# debootstrap --variant=buildd --arch=i386 lucid /var/lucidi386/ http://ftp.jaist.ac.jp/pub/Linux/ubuntu/

fstab

# editor /etc/fstab
#i386 environment
/proc /var/lucidi386/proc none rbind 0 0
/dev /var/lucidi386/dev none rbind 0 0
/sys /var/lucidi386/sys none rbind 0 0
/tmp /var/lucidi386/tmp none rbind 0 0
/home /var/lucidi386/home none rbind 0 0
/media /var/lucidi386/media none rbind 0 0

# mount -a

ユーザー情報

# cp /etc/passwd /var/lucidi386/etc
# cp /etc/shadow /var/lucidi386/etc
# cp /etc/group /var/lucidi386/etc
# cp /etc/gshadow /var/lucidi386/etc

設定

# chroot /var/lucidi386
# apt-get install nano
# nano /etc/apt/sources.list
deb http://ftp.jaist.ac.jp/pub/Linux/ubuntu lucid main restricted                    
deb-src http://ftp.jaist.ac.jp/pub/Linux/ubuntu lucid main restricted                    

deb http://ftp.jaist.ac.jp/pub/Linux/ubuntu/ lucid-updates main restricted
deb-src http://ftp.jaist.ac.jp/pub/Linux/ubuntu/ lucid-updates main restricted

deb http://ftp.jaist.ac.jp/pub/Linux/ubuntu/ lucid-security main restricted
deb-src http://ftp.jaist.ac.jp/pub/Linux/ubuntu/ lucid-security main restricted

# apt-get update
# apt-get upgrade
# apt-get install sudo language-pack-ja
# gpasswd -a superbacker sudo #ホストのバージョンによっては必要

dchroot

# apt-get install dchroot
# editor /etc/dchroot.conf
lucid /var/lucidi386

chroot環境に入る

# dchroot -c lucid -d

地デジのTSをH264でエンコードする

2012/02/09 9:09 に スーパーバッカー が投稿   [ 2012/02/10 8:54 に更新しました ]

H264でエンコードできるffmpegをビルド

libx264をビルド

$ sudo apt-get install yasm
$ CFLAGS=-march=native ./configure --enable-shared && make -j && sudo make install

ffmpegをビルド

$ sudo apt-get install libva-dev
$ CFLAGS=-march=native ./configure --enable-vdpau --enable-pthreads --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-shared --disable-static --enable-libx264 && make -j4 && sudo make install

エンコード


$ ffmpeg -i input.m2ts -vcodec libx264 -acodec copy -s 1280x720 -absf aac_adtstoasc -fpre libx264-hq-ts.ffpreset output.mp4

rootパーティションを別ディスクに移すときの注意

2012/02/06 3:04 に スーパーバッカー が投稿

grubのインストール

$ sudo chroot (mount point)
# mount /proc
# mount /sys
# mount /dev
# grub-install /dev/sd?
# umount /proc
# umount /sys
# umount /dev

パーティションにブート可能フラグを付ける

Totemのコーデック

2012/02/05 4:46 に スーパーバッカー が投稿

totem (Ubuntu標準の動画プレイヤー)のコーデックを探す時は、「gstreamer」でソフトウェアセンターを検索する。

GNOME3の関連付け

2012/01/27 5:54 に スーパーバッカー が投稿

GNOME3の関連付けはファイルのプロパティで設定できる

1-5 of 5