9
submitted 1 week ago* (last edited 1 week ago) by kimchi@lemmy.world to c/linux@lemmy.world

I'd like to use the box.com cli from a linux server without X installed. However, during "$ box login -n me@mydomain", boxcli tries to popup a web page with the message Opening browser for OAuth authentication. Please click Grant access to Box to continue.

I've tried exporting BROWSER=lynx , and have tested that "xdg-open http://eff.org/" works; but I am not seeing lynx open while running "box login". Do I need a 2nd terminal window, and then set DISPLAY so the "popup" browser opens lynx there?

Wondering if anyone has managed to setup box.com CLI on a headless, X-less server.

top 1 comments
sorted by: hot top controversial new old
[-] just_another_person@lemmy.world 6 points 1 week ago

https://github.com/box/boxcli/blob/main/docs/login.md

From the code linked there you can use -c and interface with a script to get your credentials. The linked also suggests there is a way to set a preauth key so you don't have to do this.

this post was submitted on 27 Feb 2025
9 points (100.0% liked)

Linux

9178 readers
45 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 2 years ago
MODERATORS