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@googleWhere XXXXX is your gmail username and YYYYY is your password.
$ 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
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 <<EOFLogout and back in to see if /usr/libexec/syncevo-dbus-server is running
[Desktop Entry]
Type=Application
Hidden=false
Name=syncevo-dbus-server
Comment=SyncEvolution D-Bus Server
Exec=/usr/libexec/syncevo-dbus-server-startup.sh
EOF