Child pages
  • Deploy on OSX
Skip to end of metadata
Go to start of metadata

Steps to deploy DAQ on OSX

Step-by-step guide

  1. Create a user with the user-name: dmadmin . Note, the password for this user does not matter, we will setup ssh password-less login using ssh keys.
  2. Open a terminal and login as dmadmin
    1. su dmadmin
  3. Get the source code:
    1. svn co https://subversion.xray.aps.anl.gov/DataManagement/trunk <DM_ROOT_DIR>
  4. Commend out function call in dm-daq-web-service script
    1. vi <DM_ROOT_DIR>/etc/init.d/dm-daq-web-service
    2. comment out line 18 (line number may have changed since this edit)
      1. #. /etc/rc.d/init.d/functions
  5. Make the daq
    1. cd <DM_DIST_DIR>
    2. make support-daq
    3. make dm-deploy-daq-web-service
  6. This should be it but OSX 10.10.5 (version as of writing this wiki) have openssl version 0.9.8zg. This version does not support TLSv1_2 which is needed. A work around is to install Anaconda python which comes with openssl verions 1.0.1k
    1. https://store.continuum.io/cshop/anaconda/
  7. Prepend <anaconda_install_dir>/bin to your PATH environment variable.
    1. export PATH=<anaconda_install_dir>/bin:$PATH
    2. export PYTHONPATH=<DM_ROOT_DIR>/lib/python
  8. Install needed python libraries
    1. pip install python-ldap watchdog
  9. Download patched cherrypy package and install it
    1. cd /tmp
    2. wget https://subversion.xray.aps.anl.gov/DataManagement/support/src/CherryPy-3.6.0.dm.tar.gz
    3. tar zxvf CherryPy-3.6.0.dm.tar.gz
    4. cd CherryPy-3.6.0.dm
    5. python setup.py build
    6. python setup.py install
  10. Kill and restart daq service
    1. pkill -SIGINT -f dsWebService
    2. cd <DM_ROOT_DIR>/sbin
    3. python daqWebService.py &
  11. Note that when you restart your terminal you will have to
    1. source <DM_ROOT_DIR>/../etc/dm.setup.sh
    2. export PATH=<anaconda_install_dir>/bin:$PATH