summaryrefslogtreecommitdiff
path: root/pkg/scripts/bitmask_bootstrap.sh
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2013-09-06 13:32:41 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2013-09-06 13:32:41 -0300
commit5c155f8c02ae7e5b09e84b853aa80ccbf8d872c4 (patch)
tree76f9bed0c96292aac35325d96b4ae2b9705e2e99 /pkg/scripts/bitmask_bootstrap.sh
parent8429d35de46942dc86be2644df84d785f3b4c48f (diff)
parent869989b3ce7e1aee3f70fbced91d3c76cd27045a (diff)
Merge remote-tracking branch 'kali/feature/update-docs-to-0.3.2' into develop
Diffstat (limited to 'pkg/scripts/bitmask_bootstrap.sh')
-rwxr-xr-xpkg/scripts/bitmask_bootstrap.sh49
1 files changed, 49 insertions, 0 deletions
diff --git a/pkg/scripts/bitmask_bootstrap.sh b/pkg/scripts/bitmask_bootstrap.sh
new file mode 100755
index 00000000..42eb0af9
--- /dev/null
+++ b/pkg/scripts/bitmask_bootstrap.sh
@@ -0,0 +1,49 @@
+#!/bin/bash
+
+# Installs requirements, and
+# clones the latest leap-client
+
+# depends on:
+# openvpn git-core libgnutls-dev python-dev python-qt4 python-setuptools python-virtualenv
+
+# Escape code
+esc=`echo -en "\033"`
+
+# Set colors
+cc_green="${esc}[0;32m"
+cc_yellow="${esc}[0;33m"
+cc_blue="${esc}[0;34m"
+cc_red="${esc}[0;31m"
+cc_normal=`echo -en "${esc}[m\017"`
+
+echo "${cc_yellow}"
+echo "~~~~~~~~~~~~~~~~~~~~~~~"
+echo " Bitmask bootstrapping "
+echo "~~~~~~~~~~~~~~~~~~~~~~~"
+echo ""
+echo "${cc_green}Creating virtualenv...${cc_normal}"
+
+mkdir bitmask-testbuild
+virtualenv bitmask-testbuild
+source bitmask-testbuild/bin/activate
+
+echo "${cc_green}Installing bitmask...${cc_normal}"
+
+# Clone latest git (develop branch)
+# change "develop" for any other branch you want.
+
+
+pip install -e 'git://leap.se/leap_client@develop#egg=leap.bitmask'
+
+cd bitmask-testbuild
+
+# symlink the pyside libraries to the system libs
+./src/leap.bitmask/pkg/postmkvenv.sh
+
+echo "${cc_green}bitmask installed! =)"
+echo "${cc_yellow}"
+echo "Launch it with: "
+echo "~~~~~~~~~~~~~~~~~~~~~~"
+echo "bin/bitmask"
+echo "~~~~~~~~~~~~~~~~~~~~~~"
+echo "${cc_normal}"