Archive

Archive for August, 2010

How to enable JavaScript in MediaTomb on Ubuntu

August 3rd, 2010 8 comments

In Ubuntu 10.04, MediaTomb is compiled without JavaScript (libjs) support, so if you try to use JavaScript for your layout you will be presented in the log files with:

ERROR: MediaTomb was compiled without js support, however you specified “js” to be used for the virtual-layout.

To remedy the situation, the first thing you need to do is to install libjs (SpiderMonkey).

Next you need to download the MediaTomb source (line 2 below) and all its development dependencies (line 1) so that it can be rebuilt with the newly installed libjs (change to root first, or prefix the lines below with “sudo”).

apt-get build-dep mediatomb
apt-get source mediatomb
vim mediatomb-0.12.0~svn2018/debian/rules

In the debian/rules file, search for MEDIATOMB_CONFIG_OPTIONS and change –disable-libjs to –enable-libjs. You should also update the changelog file (in the same debian directory) and perhaps the mediatomb_0.12.0~svn2018-6ubuntu2.dsc file to change the version. When done with the edits, run dpkg-buildpackage -rfakeroot -us -uc from the same directory you executed “apt-get” in.

If all goes well, you should see 3 new deb files in your current directory. Install them all (dpkg -i mediatomb*.deb) and start enjoying your JavaScript enabled MediaTomb.

To revert back to the original: apt-get install --reinstall mediatomb

Categories: Uncategorized Tags: