DAV, LOCALLY SYNCHRONIZES THE AGENDA BETWEEN THE MOBILE AND THE PC

Ilustración para sincronizar con DAV, Radicale y DecSync

Synchronize phonebook to the local computer With the help of DAV together with Decsync and Radicale, it is going back to the classic way of unifying the contacts and the calendar to the day. As it happened with the basic telephones when connecting with USB. This guide to Deepin Y Android It will help many to have the data within reach and you only need a local WiFi connection.

Having a local synchronization has advantages that for now works only for both operating systems. It does not depend on Internet speed nor does it consume other resources. In addition, it maintains an agenda that is exclusively yours and confidential. This enhancement benefits from open source, DAV stands for Free StandardDistributed Authoring and Versioning.

For now, the steps are simple. Because we simplify most of the instructions possible, you will have some limitations such as registration, where you can access with any password, or that you must execute the command every time you start the computer. You will always have the comments to solve it.

How to synchronize the phonebook to the local computer

The combination we will resort to in this guide is Thunderbird, Lightning, Radicale. And on DecSync or DAVx5 mobiles. As a result we detail the following applications for mobile and equipment:

  • Thunderbird: Email incorporated in Deepin.
    • Lightning: Thunderbird add-on to manage the calendar in CalDAV format and that comes installed.
    • Sogo.nu: Another addon for managing the contact list. Compatible with CardDAV.
  • Radicale: Contacts and calendar server. It is simple to install your language in Python (from version 3.5). Available in repositories.
  • Davx5: To synchronize with the mobile. Available in F-droid.

Because we will install DecSync, which will be useful in case the sync fails on mobile, these are the combinations.

  • DecSync: A software consisting of:
    • DecSync-plugin, Radicale (PC) executable.
    • DecSyncCC (Android application).
    • Synthing, para sincronizar los archivos (opcional).

DAV Server Installation

Note 1: This version is tested on Deepin 15.11. At the moment, other mail managers and clients related to managing calendar and contacts were not tested.
Nota 2: Para este versión se probó con la versión 3. Para eso se modifica un comando del paso 2. (originalmente: python3 -m pip install --upgrade radicale). For now it doesn't work with version 3 until they release a patch.

  1. We installed PIP that will facilitate integration. The program will offer the recent version of Radicale and will be kept updated at any time.
  2. We install Radicale. This server will locally store the PC contacts in seconds. Its interface is web but its installation is by the terminal.
sudo apt install python3-pip 
python3 -m pip install --upgrade radicale==3.*
python3 -m pip install --upgrade radicale_storage_decsync
  1. After installing on the computer, we create the decsync folder, which will serve to store the data and synchronize with Synthing in the future. With these simple commands:
cd ~/.local/share
mkdir prueba decsync
cd decsync
Crear carpeta para los archivos
  1. Then, we proceed to create a file that indicates how the server is configured. This file called config is located in the ~ / .config / radicale / folder and has this text:
[server]
# Bind all addresses
hosts = 0.0.0.0:5232, [::]:5232

[storage]
type = radicale_storage_decsync
# Set folders
filesystem_folder = ~/.var/lib/radicale/collections
decsync_dir = ~/.local/share/decsync

[auth]
type = htpasswd
htpasswd_filename = ~/.local/share/decsync/users
# encryption method used in the htpasswd file
htpasswd_encryption = plain
  1. Nos dirigimos a ~/.local/share/decsync y creamos el archivo users y añadimos como único texto: «user:1234» (es el más sencillo y puedes cambiar los parámetros, pero si no quieres aplicar esta seguridad, omite el paso 6 y borra la sección [auth] con las líneas restantes).
El archivo users del paso 6
El archivo users del paso 6
  1. Finally we execute the command python3 -m radicale(and every time you restart the computer you must run this command, unless you check the "Clarifications" section)
Proceso de DecSync que actúa en la visualización del servidor DAV

Create collections

  1. Once the server is configured we access the administration page http://localhost:5232/. Por intuición, es user y 1234 (o cualquier credencial si omitiste el paso 6).
  2. We create new collections. For that matter the types that we carry are «Addressbook» and «Calendar». In each collection we can the title and the description.
