Thursday, August 20, 2015

Two-way syncing Evolution Contacts and Calendar with Google on Ubuntu Trusty using SyncEvolution

SyncEvolution does the magic, this just is how to put it together.

Follow SyncEvolution install instructions for Debian GNU/Linux, Ubuntu

https://syncevolution.org/documentation/installation

Repeated here for convenience - do following as root or use sudo:

# echo "deb https://download.01.org/syncevolution/apt stable main" > /etc/apt/sources.list.d/syncevolution.list
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B2EC3981
# apt-get update
# apt-get install syncevolution-bundle

Now, as normal user in Evolution, create personal calendar and addressbook, both called "Google" (alternatively you can alter the database=Google below to whatever you want).

Then open a terminal and do:
$ syncevolution --configure --template google username=XXXXX@gmail.com password=YYYYY target-config@google
$ syncevolution --configure --template SyncEvolution_Client syncURL=local://@google database=Google username= password= google addressbook calendar
$ syncevolution --configure autoSync=1 autoSyncInterval=30M notifyLevel=0 target-config@google
$ syncevolution --configure autoSync=1 autoSyncInterval=30M notifyLevel=0 google
$ syncevolution --sync slow google
Where XXXXX is your gmail username and YYYYY is your password.
NOTE: username= password= is intentionally blank on second command.

To have this auto-started at login, do this:

$ cat > ~/.config/autostart/syncevo-dbus-server.desktop <<EOF
[Desktop Entry]
Type=Application
Hidden=false
Name=syncevo-dbus-server
Comment=SyncEvolution D-Bus Server
Exec=/usr/libexec/syncevo-dbus-server-startup.sh
EOF
Logout and back in to see if /usr/libexec/syncevo-dbus-server is running


No comments:

Post a Comment