gilesknap / gphotos-sync

Google Photos and Albums backup with Google Photos Library API
Apache License 2.0
1.97k stars 163 forks source link

How to authente without browser in localhost #375

Closed NiepozornyDrwal closed 1 year ago

NiepozornyDrwal commented 1 year ago

Hi, I am trying to set up sync my QNAP with google photos. The problem is that I cannot install the browser on my QNAP. I tried to visit URL on another computer, copy the response URL and post it with curl, but it didn't work. Does anyone have any idea how to walk around this?

gilesknap commented 1 year ago

You can do the initial authentication on a workstation with browser and then copy over the token file.

see https://gilesknap.github.io/gphotos-sync/main/tutorials/installation.html#headless-gphotos-sync-servers

robex2005 commented 1 year ago

You need to setup Gphotos Sync also on windows. After setup, when you log in from cmd, a browser windows will open to autenticate. After succesfull authentication, copy over the token file to linux I had the same problem, from a headless linux setup...

gilesknap commented 1 year ago

@NiepozornyDrwal Hopefully the above has resolved your issue. Reopen if you are still having issues.