Skip to content

gtd

This hosts the application for personal efficiency.

Baikal

Prepare

Baikal docker image won't create all directories it needs. You have to do that upfront. Reference: https://github.com/ckulka/baikal-docker/issues/29

  1. SSH to NFS server
  2. Create the directories: mkdir -p {/mnt/tank/pv/baikal/data/db,/mnt/tank/pv/baikal/config}
  3. Change the access rights: chmod -R 775 /mnt/tank/pv/baikal
  4. Change the ownership: chown -R 101:101 /mnt/tank/pv/baikal/*

Client setup

iPhone

  1. Settings - Calendar - Accounts - Add Account
  2. Server = https://cal.buvis.net/cal.php/principals/<USER>
  3. Enter credentials for the
  4. Rename the account to baikal

BusyCal

  1. Preferences - Accounts -
  2. Server address = https://cal.buvis.net/dav.php/
  3. Enter credentials the and it will fetch its calendars

Outlook

  1. Click Calendar icon at the bottome
  2. Right click a calendar group - Add Calendar - From Internet
  3. Location = https://cal.buvis.net/cal.php/calendars/<USER>/<CALENDAR>?export
  4. When asked for credentials, enter the username as \<USER> to avoid login with default domain

Linkace

Setup

  1. Comment out volumeMounts in deployment.yaml (otherwise /app/.env will be readonly and step 5 will fail)
  2. Deploy by pushing to repository
  3. Exec into pod: kubectl exec -it deployment/linkace -n gtd -- sh
  4. Fix /app/.env permissions: chmod 666 /app/.env
  5. Navigate to Linkace on buvis to start the setup
  6. Database address and password can be found in linkace-env ConfigMap
  7. Create the user account
  8. Get app key from pod's /app/.env and copy it to cluster-secrets SECRET_LINKACE_APP_KEY
  9. Uncomment volumeMounts in deployment.yaml
  10. Push back to repo

Reference: - https://www.linkace.org/docs/v1/setup/setup-with-docker/simple/

Import bookmarks

  1. Exec into pod with UTF-8 support: LANG=en_US.UTF-8 kubectl exec -it deployment/linkace -n gtd -- sh
  2. Start creating storage/bookmarks.html from heredoc: cat << EOF > storage/bookmarks.html
  3. Paste content from a backup linkace-export.html file
  4. End heredoc by typing EOF on its own line
  5. Import to linkace: ./artisan links:import bookmarks.html --skip-check --skip-meta-generation
  6. Lists are not captured in html export. You'll need to recreate them from csv backup.

Reference: - https://github.com/Kovah/LinkAce/issues/287#issuecomment-860229837 - https://www.linkace.org/docs/v1/cli/#import-links-from-a-html-bookmarks-file

Monica

Backup to sql

  1. When you use Settings - Export data - Export to SQL it will probably fail
  2. Copy exports directory from Monica: POD_NAME=$(kubectl get pods -l=app.kubernetes.io/name=monica -n gtd -o=jsonpath='{range .items..metadata}{.name}{"\n"}{end}'); kubectl cp gtd/$POD_NAME:/var/www/html/storage/app/public/exports ~/Downloads/monica

Reference: - Monica issue 5937

Restore from sql

  1. Run Sequel Pro
  2. Connect to monica-mariadb service using its Cluster IP and monica-mariadb secret
  3. Force delete all tables
  4. Create the tables by running php artisan migrate in monica pod
  5. File - Import sql backup

Reference: - https://github.com/monicahq/monica/issues/5937#issuecomment-1084913591

Client setup

iPhone

  1. Settings - Contacts - Accounts - Add Account
  2. Server = crm.buvis.net
  3. Username = tomas@buvis.net
  4. Password = <generate token in https://crm.buvis.net/settings/api>
  5. Rename the account to baikal
  6. Advanced settings - Account URL = https://crm.buvis.net/dav/principals/tomas@buvis.net/

macOS

  1. System Settings - Internet Accounts - Add Account
  2. Username = tomas@buvis.net
  3. Server address = crm.buvis.net
  4. Description = buvis
  5. Password = <generate token in https://crm.buvis.net/settings/api>/cal.php/principals/`