BeagleBoneにUbuntu入れてDLNAサーバー立ち上げてみよう その2

linux上のminicomにてBeagleBoneにてUbuntuが起動したことを確認。

デフォルトでは

ID : ubuntu
Pass : temppwd

まず、LANケーブルを差してネットワークが繋がっている事を確認する。

$ifconfig eth0

ipアドレスが表示(192.168.xx.xxみたいに出たらOK)したら繋がっている事を確認
もし、繋がっていなかったら・・・webでやり方を探しましょう。

$sudo apt-get upgrade
$sudo apt-get update
$sudo apt-get install aptitude

これすると以下のエラー

The following packages have unmet dependencies:
aptitude : Depends: libboost-iostreams1.46.1 (>= 1.46.1-1) but it is not installable
Depends: libcwidget3 but it is not installable
Depends: libept1.4.12 but it is not installable
Depends: libsigc++-2.0-0c2a (>= 2.0.2) but it is not installable
Depends: libxapian22 but it is not installable
Recommends: apt-xapian-index but it is not going to be installed
Recommends: libparse-debianchangelog-perl but it is not installable
E: Unable to correct problems, you have held broken packages.

うーんどうやってエラーを解決すれば良いのやら。ググレカスという天の声が聞こえたのでググった。
https://bitcointalk.org/index.php?topic=117909.0
http://askubuntu.com/questions/121959/sudo-apt-get-update-error
https://forums.ubuntulinux.jp/viewtopic.php?id=11861
で調べて、

cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade

ここまででinstallされたアプリを更新が完了する。

sudo apt-get install ssh

ここを参考にsshログイン

$ssh username@ipaddress

すると以下のエラーが、

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
hoge:hoge:hoge:hoge:hoge:hoge:hoge:hoge:hoge:hoge:hoge:hoge:hoge:hoge:hoge:hoge.
Please contact your system administrator.
Add correct host key in /home/username/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/username/.ssh/known_hosts:1
remove with: ssh-keygen -f "/home/username/.ssh/known_hosts" -R IP_ADDRES
ECDSA host key for IP_ADDRESS has changed and you have requested strict checking.
Host key verification failed.

と出たので、known_hostsの中身を消去してもう一回ログイン試行したら出来た!
SSHにログインが出来たら、
BeagleBoneのDLNA化に取りかかる。ここここを参考にする。

$sudo apt-get install mediatomb

DLNAサーバーの設定を変更する。

$sudo vi /etc/mediatomb/config.xml

PS3の設定を行う。

あと、DLNAのサーバー名を変更しておく。
BeagleBoneDLNA< /name>

ではmediatombを再起動する。

$ sudo /etc/init.d/mediatomb start
Starting upnp media server: mediatomb.

PS3でメディアサーバーの検索をかけて出てこればOK。
しかし、通常ファイル設定していないと出てこないので、
DLNAサーバーにブラウザでアクセスする。

http://BeagleBone_IP_ADDRESS:49152/

ブラウザ上で外部接続したHDDなりフォルダなりを共有する。
これで、PS3にてDLNA再生ができるようになった。

うーん。思ったよりも時間がかかった。
そのほとんどは、RegzaHDMI出力やVNCでのアクセスしようとしたからなのだが。
結局失敗した。誰か教えてー