It looks like Tomboy (A really nice note/wiki Gnome widget) has released a great new feature. As of version 0.8 you can now sync your notes to a remote server. I was kind of doing that already using Subversion - but it never really worked the way I wanted it to.
I ran into a series of problems getting this thing to work. I’ll spare you some pain if you want to follow along.
Gutsy Gibbon Required - not
Ok first hurdle was the issue that the 0.8 package is only out for Gutsy - which hasn’t officially been released yet. I figured in this case it wouldn’t be a big deal. On the other hand, Tomboy is shipped as part of Gnome which gets an upgrade as part of Gutsy so I wasn’t sure if this was going to be an easy package to build.
Enter prevu
It turns out Ubuntu ships a tool that makes your life in backport land very easy. (Following the advice from here)
- sudo apt-get install prevu
- add deb-src http://archive.ubuntu.com/ubuntu gutsy main restricted universe multiverse to your /etc/apt/sources.list
- sudo prevu-init
- sudo prevu tomboy
That took a while even on my beefy machine - mostly because Tomboy needs a lot of libraries to build. After that you get the new version of Tomboy in
/var/cache/prevu/fiesty-debs
Pretty cool - I killed Tomboy and then restart it and bam I have 0.8
Not So Fast
Tomboy offers two means of syncing - sshfs and wdfs. Both are fuse based remote file mounting systems. I tried to get sshfs to work - but for some reason it changed the permissions on the mounted directory in a way that didn’t allow my to sync. I would have preferred to go this route because it is way easier to sync via ssh (sshfs) than WebDav (wdfs).
After being thwarted by sshfs ( If someone figures it out let me know), I switched over to wdfs. Unlike most people I happen to have a personal webdrive up that uses WebDav already. Even given that head start it was still annoying.
What Package?
It turns out that wdfs doesn’t exist as a package in Ubuntu. Since I generally prefer packages to anything else I did the CheckInstall dance. (I am a huge fan of check install for this very situation - I can have package to use with other machines and uninstalling is easy). wdfs requires some packages to compile.
- wget http://noedler.de/projekte/wdfs/wdfs-1.4.2.tar.gz
- tar -xzf wdfs-1.4.2.tar.gz
- cd wdfs-1.4.2
- sudo apt-get install libfuse-dev libneon26 libneon26-dev
- ./configure (This makes sure you have everything you need to compile)
- sudo checkinstall
SSL Arggg!
I actually have a personally signed SSL cert on my webdrive. In theory, this makes things a little more secure. Unfortunately, wdfs doesn’t like that non-trusted cert. It turns out that the URL you put into Tomboy is passed without any special kind of escaping. This allowed my to add “-o accet_sslcert” to the url and get it past my cert.
I actually had to manually unmount the wdfs and then tell it to sync and things finally worked.
In the end, it was more work than I expected but at least now it works and since I have packages for both tomboy-0.8 and wdfs putting it on my other Ubuntu boxes should be seriously easy.
September 23rd, 2007 at 8:19 am (subscribed to comments)
Hi, Tomboy dev here. Thanks for trying out sync! Sorry to hear that it wasn’t the smoothest setup experience for you. Any chance you could file some bugs at bugzilla.gnome.org with more details? If that’s too much work, would you mind just expanding on the SSH permission problems? We do modify the permissions of the files/directories we create to make them more accessible, so I wonder what went wrong.
Hopefully now that you’re all set up, things will go more smoothly. But please let us know (your blog, our mailing list, bugzilla) if you run into any problems or annoyances. I plan to spend a lot of time this release cycle polishing the sync experience.
And sorry about wdfs…I tried to put pressure on the Ubuntu folks to package that for Gutsy, but of course everybody has limited resources. :-) Fortunately wdfs is a pretty easy install from source.
October 4th, 2007 at 8:44 am
I added in three bugs to cover this. I haven’t had a chance to set back up the sshfs stuff yet - when I do I’ll add a bug.
October 21st, 2007 at 6:19 pm
Maybe this is this what you are looking for:
http://gbroon.com/setup_ssh_synchronisation_in_tomboy
April 20th, 2008 at 2:31 am (subscribed to comments)
For some reason Google/Badware marked your site as Badware…
Is it?