-
Notifications
You must be signed in to change notification settings - Fork 1
How to Install
Kumodd is a command line utility.
To install Kumodd on Windows, download kumodd.exe from the kumodd release page. Note that the 'Source code' files are not required. kumodd.exe is a standalone windows command line utility.
Next, move kumodd.exe to C:\Windows. Moving it to C:\Windows will ensure it is in the default path, and as a result, is avialable on the command line in a CMD or powershell window.
Then, open a cmd shell or powershell, and run it.
kumodd --helpfull
To setup kumodd, install python 3 and git, then install kumodd and its requirements.
On Debian or Ubuntu:
apt install python3 git diff
git clone https://github.com/rich-murphey/kumodd.git
cd kumodd
python3 -m pip install --user -r requirements.txt
kumodd --helpfull
To access Google Drive, two credentails are required: 1) an Oauth ID required to access the Google API, and 2) an authorization for the specifiic Google Drive account.
-
Obtain a Google Oauth client ID (required to access the Google Drive API):
- Create a free google cloud account.
- Login to your Google cloud account.
- Create a Project.
- Create Oauth2 API credential for the project.
- Click "Create Credentials" and select "Oauth client ID".
- Select the radio button "Web Application".
- In "Authorized redirect URIs", enter: http://localhost:8080
- Click "create". Next, a dialog "OAuth client" will pop up.
- Click OK. Next, it will show the list of "Oauth 2.0 client IDs".
- Click the down arrow icon at far right of the new ID. The ID will download.
- Copy the downloaded ID it to kumodd/config/gdrive.json.
-
Authorize kumodd to access the specific Google Drive account:
The first time kumodd is used (e.g. kumodd -l all), it will open the login page in a web browser.
- Login to the cloud account. Next, it will request approval.
- Click "Approve". Next, kumodd stores the Oauth token in config/gdrive.dat.
If there is no local browser, or if --nobrowser is used, kumodd will instead print a URL of the login page.
- Copy the URL and paste it into a browser.
- Login to the cloud account. Next, it will request approval.
- Click "Approve". Next, the page will show an access token.
- Copy the token from the web page. Paste it into kumodd, and press enter. Next, kumodd saves the Oauth token in config/gdrive.dat.
Once authorized, the login page will not be shown again unless the token expires or config/gdrive.dat is deleted.