Configure dropbox for your private VTS installation

This quick tutorial will show you how to enable dropbox on your own private VTS installation. This will allow hosts on networks you create to be able to upload files to linked dropbox accounts.

Configuration Procedure

  1. Ensure that you have successfully installed vts according to the directions at: Install VTS into an Ubuntu Server 16.04 Xenial Xerus

  2. Create a dropbox app at: https://www.dropbox.com/developers then generate an “access token” and a “secret” which you will need in order to complete the dropbox configuration within your VTS box

  3. Within your VTS box, locate the password for your vts in /etc/foam.passwd. you can use the command:

    # sudo cat /etc/foam.passwd
    
  4. Run the commands below in your vts server, remember to replace “your_access_token” and “your_access_secret” with actual values you generated in step 2 above. In addition, whenever you are prompted for a password, use the password you obtained from step 3.:

    # cd /opt/foam/mount
    # sudo foamctl host:build-mount --name=dropbox-user --size=2000
    # cd ~
    # foamctl config:set-value --key=dropbox.user-vols.root --value=/opt/foam/mounts/dropbox-user
    # foamctl config:set-value --key=dropbox.app-key --value=my_access_token
    # foamctl config:set-value --key=dropbox.app-secret --value=my_access_secret
    
  5. Restart the foam service:

    # systemctl restart foam
    

Note that you will need to associate your dropbox account with the VTS installation, using your genilib environment, by following the directions at Associate Your Dropbox Account with a VTS Site you may need to replace the first command in that guide with:

am = VTSAM.VTS("servername","ip_address")
am.dropboxLink(context)