banner



How To Setup Dropbox Uploader Cli Linux

In this tutorial, we will be showing you how to use the Dropbox software on the Raspberry Pi.

Raspberry Pi Dropbox

Dropbox is a pop cloud file hosting service that allows synchronizing files between Dropbox's servers and other devices.

While quite popular, Dropbox has not released an ARM client for the Linux operating organisation.

To make Dropbox possible on the Raspberry Pi, we will exist making use of a niggling script that works by utilizing Dropbox's API.

Throughout this tutorial, we will be showing yous how to fix up the Dropbox script on your Raspberry Pi and testify you how to make use of it.

Earlier outset this guide, brand sure that you lot have already signed up for a Dropbox account as we won't be covering that procedure inside this guide.

Equipment List

Below is a list of the equipment that you may need to ready Dropbox on your Raspberry Pi.

Recommended

Optional

  • Raspberry Pi Case
  • USB Mouse
  • USB Keyboard
  • HDMI Cable
  • Monitor

This tutorial on setting upward Dropbox was tested on a Raspberry Pi 4 running the latest version of Raspbian Buster.

Installing the Dropbox Script on your Raspberry Pi

This section will prove you how to set up your Raspberry Pi for utilise with the Dropbox script. This process is relatively straightforward and can be completed in a couple of minutes.

1. Before we go ahead and download the Dropbox script that we will exist using, nosotros need first to update and upgrade our operating system.

To upgrade everything on Raspbian, we simply need to run the post-obit two commands.

              

two. With our Raspberry Pi up to date, we need to make certain roll, and git is installed.

Curl is the but package that the Dropbox uploader script that we will be using requires.

Git is what we will be using to download the script to our Raspberry Pi. While you can just use gyre or wget, using go will allow u.s. to update the script easier.

Ensure that curl and git are installed by running the following control on your Raspberry Pi.

              

3. Now that nosotros have everything nosotros demand, let's clone the Dropbox uploader script to our Raspberry Pi.

This script was written past Andrea Fabrizi and is what we will be using to download and upload files to Dropboxes servers.

Clone this script to the Raspberry Pi past running the post-obit command.

              

four. At present move into the newly cloned folder by running the following command.

              

5. Nosotros demand to give the dropbox_uploader.sh script execution privileges.

To change this privilege, we demand to make use of the chmod command.

              

6. Finally, let's run the dropbox_uploader.sh script by running the following command.

              

Upon running this script, you volition be asked to enter your Dropbox access token to configure the script.

Raspberry Pi Dropbox Uploader Script Command Line

At this point, you can now move on to the next section of the tutorial. The next department will show you how to get your Dropbox admission token.

Getting your Dropbox API Key

In this section, we volition exist showing you how to retrieve the access token for the Dropbox Uploader script. Call back that you lot volition need to have a Dropbox account.

one. To start this section, go to the Dropbox developers page.

On this page, you need to click the "Create app" push button.

Raspberry Pi Dropbox 01 Developers API

2. On this page, you demand to gear up some of the details of your app.

Under the "1. Choose an API" header you will need to select the Dropbox API selection (one.)

Adjacent, you will need to select the type of admission yous want to requite to this application. You tin either requite it full access to your Dropbox business relationship or just a specific binder created for the app (two.).

For security and privacy, the all-time option to select would be the App folder option. For this guide however we are just going to go with the "Total Dropbox" option.

Next, you need to specify a name for your app. (3.) This name must not comprise the discussion dropbox.

Now we need to tick the box saying that you concur to Dropbox's API terms and conditions (4.).

Finally, click the "Create app" button to finalize all of your settings (v.).

Raspberry Pi Dropbox 02 Create App for API access

3. Finally, we are on a page where we can recall our admission token.

On this page, you demand to click the "Generate" button.

Clicking this button volition generate the access token that we need for the Dropbox script.

Raspberry Pi Dropbox 03 Generate API Token

4. At present copy and paste the generated access token to your Raspberry Pi's command line and press ENTER.

Raspberry Pi Dropbox 04 Retrieve API Token

5. Once you take copied the access token into the dropbox_uploader.sh scripts prompt, yous will exist asked to ostend it by pressing Y then ENTER.

Your access token should now be saved, and nosotros can now begin to use Dropbox on our Raspberry Pi.

Making use of Dropbox on your Raspberry Pi

In this section, we volition be showing you some of the ways that yous can make employ of the Dropbox software on your Raspberry Pi.

Listing Files within a Directory on Dropbox

Using the script on your Raspberry Pi, information technology is possible to list the files and directories available within a directory.

To do this, we brand use of the listing command, followed by the directory you want to scan.

              

By using this command, you volition retrieve a list of all files and directories within the specified directory.

Instance of Using the Listing Command

For example, if we made use of the post-obit command to retrieve the files and directories available within the root directory.

              

You will and then get a result like what we accept beneath. Each entry will exist prefixed by either [D] or [F].

The [D] identifier specifies that this entry is a directory.
The [F] identifier defines that the entry is a file.

              

Uploading a File or Directory to Dropbox

You lot can also use this script to upload a file or directory from your Raspberry Pi to Dropbox.

To be able to upload a file, we brand use of the upload command.

              

To upload a file, nosotros specify upload, followed by the location of the local file or directory, followed by the location we desire to upload  the file or directory to.

This command will automatically effort to create a directory if it does not already exist.

Example on How to Use the Upload Command

Uploading a file from the Raspberry Pi using the dropbox_uploader.sh script is a elementary process.

To showcase this, we are going to upload a file called pimylifeup.zip to the root directory of our Dropbox.

              

Once the text, "Washed" has appeared, your file has now been successfully uploaded.

Downloading a File or Directory from Dropbox

Downloading a file to your Raspberry Pi from your Dropbox account is a simple process.

              

This command is adequately unproblematic to use and involves y'all using download, followed past the remote location of the file or directory you want to download.

Instance on How Download Files from Dropbox

Below we are going to requite y'all an case of how to apply the download command.

For this example, we are going to download a file chosen pimylifeup.zip that is stored in our /example/directory/ directory on Dropbox.

              

In one case the download has completed, y'all will see the bulletin "Done" appear.

Dropbox Uploader Script Documentation

There are a variety of other commands that you lot can brand utilize of with the Dropbox uploader. To a higher place, we have only touched on a few of the commands that the script has to offer.

Yous tin notice out more most how to make use of the dropbox_uploader.sh script by checking out the official documentation.

Hopefully, at this stage, you will now have an idea of how to make use of Dropbox on your Raspberry Pi.

If you take run into any issues with using Dropbox, experience free to leave a comment below.

Source: https://pimylifeup.com/raspberry-pi-dropbox/

Posted by: freemandoduchis.blogspot.com

0 Response to "How To Setup Dropbox Uploader Cli Linux"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel