Running MTA on a local machine
From DGC Wiki
MTA looks for environment variable "MTAHOME" as the parent directory for "ip" and "grid" files. This defaults to "/etc" if not set.
Follow these instructions for an automatic setup (that automatically sets this variable to ~/local and creates the necessary files).
- Make sure you have the code repository checked out from subversion into ~/dgc
<li>Edit your .bashrc file and add this line at the bottom (don't miss the leading dot)
. ~/dgc/local/files/dgc.bashrc
<li>Source your .bashrc file to load the new settings into your current shell's environment (this will be done automatically in any new shells started from now)
. ~/.bashrc
<li>Run ~/dgc/local/scripts/mta_switch.sh. This script is made for switching between a local and shop setup (see next topic) but also creates the necessary directory and files when executed for the first time.
<li>Make sure the remove computers that shall talk to your local machine has your IP added in their grid files. For detailed instructions on this, see the notes about automatic setup on the MTA Documentation page.
<li>Start up the MTA modules you want to run on your own and on the other computers...
</ol>
--Henrik 09:57, 29 Oct 2004 (PDT)
[edit]
Switching between local and "shop" setup
Run the mta_switch.sh script to switch between a grid files that has:
- only your computer added (for developing MTA modules only on your local computer)
- your computer together with all the race computers (for development in the shop with some modules running on race computers)
![[Main Page]](../../../../upload/alice.jpg)