Chapter 7.  Obtain the encrypted cloud

  1. Remove the GUI stuff so we can do it right

    sudo apt purge sway firefox-esr -y

  2. Download

    Using a browser on another computer, download the Dropbox Installer from Dropbox and transfer it to the new machine.

  3. Install, including dependencies

    sudo dpkg --install dropbox-whatever.deb If this leads to Errors were encountered while processing then try sudo apt --fix-broken install

  4. Start and Configure Dropbox

    dropbox start -i

    Copy the url provided to a browser, and log in to Dropbox on that browser.

    Repeat dropbox status until it is working.

    Check that all of the root directories have been created in ~/Dropbox and then slow it down with dropbox throttle 1 1 while we do config.

    For each directory in the Dropbox root except for Basic, enter dropbox exclude add `dirname`

    This command is very fussy: dirname must be properly pathed. If it works, it repeats the exclude file in stdout. If it fails, it returns nothing. And it doesn't take effect instantly. Check with dropbox exclude list

    Remember to exclude any directories starting with ..

    De-throttle with dropbox throttle unlimited unlimited

    Wait for the encrypted cloud to rain its data on your upturned face.

  5. Automate dropbox with systemd

    Copy the mount.sh config file. cp ~/Dropbox/Basic/new_machine/linux/misc/systemd_user_mount_encfs.service ~/.config/systemd/user/mount_encfs.service

    Enable, start, and test as per Chapter 24, Use systemd for user services.

  6. Make directories

    mkdir ~/Personal ln -s ~/Dropbox/Family\ Room ~/Family

  7. Install the automounting script

    sudo cp ~/Dropbox/Basic/new_machine/linux/misc/mount.sh /usr/local/bin

  8. Mount the encrypted cloud

    ./mount.sh If the password is not provided in the environment, the script will ask for it in the GUI and then at the command line. See next step for automating this.

  9. Store the encrypted cloud passphrase

    We would like the encrypted cloud directory(ies) to mount automatically on login, so we need to store the passphrase, and therefore we need to protect it.

  10. Set up mount.sh to autorun

    Do something like Chapter 24, Use systemd for user services.

  11. Remove the GUI stuff so we can do it right

    sudo apt purge sway firefox-esr -y