Icon taken from flaticon.com
The scripts that automatically mounts/unmounts your encrypted image(s).
-
Create image if not created yet:
dd if=/dev/zero of=documents.img bs=2G count=4 losetup -f documents.img losetup # extract X from this comand cryptsetup luksFormat -v /dev/loopX cryptsetup luksOpen /dev/loopX mapperPoint mkfs.ext4 /dev/mapper/mapperPointwill create 8GiB image file. You need to do this only once for storage creation
-
cd src/manager -
Edit
images.py(file contains example) -
If you want to use
desktopfile without asking your sudo password, you should create next record in/etc/sudoers:<username> ALL=(root) NOPASSWD: </path/to/installed/mounter.py>
-
cd src/installer -
Edit
config.pyif you need. You can mark the unnecessary files asNone -
Execute:
chmod +x installer.py sudo ./installer.py
or
sudo python3 installer.py
You can uninstall scripts by executing uninstaller.py
Double click on the desktop file and type your password. Encrypted file will be automatically mounted.
If you didn't mark unmounterServiceInstallPath as None, then your encrypted image(s) will be automatically
unmounted before the shutdown