Crear nueva colección en el servidor DAV Radicale

The result is in two parts, agenda and calendar as in this example:

Agenda, URL, editar y eliminar. Calendario, URL, editar y eliminar.

It also works with the tasks explained in "Clarifications".

Use DAV on your computer and mobile

Once prepared, we proceed with the synchronization between the server with DAV and the clients of the smartphone and the computer.

The first step is to make sure Thunderbird is installed. It comes included in Deepin 15.11. It is also valid to use the Deepines version.

  1. We check if the Lightning extension is activated. Or, if it isn't, we try reinstalling it in your website.
  2. After this, we install the Sogo plugin. Try the matching version of Thunderbird.
  3. Already ready we link to the new calendar first. We create one and set it as "On the net". Then we add the URL and the CalDAV type.
  4. Now we do with the contact book. In the "New" menu we select "Remote Adress Book". We put the URL.
  1. In the case of Android phones we have DAVx5. That you can download from the F-droid store or on your website.
  2. We create a new account for the agenda and calendar with the same URL and username. We discard email because it doesn't work with this method.
  3. For this to work you must connect to the same WiFi network. Otherwise you can use DecSyncCC, which consists of installing the application and assigning the folder so that Syncthing Receive the latest version from PC. The advantage is that the data is permanently stored and does not change when connected to the local network. We will explain this in a future tutorial.

clarifications

Radicale works with tasks too. For this you will need a compatible DAV client like Lightning for Thunderbird and OpenTasks for Android. The steps are similar to those created for the calendar. However, it does not work with DecSync due to technical limitations.

Además, puedes migrar de un equipo a otro en la carpeta DecSync. El paso 5 indica donde está guardado la carpeta y si estás de migración, tendrás que copiar los archivos. Synthing es una opción para conservar los datos de ambas computadoras. Si resulta complicado, puedes omitir este paso y comprimir la carpeta donde está guardada para enviar por Telegram.

Acceso directo

El comando para ejecutar del paso 7 suele ser largo, porque comienza desde la terminal. Para eso, lo mejor es elaborar un direct access in the launcher. Just create it from MenuLibre to mention the easiest. Then we add it to the launcher. For the URL you just need to add to the browser bookmarks.

Another more practical method is to open the URL, with the single command: xdg-open http://localhost:5232/; python3 -m radicale. After opening the page, refresh again to access and you will have the page accessible. However, that is not necessary because Thunderbird and the DAV client can create and edit the data.

Crear acceso Radicale DAV en la terminal
Create an access from MenLibre that will appear in the launcher. When executed it will come out like this image.

Problemas de funcionamiento

Si notas que la aplicación no funciona correctamente, prueba con este comando: python3 -m radicale --verify-storage. Si registra algún error, podrás reportar con el desarrollador de DecSync.

Para desinstalar el software tendrás que recurrir PIP y ejecutar el comando uninstall al paquete en cuestión, además de aceptar con la tecla «y»:

python3 -m pip uninstall radicale_storage_decsync radicale

The guide is based the documentation by Radicale to make installation easier. Also in the contribution of Michal Táborský Y Cyrille Borne for the PC client and the DAVx5 page for Android. It also complements the Github repository DecSync for Radicale.



4.6 17 votes
Rate the Article
 
Subscribe
Report of
6 Reviews
More popular
Newer Older
Opinion from the article
See all comments
Juan Ospina
Juan Ospina (@juan-ospina)
1 month ago

Useful and well explained, I will follow the guide soon and comment on the results.

Ernesto Junco
Ernesto Junco (@ernesto_junco)
1 month ago

It seems very good use, only calendar and contacts? any other type of information that can be synchronized with this method? thanks for the info.

Juan Osorio
Juan Osorio (@juan877osorio)
1 month ago

Any way to accomplish this without having to run the python3 -m radical command every time? Thank you.

Эли
Эли (@eli)
Admin
Answering to Juan Osorio
1 month ago

If you look at the article it says how, it gives you a link to these instructions.
 
Very good contribution Diego Thank you.

Arceli
Arceli (@arceli)
1 month ago

Interesting procedure, I already had a solution for text messages, but not for contacts.

6
0
We would like to know what you think, Join the discussion.x
()
x