[tomboy-list] sshfs syncing help

Sandy Armstrong sanfordarmstrong at gmail.com
Sat Feb 7 17:44:01 PST 2009


On 02/06/2009 07:20 PM, Admiral Beotch wrote:
> Hello Everyone!
>
> I'm having trouble setting up synching via sshfs.
>
> Here's what I've done so far:
>
>     * Enable sshfs plugin
>     * setup a common account 'tomboysync'
>     * setup a common directory in /var/tomboy
>     * setup ssh keys so I can ssh to tomboysync with no password requirement
>     * setup directory permissions in /var/tomboy so that touched files
>       are created with 664 tomboysync:users
>
> My problem is that when I try and save the new preferences in tomboy, I
> get a "Error connecting. Write test failed" error message. After the
> error message, there's a file in /var/tomboy called test with
> permissions 664 and tomboysync:users.
>
> I'm running on Fedora10 i386.
>
> Any ideas on what I can do to get this going?

Well, apparently Fedora patched [1] Tomboy based on some TODOs we had 
(not realizing we hadn't tested with the TODOs implemented), in order to 
get rid of some warnings during build.  Since the "test" file appeared 
in your sync directory, chances are that the logic we use to test 
reading/writing files has some problems.  In fact, I'm glad this 
happened, because I had completely forgotten about these TODOs, and we 
are once again approaching string freeze.

Of course, you just want to know how you can get going yourself.  If you 
don't mind building software, you could build a tarball release of 
Tomboy yourself, and it would not have this patch.  Then everything 
would probably work.

If building software isn't your cup of tea, I *believe* you can work 
around this by quitting Tomboy and manually setting some keys in GConf 
Editor:

In /apps/tomboy:
* sync_fuse_mount_timeout_ms = 10000 (or whatever you want)
* sync_sshfs_folder = Whatever you would have put in "Folder Path 
(optional)" in Prefs
* sync_sshfs_port = 22 (you can change this obviously)
* sync_sshfs_server = Whatever you would have put in "Server" in Prefs
* sync_sshfs_username = Whatever you would have put in "Username" in Prefs

In /apps/tomboy/sync:
* sync_selected_service_addin = "sshfs"

Then restart Tomboy, take a look in the Sync tab of Prefs, make sure all 
the info is entered correctly, and all the fields in that tab are 
disabled (except for the Advanced and Clear buttons), and try syncing! 
Make sure you delete the "test" file first.

Now I'm doubly glad this happened, because I realize that these gconf 
keys aren't in our schema, and therefore don't have nice descriptions in 
GConf Editor. :-)

Please let me know if you have any further troubles, and thanks again 
for reporting this.

Best,
Sandy

[1] 
http://cvs.fedoraproject.org/viewvc/rpms/tomboy/F-10/tomboy-0.11.0-fill-empty-lines.patch?revision=1.1&view=markup


More information about the Tomboy-list mailing list