Skip to content

SetupAndConfiguration

kaazoo edited this page Jul 28, 2015 · 2 revisions

Setup and configuration

Simple install

Install dependencies

Install stable release

pip install DrQueueIPython

Install development version

pip install --egg --upgrade git+https://github.com/kaazoo/DrQueueIPython

Create DrQueue directories (only on master / storage server)

git clone https://github.com/kaazoo/DrQueueIPython.git
cd DrQueueIPython
# default path / owner
python setup.py create_drqueue_dirs
# custom path / owner
python setup.py create_drqueue_dirs --owner=USER --group=staff --basepath=/usr/local/drqueue

Dependencies

Mac OSX 10.7/10.8/10.9 (Homebrew Python 2.7)

  • Install XCode & command line tools
  • Install Homebrew from http://mxcl.github.com/homebrew/
  • Install Python 2.7.x:

    brew install python
  • Install ZMQ:

    brew install zmq
  • Install MongoDB:

    brew install mongodb
  • Add Python script directory to PATH in ~/.profile:

    export PATH=$PATH:/usr/local/share/python
  • Install FUSE:

    brew install osxfuse
    sudo /bin/cp -RfX /usr/local/Cellar/osxfuse/2.6.2/Library/Filesystems/osxfusefs.fs /Library/Filesystems
    sudo chmod +s /Library/Filesystems/osxfusefs.fs/Support/load_osxfusefs
  • Install sshfs:

    brew install sshfs

Ubuntu 12.04 LTS (Python 2.7)

  • Python 2.7:

    aptitude install python2.7 python2.7-dev python2.7-pkg-resources
  • ZMQ:

    aptitude install libzmq-dev
  • MongoDB:

    aptitude install mongodb-server mongodb-dev
  • sshfs:

    aptitude install sshfs

Windows 7 (Python 2.7)

  • python-2.7.2 from http://ftp.python.org/ftp/python/2.7.2/python-2.7.2.msi
  • pyreadline-1.7 from http://launchpad.net/pyreadline/trunk/1.7/+download/pyreadline-1.7.win32.exe
  • pyzmq-2.1.7 (2.1.9 didn’t work) from https://github.com/downloads/zeromq/pyzmq/pyzmq-2.1.7.win32-py2.7.msi
  • add c:\python27 and c:\python27\scripts to PATH environment variable
  • add c:\python27\lib and c:\python27\lib\site-packages to PYTHONPATH environment variable
  • install sshfs:
    • MVC Redist 2005 SP1 from http://www.microsoft.com/downloads/details.aspx?familyid=200B2FD9-AE1A-4A14-984D-389C36F85647
    • Dokan library from http://dokan-dev.net/wp-content/uploads/DokanInstall_0.6.0.exe
    • Dokan SSHFS 0.2.0.1226 from http://dokan-dev.net/wp-content/uploads/dokan-sshfs-0201226.zip
    • overwrite DokanNet.dll and DokanSSHFS.exe with Dokan SSHFS 0.6.0 from http://dokan-dev.net/wp-content/uploads/dokan-sshfs-0.6.0.zip

Email notification

  • There is an example configuration file ‘email_config.json.example’ for email notifications. Copy it from the source directory to ‘~/.drqueue/email_config.json’.
Field Explaination
from Sender
smtp_server SMTP server
smtp_port SMTP port
smtp_auth 1: Use authentication for SMTP, 0: Don’t use authentication for SMTP
smtp_user SMTP username
smtp_passwd SMTP password
smtp_tls 1: Use TLS encryption, 0: Don’t use TLS encryption
smtp_ssl 1: Use SSL encryption, 0: Don’t use SSL encryption