Sunday, March 3, 2013

Installing the latest manual version of TVMOBiLi on Western Digital Mybook Live

If you tried to follow the instructions in my last entry about installing TVMOBiLi on your MyBookLive NAS you may have encountered a small problem. The latest .deb package is not an universal package anymore and doesn't include support for PowerPC, which is needed for the MyBookLive.

However it's very easy to install the manual package, which does have the PowerPC binaries included. To do this, download the file that says LINUX MANUAL INSTALL from the Devices section on the TVMOBiLi download page. Save it to the Public folder and then replace Step 7 from my previous post with the following commands:

Change to the Public folder and look for the downloaded file:

MyBookLive:~# cd /shares/Public/

Look for the downloaded file:

MyBookLive:/shares/Public# ls -l

You should see the .tar.gz file:

-rw-rw-r--  1 nobody              share 11278704 Mar  3 12:33 tvmobili-all-universal.tar.gz

You can install the package anywhere in the system, but I suggest putting in /shares/. This way, it's not touched by firmware updates, but it's still out of the Public folder so it doesn't show up when you're browsing the drive and delete it or modify it by mistake.

To do so, change back to the /shares/ folder:

MyBookLive:~# cd /shares/

and extract the archive:

MyBookLive:/shares# tar xzvf /shares/Public/tvmobili-all-universal.tar.gz

You will see a bunch of files that are extracted into a folder called tvmobili:


tvmobili/
tvmobili/usr/
tvmobili/usr/local/
tvmobili/usr/local/bin/
tvmobili/usr/local/bin/tvmobilisvcd_arm_g234
tvmobili/usr/local/bin/tvmobilisvcd_arm_g250

Once finished, change to the tvmobili folder:

MyBookLive:/shares# cd tvmobili

First, create the log folder:

MyBookLive:/shares/tvmobili# mkdir -p var/log/tvmobili

Next, create a symlink to the powerpc binary:

MyBookLive:/shares/tvmobili# cd usr/local/bin/
MyBookLive:/shares/tvmobili/usr/local/bin# ln -s tvmobilisvcd_ppc_g250 tvmobilisvcd

Make sure the symlink was created right:

MyBookLive:/shares/tvmobili/usr/local/bin# ls -l 
total 32768
lrwxrwxrwx 1 root root      21 Feb 24 19:47 tvmobilisvcd -> tvmobilisvcd_ppc_g250
-rwxr-xr-x 1 root root 5519557 Jan 30 18:38 tvmobilisvcd_arm_g234
-rwxr-xr-x 1 root root 4215885 Jan 30 18:38 tvmobilisvcd_arm_g250
-rwxr-xr-x 1 root root 8788267 Jan 30 18:38 tvmobilisvcd_arm_u000
-rwxr-xr-x 1 root root 5330673 Jan 30 18:38 tvmobilisvcd_i386_g2110
-rwxr-xr-x 1 root root 5327519 Jan 30 18:38 tvmobilisvcd_i386_g236
-rwxr-xr-x 1 root root 4095789 Jan 30 18:38 tvmobilisvcd_ppc_g250

Go to the config directory:

MyBookLive:/shares/tvmobili/usr/local/bin# cd /shares/tvmobili/etc/tvmobili/conf/

Copy the default config file:

MyBookLive:/shares/tvmobili/etc/tvmobili/conf# cp tvMobiliService.conf.notlimited tvMobiliService.conf

Edit the file using vi or pico if you're not familiar with vi:

MyBookLive:/shares/tvmobili/etc/tvmobili/conf# vi tvMobiliService.conf
or 
MyBookLive:/shares/tvmobili/etc/tvmobili/conf# pico tvMobiliService.conf

and change the line that says:

WebServerRoot=/etc/tvmobili/www
to
WebServerRoot=/shares/tvmobili/etc/tvmobili/www

Change to the init directory:

MyBookLive:/shares/tvmobili/etc/tvmobili/conf# cd /shares/tvmobili/etc/init.d/

Edit the init file with vi or pico:

MyBookLive:/shares/tvmobili/etc/init.d# vi tvmobilisvcd.init
or
MyBookLive:/shares/tvmobili/etc/init.d# pico tvmobilisvcd.init

Change the line that says:

INSTALLROOT=
to
INSTALLROOT=/shares/tvmobili

Change to the system init directory:

MyBookLive:/shares/tvmobili/etc/init.d# cd /etc/init.d/

Create a symlink to the tvmobili.init file:

MyBookLive:/etc/init.d# ln -s /shares/tvmobili/etc/init.d/tvmobilisvcd.init .

Make sure it was created right:

MyBookLive:/etc/init.d# ls -l tvmobilisvcd.init 
lrwxrwxrwx 1 root root 45 Mar  3 13:21 tvmobilisvcd.init -> /shares/tvmobili/etc/init.d/tvmobilisvcd.init

And finally create the stop/start links (never mind the warning):

