ソースのダウンロード

$ apt-get source mythtv

パッチを当ててみる

$ cd mythtv-0.25/
$ patch -p1 < ../mythtv-isdb.patch
patching file libs/libmythtv/channelscan/channelscan_sm.cpp
Hunk #1 FAILED at 176.
1 out of 2 hunks FAILED -- saving rejects to file libs/libmythtv/channelscan/channelscan_sm.cpp.rej
patching file libs/libmythtv/channelscan/frequencytablesetting.cpp
Hunk #1 succeeded at 73 (offset 1 line).
patching file libs/libmythtv/eithelper.cpp
Hunk #1 succeeded at 217 (offset -5 lines).
Hunk #2 succeeded at 246 (offset -5 lines).
Hunk #3 succeeded at 260 (offset -5 lines).
Hunk #4 succeeded at 272 (offset -5 lines).
Hunk #5 succeeded at 317 (offset -5 lines).
Hunk #6 succeeded at 364 (offset -1 lines).
Hunk #7 succeeded at 452 (offset 4 lines).
Hunk #8 succeeded at 515 (offset 4 lines).
Hunk #9 succeeded at 524 (offset 4 lines).
patching file libs/libmythtv/frequencytables.cpp
Hunk #1 succeeded at 465 (offset 21 lines).
patching file libs/libmythtv/libmythtv.pro
Hunk #1 succeeded at 231 (offset 12 lines).
Hunk #2 succeeded at 247 (offset 14 lines).
patching file libs/libmythtv/mpeg/dvbdescriptors.cpp
Hunk #2 FAILED at 69.
Hunk #3 succeeded at 155 (offset 4 lines).
Hunk #4 FAILED at 161.
Hunk #5 FAILED at 192.
Hunk #6 succeeded at 226 (offset 6 lines).
Hunk #7 succeeded at 283 (offset 45 lines).
Hunk #8 succeeded at 309 (offset 37 lines).
3 out of 8 hunks FAILED -- saving rejects to file libs/libmythtv/mpeg/dvbdescriptors.cpp.rej
patching file libs/libmythtv/mpeg/dvbdescriptors.h
Hunk #1 succeeded at 9 with fuzz 1 (offset -6 lines).
Hunk #2 succeeded at 36 (offset -6 lines).
Hunk #3 FAILED at 99.
Hunk #4 FAILED at 252.
Hunk #5 FAILED at 561.
Hunk #6 FAILED at 594.
Hunk #7 FAILED at 1023.
Hunk #8 succeeded at 1105 (offset 49 lines).
Hunk #9 FAILED at 1448.
Hunk #10 FAILED at 1565.
7 out of 10 hunks FAILED -- saving rejects to file libs/libmythtv/mpeg/dvbdescriptors.h.rej
patching file libs/libmythtv/mpeg/dvbstreamdata.cpp
patching file libs/libmythtv/mpeg/dvbstreamdata.h
Hunk #1 succeeded at 25 (offset 1 line).
Hunk #2 succeeded at 213 (offset 1 line).
patching file libs/libmythtv/mpeg/dvbtables.cpp
patching file libs/libmythtv/mpeg/dvbtables.h
Hunk #1 FAILED at 8.
Hunk #2 FAILED at 93.
Hunk #3 FAILED at 277.
Hunk #4 succeeded at 326 (offset 2 lines).
Hunk #5 FAILED at 365.
Hunk #6 succeeded at 386 (offset 2 lines).
4 out of 6 hunks FAILED -- saving rejects to file libs/libmythtv/mpeg/dvbtables.h.rej
patching file libs/libmythtv/mpeg/isdb_decode_text.c
patching file libs/libmythtv/mpeg/isdb_decode_text.h
patching file libs/libmythtv/mpeg/mpegdescriptors.cpp
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 78.
Hunk #3 FAILED at 422.
Hunk #4 FAILED at 440.
4 out of 4 hunks FAILED -- saving rejects to file libs/libmythtv/mpeg/mpegdescriptors.cpp.rej
patching file libs/libmythtv/mpeg/mpegdescriptors.h
Hunk #1 succeeded at 197 (offset 44 lines).
Hunk #2 FAILED at 180.
1 out of 2 hunks FAILED -- saving rejects to file libs/libmythtv/mpeg/mpegdescriptors.h.rej
patching file libs/libmythtv/mpeg/scanstreamdata.cpp
Hunk #1 FAILED at 4.
1 out of 1 hunk FAILED -- saving rejects to file libs/libmythtv/mpeg/scanstreamdata.cpp.rej
patching file libs/libmythtv/mpeg/scanstreamdata.h
Hunk #1 FAILED at 12.
1 out of 1 hunk FAILED -- saving rejects to file libs/libmythtv/mpeg/scanstreamdata.h.rej
patching file libs/libmythtv/tv_rec.cpp
Hunk #1 succeeded at 1819 (offset -202 lines).
$ patch -p0 <../mythtv-japanese-cat.patch
patching file libs/libmythtv/mpeg/dvbdescriptors.cpp
Hunk #1 succeeded at 317 (offset -108 lines).
$ patch -p0 < ../mythtv-subtitle.patch
patching file libs/libmythtv/eithelper.cpp
Hunk #1 succeeded at 246 (offset -5 lines).
$ patch -p1 < ../mythtv-bs.patch
patching file libs/libmythtv/dtvmultiplex.cpp
Hunk #1 succeeded at 336 (offset 32 lines).
Hunk #2 FAILED at 327.
1 out of 2 hunks FAILED -- saving rejects to file libs/libmythtv/dtvmultiplex.cpp.rej
patching file libs/libmythtv/dtvmultiplex.h
patching file libs/libmythtv/dvbchannel.cpp
Hunk #1 succeeded at 267 (offset 29 lines).
Hunk #2 FAILED at 754.
Hunk #3 FAILED at 882.
2 out of 3 hunks FAILED -- saving rejects to file libs/libmythtv/dvbchannel.cpp.rej
$ patch -p2 < ../mythtv-tuning.patch
patching file libs/libmythtv/dvbstreamhandler.cpp
Hunk #1 FAILED at 282.
1 out of 1 hunk FAILED -- saving rejects to file libs/libmythtv/dvbstreamhandler.cpp.rej

