パソコン日記

パソコン関係のブログ

HP t5730にUbuntu8.04を入れてOpenElecみたいにする。 二回目。

HP t5730にUbuntu8.04を入れてOpenElecみたいにする。 二回目。今度は、8.04用のXBMC8.10でやってみた。


Open /etc/apt/sources.list...


sudo vi /etc/apt/sources.list

... and add the following repositories to it:


deb http://ppa.launchpad.net/team-xbmc-hardy/ubuntu hardy main
deb-src http://ppa.launchpad.net/team-xbmc-hardy/ubuntu hardy main

Run


sudo apt-get update

afterwards to update the package database.

Afterwards, you can install XBMC as follows:


sudo apt-get install xbmc



sudo apt-get install xorg


sudo apt-get install cdbs fakeroot dh-make debhelper debconf libstdc++5 dkms build-essential linux-headers-`uname -r`



mkdir 9-1
cd 9-1

wget http://www2.ati.com/drivers/linux/ati-driver-installer-9-1-x86.x86_64.run

sudo sh ati-driver-installer-9-1-x86.x86_64.run --buildpkg Ubuntu/hardy

sudo dpkg -i *.deb

sudo reboot

Generate a new /etc/X11/xorg.conf file


sudo aticonfig --initial -f


Test your installation

Reboot or fglrxinfo gives an error message. From a terminal window (minimal install must first start x-terminal with 'xinit'), type


xinit

fglrxinfo

t5730の場合は以下の様に出る


display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon X1200 Series
OpenGL version string: 1.4 (2.1.8395 Release)


into the terminal. If the vendor string contains ATI, you have installed the driver successfully.

Now, try:

fgl_glxgears

grep EE /var/log/Xorg.0.log

以上があればエラーを調べる。



xinit xbmc

でxbmcが実行される。
解像度を合わせて再起動でフルスクリーンになる。
この時点で、xbmcからのシステムの再起動などは失敗する。



日本語を含んだarial.ttfをWindowsテラタームの画面にドロップしてSCPをクリック
それで、t5730に送信される。


sudo cp arial.ttf /usr/share/xbmc/media/Fonts/arial.ttf

xbmcのディレクトリにコピー


通常のXBMCの日本語化手順
まずフォントをarialに変更し言語を日本語に。


6 Install ALSA


sudo apt-get install alsa-utils pulseaudio

The sound level may be set to zero, to change the volumes we need to enter the sound mixer.


sudo alsamixer

Adjust the channels you are interested in. Press ESC to exit out of the mixer.

Save the volumes of Alsamixer.


sudo alsactl store 0


音が出ないので以下を実施。


sudo apt-get install -y linux-headers-generic subversion make g++ gcc gawk pmount libtool nasm automake cmake gperf unzip bison libsdl1.2-dev libsdl-image1.2-dev libsdl-gfx1.2-dev libsdl-mixer1.2-dev libsdl-sound1.2-dev libsdl-stretch-dev libfribidi-dev liblzo-dev libfreetype6-dev libsqlite3-dev libogg-dev libasound-dev python-sqlite libglew-dev libcurl4-gnutls-dev x11proto-xinerama-dev libxinerama-dev libxrandr-dev libxrender-dev libmad0-dev libtre-dev libogg-dev libvorbis-dev libmysqlclient15-dev libpcre3-dev libdbus-1-dev libhal-dev libhal-storage-dev libjasper-dev libfontconfig-dev libbz2-dev libboost-dev libfaac-dev libenca-dev libxt-dev libxmu-dev libpng12-dev libjpeg-dev mesa-utils libcdio-dev wget zip curl hal build-essential linux-headers-`uname -r` xorg pm-utils cdbs fakeroot dh-make debhelper debconf libstdc++5 dkms


んー、よくわからんが
xinitしてx window上でgamix をインストールしていじって、alsamixをいじってたら
音がなるようになった、単なるミキサーの問題か?


3.5.5 Install crystal HD driver and library

svn trunk and git trees might be unstable. So use the last tag from http://code.google.com/p/crystalhd-for-osx/ (it contains both osx and linux source code).


sudo apt-get install subversion autoconf
svn checkout http://crystalhd-for-osx.googlecode.com/svn/tags/crystalhd-for-osx-3.6.0
cd crystalhd-for-osx-3.6.0/crystalhd/linux_lib/libcrystalhd
make
sudo make install
cd ../../driver/linux
autoconf
./configure
make
sudo make install
sudo modprobe crystalhd
cd

crystal HDのドライバはこれで入ったが、 XBMC 8.10 は対応してないらしく変化はない、そもそもGPUの再生支援にも対応してない模様で、XBMC 10 に比べると動画再生がとても重い。
Zbox買ってOpenElec入れるのが、簡単で実用的。



マシン起動時の自動xbmc起動だが、
自動ログインとstartxの.xsessionでxbmcを起動するのをやめて、.bashのプロファイルから直接xinit xbmcにしたら、一瞬xtermの窓は出るけどチラつかなくなった、こっちの方がマシ。

XBMC10は xinit xbmc では動いてくれなかったので検証できなかったが、何か問題があるみたいだな。
startxの時点ではxbmcからのシステムのシャットダウンなどできたが、xinit xbmcにしてxbmcからのシステムのショットダウン、リブートなどはできなくなったが、画面がチラつくよりマシ。
電源を切るには、電源ボタンを軽く押す。

Here is one way to have XBMC started automatically at boot. You could as well choose to just install xbmc-live.

Change tty1 for automatic login:


sudo vi /etc/event.d/tty1

Change this line:


exec /sbin/getty 38400 tty1

To:


exec /bin/login -f xbmc /dev/tty1 2>&1
#exec /sbin/getty 38400 tty1


Login as xbmc and create a .bash_profile

su - xbmc
vi .bash_profile

Set it to:


clear && xinit xbmc -- -br & >/dev/null

Reboot


sudo reboot


Update your Xwrapper.config


sudo vi /etc/X11/Xwrapper.config

Replace console by anybody


allowed_users=anybody

Reboot


sudo reboot


HP t5730にXBMCを入れてみた。