Comment 34 for bug 1165104

Revision history for this message
Bruno Nova (brunonova) wrote :

Ok. Steps to test the patched oneconf in Ubuntu 13.10 Saucy:

1. If you haven't enabled software sync yet, do it first: open Ubuntu Software Center (USC) and choose "File > Sync Between Computers" in the menu (you'll be prompted for your Ubuntu One credentials if sync wasn't enabled yet).
Then close USC.

2. Download the patched oneconf code from http://bazaar.launchpad.net/~brunonova/oneconf/lp1165104/tarball/275?start_revid=275 , then extract it (it's an archive; this link was not very easy to find).

3. Open a terminal inside the extracted oneconf source directory (the folder "lp1165104", containing several folders and files like "oneconf-service").

4. Start the oneconf-service with the command "./oneconf-service --debug", and
watch the debug messages.
If it reports that oneconf is already running, execute "oneconf-query --stop" then run the previous command again.
Keep an eye out for WARNING and ERROR messages, and messages like "credential not found".
The "Error in loading other_hosts file" warning is perfectly fine if this is the first sync.

5. Wait for the sync to finish (wait for half a minute or so).
Then open USC, go to the installed software "tab" (or "File > Sync Between Computers").
See if USC "says" something like "Last sync DATE/TIME" at the bottom (below the list of computers).
If yes, then it seems the software list was successfully synced to the server.
Then close USC.

---

Repeat the previous steps in another computer(s) (you can use Virtualbox as another computer).

---

6. Now to see if the software list is synced between computers (through the server).
Stop the oneconf-service ("oneconf-query --stop") in both computers.
Then start it again ("./oneconf-service --debug") in one computer.
After the sync finishes, do the same for the other computer.
Then open USC in both computers and go to the installed software "tab". Check if all computers are listed and if, when you select another computer, if USC displays the differences between the computers (what is installed in both/what is only installed in one/what is only installed in the other).
If yes, it works! If not, repeat this step one or two more times.

Also, the synced data is stored in the directory "~/.cache/oneconf/RANDOM_NAME".
The files "other_hosts" and "package_list_*" are of particular interest.
If you want to clear the oneconf cache (and start from fresh), delete (or move) the RANDOM_NAME directory.