[system] / trunk / xmlrpc / daemon / WW.config.dist Repository:
ViewVC logotype

View of /trunk/xmlrpc/daemon/WW.config.dist

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2353 - (download) (annotate)
Sat Jun 19 16:57:36 2004 UTC (15 years, 4 months ago) by gage
File size: 5291 byte(s)
This is a working version of the daemon

    1 
    2 
    3 # Copyright (C) 2001 Michael Gage
    4 
    5 ###############################################################################
    6 # The initial code simply initializes variables, defines addresses
    7 # It is called from ww_daemon.pl
    8 ###############################################################################
    9 
   10 BEGIN {
   11     $main::MAINDIRECTORY = '/home/gage/webwork/';
   12     use lib '/home/gage/webwork/xmlrpc/lib';
   13     use lib '/home/gage/webwork/system/courseScripts'; # (this has .pm and .pl macro files mixed)
   14   # FIXME
   15   # use lib '/home/gage/webwork/pg/lib';
   16   # use lib '/home/gage/webwork/pg/lib/WeBWorK';
   17   # use lib '/home/gage/webwork/pg/lib/WeBWorK/PG';
   18   # use lib '/home/gage/webwork/pg/macros';
   19 
   20 
   21 
   22   # hacked configuration variables relating to dvipng support
   23 
   24   # $Global::externalLatexPath
   25 
   26   # dvipng is used for dpng mode
   27   $Global::externalDvipngPath   = "/usr/local/bin/dvipng";
   28 
   29   # These two have to match, from modes.mf
   30   $Global::dvipngMode       =   "toshiba";
   31   $Global::dvipngDPI        =   180;
   32 
   33   # Adjusting shrink factor produces better results than adjusting Resolution
   34   # Resolution can have fractional values, like 1.3 whereas ShrinkFactor must
   35   # be an integer.  The size of the output is proportional to
   36   #   DPI * Scaling / ShrinkFactor
   37 
   38   $Global::dvipngShrinkFactor   =   6;          # reasonable for toshiba
   39   $Global::dvipngScaling      =   4.0;        # reasonable for toshiba
   40 
   41   # latex2html is used for the typeset display mode. WeBWorK supports version 96.1
   42   # and version 98.1p1 (or later). Specify either 96.1 or 98.1p1 for
   43   # $externalLaTeX2HTMLVersion -- this will effect the syntax used when calling
   44   # latex2html. $externalLaTeX2HTMLInit should point to a latex2html init file
   45   # that matches the version of latex2html specified.
   46   $Global::externalLaTeX2HTMLPath   =   "/usr/local/bin/latex2html";
   47   $Global::externalLaTeX2HTMLVersion  =   "98.1p1";
   48   $Global::externalLaTeX2HTMLInit   =   "/u/gage/webwork/system/lib/latex2html.init.$Global::externalLaTeX2HTMLVersion";
   49   $Global::externalLaTeX2HTMLSupportPath  = "";# what should this be?
   50 
   51   # latex, dvips, and gs are programs used to generate problem set hard copy
   52   # output in various formats (DVI, PostScript, PDF).
   53   $Global::externalLatexPath  =   "/usr/local/bin/latex";
   54   $Global::externalDvipsPath  =   "/usr/local/bin/dvips";
   55   $Global::externalGsPath   =   "/usr/local/bin/gs";
   56 
   57   # Finally some of the above programs may call other programs (e.g. dvips
   58   # calls mktexpk to generate missing fonts). The locations of these other
   59   # programs must be listed in Perl's $ENV{PATH} variable.  The path listed in
   60   # $extendedPath is appended to Perl's $ENV{PATH}.  Setting
   61   # $extendedPath = ':/usr/bin:/usr/local/bin' should work in almost all cases
   62   # and $extendedPath = ':/usr/local/bin' should work in most.   You may have to
   63   # edit this depending on where these programs are found on your system.  If you
   64   # have problems, check .../webwork/system/logs/error_log for messages about programs
   65   # which were not found.
   66   $Global::extendedPath = ':/usr/bin:/usr/local/bin';
   67 
   68   # The rendering modes for onscreen problem display which are available to the student.
   69   # Modes can be added, or commented out here. Adding a new mode required additional changes.
   70   # The format is [internal symbol, external name].
   71   $Global::available_mode_list = [
   72       ['HTML', 'text'],
   73       ['HTML_tth', 'formatted-text'],
   74        ['HTML_dpng' ,'typeset2'],
   75       ['Latex2HTML', 'typeset']
   76   ];
   77 
   78   # Webwork.pm   initializations
   79 
   80   $Global::COURSE_TEMP_DIRECTORY      =   '/webwork/shared-courses/daemon_course/html/tmp';
   81   $Global::COURSE_TEMP_URL            =   'http://devel.webwork.rochester.edu:11002/webwork2_courses/daemon_course/tmp';
   82   $Global::courseScriptsDirectory     =   '/home/gage/webwork/system/courseScripts/';
   83   $Global::macroDirectory         = 'Undefined';
   84   $Global::scriptDirectory        =   '/home/gage/webwork/system/scripts/';
   85   $Global::templateDirectory        =   'Undefined';
   86   $Global::globalTmpDirectory             =   '/home/gage/webwork/xmlrpc/tmp';
   87 
   88   #FetchLibaryProblems initializations
   89 
   90   %Global::AVAILABLE_PROBLEM_LIBRARIES  =   ( ww_prob_lib =>  '/webwork/shared-courses/daemon_course/templates/',
   91 
   92   );
   93   $Global::PASSWORD = 'geometry';
   94 
   95   # MathTranslator.pm initializations
   96 
   97   $Global::TEMPDIRECTORY = '/webwork/shared-courses/daemon_course/html/tmp/daemon/';
   98   $Global::TEMP_BASE_URL = 'http://webwork3.math.rochester.edu:11002/webwork2_courses/daemon_course/tmp/daemon/';
   99 
  100   $Global::externalpdflatexPath     =   '/usr/local/bin/pdflatex';
  101   $Global::tmp_directory_permission = 0775;
  102   $Global::numericalGroupID='100';  # group ID for wwdev
  103 
  104   use constant DISPLAY_MODE_FAILOVER => {
  105     TeX            => [],
  106     HTML           => [],
  107     HTML_tth       => [ "HTML", ],
  108     HTML_dpng      => [ "HTML_tth", "HTML", ],
  109     HTML_jsMath    => [ "HTML_dpng", "HTML_tth", "HTML", ],
  110     HTML_asciimath => [ "HTML_dpng", "HTML_tth", "HTML", ],
  111     # legacy modes -- these are not supported, but some problems might try to
  112     # set the display mode to one of these values manually and some macros may
  113     # provide rendered versions for these modes but not the one we want.
  114     Latex2HTML  => [ "TeX", "HTML", ],
  115     HTML_img    => [ "HTML_dpng", "HTML_tth", "HTML", ],
  116   };
  117 
  118   $Global::PG_environment{displayModeFailover} = DISPLAY_MODE_FAILOVER();
  119 
  120 };
  121 
  122 
  123 1;

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9