MyBookLive:/etc/init.d# update-rc.d tvmobilisvcd.init defaults
update-rc.d: warning: /etc/init.d/tvmobilisvcd.init missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
 Adding system startup for /etc/init.d/tvmobilisvcd.init ...
   /etc/rc0.d/K20tvmobilisvcd.init -> ../init.d/tvmobilisvcd.init
   /etc/rc1.d/K20tvmobilisvcd.init -> ../init.d/tvmobilisvcd.init
   /etc/rc6.d/K20tvmobilisvcd.init -> ../init.d/tvmobilisvcd.init
   /etc/rc2.d/S20tvmobilisvcd.init -> ../init.d/tvmobilisvcd.init
   /etc/rc3.d/S20tvmobilisvcd.init -> ../init.d/tvmobilisvcd.init
   /etc/rc4.d/S20tvmobilisvcd.init -> ../init.d/tvmobilisvcd.init
   /etc/rc5.d/S20tvmobilisvcd.init -> ../init.d/tvmobilisvcd.init

To start TVMOBiLi either reboot the drive or run:

MyBookLive:/etc/init.d# /etc/init.d/tvmobilisvcd.init start
Starting TVMOBiLi server

That's it. Continue with Step 8 to configure TVMOBiLi and enjoy.

After a firmware update, all you have to do is recreate the symlink in the /etc/init.d directory and run update-rc.d again to enable TVMOBiLi again:


MyBookLive:~# cd /etc/init.d/
MyBookLive:/etc/init.d# ln -s /shares/tvmobili/etc/init.d/tvmobilisvcd.init .
MyBookLive:/etc/init.d# update-rc.d tvmobilisvcd.init defaults
update-rc.d: warning: /etc/init.d/tvmobilisvcd.init missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
 Adding system startup for /etc/init.d/tvmobilisvcd.init ...
   /etc/rc0.d/K20tvmobilisvcd.init -> ../init.d/tvmobilisvcd.init
   /etc/rc1.d/K20tvmobilisvcd.init -> ../init.d/tvmobilisvcd.init
   /etc/rc6.d/K20tvmobilisvcd.init -> ../init.d/tvmobilisvcd.init
   /etc/rc2.d/S20tvmobilisvcd.init -> ../init.d/tvmobilisvcd.init
   /etc/rc3.d/S20tvmobilisvcd.init -> ../init.d/tvmobilisvcd.init
   /etc/rc4.d/S20tvmobilisvcd.init -> ../init.d/tvmobilisvcd.init
   /etc/rc5.d/S20tvmobilisvcd.init -> ../init.d/tvmobilisvcd.init
MyBookLive:/etc/init.d# /etc/init.d/tvmobilisvcd.init start
Starting TVMOBiLi server

8 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Andi,
    First of all your instructions have been a greate help.

    everything went greate until the creation of the stop/start links

    I'm writing "update-rc.d tvmobilisvcd.init defaults update-rc.d: warning: /etc/init.d/tvmobilisvcd.init missing LSB information update-rc.d: see "

    And receive an "-bash: sintax error near unexpected talken 'newline'

    If you can helpme too finish the manual update, I'll be gratefull

    Armando

    ReplyDelete
  3. @tallerfulano: You have to type the following only:
    "update-rc.d tvmobilisvcd.init defaults"
    The rest you write is part of the message you will get, when you press enter :)

    @Andi: Thanks for the great how-to. Worked like a charm, but in release 2.1.0.4118 the subtitle streaming seems to be broken and I have to update to a dev preview release.
    How does one update the tvmobili server? Do you have to run the whole procedure again or is it possible to do it through the web UI?

    Greetings
    Howgie

    ReplyDelete
    Replies
    1. I'd also like to know how one can uninstall the tvmobili server once installed manually. Just in case :)

      Howgie

      Delete
    2. I just installed 2.1.0.4118 (LINUX PPC DEB INSTALLER for NAS/Devices) and subtitles work fine on my Samsung Smart TV.

      Delete
  4. Thank you for your help, Howgie. I hope this solved your problem, tallerfulano.

    About updating: I am afraid you´d have to go through the same procedure again. I haven´t updated my version yet.

    About uninstallung: first, it's enough to disable it. You can do this by running "update-rc.d tvmobili remove" and "/etc/init.d/tvmobilisvcd.init stop" to shut down the service. If you really want to remove it completely, just remove the /shares/tvmobili folder and the start script.

    By the way, I see there´s a ppc .deb package availabel for download again. So you can disable the manual version and install the latest .deb to try it out if you want.

    ReplyDelete
  5. Hey Andi, thanks for the reply. For whatever reason I was not able to get the subtitles working on neither my WD TV Live nor my Android Tab with MX Player. So I just deleted the start script and rebooted. That disables the server for now.
    I just installed version 7 of the twonky server and all subtitles are working. All in all the lifetime license of twonky is also a little cheaper.
    Whatever, I'm happy it worked out after all and I want to thank you again for your help. Would never have tried out all that without your blog.
    Howgie

    ReplyDelete
    Replies
    1. Thanks a lot Howgie, I think the las sugestion was the best.
      Cheers

      Delete