Difference between revisions of "Tonido"

From Amahi Wiki
Jump to: navigation, search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{NeedssUpdate}}
+
{{NeedsUpdate}}
 
{{MessageBox|backgroundcolor = #FBB|
 
{{MessageBox|backgroundcolor = #FBB|
 
image =Warning.png|
 
image =Warning.png|
Line 11: Line 11:
 
== How to Install ==
 
== How to Install ==
 
* [[Open Terminal as root|As '''root''' user]], get some of the 32-bit libraries needed:
 
* [[Open Terminal as root|As '''root''' user]], get some of the 32-bit libraries needed:
{{Code|yum install glibc.i686}}
+
yum install glibc.i686
 
* Download the 32-bit Ubuntu .deb package from Tonido
 
* Download the 32-bit Ubuntu .deb package from Tonido
{{Link|http://www.tonido.com/download.php?TonidoSetup_i686.deb}}
+
<nowiki>http://www.tonido.com/download.php?TonidoSetup_i686.deb</nowiki>
 
* Install ar:
 
* Install ar:
{{Code|yum install ar}}
+
yum install ar
 
* Extract the contents of the Tonido .deb package:
 
* Extract the contents of the Tonido .deb package:
{{Code|ar vx TonidoSetup_i686.deb}}
+
tar vx TonidoSetup_i686.deb
 
You will have a data.tar.gz file after this; install its contents:
 
You will have a data.tar.gz file after this; install its contents:
{{Code|tar xzf data.tar.gz -C /}}
+
tar xzf data.tar.gz -C /
 
* Now we need to get a bunch of missing dependencies which we can do with an Ubuntu install disc.
 
* Now we need to get a bunch of missing dependencies which we can do with an Ubuntu install disc.
 
* Download Ubuntu 32-bit CD install image and burn it
 
* Download Ubuntu 32-bit CD install image and burn it
 
* make a couple of directories under /mnt:
 
* make a couple of directories under /mnt:
{{Code|mkdir /mnt/tmp
+
mkdir /mnt/tmp
mkdir /mnt/tmp2}}
+
mkdir /mnt/tmp2
 
* Insert the Ubuntu disc and mount it. You can either let it automount or in my case I did it explicitly:
 
* Insert the Ubuntu disc and mount it. You can either let it automount or in my case I did it explicitly:
{{Code|umount /dev/sr0  
+
umount /dev/sr0  
mount /dev/sr0 /mnt/tmp}}
+
mount /dev/sr0 /mnt/tmp
 
* Go to the "casper" directory on the Ubuntu CD and mount filesystem.squashfs:
 
* Go to the "casper" directory on the Ubuntu CD and mount filesystem.squashfs:
{{Code|mount /mnt/tmp/casper/filesystem.squashfs /mnt/tmp2
+
mount /mnt/tmp/casper/filesystem.squashfs /mnt/tmp2
cd /usr/local/tonido}}
+
  cd /usr/local/tonido
 
* Try to start Tonido with:
 
* Try to start Tonido with:
{{Code|./tonido.sh start}}
+
./tonido.sh start
 
* It will fail. To see the missing dependency, use:
 
* It will fail. To see the missing dependency, use:
{{Code|cat /tmp/tonido_root.log}}
+
cat /tmp/tonido_root.log
 
You'll see something like:
 
You'll see something like:
 
<pre>
 
<pre>
 
/usr/local/tonido//tonidoconsole: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory</pre>
 
/usr/local/tonido//tonidoconsole: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory</pre>
 
* Find the missing dependency in the lib or usr/lib directory of the mounted Ubuntu squashfs. I would typically do something like:
 
* Find the missing dependency in the lib or usr/lib directory of the mounted Ubuntu squashfs. I would typically do something like:
{{Code|find /tmp2/lib /tmp2/usr/lib <nowiki>|</nowiki> grep libz.so.1}}
+
find /tmp2/lib /tmp2/usr/lib <nowiki>|</nowiki> grep libz.so.1
 
*Copy the file you find (and if it is a symlink, the file it links to) to the /usr/local/tonido directory
 
*Copy the file you find (and if it is a symlink, the file it links to) to the /usr/local/tonido directory
 
Try start Tonido again. Keep doing these last few steps (start, check for failure, copy missing dependencies) until instead of an error in the log you see:
 
Try start Tonido again. Keep doing these last few steps (start, check for failure, copy missing dependencies) until instead of an error in the log you see:
Line 77: Line 77:
 
* Create web app named '''tonido'''
 
* Create web app named '''tonido'''
 
* [[Open Terminal as root|As '''root''' user]] do the following:
 
* [[Open Terminal as root|As '''root''' user]] do the following:
{{Code|ll /etc/httpd/conf.d}}
+
ll /etc/httpd/conf.d
 
* Edit the file below based on the previous command:
 
* Edit the file below based on the previous command:
{{Code|vi /etc/httpd/conf.d/<nowiki>####</nowiki>-tonido.conf}}
+
vi /etc/httpd/conf.d/<nowiki>####</nowiki>-tonido.conf
 
* Add this after the ServerAlias line and save:
 
* Add this after the ServerAlias line and save:
{{Text|RedirectPermanent / http://localhost:10001}}
+
RedirectPermanent / <nowiki>http://localhost:10001</nowiki>
 
* Restart the web server:
 
* Restart the web server:
{{Code|service httpd restart}}
+
service httpd restart
 
* You can now access it via http://tonido
 
* You can now access it via http://tonido
  
  
 
[[Category: apps]]
 
[[Category: apps]]

Latest revision as of 02:09, 23 June 2020

Msgbox.update.png Update Needed
The contents of this page have become outdated or irrelevant. Please consider updating it.
Warning.png WARNING
Not recommended for beginners. Proceed with caution!



Tonido does not support Fedora nor is there a 64-bit version. I managed to make it work and thought I'd share how for those interested. A similar process should work on 32-bit Amahi installs.

NOTE: The 32-bit version has been packaged for Amahi and currently in Alpha status.

How to Install

yum install glibc.i686
  • Download the 32-bit Ubuntu .deb package from Tonido
http://www.tonido.com/download.php?TonidoSetup_i686.deb
  • Install ar:
yum install ar
  • Extract the contents of the Tonido .deb package:
tar vx TonidoSetup_i686.deb

You will have a data.tar.gz file after this; install its contents:

tar xzf data.tar.gz -C /
  • Now we need to get a bunch of missing dependencies which we can do with an Ubuntu install disc.
  • Download Ubuntu 32-bit CD install image and burn it
  • make a couple of directories under /mnt:
mkdir /mnt/tmp
mkdir /mnt/tmp2
  • Insert the Ubuntu disc and mount it. You can either let it automount or in my case I did it explicitly:
umount /dev/sr0 
mount /dev/sr0 /mnt/tmp
  • Go to the "casper" directory on the Ubuntu CD and mount filesystem.squashfs:
mount /mnt/tmp/casper/filesystem.squashfs /mnt/tmp2
 cd /usr/local/tonido
  • Try to start Tonido with:
./tonido.sh start
  • It will fail. To see the missing dependency, use:
cat /tmp/tonido_root.log

You'll see something like:

/usr/local/tonido//tonidoconsole: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
  • Find the missing dependency in the lib or usr/lib directory of the mounted Ubuntu squashfs. I would typically do something like:
find /tmp2/lib /tmp2/usr/lib | grep libz.so.1
  • Copy the file you find (and if it is a symlink, the file it links to) to the /usr/local/tonido directory

Try start Tonido again. Keep doing these last few steps (start, check for failure, copy missing dependencies) until instead of an error in the log you see:

Tonido: v2.28.0.13941

  • Now you can open a browser window and go to http://localhost:10001 to continue with Tonido. If you have problems with Tonido (e.g. if playing music doesn't work) check the log again for further dependencies (I needed libncurses for example for music playack).
  • When I was done with this I had added the following libraries to /usr/local/tonido:
libcrypto.so.0.9.8
libexpat.so.1
libexpat.so.1.5.2
libfontconfig.so.1
libfontconfig.so.1.4.4
libfreetype.so.6
libfreetype.so.6.6.2
libgd.so
libgd.so.2             
libgd.so.2.0.0         
libjpeg.so.62
libjpeg.so.62.0.0     
libncurses.so.5         
libncurses.so.5.7       
libpng12.so.0           
libpng12.so.0.44.0
libssl3.so
libssl.so.0.9.8
libssl.so.10
libssl.so.1.0.0a
libstdc++.so.6
libstdc++.so.6.0.14
libz.so.1
libz.so.1.2.3.4

Create web-app (OPTIONAL)

  • Enable Advanced Settings in the Amahi Dashboard (Settings-->Settings)
  • Select apps-->web-app
  • Create web app named tonido
  • As root user do the following:
ll /etc/httpd/conf.d
  • Edit the file below based on the previous command:
vi /etc/httpd/conf.d/####-tonido.conf
  • Add this after the ServerAlias line and save:
RedirectPermanent / http://localhost:10001
  • Restart the web server:
service httpd restart