Comments (5)
It's no longer documented because you can just use --no-browser
option to authenticate from the CLI with the normal build. See the readme on setting up new drives - you can just do onedriver /path/to/mount
, or alternatively use systemd to mount things automatically for you (see the readme).
from onedriver.
Hah, an anti-request is still a feature! It'll likely need to be a build-time option, otherwise the compiled binary will get linked against WebKitGTK and require it as a dependency. I'll see what I can do to add that in.
Just as a heads up - it may be some time before this is implemented- my current dev priority is getting onedriver to sync server-side changes to the local client. In the meantime, you can delete the contents of the#ifdef(__linux__)
sections from graph/oauth2_gtk.c and it will produce a GUI-free binary.
from onedriver.
Hey @rcarmo, I've rewritten things so that you can exclude WebKitGTK from the build by disabling CGo. If you build onedriver with CGO_ENABLED=0 go build
, onedriver will be built without the popup browser (all of the C dependencies like WebKitGTK and X11 won't be required at runtime either this way).
Closed by #27
from onedriver.
This would be great to document, as it greatly simplifies the CLI-only build:
cd cmd/onedriver
CGO_ENABLED=0 go build
sudo cp onedriver /usr/local/bin/onedriver_cli
I am not sure how to configure a drive instance though...
from onedriver.
But it's nice not to have to install X and all kinds of packages that you don't need. I can't use the go binary that I built somewhere else, it will not work on a headless system if I use --no-browser
... So I have to install libwebkit which pulls in all kinds of stuff I cannot use.
But I am glad to report that building without CGO still works! After issuing onedriver MNT
authentication needs to happen at the URL displayed, and the URL that then appears in the URL bar of the browser needs to be pasted into the terminal, but then it all works!!
from onedriver.
Related Issues (20)
- onedriver.db HOT 1
- Issue with GoDaddy provided OneDrive HOT 2
- Is it possible to mount Onedriver to an existing Onedrive folder used by Windows? HOT 1
- Is it needed a configuration file? HOT 1
- Dolphin freezes when Onedriver is running HOT 1
- ubuntu20.04 need use the terminal to start it and give onedrive file now HOT 1
- ERR Either directory was invalid or exceeded timeout waiting for fs to become available. HOT 1
- Integration With Gnome "Online Accounts"? HOT 5
- Add the ability to selectively delete local copies of a file from the cache HOT 2
- Encrypted Paths on Remotes HOT 4
- Onedriver does not function on MXLinux HOT 11
- [Question] Bidirectional sync HOT 2
- Duplicated items
- OneDriver won't run on Zorin OS HOT 1
- Add `--no-browser` option to UI and provide better feedback on auth failures
- Version history is lost for updated files
- TLS handshake failure
- GUI presence on startup HOT 1
- Missing network not detected when used together with libvirt and/or docker HOT 1
- Add some notification error about special char (onedrive doesn't accept them)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onedriver.