Guide and scripts to set up encrypted filesystem on dropbox.
- fuse
- encfs
- dropbox client and binary daemon
- Compile from source or install from repository.
- Create folder for unencrypted files
mkdir -p /mnt/share/Private
- Create folder for encrypted files
mkdir -p /mnt/share/Dropbox/Encrypted
- Run encfs for the first time, choose your level of encryption (or just hit enter),
choose password and run
encfs /mnt/share/Dropbox/Encrypted /mnt/share/Private
- Move .encfs6.xml:
mv /mnt/share/Dropbox/Encrypted/.encfs6.xml ~/
- Add to
sudo visudo
:Defaults env_keep += "ENCFS6_CONFIG"
(afterDefaults env_reset
).
- libnautilus-extension-dev is needed
curl -L -O https://linux.dropbox.com/packages/nautilus-dropbox-1.6.1.tar.bz2.gz
tar xjf ./nautilus-dropbox-1.6.1.tar.bz2
cd ./nautilus-dropbox-1.6.1
./configure
make
- You do not need to install with
make install
if you do not wish to.
- Create user:
adduser dropbox
- Change to dropbox user:
su dropbox
- Copy dropbox to it's own home:
mv ./nautilus-dropbox-1.6.1 /home/dropbox/
- Create symbolic link:
ln -s /home/dropbox/nautilus-dropbox-x.x.x dropbox-current
- Copy
dropbox-cron.sh
to it's own homemv ./dropbox-cron.sh /home/dropbox/
- Add periodic sync of encrypted folder with dropbox to cron:
crontab -e
- Add:
35 5 * * * /home/dropbox/dropbox-cron.sh >/dev/null 2>&1
. This command will execute at 5:35am every day. - Cron timings are explained at http://www.cronchecker.net
- Soft link Dropbox folder:
ln -s /mnt/share/Dropbox ~/Dropbox
- Run
./nautilus-dropbox-1.6.1/dropbox start -i
to install binary daemon. - Link computer:
killall dropbox
, Rundropboxd
manually (as dropbox user)~/.dropbox-dist/drpoboxd
and follow the link. - Stop dropboxd either
Ctrl+C
orkillall dropboxd
.
Script mount_encfs.sh
mounts file system. Script dropbox-cron.sh
is run
periodically every day. Unmount encrypted share with sudo fusermount -u /mnt/share/Private
.
agiz
TODO: Write license