Making Tonido work on Amahi
Posted: Sun May 22, 2011 3:50 pm
Tonido does not support Fedora, nor is there a 64-bit version. I managed to ake it work and thought I'd share how for those interested:
- do a "yum install glibc.i686" to get some of the 32-bit libraries needed
- get the 32-bit Ubuntu .deb package from Tonido
- Do a "yum install ar"
- Extract the contents of the Tonido .deb package with:
ar vx TonidoSetup_i686.deb
You will have a data.tar.gz file after this; install its contents with:
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 - I used "mkdir /mnt/tmp" and "/mkdir /mnt/tmp2"
- insert the Ubuntu disc and mount it. You can either let it automount or in my case I did it explicitly with "umount /dev/sr0; mount /dev/sr0 /mnt/tmp"
- go to the "casper" directory on the Ubuntu CD and mount filesystem.squashfs (for me, I did "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.
- do a "yum install glibc.i686" to get some of the 32-bit libraries needed
- get the 32-bit Ubuntu .deb package from Tonido
- Do a "yum install ar"
- Extract the contents of the Tonido .deb package with:
ar vx TonidoSetup_i686.deb
You will have a data.tar.gz file after this; install its contents with:
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 - I used "mkdir /mnt/tmp" and "/mkdir /mnt/tmp2"
- insert the Ubuntu disc and mount it. You can either let it automount or in my case I did it explicitly with "umount /dev/sr0; mount /dev/sr0 /mnt/tmp"
- go to the "casper" directory on the Ubuntu CD and mount filesystem.squashfs (for me, I did "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.