Hatena::ブログ(Diary)

kinneko@転職先募集中の日記

検索エンジンから来た方へ: 申し訳ないですが、日記なので日々積み重なっています。
目的の情報にたどり着くには、右の検索窓から日記内を再検索してください。
北陸エリア内(もしくはエリア外でも)で転職先を探しています。
(マジです。ネタではありません。ホントですって...)
詳細履歴書をご希望の方はメールでご連絡下さいませ。(kinneko at gmail.com)

2012-01-26

[][] Ubuntu TVやってみる(10) ようやくubuntu-tvの導入(概要)

rootFSのバックアップをした。

パッケージをアップデートしたら、マウスの残像なんかはなくなった気がする。

Unity2dにしたからではないと思うけど。


さて、長い環境整備も終わって、ようやく本番。

でも、この先も長い(^^;。


LinaroのRicardo SalvetiがUbuntuTVがpandaboardで動作したという報告をしている。

http://rsalveti.wordpress.com/2012/01/10/ubuntu-tv-ui-at-pandaboard-and-next-steps/

http://rsalveti.wordpress.com/2012/01/16/ubuntu-tv-fully-accelerated-on-a-pandaboard-with-ubuntu-leb/

1/10の時点では、Qtmobilityのほうにいくつか問題があったようだ。

1/14には、Rob Clark(robclark)によって、Qtmobilityにパッチが入って使えるようになった。

https://github.com/robclark/qtmobility-1.1.0

D

1/16分の報告では、必要なパッチについては、すでにlinaro overlay PPAにパッケージ化されて入っているそうだ。

この環境では、linaro overlay PPAはすでに利用できるようになっている。


あとは、以下に従う。

https://wiki.ubuntu.com/UbuntuTV/Contributing

AMD ION向けの内容なのだけど。

参考になる資料がこれ以外にない。


流れとしては、以下のようになる。

  • ubuntu-tvのビルド
  • unity-lens-videoのビルド
  • dconfのフォームファクターをtvに設定
  • 既存のunity2d関係のプロセスを終わる
  • ウインドウマネージャをmetacityに変更
  • ubuntu-tvの起動用スクリプトから起動

[][] Ubuntu TVやってみる(11) ubuntu-tv(unity2d改)のビルド

どーせなら、PPAで、ubuntu-tv(専用のunity2d)も、unity-lens-videoも、パッケージで提供してくれるといいのに。

ないの?

linaro@linaro-ubuntu-desktop:~$ apt-cache search ubuntu-tv

ない。

linaro@linaro-ubuntu-desktop:~$ apt-cache search unity-lens-video
unity-lens-video - Video lens for unity

をや、あるよ。

unity-lens-video (0.5+51+201201160324~oneiric1 Linaro Overlay PPA:11.10/oneiric [armel])

使えそう。

ちょっと楽ができそう。


前にやったときには、ubuntu-tvの実体であるunity2d改変版のビルドに必要なパッケージを入れると、依存関係でOMAPのOpenGL/ES関係のパッケージである、hwpack-linaro-lt-panda-x11-base, libegl1-sgx-omap4, libgles2-sgx-omap4が削除されてしまう。その問題については、*-devを事前にインストールしておくと問題がないという情報もあるようなので、それも試す。


OMAP用パッケージが削除されないように、事前にdevパッケージを入れておいてみる。

linaro@linaro-ubuntu-desktop:~$ sudo apt-get install libegl1-sgx-omap4-dev libgles2-sgx-omap4-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libswscale2 libavutil51 libxcb-xfixes0 libpostproc52 libavformat53
  libschroedinger-1.0-0 libgbm1 libvpx0 libgsm1 libwayland0 libavcodec53
  libxcb-dri2-0 libva1
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libpthread-stubs0 libpthread-stubs0-dev libx11-dev libxau-dev libxcb1-dev
  libxdmcp-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev
  xorg-sgml-doctools xtrans-dev
The following NEW packages will be installed:
  libegl1-sgx-omap4-dev libgles2-sgx-omap4-dev libpthread-stubs0
  libpthread-stubs0-dev libx11-dev libxau-dev libxcb1-dev libxdmcp-dev
  x11proto-core-dev x11proto-input-dev x11proto-kb-dev xorg-sgml-doctools
  xtrans-dev
0 upgraded, 13 newly installed, 0 to remove and 2 not upgraded.
Need to get 41.7 kB/3815 kB of archives.
After this operation, 15.6 MB of additional disk space will be used.
(snip)

ビルドに必要なパッケージを導入する。

linaro@linaro-ubuntu-desktop:~$ sudo apt-get build-dep unity-2d
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  autoconf automake autotools-dev cmake cmake-data debhelper dh-translations
  emacsen-common gettext gettext-base gir1.2-gee-1.0 html2text intltool
  intltool-debian libatk1.0-dev libboost1.46-dev libcairo-script-interpreter2
  libcairo2-dev libcurl3 libdbus-1-dev libdbus-glib-1-dev libdbusmenu-glib-dev
  libdbusmenu-qt-dev libdconf-dbus-1-dev libdconf-qt-dev libdee-dev
  libencode-locale-perl libexpat1-dev libfile-listing-perl libfontconfig1-dev
  libfreetype6-dev libgdk-pixbuf2.0-dev libgee-dev libglib2.0-dev
  libglib2.0-dev-bin libgtk-3-dev libgtk2.0-dev libhtml-parser-perl
  libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-date-perl
  libhttp-message-perl libhttp-negotiate-perl libice-dev libindicator-dev
  libindicator3-dev libio-socket-ssl-perl liblwp-mediatypes-perl
  liblwp-protocol-https-perl libnet-http-perl libnet-ssleay-perl
  libnux-1.0-dev libpango1.0-dev libpcre3-dev libpcrecpp0 libpixman-1-dev
  libpng12-dev libqt4-designer libqt4-dev libqt4-help libqt4-opengl-dev
  libqt4-qt3support libqt4-scripttools libqt4-test libqtbamf-dev libqtdee-dev
  libqtgconf-dev libsigc++-2.0-dev libsm-dev libstartup-notification0-dev
  libunistring0 libunity-core-4.0-dev libunity-dev liburi-perl
  libutouch-geis-dev libwnck-3-dev libwww-perl libwww-robotrules-perl
  libxcb-render0-dev libxcb-shm0-dev libxcomposite-dev libxcursor-dev
  libxdamage-dev libxext-dev libxfixes-dev libxft-dev libxi-dev
  libxinerama-dev libxml-parser-perl libxml2-utils libxmlrpc-core-c3-0
  libxrandr-dev libxrender-dev libxres-dev libxxf86vm-dev m4 po-debconf
  qt4-linguist-tools qt4-qmake x11proto-composite-dev x11proto-damage-dev
  x11proto-fixes-dev x11proto-randr-dev x11proto-render-dev
  x11proto-resource-dev x11proto-xext-dev x11proto-xf86vidmode-dev
  x11proto-xinerama-dev zlib1g-dev
0 upgraded, 110 newly installed, 0 to remove and 2 not upgraded.
Need to get 37.9 MB/45.4 MB of archives.
After this operation, 219 MB of additional disk space will be used.
(snip)

おお、削除されなかった!

よかった(^^;。

普通なら、以下のような表示が出る。

The following packages will be REMOVED:
  hwpack-linaro-lt-panda-x11-base libegl1-sgx-omap4 libgles2-sgx-omap4
(snip)
0 upgraded, 129 newly installed, 3 to remove and 2 not upgraded.

これは、依存関係のバグで、OpenGL系ではビルドにmesaを必須にしているからのよう。

そのうち直るんだろうか...


ソースコードの取得と、ubuntu-tvの動作に必要な関連ツールをダウンロードする。

linaro@linaro-ubuntu-desktop:~$ sudo apt-get install bzr dconf-tools ffmpeg gnome-common libdeclarative-multimedia
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libxcb-xfixes0 libgbm1 libwayland0 libxcb-dri2-0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  autopoint bzrtools git git-man libavdevice53 libavfilter2 libdc1394-22
  liberror-perl libltdl-dev libqtmultimediakit1 libtool python-bzrlib
  python-configobj python-paramiko rsync
Suggested packages:
  bzr-doc bzr-gtk bzr-svn python-bzrlib.tests graphviz librsvg2-bin git-doc
  git-el git-arch git-cvs git-svn git-email git-daemon-run git-gui gitk gitweb
  libtool-doc qtmobility-l10n gfortran fortran95-compiler gcj python-kerberos
  python-gpgme python-bzrlib-dbg openssh-server
The following NEW packages will be installed:
  autopoint bzr bzrtools dconf-tools ffmpeg git git-man gnome-common
  libavdevice53 libavfilter2 libdc1394-22 libdeclarative-multimedia
  liberror-perl libltdl-dev libqtmultimediakit1 libtool python-bzrlib
  python-configobj python-paramiko rsync
0 upgraded, 20 newly installed, 0 to remove and 5 not upgraded.
Need to get 9990 kB of archives.
After this operation, 36.7 MB of additional disk space will be used.
(snip)

bzrを使って、ubuntu-tvのソースコードをダウンロードする。

linaro@linaro-ubuntu-desktop:~$ bzr branch lp:~s-team/ubuntutv/trunk ubuntu-tv
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data.  See "bzr help launchpad-login".
Branched 959 revision(s).   

ビルドする。

linaro@linaro-ubuntu-desktop:~$ cd ubuntu-tv
linaro@linaro-ubuntu-desktop:~/ubuntu-tv$ cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt4: /usr/bin/qmake (found version "4.7.4")
-- Looking for XOpenDisplay in /usr/lib/arm-linux-gnueabi/libX11.so;/usr/lib/arm-linux-gnueabi/libXext.so
-- Looking for XOpenDisplay in /usr/lib/arm-linux-gnueabi/libX11.so;/usr/lib/arm-linux-gnueabi/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/arm-linux-gnueabi/libX11.so
-- checking for module 'glib-2.0'
--   found glib-2.0, version 2.30.0
-- checking for module 'gdk-3.0'
--   found gdk-3.0, version 3.2.0
-- checking for module 'gtk+-3.0'
--   found gtk+-3.0, version 3.2.0
-- checking for module 'gio-2.0'
--   found gio-2.0, version 2.30.0
-- checking for module 'libwnck-3.0'
--   found libwnck-3.0, version 3.2.0
-- checking for module 'libqtgconf'
--   found libqtgconf, version 0.0
-- checking for module 'nux-core-1.0'
--   found nux-core-1.0, version 1.16.0
-- checking for module 'pango'
--   found pango, version 1.29.3
-- checking for module 'dconf-qt'
--   found dconf-qt, version 
-- GSettings schemas will be installed into /usr/local/share/glib-2.0/schemas/
-- checking for module 'libqtbamf'
--   found libqtbamf, version 0.0
-- checking for module 'libqtdee'
--   found libqtdee, version 0.2
-- checking for module 'dbusmenu-qt'
--   found dbusmenu-qt, version 0.9.0
-- checking for module 'libstartup-notification-1.0'
--   found libstartup-notification-1.0, version 0.12
-- checking for module 'indicator3-0.4'
--   found indicator3-0.4, version 0.4.1
-- checking for module 'unity-core-4.0'
--   found unity-core-4.0, version 4.24.0
-- checking for module 'dee-1.0'
--   found dee-1.0, version 0.5.22
-- checking for module 'xi'
--   found xi, version 1.4.3.99.1
-- checking for module 'libutouch-geis'
--   found libutouch-geis, version 2.1.2
-- Configuring done
-- Generating done
-- Build files have been written to: /home/linaro/ubuntu-tv


linaro@linaro-ubuntu-desktop:~/ubuntu-tv$ make
[  0%] Generating radiofilteroptions.moc
[  0%] Generating bfb.moc
[  0%] Generating dashclient.moc
(snip)
[ 74%] Generating af.gmo
[100%] Built target msgfmt


linaro@linaro-ubuntu-desktop:~/ubuntu-tv$ cd ..
linaro@linaro-ubuntu-desktop:~$ 

若干ワーニングが出ているが、ビルドそのものはつつがなく終了した。

[][] Ubuntu TVやってみる(12) unity-lens-videoを導入する

PPAにパッケージがあったので、これを入れるだけ。

linaro@linaro-ubuntu-desktop:~$ sudo apt-get install unity-lens-video
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libxcb-xfixes0 libgbm1 libwayland0 libxcb-dri2-0
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  unity-lens-video
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 28.8 kB of archives.
After this operation, 176 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/linaro-maintainers/overlay/ubuntu/ oneiric/main unity-lens-video armel 0.5+51+201201160324~oneiric1 [28.8 kB]
Fetched 28.8 kB in 2s (13.0 kB/s)           
Selecting previously deselected package unity-lens-video.
(Reading database ... 146629 files and directories currently installed.)
Unpacking unity-lens-video (from .../unity-lens-video_0.5+51+201201160324~oneiric1_armel.deb) ...
Setting up unity-lens-video (0.5+51+201201160324~oneiric1) ...

パッケージがない場合は、以下のようにビルドが必要だった。

$ bzr branch lp:~s-team/ubuntutv/unity-lens-video
$ cd unity-lens-video
$ ./autogen.sh --prefix=/usr --sysconfdir=/etc
$ sudo make install
$ cd ..

[][] Ubuntu TVやってみる(13) ubuntu-tvの起動

起動前に少し準備がある。

動画データがある場合には、サムネイルを生成するスクリプトを走らせておく必要がある。

$ /usr/lib/unity-lens-video/create_tmb.sh ~/Videos/

Unity2dのフォームファクタにtvを指定する。

linaro@linaro-ubuntu-desktop:~$ GSETTINGS_SCHEMA_DIR=ubuntu-tv/data gsettings set com.canonical.Unity2d form-factor tv

** (process:17820): WARNING **: Command line `dbus-launch --autolaunch=be3c9d815a9e99a25c4746ac00384ff5 --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n

** (process:17820): WARNING **: Command line `dbus-launch --autolaunch=be3c9d815a9e99a25c4746ac00384ff5 --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n

ワーニングが出る。

あ、リモートだからね。

コンソールからやらないとダメか。

というわけで、PandaboardのTerminalから操作する。

Terminalからであれば、特にエラーもなく終了する。


既存のunity2d関連のプロセスを強制終了する。

二度やる必要があると書いてある。

linaro@linaro-ubuntu-desktop:~$ killall unity-2d-{panel,places,launcher,spread} && killall unity-2d-{panel,places,launcher,spread}
unity-2d-panel: no process found
unity-2d-spread: no process found

画面からは、パネルが一度は消えるけど、再起動してきちゃう。


先に、ウインドウマネージャをmetacityに設定する。

linaro@linaro-ubuntu-desktop:~$ metacity --replace &
(metacity:18158): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", 
(metacity:18158): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", 
(metacity:18158): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", 
(metacity:18158): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", 
(metacity:18158): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", 
(metacity:18158): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", 
(metacity:18158): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", 
(metacity:18158): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", 

もう一回、Unity2dを強制終了してみると、もう起動してこなかった。


ubuntu-tvを起動する。

linaro@linaro-ubuntu-desktop:~$ cd ubuntu-tv
linaro@linaro-ubuntu-desktop:~/ubuntu-tv$ ./shell/app/unity-2d-shell -opengl

うまくいった。

https://lh6.googleusercontent.com/-g16kH9LqK3o/Tx9x2o4MEfI/AAAAAAAAB_4/zQveVOfQvig/s720/24%252520-%2525202.jpg

https://lh3.googleusercontent.com/-sXLTAxjDmWs/Tx9x2abmRMI/AAAAAAAAB_w/KFrdsGthOaQ/s720/24%252520-%2525201.jpg

[][] Ubuntu TVやってみる(14) 動画インデックスの生成(xbmcが落ちるので作れず)

一応ぬるぬる動いている。

動画サンプル入れてみないとな。

このへんに映画のサンプルがあるので、~/Videosに落としてみる。

http://www.h264info.com/clips.html

サムネイルの生成は、以下のスクリプトで実行する。

linaro@linaro-ubuntu-desktop:~/Videos$ /usr/lib/unity-lens-video/create_tmb.sh ~/Videos/
/usr/lib/unity-lens-video/create_tmb.sh
Creating thumbnails for /home/linaro/Videos/Captain America - The First Avenger - Trailer 2.mp4...
Creating thumbnails for /home/linaro/Videos/The Hobbit - An Unexpected Journey - Trailer.mp4...

結構時間かかる。

たかだがトレーラーサイズなのに。

これって、早送り用のキーフレームのサムネイルも生成しているのかしらん。

linaro@linaro-ubuntu-desktop:~/Videos$ ls
Captain America - The First Avenger - Trailer 2.mp4
Captain America - The First Avenger - Trailer 2_0.tmb
Captain America - The First Avenger - Trailer 2_1.tmb
Captain America - The First Avenger - Trailer 2_2.tmb
Captain America - The First Avenger - Trailer 2_3.tmb
Captain America - The First Avenger - Trailer 2_4.tmb
Captain America - The First Avenger - Trailer 2_5.tmb
Captain America - The First Avenger - Trailer 2_6.tmb
Captain America - The First Avenger - Trailer 2_7.tmb
Captain America - The First Avenger - Trailer 2_8.tmb
Captain America - The First Avenger - Trailer 2_9.tmb
The Hobbit - An Unexpected Journey - Trailer.mp4
The Hobbit - An Unexpected Journey - Trailer_0.tmb
The Hobbit - An Unexpected Journey - Trailer_1.tmb
The Hobbit - An Unexpected Journey - Trailer_2.tmb
The Hobbit - An Unexpected Journey - Trailer_3.tmb
The Hobbit - An Unexpected Journey - Trailer_4.tmb
The Hobbit - An Unexpected Journey - Trailer_5.tmb
The Hobbit - An Unexpected Journey - Trailer_6.tmb
The Hobbit - An Unexpected Journey - Trailer_7.tmb
The Hobbit - An Unexpected Journey - Trailer_8.tmb
The Hobbit - An Unexpected Journey - Trailer_9.tmb

やっぱそうか。

データ量多くなりそうだな... orz


んー、これだけでは何も出てこないな。

video-lensの説明はこれ。

https://bazaar.launchpad.net/~s-team/ubuntutv/unity-lens-video/view/head:/README.txt

データは、Videos/unityの下に入るようだ。

そんなディレクトリはないな。


データの生成には、XMBCがいるのか。

ドキュメントに従ってPPA版を入れる。

linaro@linaro-ubuntu-desktop:~/Videos$ sudo add-apt-repository ppa:nathan-renniewaldock/xbmc-stable
You are about to add the following PPA to your system:
 XBMC Stable
 Stable releases of XBMC.
 More info: https://launchpad.net/~nathan-renniewaldock/+archive/xbmc-stable
Press [ENTER] to continue or ctrl-c to cancel adding it

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.rEITkGdSnD --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80/ --recv 428926204FE30238F00B98224CDB129629A4B41A
gpg: requesting key 29A4B41A from hkp server keyserver.ubuntu.com
gpg: key 29A4B41A: public key "Launchpad PPA for Nathan Rennie-Waldock" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)

linaro@linaro-ubuntu-desktop:~/Videos$ sudo apt-get update

linaro@linaro-ubuntu-desktop:~/Videos$ apt-get install xbmc -s
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 xbmc : Depends: xbmc-bin (>= 2:11.0-0~beta1~ppa1~oneiric) but 2:11.0~git20111216.68fff18-0linaro7 is to be installed
        Recommends: python-qt3 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

うえ、パッケージコンフリクトだよ。

めんどくさすぎ。

インデックス作るだけなんだけどな。

PPAを削除。

linaro@linaro-ubuntu-desktop:~/Videos$ sudo rm /etc/apt/sources.list.d/nathan-renniewaldock-xbmc-stable-oneiric.list 
linaro@linaro-ubuntu-desktop:~/Videos$ sudo apt-get update

xbmcってないの?

linaro@linaro-ubuntu-desktop:~/Videos$ apt-cache search xbmc
texlive-latex-extra - TeX Live: LaTeX supplementary packages
libnfo1 - an NFO file parser/writer library
minidlna - lightweight DLNA/UPnP-AV server targeted at embedded systems
xbmc - XBMC Media Center (arch-independent data package)
xbmc-eventclients-wiiremote - XBMC Media Center (Event Client WII Remote support package)
xbmc-eventclients-common - XBMC Media Center (Event Client Common package)
xbmc-eventclients-dev - XBMC Media Center (Event Client Dev package)
xbmc-eventclients-j2me - XBMC Media Center (Event Client J2ME package)
xbmc-eventclients-ps3 - XBMC Media Center (Event Client PS3 package)
xbmc-bin - XBMC Media Center (binary data package)
xbmc-live - XBMC Media Center (XBMC Live package)
xbmc-eventclients-xbmc-send - XBMC Media Center (Event Client XBMC-SEND package)
xbmc-bin-dbgsym - debug symbols for package xbmc-bin

普通にあるんじゃん。

これだとダメかね?

linaro@linaro-ubuntu-desktop:~/Videos$ apt-get install xbmc -s
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libxcb-xfixes0 libgbm1 libwayland0 libxcb-dri2-0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libhal-storage1 libhal1 liblzo2-2 libmicrohttpd5 libmikmod2 libqt3-mt
  libsdl-mixer1.2 libsmpeg0 libyajl1 mesa-utils python-bluez python-central
  python-qt3 python-sip xbmc-bin
Suggested packages:
  libqt3-mt-psql libqt3-mt-mysql libqt3-mt-odbc python-qt3-gl python-qt3-doc
  xbmc-test-helper
Recommended packages:
  libcec
The following NEW packages will be installed:
  libhal-storage1 libhal1 liblzo2-2 libmicrohttpd5 libmikmod2 libqt3-mt
  libsdl-mixer1.2 libsmpeg0 libyajl1 mesa-utils python-bluez python-central
  python-qt3 python-sip xbmc xbmc-bin
0 upgraded, 16 newly installed, 0 to remove and 5 not upgraded.
Inst libhal1 (0.5.14-7ubuntu1linaro1 Linaro Overlay PPA:11.10/oneiric [armel])
Inst libhal-storage1 (0.5.14-7ubuntu1linaro1 Linaro Overlay PPA:11.10/oneiric [armel])
Inst liblzo2-2 (2.05-2ubuntu1linaro1 Linaro Overlay PPA:11.10/oneiric [armel])
Inst libmicrohttpd5 (0.4.6-1 Ubuntu:11.10/oneiric [armel])
Inst libmikmod2 (3.1.11-a-6.4 Ubuntu:11.10/oneiric [armel])
Inst libqt3-mt (3:3.3.8-b-8ubuntu1 Ubuntu:11.10/oneiric [armel])
Inst libsmpeg0 (0.4.5+cvs20030824-2.2ubuntu1 Ubuntu:11.10/oneiric [armel])
Inst libsdl-mixer1.2 (1.2.8-6.3build1 Ubuntu:11.10/oneiric [armel])
Inst python-central (0.6.17 Ubuntu:11.10/oneiric [all])
Inst python-bluez (0.18-1build1 Ubuntu:11.10/oneiric [armel])
Inst python-sip (4.12.4-1 Ubuntu:11.10/oneiric [armel])
Inst python-qt3 (3.18.1-4ubuntu3 Ubuntu:11.10/oneiric [armel])
Inst libyajl1 (1.0.12-0ubuntu2 Ubuntu:11.10/oneiric [armel])
Inst xbmc-bin (2:11.0~git20111216.68fff18-0linaro7 Linaro Overlay PPA:11.10/oneiric [armel])
Inst mesa-utils (8.0.1+git20110129+d8f7d6b-0ubuntu2 Ubuntu:11.10/oneiric [armel])
Inst xbmc (2:11.0~git20111216.68fff18-0linaro7 Linaro Overlay PPA:11.10/oneiric [armel])
Conf libhal1 (0.5.14-7ubuntu1linaro1 Linaro Overlay PPA:11.10/oneiric [armel])
Conf libhal-storage1 (0.5.14-7ubuntu1linaro1 Linaro Overlay PPA:11.10/oneiric [armel])
Conf liblzo2-2 (2.05-2ubuntu1linaro1 Linaro Overlay PPA:11.10/oneiric [armel])
Conf libmicrohttpd5 (0.4.6-1 Ubuntu:11.10/oneiric [armel])
Conf libmikmod2 (3.1.11-a-6.4 Ubuntu:11.10/oneiric [armel])
Conf libqt3-mt (3:3.3.8-b-8ubuntu1 Ubuntu:11.10/oneiric [armel])
Conf libsmpeg0 (0.4.5+cvs20030824-2.2ubuntu1 Ubuntu:11.10/oneiric [armel])
Conf libsdl-mixer1.2 (1.2.8-6.3build1 Ubuntu:11.10/oneiric [armel])
Conf python-central (0.6.17 Ubuntu:11.10/oneiric [all])
Conf python-bluez (0.18-1build1 Ubuntu:11.10/oneiric [armel])
Conf python-sip (4.12.4-1 Ubuntu:11.10/oneiric [armel])
Conf python-qt3 (3.18.1-4ubuntu3 Ubuntu:11.10/oneiric [armel])
Conf libyajl1 (1.0.12-0ubuntu2 Ubuntu:11.10/oneiric [armel])
Conf xbmc-bin (2:11.0~git20111216.68fff18-0linaro7 Linaro Overlay PPA:11.10/oneiric [armel])
Conf mesa-utils (8.0.1+git20110129+d8f7d6b-0ubuntu2 Ubuntu:11.10/oneiric [armel])
Conf xbmc (2:11.0~git20111216.68fff18-0linaro7 Linaro Overlay PPA:11.10/oneiric [armel])

行けそうじゃない。

入れる。

linaro@linaro-ubuntu-desktop:~/Videos$ sudo apt-get install xbmc

起動する。

linaro@linaro-ubuntu-desktop:~/Videos$ xbmc
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
Error: unable to open display 
FEH.py: cannot connect to X server 

うげ、これもダメなのかよ。


一旦、ubuntu-tvを終わる。

linaro@linaro-ubuntu-desktop:~/Videos$ ps ax | grep unity-2d-shell
 2774 pts/0    Sl+    7:22 ./shell/app/unity-2d-shell -opengl
linaro@linaro-ubuntu-desktop:~/Videos$ kill 2774

xbmcを起動すると、セグフォルトで落ちた... orz

というわけで、コンテンツインデックスが作れない罠。

手で作る?

インデックスだけ自動生成したらいいので、

なんかのスクリプトで書いた互換デーモンとかないのかね。

てーか、このへんxbmcに依存してるのがイヤ。