{"id":240,"date":"2010-08-03T00:55:55","date_gmt":"2010-08-03T05:55:55","guid":{"rendered":"http:\/\/ebixio.com\/blog\/?p=240"},"modified":"2010-08-03T00:55:55","modified_gmt":"2010-08-03T05:55:55","slug":"how-to-enable-javascript-in-mediatomb-on-ubuntu","status":"publish","type":"post","link":"http:\/\/ebixio.com\/blog\/2010\/08\/03\/how-to-enable-javascript-in-mediatomb-on-ubuntu\/","title":{"rendered":"How to enable JavaScript in MediaTomb on Ubuntu"},"content":{"rendered":"<p>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: <\/p>\n<blockquote><p>ERROR: MediaTomb was compiled without js support, however you specified &#8220;js&#8221; to be used for the virtual-layout.<\/p><\/blockquote>\n<p>To remedy the situation, the first thing you need to do is to <a href=\"http:\/\/ebixio.com\/blog\/2010\/07\/31\/how-to-install-libjs-spidermonkey\/\">install libjs (SpiderMonkey)<\/a>.<\/p>\n<p>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 &#8220;sudo&#8221;).<\/p>\n\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\napt-get build-dep mediatomb\napt-get source mediatomb\nvim mediatomb-0.12.0~svn2018\/debian\/rules\n<\/pre>\n<p>In the debian\/rules file, search for MEDIATOMB_CONFIG_OPTIONS and change &#8211;disable-libjs to &#8211;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 <code lang=\"bash\" inline=\"on\">dpkg-buildpackage -rfakeroot -us -uc<\/code> from the same directory you executed &#8220;apt-get&#8221; in.<\/p>\n<p>If all goes well, you should see 3 new deb files in your current directory. Install them all (<code lang=\"bash\" inline=\"on\">dpkg -i mediatomb*.deb<\/code>) and start enjoying your JavaScript enabled MediaTomb.<\/p>\n<p>To revert back to the original: <code lang=\"bash\" inline=\"on\">apt-get install --reinstall mediatomb<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8220;js&#8221; to be used for the virtual-layout. To remedy the situation, the first thing you need [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-240","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/posts\/240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/comments?post=240"}],"version-history":[{"count":0,"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/posts\/240\/revisions"}],"wp:attachment":[{"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/media?parent=240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/categories?post=240"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/tags?post=240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}