Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 2333  / 2 Years ago, mon, august 22, 2022, 3:07:06

I am using Truecrypt to secure my data and am obliged to use Dropbox for some file sharing. I've set up my Dropbox folder on the Truecrypt mount.



When I log in Dropbox throws an error, because the Dropbox folder doesn't exist yet. I then have to mount the folder and restart Dropbox.



Is there any way that I can script the following:




  • start Truecrypt, prompting to mount favorite volumes

    • cannot set a time for this as it's based on user input (I have to enter my admin password and Truecrypt password, and I must admit that sometimes I get distracted and make coffee while doing this)


  • only when volume is mounted, start Dropbox

  • options to do this automatically (on login) and manually


More From » startup

 Answers
1

I had to do something quite similar. Here is what I ended up doing:




  • remove Dropbox auto start feature of course

  • have Ubuntu auto start the following script:



    #!/bin/bash
    #First let's check DB isn't running, you never know
    test "`dropbox status | awk '{print $2}'`" == "isn't" || exit;
    #mount private
    truecrypt --mount #you may optionally indicate which container you wish to mount
    #wait for truecrypt
    while test ! -d /media/truecrypt1/Dropbox
    do
    sleep 1
    done;
    #start DB
    dropbox start


[#43682] Wednesday, August 24, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
smelrop

Total Points: 263
Total Questions: 122
Total Answers: 108

Location: Saudi Arabia
Member since Thu, Jan 28, 2021
3 Years ago
smelrop questions
Mon, Mar 13, 23, 07:22, 1 Year ago
Sun, Feb 5, 23, 13:02, 1 Year ago
Tue, Aug 31, 21, 00:50, 3 Years ago
Sat, Dec 18, 21, 15:18, 2 Years ago
;