パッチを何も考えずに当ててもほぼ全滅。成功しているのは単体ではあまり意味のない部分のみ。

ISDB対応版の0.25が出るまで様子を見る他ない。

Debian-Multimediaのmythtv-0.24.2は次の方法で入手できる。

$ wget ftp://ftp.debian-multimedia.org/pool/main/m/mythtv/{mythtv_0.24.2-0.0squeeze1.dsc,mythtv_0.24.2.orig.tar.gz,mythtv_0.24.2-0.0squeeze1.diff.gz}
$ dpkg-source -x mythtv_0.24.2-0.0squeeze1.dsc

このソースはいつまでダウンロードできるんだろう。

[amazon_tags]


5月 19th, 2012

Posted In: ソフトウェア

タグ: , , , , , ,

Leave a Comment

wineが前回やった方法でインストールできなくなっているので何とかインストールしてみた。

作業ディレクトリを作成して移動

$ mkdir /usr/local/src/wine-unstable/
$ cd /usr/local/src/wine-unstable/

パッケージのダウンロード

$ wget http://dev.carbon-project.org/debian/wine-unstable/\
{libwine-alsa-unstable_1.4~rc1-0.1_amd64.deb,\
libwine-bin-unstable_1.4~rc1-0.1_amd64.deb,\
libwine-capi-unstable_1.4~rc1-0.1_amd64.deb,\
libwine-cms-unstable_1.4~rc1-0.1_amd64.deb,\
libwine-dbg-unstable_1.4~rc1-0.1_amd64.deb,\
libwine-dev-unstable_1.4~rc1-0.1_amd64.deb,\
libwine-gl-unstable_1.4~rc1-0.1_amd64.deb,\
libwine-gphoto2-unstable_1.4~rc1-0.1_amd64.deb,\
libwine-ldap-unstable_1.4~rc1-0.1_amd64.deb,\
libwine-openal-unstable_1.4~rc1-0.1_amd64.deb,\
libwine-oss-unstable_1.4~rc1-0.1_amd64.deb,\
libwine-print-unstable_1.4~rc1-0.1_amd64.deb,\
libwine-sane-unstable_1.4~rc1-0.1_amd64.deb,\
libwine-unstable_1.4~rc1-0.1_amd64.deb,\
wine-bin-unstable_1.4~rc1-0.1_amd64.deb,\
wine-unstable_1.4~rc1-0.1_amd64.deb}

libwine-alsa-unstableが依存しているlib32asound2がsqueezeでは古いのでwineが上手くインストールできない。無理やりインストールしても問題は見当たらなかったのでlibwine-alsa-unstableのパッケージを書き換える。

libwine-alsa-unstableのパッケージを展開

$ dpkg-deb -x libwine-alsa-unstable_1.4~rc1-0.1_amd64.deb libwine-alsa-unstable_1.4~rc1-0.1_amd64
$ dpkg-deb -e libwine-alsa-unstable_1.4~rc1-0.1_amd64.deb libwine-alsa-unstable_1.4~rc1-0.1_amd64/DEBIAN

