Last active
October 9, 2015 00:36
-
-
Save williballenthin/c14c4f960e25b8ab1cff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# debian dependencies | |
sudo apt-get install python3 python3-pip qt5-default python3-pyqt5 git | |
# get virtualenv package for python3 | |
sudo pip3 install virtualenv | |
# prepare a clean Python environment | |
mkdir env; virtualenv -p python3 env | |
# need to manually load PyQt binary files | |
ln -s /usr/lib/python3/dist-packages/PyQt5 $(pwd)/env/lib/python3.4/site-packages/PyQt5 | |
ln -s /usr/lib/python3/dist-packages/sip.cpython-34m-x86_64-linux-gnu.so $(pwd)/env/lib/python3.4/site-packages/sip.cpython-34m-x86_64-linux-gnu.so | |
# install library and dependencies | |
env/bin/pip install python-cim | |
# fetch repo that contains sample scripts | |
git clone https://github.com/fireeye/flare-wmi.git | |
# go! | |
# env/bin/python flare-wmi/python-cim/samples/ui.py win7 ~/Desktop/the/repo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment