Menu

Host_install


INSTALLATION:


install tasksel:

sudo apt-get install tasksel

open tasksel, install mysql: *don't forget the password you enter

sudo tasksel install mysql-server
or
sudo tasksel push space bar in the LAMP server box then hit enter.

WRITE DOWN YOUR ROOT MYSQL PASS YOU WILL NEED IT.

extract the contents of BeagleTomb.tar.gz to your home folder:

Browse the contents of the folder you just extracted:

cd ~/BeagleTomb/

Open the Installer: (must be run as root)

sudo sh ./myinstall.sh

Installer will attempt to search and install the following:

mysql-server
mpd
mplayer
mediatomb

mediatomb database table
media tomb database user with mediatomb password
grant all privilages to mediatomb


AUTO CONFIGURATION:


run the installer again except selection menu item 2.
make sure you're in the BeagleTomb Folder
cd ~/BeagleTomb/
sudo sh ./myinstall.sh

selected 2nd menu.


MANUAL CONFIGURATION:


mediatomb:

Once installed you need to configure mediatomb to properly connect to mysql

Copy and replace these lines in /etc/mediatomb/config.xml to look like this.
Don't forget to edit 192.168.1.116 and put in your host local IP address.

<server>
<ui enabled="yes" show-tooltips="yes">
<accounts enabled="no" session-timeout="30">
<account user="mediatomb" password="mediatomb">
</account></accounts>
</ui></server>

And.....

<storage>
<sqlite3 enabled="no">
<database-file>mediatomb.db</database-file>
</sqlite3>
<mysql enabled="yes">
<host>192.168.1.116</host>
<username>mediatomb</username>
<password>mediatomb</password>
<database>mediatomb</database>
</mysql>
</storage>


mySQL:

1) Edit /etc/mysql/my.cnf
sudo gedit /etc/mysql/my.cnf

2)replace part of the my.cnf with your Host Local IP:

bind-address = 192.168.1.116

3) restart mysql server
sudo /etc/init.d/mysql restart



Launch:


Start the mediatomb server: (recommended you set this on startup)
default port is 49152 however, you can choose anyp ort.

sudo mediatomb --port 49154

Add Files to mediatomb at http://localhost:49152


MongoDB Logo MongoDB