Friday, August 25, 2017
Ubuntu Tip How To Synchronise Gnote Between PCs
Ubuntu Tip How To Synchronise Gnote Between PCs
In the great Tomboy vs Gnote debate one of the trump cards Tomboy has is its ability to synchronise its database of notes with other PCs. Not that it was ever a feature that worked brilliantly. However none the less it was a feature I used and the only reason I continued using Tomboy over Gnote.
How stupid I was?
Ubuntu as many Ubuntu users will know comes with a "cloud" service called Ubuntu One. Which while isnt that great provides us with the basic inspiration for what were about to do. You see Canonical in their great wisdom decided it would be a great idea to integrate Tomboy with Ubuntu One. Fine. Excellent. If it works. It did for a time for me. Then sort of went a bit crappy. However there are more mature "cloud services" available for synchronising files between two PCs. And that incidentally is all Tomboys synchronisation feature does so far as I can see. It simply copies files that have been created or changed recently to the PC that doesnt have the new version.
You see all of the notes you create in Tomboy or Gnote are stored in individual XML formatted files. And the Linux file system has a crafty little feature called symbolic links. Combine this with a service like Ubuntu One or Dropbox and all our notes are synchronised automagically so long as we have an active web connection.
Prerequisites:
- Tomboy or Gnote. I recommend Gnote. Its lighter and faster than Tomboy.
- Ubuntu One, Dropbox or similar service. I would recommend Dropbox.
- Creat a new folder for yout notes in your Ubuntu One or Dropbox folder.
- Copy your existing notes to the folder you just created in your Ubuntu One or Dropbox folder. Tomboy notes can be found in /home/your-user-name/.local/share/tomboy. Gnote notes can be found in /home/your-user-name/.gnote.
- Replace the Tomboy or Gnote folder with a symbolic link. Open a terminal window and enter the following command adjust for your own PC;
ln -vsf Dropbox/gnote /home/your-user-name/.gnote
Repeat steps 1 and 3 on the second, third, fourth, etc PC.
- Its best to have Tomboy or Gnote already setup and working before you attempt this.
- Its also better to avoid using hidden directories with Dropbox. They dont work very well in my experience.
- If youre using Tomboy but would like to switch to Gnote thats not a problem. Gnote is a native Linux implementation of Tomboy that is free of all Mono dependencies. Both applications use exactly the same data file formats and both offer almost exactly the same feature set. So all you need to do is copy the Tomboy files to your Gnote folder.
download file now