Project

General

Profile

Actions

Configure sinedoncfg » History » Revision 17

« Previous | Revision 17/23 (diff) | Next »
Anchi Cheng, 05/18/2010 08:06 PM


Configure sinedon.cfg

Sinedon is an object relational mapping library designed to interact with the Leginon and Appion databases.

For older versions of Appion and Leginon (pre-2.2), please use the following instructions:
Instructions for Appion and Leginon versions prior to 2.2

The order in which Leginon/Appion looks for sinedon.cfg

  1. individual user home directory
  2. $PYTHONSITEPKG/sinedon
     
    Note: You can discover the $PYTHONSITEPKG path by starting python:
    python
    import sys
    sys.path
    

    The first path to site-packages should hold the config file.
     
  3. /etc/myami (on Unix)

Locate the search directories and the currently loaded cfg files by running the following python script in $PYTHONSITEPKG/leginon

configcheck.py

Create a sinedon.cfg for all users

  • An example configuration file is available at:
    myami/sinedon/examples/sinedon.cfg
  • Configurations for all users should be placed at the following path:
    /etc/myami/sinedon.cfg
  • Modify sinedon.cfg to look like the following example. Set the host, db, user, and passwd to match the databases created during your Database Server setup. Note that the user here is the MySQL user Leginon uses to communicate with the database for all Leginon users. For an Appion or Leginon installation that uses Project database, set the following:
    [global]
    #host: your_database_host
    host: localhost
    user: usr_object
    passwd:
    
    [projectdata]
    db: projectdb
    
    [leginondata]
    db: leginondb
    

Note: If you are a developer, and you need to use sinedon.cfg settings that are different from the global settings, you may create your own sinedon.cfg file and place it in your home directory. This version will override the global version located in the site packages directory.


< Explanation of Sample Names | Install External Packages >


Updated by Anchi Cheng over 14 years ago · 17 revisions