LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-10-2022, 07:37 AM   #1
Johannes33
Member
 
Registered: Jul 2015
Distribution: manjaro Xfce
Posts: 80

Rep: Reputation: Disabled
ssh in to a CalDAV server?


Hi, I'm following a howto on how to sync my local 'khal calendar' to 'google calendar' using vdirsyncer:
Quote:

FWIW, I can confirm that I made vdirsyncer version 0.18.0 (Debian package version 0.18.0-6.1) work with my google calendars today.
Here's what I did:
  1. logged into my Google Developers Console
  2. selected my vdirsyncer project
  3. went to Credentials -> Create Credentials -> OAuth Client ID
  4. selected "Web Application"
  5. under "Authorised redirect URIs" added http://127.0.0.1:8088
  6. pressed "Create"
  7. ssh'd into my CalDAV server where vdirsyncer is supposed to be running regularly to sync some of my calendars to Google
  8. edited my .vdirsyncer/config [storage google] section to have the new client_id and client_secret (those that I obtained after step 6).
  9. edited /usr/lib/python3/dist-packages/vdirsyncer/storage/google.py and changed line 64 from


    redirect_uri="urn:ietf:wg:oauth:2.0:oob",

    to

    redirect_uri="http://127.0.0.1:8088",

    (i.e. exactly the same URI as on step 5)
  10. run vdirsyncer discover my_calendar
  11. opened the link in my browser (on my desktop machine)
  12. proceeded with Google authentication until "Firefox can not connect to 127.0.0.1:8088." was displayed.
  13. from the browser's address bar that looked like:

    http://127.0.0.1:8088/?state=SOMETHI.../auth/calendar

    copied the "HERECOMESTHECODE" part (the actual code)
  14. pasted the code into the ssh session where vdirsyncer was running
  15. PROFIT!!!
This required no local server, no changes to my server's firewall, virtually no jumping through hoops, nothing. I suggest the one-line change be incorporated, and the steps to authenticate documented.
In the howto on point 7 he say:
Quote:
ssh'd into my CalDAV server where vdirsyncer is supposed to be running regularly to sync some of my calendars to Google
I have done all thing up to point 7 and now I do not know what he means.
I have a google account and I have a goolge calendar.
I have made a project on google development console and got a client ID and client secret.
What should I do?

Edit:
I see that I do not get anyone that responds so perhaps the question needs more context:
here is the setting up to google calendar without the mentioned howto:
https://vdirsyncer.pimutils.org/en/s...ig.html#google
here is a howto use and setting up the calendar app:
https://opensource.com/article/20/1/...ource-calendar

Last edited by Johannes33; 11-10-2022 at 01:49 PM.
 
Old 11-11-2022, 01:04 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

do you have a caldav server? It seems like what you want is to use vdirsyncer to sync between google and your local filesystem, in which case there is no need to run your own caldav server.

Evo2.
 
Old 11-14-2022, 02:43 PM   #3
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Hi Johannes33,

I'm not sure what your actual question is, but if by chance it is concerning SSH, I can give you this information :

SSH is Secure Shell. It is a set of programs that enables you to login to a command line interface on another, remote computer. It requires the SSH software (openssh) to be installed on both computers (client and server) and both need to be properly configured for it to work.

I suggest reading up. As is often the case, the Arch Linux Wiki is a great ressource and, in your case, even more appropriate since you are using Manjaro. You could start here :

https://wiki.archlinux.org/title/OpenSSH

Hope this helps - Cheers.

Rick
 
Old 11-17-2022, 06:11 PM   #4
Johannes33
Member
 
Registered: Jul 2015
Distribution: manjaro Xfce
Posts: 80

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,

do you have a caldav server? It seems like what you want is to use vdirsyncer to sync between google and your local filesystem, in which case there is no need to run your own caldav server.

Evo2.
Ahhh...
I think I get it. He must use his own caldav server, which perhaps I do not need since I'm syncing against google?

Last edited by Johannes33; 11-17-2022 at 07:01 PM.
 
Old 11-17-2022, 06:30 PM   #5
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by Johannes33 View Post
Ahhh...
I think I get it. He must use an own caldav server, which perhaps I do not need since I'm syncing against google?
I'd stop following those instructions and just setup your config using the documentation that comes with vdirsyncer.

Evo2.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for CalDAV/CardDAV server that wouldn't require shell access Cubytus32 Linux - Server 2 01-13-2014 09:02 AM
How to Integrate SyncML and CalDAV with Postfix+DoveCot manya Linux - Software 0 05-02-2011 02:26 PM
Kontact remote subscriptions to iCal or calDAV - howto? globetrotterdk Debian 0 09-18-2009 07:33 AM
Evolution and CalDav breiner Linux - Software 0 06-25-2008 01:52 PM
LXer: Introduction to CalDAV LXer Syndicated Linux News 0 02-15-2006 08:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration