From 4a65771a58f3af7c637c4f1f792e4cb3837273eb Mon Sep 17 00:00:00 2001 From: TiynGER Date: Wed, 9 Dec 2020 23:24:40 +0100 Subject: [PATCH] caldav/carddav in linux: added todoman and put vdirsyncer into own entry --- wiki/linux/khal.md | 33 ++------------------- wiki/linux/khard.md | 32 ++------------------ wiki/linux/todoman.md | 26 +++++++++++++++++ wiki/linux/vdirsyncer.md | 63 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 93 insertions(+), 61 deletions(-) create mode 100644 wiki/linux/todoman.md create mode 100644 wiki/linux/vdirsyncer.md diff --git a/wiki/linux/khal.md b/wiki/linux/khal.md index ffa1460..e3fb7c0 100644 --- a/wiki/linux/khal.md +++ b/wiki/linux/khal.md @@ -1,45 +1,16 @@ # Khal `khal` is a calendar you can use in your terminal. -To sync calendars you'll need `vdirsyncer` aswell. +You can sync it with [vdirsyncer](vdirsyncer.md) ## Setup ### Arch-Linux -- `pacman -S khal vdirsyncer` - Install needed packages +- `pacman -S khal` - Install needed packages ### Configuration -- To configure vdirsyncer edit a file in `~/.config/vdirsyncer/config`. - -```txt -[general] -status_path = "~/.cache/vdirsyncer/status" - -#calendar -[pair private_calendar] -a = "private_calendar_local" -b = "private_calendar_remote" -collections = ["from a", "from b"] -metadata = ["color"] - -[storage private_calendar_local] -type = "filesystem" -path = "~/.local/share/pim/calendars/private_calendar" -fileext = ".ics" - -[storage private_calendar_remote] -type = "caldav" -url = "https://" -auth = "basic" -username = "" -password = "" - -``` - -- `vdirsyncer discober && vdirsyncer metasync` - After that initialize vdirsyncer. -- `vdirsyncer sync` - Synchronize your data (put it in a crontab to run periodically) - Edit the `~/.config/khal/config` - Insert the following lines diff --git a/wiki/linux/khard.md b/wiki/linux/khard.md index d03668a..9d6d2c1 100644 --- a/wiki/linux/khard.md +++ b/wiki/linux/khard.md @@ -1,44 +1,16 @@ # Khard `khard` is a adressbook that runs in your terminal. -To sync the data using CardDAV you'll need `vdirsyncer` aswell. +You can sync it with [vdirsyncer](vdirsyncer.md). ## Setup ### Arch Linux -- `pacman -S khard vdirsyncer` - Install needed programs +- `pacman -S khard` - Install needed programs ### Configuration -- Edit the `~/.config/vdirsyncer/config`. - - Insert the following lines: - -```txt -[general] -status_path = "~/.cache/vdirsyncer/status" - -[pair private_contacts] -a = "private_contacts_local" -b = "private_contacts_remote" -collections = ["from a", "from b"] - -[storage private_contacts_local] -type = "filesystem" -path = "~/.local/share/pim/contacts" -fileext = ".vcf" - -[storage private_contacts_remote] -type = "carddav" -url = "https://" -username = "" -password = "" -auth = "basic" -``` - -- `vdirsyncer discover && vdirsyncer metasync` - Initialize vdirsyncer -- `vdirsyncer sync` - Synchronize the addressbook (put this into a crontab to -update periodically) - Add and configure a config for khard - `mkdir ~/.config/khard` - add a directory for the config - `cp /usr/share/doc/khard/khard.conf.example ~/.config/khard/khard.conf` - diff --git a/wiki/linux/todoman.md b/wiki/linux/todoman.md new file mode 100644 index 0000000..c0185e2 --- /dev/null +++ b/wiki/linux/todoman.md @@ -0,0 +1,26 @@ +# Todoman + +`todoman` is a todolist you can use in your terminal. +You can sync it using [vdirsyncer](vdirsyncer.md) + +## Setup + +### Arch-Linux + +- `pacman -S todoman` - Install needed packages + +### Configuration + +- Edit the `~/.config/todoman/todoman.conf` + - Insert the following lines + +```txt +[main] +path = ~/.local/share/pim/calendars/*/* +date_format = %d.%m.%Y +time_format = %H:%M +default_list = personal +``` + +Replace `personal` with your choice of primary list and +`~/.local/share/pim/calendars/*/*` with the path to your calendars. diff --git a/wiki/linux/vdirsyncer.md b/wiki/linux/vdirsyncer.md new file mode 100644 index 0000000..94a03ec --- /dev/null +++ b/wiki/linux/vdirsyncer.md @@ -0,0 +1,63 @@ +# Vdirsyncer + +`vdirsyncer` can sync calendars and contacts using the caldav and carddav +protocol. + +## Setup + +### Arch-Linux + +- `pacman -S vdirsyncer` - Install needed packages + +### Configuration + +- Edit the `~/.config/vdirsyncer/config`. + - Insert the following lines: + +```txt +[general] +status_path = "~/.cache/vdirsyncer/status" + +#calendar +[pair private_calendar] +a = "private_calendar_local" +b = "private_calendar_remote" +collections = ["from a", "from b"] +metadata = ["color"] + +[storage private_calendar_local] +type = "filesystem" +path = "~/.local/share/pim/calendars/private_calendar" +fileext = ".ics" + +[storage private_calendar_remote] +type = "caldav" +url = "https://" +auth = "basic" +username = "" +password = "" + +#contacts +[pair private_contacts] +a = "private_contacts_local" +b = "private_contacts_remote" +collections = ["from a", "from b"] + +[storage private_contacts_local] +type = "filesystem" +path = "~/.local/share/pim/contacts" +fileext = ".vcf" + +[storage private_contacts_remote] +type = "carddav" +url = "https://" +username = "" +password = "" +auth = "basic" +``` + +Replace specific lines with your information. +You can set multiple contact and calendar syncs at once. + +- `vdirsyncer discover && vdirsyncer metasync` - Initialize vdirsyncer +- `vdirsyncer sync` - Synchronize your data (put it in a crontab to run periodically)