依存しているlib32asound2のバージョンを書き換え(squeezeのlib32asound2は1.0.23-2.1)

$ vi libwine-alsa-unstable_1.4~rc1-0.1_amd64/DEBIAN/control
     7  Depends: lib32asound2 (>= 1.0.23-2.1), libc6-i386 (>= 2.1.3), libwine-unstable (= 1.4~rc1-0.1)

パッケージを再構築

$ dpkg-deb -b libwine-alsa-unstable_1.4~rc1-0.1_amd64 libwine-alsa-unstable_1.4~rc1-0.1_amd64.deb

パッケージのインストール

sudo dpkg -i *.deb

依存関係の修復

$ sudo aptitude -f install
以下の、インストールが完了していないパッケージが設定されます:
  libwine-alsa-unstable{b} libwine-bin-unstable libwine-capi-unstable libwine-cms-unstable{b} libwine-dbg-unstable libwine-dev-unstable{b} libwine-gl-unstable{b} libwine-gphoto2-unstable{b} libwine-ldap-unstable{b}
  libwine-openal-unstable{b} libwine-oss-unstable{b} libwine-print-unstable libwine-sane-unstable libwine-unstable{b} wine-bin-unstable wine-unstable
インストール・削除・更新されるパッケージがありません。
更新: 0 個、新規インストール: 0 個、削除: 0 個、保留: 0 個。
0 B のアーカイブを取得する必要があります。展開後に 0 B のディスク領域が新たに消費されます。
以下のパッケージには満たされていない依存関係があります:
  libwine-unstable: 依存: ia32-libs (>= 20111001) but it is not going to be installed.
                    依存: lib32z1 (>= 1:1.1.4) but it is not going to be installed.
  libwine-openal-unstable: 依存: ia32-libs (>= 20111001) but it is not going to be installed.
  libwine-ldap-unstable: 依存: ia32-libs (>= 20111001) but it is not going to be installed.
  libwine-dev-unstable: 依存: libc6-dev but it is not going to be installed.
                        依存: libc6-dev-i386 but it is not going to be installed.
  libwine-cms-unstable: 依存: ia32-libs (>= 20111001) but it is not going to be installed.
  libwine-alsa-unstable: 依存: lib32asound2 (>= 1.0.23-2.1) but it is not going to be installed.
  libwine-gl-unstable: 依存: ia32-libs (>= 20111001) but it is not going to be installed.
  libwine-oss-unstable: 依存: oss-compat but it is not going to be installed.
  libwine-gphoto2-unstable: 依存: ia32-libs (>= 20111001) but it is not going to be installed.
以下のアクションでこれらの依存関係の問題は解決されます:

      以下のパッケージを削除する:
1)      libwine-alsa-unstable
2)      libwine-bin-unstable
3)      libwine-capi-unstable
4)      libwine-cms-unstable
5)      libwine-dbg-unstable
6)      libwine-dev-unstable
7)      libwine-gl-unstable
8)      libwine-gphoto2-unstable
9)      libwine-ldap-unstable
10)     libwine-openal-unstable
11)     libwine-oss-unstable
12)     libwine-print-unstable
13)     libwine-sane-unstable
14)     libwine-unstable
15)     wine-bin-unstable
16)     wine-unstable



この解決方法を受け入れますか? [Y/n/q/?]n
以下のアクションでこれらの依存関係の問題は解決されます:

      以下のパッケージをインストールする:
1)      binutils [2.20.1-16 (stable)]
2)      gcc [4:4.4.5-1 (stable)]
3)      gcc-4.4 [4.4.5-8 (stable)]
4)      gcc-4.4-multilib [4.4.5-8 (stable)]
5)      gcc-multilib [4:4.4.5-1 (stable)]
6)      ia32-libs [20120102 (stable)]
7)      lib32asound2 [1.0.23-2.1 (stable)]
8)      lib32bz2-1.0 [1.0.5-6+squeeze1 (stable)]
9)      lib32gcc1 [1:4.4.5-8 (stable)]
10)     lib32gomp1 [4.4.5-8 (stable)]
11)     lib32ncurses5 [5.7+20100313-5 (stable)]
12)     lib32stdc++6 [4.4.5-8 (stable)]
13)     lib32v4l-0 [0.8.0-1 (stable)]
14)     lib32z1 [1:1.2.3.4.dfsg-3 (stable)]
15)     libc-dev-bin [2.11.3-2 (stable)]
16)     libc6-dev [2.11.3-2 (stable)]
17)     libc6-dev-i386 [2.11.3-2 (stable)]
18)     libgomp1 [4.4.5-8 (stable)]
19)     linux-libc-dev [2.6.32-41 (stable)]
20)     oss-compat [0.0.4+nmu3 (stable)]



