Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 9287  / 1 Year ago, sat, december 10, 2022, 9:05:36

I'm looking for a way to keep a desktop and a laptop in sync. Something that I want to keep in sync are Gnote notes.



If it matters I can connect to my desktop from anywhere via an URL but my laptop is harder to access since it might be behind NAT and such.


More From » gnote

 Answers
7

This is a solution based on fossfreedom's answer, Synchronizing 2 Ubuntu Systems with Unison and the Unison manual. The differences are that I instead of using a GUI for Unison use the command-line version and that I instead of trying to tunnel past NAT always execute the sync command from the computer that might behind NAT.



Setup



Both computers




  1. sudo apt-get install openssh-server unison

  2. Test the SSH link from each computer to the other.



On the computer that might be behind NAT




  1. mkdir ~/.unison

  2. nano default.prf – Create a profile file named default.

  3. Write the profile file, e.g.:



    root = /home/user

    root = ssh://[email protected]//home/user

    path = .local/share/gnote



Sync



Sync the computers by running unison -auto default on the computer that might be behind NAT. This will sync notes and it will ask the user what to do if there is conflicts. Note that you should close Gnote on both computers before syncing. I do this before and after my laptop leaves the LAN with my desktop to keep their notes in sync.


[#44405] Saturday, December 10, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
naldis

Total Points: 257
Total Questions: 101
Total Answers: 111

Location: Kenya
Member since Sat, Feb 25, 2023
1 Year ago
naldis questions
;