![]() |
TrueCrypt Mounter/Unmounter Script (Help Needed)
Dear All,
I am quite a noob when it comes to Linux. I used to write advanced scripts in Windows Powershell and now I want to do the same in Linux. The following is a script I wrote but I have no clue on how to make it executable and how can i make an icon for it to launch a script. If someone would be kind to pass a few links, will be helpful for me. I tried to run this in my N900 and it kinda screwed up the device as I am sure i did somethin wrong. had to reflash it. So would be really honoured if omeone could help a lil so tht I can do my contribution to this forum as well. Code:
#!/bin/bash |
Re: TrueCrypt Mounter/Unmounter Script (Help Needed)
Quote:
Code:
chmod +x filename Quote:
Code:
system "command options arguments"; Code:
`command options arguments`; |
Re: TrueCrypt Mounter/Unmounter Script (Help Needed)
Quote:
|
Re: TrueCrypt Mounter/Unmounter Script (Help Needed)
Quote:
|
Re: TrueCrypt Mounter/Unmounter Script (Help Needed)
Quote:
|
Re: TrueCrypt Mounter/Unmounter Script (Help Needed)
Hi fareed_xtreme,
Here some example code that might be useful to you. To make a selection menu: Code:
#!/bin/sh The .desktop file should be put here: Code:
/usr/share/applications/hildon/myScript.desktop Code:
[Desktop Entry] |
Re: TrueCrypt Mounter/Unmounter Script (Help Needed)
Quote:
|
Re: TrueCrypt Mounter/Unmounter Script (Help Needed)
I noticed something Wierd. As I am running the script, the i get the following error
Code:
permission denied. Code:
chmod +x Filename.sh Code:
chmod 777 filename.sh Also the desktop file I had created had some problem and so i deleted it but in the menu, the icon still exists. What am i doing wrong here? How can I remove the icon and all? |
Re: TrueCrypt Mounter/Unmounter Script (Help Needed)
Maybe the permision denied comes from what you executed inside the script?
Can the commands you've put in the script be executed as user? Use "ls -al" to view what priviledges you have set to a file. Make a reboot and see if it is rmoved from the menu. |
Re: TrueCrypt Mounter/Unmounter Script (Help Needed)
Quote:
Secondly I rebooted 2 times already and still the icon still exists... I do not know what is the issue regarding. and really wish that you could assist me in cleaning this up without the need to format... |
Re: TrueCrypt Mounter/Unmounter Script (Help Needed)
Quote:
as root you can use the find command to search for your scripts maybe you left something back there. eg: Code:
find / -name *partOfTheScriptName* case $selection in 0) exit ;; notice the double semicolon |
Re: TrueCrypt Mounter/Unmounter Script (Help Needed)
This is what i did in my device to manage mounting and unmounting a "cryptedfile.tc" located in my SD card:
1 - Create the "cryptedfile.tc" and move it to your SD card (it may also be MyDocs or other folder) 2 - Install Truecrypt Disk Encryption (command line) from the repos 3 - Create the empty folder /media/mycrypt 4 - Create the following script in /usr/bin: Code:
/usr/bin/truecrypt --protect-hidden=no -k= /media/mmc1/cryptedfile.tc /media/mycrypt 5 - Create the file tcrypt.desktop in /usr/share/applications/hildon with the following contents: Code:
[Desktop Entry] I used the easycrypt icon Whenever i need to use the crypt file i go to the applications menu and i select the truecrytp icon. When x-terminal opens i input the crypt password and then filemanager opens with mycrypt mounted and ready for use. As long as i keep filemanager running mycrypt remains mounted. As soon as i close filemanger mycrypt folder is automatically unmounted. |
Re: TrueCrypt Mounter/Unmounter Script (Help Needed)
1 Attachment(s)
Quote:
|
Re: TrueCrypt Mounter/Unmounter Script (Help Needed)
Quote:
BTW,What is a .tc file?Is it a TrueCrypt container file? |
Re: TrueCrypt Mounter/Unmounter Script (Help Needed)
Quote:
I have the same file in all my windows and linux machines with all the confidential docs and info i may need. Before N900 i used to carry a pen with the crypted container and a portable app to access it. I needed to find a pc for that but now, with a computer that makes calls in my pocket, i can do it anywhere. :) |
Re: TrueCrypt Mounter/Unmounter Script (Help Needed)
Quote:
|
Re: TrueCrypt Mounter/Unmounter Script (Help Needed)
EUREKA. Finally got it working.
Follow this link for the complete setup procedure http://talk.maemo.org/showthread.php...975#post893975 |
All times are GMT. The time now is 14:53. |
vBulletin® Version 3.8.8