この解決方法を受け入れますか? [Y/n/q/?]y
以下の新規パッケージがインストールされます:
  binutils{a} gcc{a} gcc-4.4{a} gcc-4.4-multilib{a} gcc-multilib{a} ia32-libs{a} lib32asound2{a} lib32bz2-1.0{a} lib32gcc1{a} lib32gomp1{a} lib32ncurses5{a} lib32stdc++6{a} lib32v4l-0{a} lib32z1{a} libc-dev-bin{a}
  libc6-dev{a} libc6-dev-i386{a} libgomp1{a} linux-libc-dev{a} oss-compat{a}
以下の、インストールが完了していないパッケージが設定されます:
  libwine-alsa-unstable libwine-bin-unstable libwine-capi-unstable libwine-cms-unstable libwine-dbg-unstable libwine-dev-unstable libwine-gl-unstable libwine-gphoto2-unstable libwine-ldap-unstable
  libwine-openal-unstable libwine-oss-unstable libwine-print-unstable libwine-sane-unstable libwine-unstable wine-bin-unstable wine-unstable
更新: 0 個、新規インストール: 20 個、削除: 0 個、保留: 0 個。
49.7 MB のアーカイブを取得する必要があります。展開後に 129 MB のディスク領域が新たに消費されます。
先に進みますか? [Y/n/?] y

これで問題なくインストールされた。

winetricksのインストール

$ wget http://winetricks.org/winetricks
$ sudo cp winetricks /usr/local/bin/
$ sudo chmod +x /usr/local/bin/winetricks

[amazon_tags]


1月 31st, 2012

Posted In: ソフトウェア

タグ: , , , ,

Leave a Comment

Debianのインストール時に入れたデスクトップ環境を入れ替えられないかと考えた。インストール時に使われているらしいtaskselをオプションなしで起動しても他のデスクトップ環境は表示されていない。しかし、それらしい名前をタスクに指定してみると、表示されていないものも入れられるようなので指定してみる。

コマンドの確認(install,remove以外を指定)

$ tasksel help

既存デスクトップ環境の削除

$ sudo tasksel remove desktop

KDEのインストール

$ sudo tasksel install kde-desktop

Xfceのインストール

$ sudo tasksel install xfce-desktop

LXDEのインストール

$ sudo tasksel install lxde-desktop

エラーが出た場合、aptitudeで選択されたパッケージをインストールできる。

$ sudo aptitude install

taskselでインストールできるがタスク一覧に表示されていないタスク。どこかに書いてないんだろうか。

追記:
タスクは"/usr/share/tasksel/debian-tasks.desc"に書かれている。(wheezyは"/usr/share/tasksel/descs/debian-tasks.desc")

[amazon_tags]


7月 16th, 2011

Posted In: ソフトウェア

タグ: , ,

3 Comments

初期設定、アップデートとsshdのセットアップ

コンソールでは日本語フォントが表示できないが、lennyからrootの言語設定が日本語になっているので、日本語が化ける。環境変数の”lang”を一時的に変更。

#LANG=c

それからアップデートと最初なのでフルアップグレードをする。

#aptitude update
#aptitude full-upgrade

lennyからアップグレードのコマンドが変わってるのでいつも通り使うと警告が出る。

  • dist-upgrade→full-upgrade
  • upgrade→safe-upgrade

それからsshdのインストール

#aptitude install openssh-server

sshdの設定

/etc/sshd#vi sshd_config
# Authentication:
LoginGraceTime 120
PermitRootLogin no
StrictModes yes

rootでのログインを禁止する。

これでsshクライアントで管理できるようになった。

参考
Debian lennyとetchの違い

[amazon_tags]


7月 30th, 2009

Posted In: ソフトウェア

タグ: , ,

Leave a Comment

サーバの設定をどうしたか忘れて、ごちゃごちゃしてるのも気持ち悪いので再インストールを計画中。そこで、テストサーバを作ろうと思うが、稼動してる実機を使うわけにはいかないので仮想マシンで構築する。

使うもの

  • VMWare Player 2.5.2
  • VMX Builder
  • Debian GNU/Linux 5.02

とりあえず、VMXファイルの作成

(さらに…)

[amazon_tags]


7月 19th, 2009

Posted In: ソフトウェア

タグ: , , , ,

Leave a Comment

Google Japan Blog: Gmail 復旧についてのご報告

やたらCaptchaが表示されて、鬱陶しかった。またGmail Managerかと思ったら、今度は公式。1週間遅れでメールが携帯に転送されてきた、時期的に関係なさそう。

[amazon_tags]


3月 7th, 2009

Posted In: ウェブ

タグ: , , ,

Leave a Comment