Chapter 7. Obtain the encrypted cloud
-
Remove the GUI stuff so we can do it right
sudo apt purge sway firefox-esr -y -
Download
Using a browser on another computer, download the Dropbox Installer from Dropbox and transfer it to the new machine.
-
Install, including dependencies
sudo dpkg --install dropbox-If this leads towhatever.debErrors were encountered while processingthen trysudo apt --fix-broken install -
Start and Configure Dropbox
dropbox start -iCopy the url provided to a browser, and log in to Dropbox on that browser.
Repeat
dropbox statusuntil it is working.Check that all of the root directories have been created in
~/Dropboxand then slow it down withdropbox throttle 1 1while 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 listRemember to exclude any directories starting with
..De-throttle with
dropbox throttle unlimited unlimitedWait for the encrypted cloud to rain its data on your upturned face.
-
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.serviceEnable, start, and test as per Chapter 24, Use systemd for user services.
-
Make directories
mkdir ~/Personalln -s ~/Dropbox/Family\ Room ~/Family -
Install the automounting script
sudo cp ~/Dropbox/Basic/new_machine/linux/misc/mount.sh /usr/local/bin -
Mount the encrypted cloud
./mount.shIf 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. -
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.
-
Set up mount.sh to autorun
Do something like Chapter 24, Use systemd for user services.
-
Remove the GUI stuff so we can do it right
sudo apt purge sway firefox-esr -y