Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use dbxfs in linux

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to use dbxfs in linux, the article is very detailed, has a certain reference value, interested friends must read it!

Install dbxfs

Dbxfs officially supports Linux and Mac OS. However, it should apply to any POSIX system that provides FUSE-compatible libraries or is able to mount SMB shares. Because it is written in Python 3.5, it can be installed using the pip3 package manager. If pip is not already installed, refer to the following guidelines.

How to use pip to manage Python packages

Also install the FUSE library.

On Debian-based systems, run the following command to install FUSE:

$sudo apt install libfuse2

On Fedora:

$sudo dnf install fuse

After you have installed all the required dependencies, run the following command to install dbxfs:

$pip3 install dbxfs mounts the Dropbox folder locally

Create a mount point to mount the Dropbox folder to the local file system.

$mkdir ~ / mydropbox

Then, use dbxfs to mount the dropbox folder locally, as follows:

$dbxfs ~ / mydropbox

You will be asked to generate an access token:

To generate an access token, simply enter the URL output above in a Web browser and click allow to authorize Dropbox access. You need to log in to your Dropbox account to complete the authorization process.

The next page will generate a new authorization code. Copy the code and return to the terminal to paste it into the cli-dbxfs prompt to complete the process.

You will then be asked to save your credentials for future access. Type Y or N depending on whether you want to save or reject. Then, you need to enter the password twice for the new access token.

* enter Y to accept / home/username/mydropbox as the default mount point. If you want to set a different path, enter N and enter the location of your choice.

Generate access token 2

It's done! From now on, you can see that your Dropbox folder has been mounted to the local file system.

Change the access token storage path

By default, dbxfs stores the Dropbox access token in the system keyring or encrypted file. However, you may want to store it in an gpg encrypted file or somewhere else. If so, create a personal application on the Dropbox developer application console to obtain an access token.

After creating the application, click the generate button in the next step. This token can be used to access your Dropbox account through API. Do not share your access token with anyone.

After creating an access token, encrypt it using any encryption tool of your choice, such as Cryptomater, Cryptkeeper, CryptGo, Cryptr, Tomb, Toplip, and * * GnuPG, and save it in your favorite location.

Next, edit the dbxfs configuration file and add the following line:

"access_token_command": ["gpg", "--decrypt", "/ path/to/access/token/file.gpg"]

You can find the dbxfs configuration file by running the following command:

$dbxfs-print-default-config-file

For more details, see the dbxfs help:

The above $dbxfs-h is all the content of the article "how to use dbxfs in linux". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report