-
Notifications
You must be signed in to change notification settings - Fork 0
/
before_install.sh
executable file
·30 lines (25 loc) · 1.32 KB
/
before_install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
PROTO_PACKAGES=(libprotobuf9_2.6.1-1ppa1~precise_amd64.deb libprotobuf-lite9_2.6.1-1ppa1~precise_amd64.deb libprotobuf-dev_2.6.1-1ppa1~precise_amd64.deb libprotobuf-java_2.6.1-1ppa1~precise_all.deb libprotoc9_2.6.1-1ppa1~precise_amd64.deb libprotoc-dev_2.6.1-1ppa1~precise_amd64.deb protobuf-compiler_2.6.1-1ppa1~precise_amd64.deb python-protobuf_2.6.1-1ppa1~precise_amd64.deb)
mkdir protobuf-debs
cd protobuf-debs
echo "Installing protobuf debs"
for i in ${PROTO_PACKAGES[@]}; do
echo "Downloading custom package $i"
wget https://dionyziz.com/protobuf-debs/$i
echo "Installing $i"
sudo dpkg -i $i
done
cd ..
echo "Protobuf debs installed"
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:kristinn-l/plaso-dev -y
sudo apt-get update -q
sudo apt-get install m2crypto python-support libdistorm64-1 libdistorm64-dev python-psutil pytsk3 ncurses-dev python-pip
PLAT=amd64
DEB_DEPENDENCIES_URL=https://googledrive.com/host/0B1wsLqFoT7i2aW5mWXNDX1NtTnc/ubuntu-12.04-${PLAT}-debs.tar.gz
DEB_DEPENDENCIES_DIR=ubuntu-12.04-${PLAT}-debs
SLEUTHKIT_DEB=sleuthkit-lib_3.2.3-1_${PLAT}.deb
DEB_DEPENDENCIES_TARBALL=$(basename ${DEB_DEPENDENCIES_URL})
wget --no-verbose ${DEB_DEPENDENCIES_URL} -O ${DEB_DEPENDENCIES_TARBALL}
tar zxfv ${DEB_DEPENDENCIES_TARBALL}
sudo dpkg -i ${DEB_DEPENDENCIES_DIR}/${SLEUTHKIT_DEB}