[RELEASE] [LINUX] Truecrypt Mountscript
#1
--- !!! UPDATE - v0.2 released !!! ---

Hey there!
I've just finished writing my Truecrypt Mountscript for XBMC (Linux) Big Grin
As this is the first python script I've ever written - be gentle and report any bugs you encounter!

Download: Truecrypt Mount v0.2
Place this script inside your "homefolder/.xbmc/userdata/scripts" folder - for example: /home/myuser/.xbmc/scripts

v0.2 is able to mount Truecrypt Container files!

(Container support was was pretty easy to add ... I'm starting to like python Smile)

+ Truecrypt command line options can now be specified

for example:
Code:
--fs-options=ro
will mount the volume in read only mode.
Run "truecrypt -t" from a shell to see all possible commands.

Any kind of GUI-Design is still missing - so don't be suprised by it's uglyness ^^
- any good xbmc GUI tutorials out there?

Featurelist v0.2:
  • Mount tc-partitions
  • Mount tc-container files
  • Password input
  • Keyfile support
  • Custom mountpoint selection
  • Custom mountoptions
  • Dismount all tc-mounted partitions
  • Sudo password input

- Additional Information -

Quote:Sudo password input CAN be avoided by permanently adding your user to the /etc/sudoers file.

THIS IS NOT NECESSARY! IF YOU DON'T DO THIS - XBMC WILL SIMPLY ASK YOU FOR YOUR SUDO PASSWORD EVERY TIME

Do this from a shell:
Code:
sudo visudo
add the line (replace 'myusername' with your linux username!) at the end of the file.
Code:
myusername ALL=NOPASSWD: ALL

Save with STRG+O RETURN.
Exit with STRG+X RETURN

Warning! Your user is now able to execute any sudo command without entering his password!


A default mountpoint,keyfile,container and default mount options can be specified by editing the TARGET, KEYFILE and OPTIONS Variable at the top of the script

Example:
Code:
TARGET = '/media/tc'
KEYFILE = '/home/xbmc/mysecretfile'
CONTAINER = '/home/mytcfile'
OPTIONS = '--fs-options=ro'

CHANGELOG:
v0.2:
  • Truecrypt Container support implemented
  • Custom mountoptions ( --fs-options=<str> ,etc. )

TODO:
v0.2:
  • GUI Design! ;>
  • List mounted truecrypt volumes
  • Cleanup
  • Live Partition-List update after mount/dismount

Have fun - and report bugs! Smile

Download: Truecrypt Mount v0.2
Reply
#2
super, been looking for this. Im a linux noob but im hoping you'll soon be able to mount containers and perhaps tell me how to integrate it in de xmbc live iso Nerd

keep it up!
Reply
#3
Hey,
I've just implemented the container file support!

... as I'm currently running xbmc from within a normal version of ubuntu, I don't really know how to modify the xbmc live iso-version...
But I'm pretty sure that it's possible ... maybe I'll look into that in a few days!
- I'll let you know ;>
Reply
#4
i just installed ubuntu on vm. I'll give it a try tonight.

tnx mate
Reply

Logout Mark Read Team Forum Stats Members Help
[RELEASE] [LINUX] Truecrypt Mountscript0