Code Monkey home page Code Monkey logo

Comments (5)

jstaf avatar jstaf commented on May 19, 2024 1

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.

jstaf avatar jstaf commented on May 19, 2024

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.

jstaf avatar jstaf commented on May 19, 2024

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.

pepa65 avatar pepa65 commented on May 19, 2024

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.

pepa65 avatar pepa65 commented on May 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.