Skip to content
This repository was archived by the owner on Jul 18, 2022. It is now read-only.

Commit 14576fe

Browse files
committed
provide bash script for downloading truecrypt sources and building it required due to non headless TC installer
1 parent a19946c commit 14576fe

3 files changed

Lines changed: 38 additions & 2 deletions

File tree

vagrant/Vagrantfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,8 @@ Vagrant.configure(2) do |config|
5858
s.inline = "sudo sed -i '/tty/!s/mesg n/tty -s \\&\\& mesg n/' /root/.profile"
5959
end
6060

61-
config.vm.provision "shell" , path: "bootstrap.bash"
61+
config.vm.provision "bootsrap", type: "shell" , path: "bootstrap.bash"
62+
config.vm.provision "truecrypt_compile", type: "shell" , path: "truecryptcompile.bash"
63+
#config.vm.provision "full_instance", type: "shell", inline: "echo Themis VM provisioning mode: full_instance"
64+
#config.vm.provision "dev_instance", type: "shell" , inline: "echo Themis VM provisioning mode: dev_instance"
6265
end

vagrant/bootstrap.bash

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,5 @@ echo " "
6464
#wget https://www.grc.com/misc/truecrypt/truecrypt-7.1a-linux-console-x64.tar.gz
6565
#tar -xvf truecrypt-7.1a-linux-console-x64.tar.gz
6666
#./truecrypt-7.1a-setup-console-x64
67-
#echo " "
67+
#echo "done"
68+

vagrant/truecryptcompile.bash

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash
2+
3+
echo "Compile truecrypt"
4+
5+
#Compile Truecrypt on Ubuntu: http://ubuntuforums.org/showthread.php?t=812350
6+
#http://jankarres.de/2013/04/raspberry-pi-truecrypt-installieren-und-mounten/
7+
cd /tmp
8+
wget http://prdownloads.sourceforge.net/wxwindows/wxWidgets-2.8.12.tar.gz
9+
wget https://github.com/DrWhax/truecrypt-archive/raw/master/TrueCrypt%207.1a%20Source.tar.gz
10+
sudo apt-get -y install libfuse-dev screen
11+
mkdir pkcs-header-files
12+
cd pkcs-header-files
13+
wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/*.h
14+
cd ../
15+
16+
tar xf "TrueCrypt 7.1a Source.tar.gz"
17+
tar xf wxWidgets-2.8.12.tar.gz
18+
19+
sudo apt-get -y install build-essential g++ nasm
20+
21+
#LIBS=-ldl make
22+
23+
cd truecrypt-7.1a-source/
24+
make NOGUI=1 WX_ROOT=/tmp/wxWidgets-2.8.12 wxbuild
25+
26+
figure out this step manually
27+
sudo make NOGUI=1 WXSTATIC=1 PKCS11_INC=/tmp/pkcs-header-files
28+
29+
sudo cp Main/truecrypt /usr/bin
30+
sudo chmod +x /usr/bin/truecrypt
31+
32+
echo " "

0 commit comments

Comments
 (0)