Skip to content

Instantly share code, notes, and snippets.

@williballenthin
Last active October 9, 2015 00:36
Show Gist options
  • Save williballenthin/c14c4f960e25b8ab1cff to your computer and use it in GitHub Desktop.
Save williballenthin/c14c4f960e25b8ab1cff to your computer and use it in GitHub Desktop.
#!/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