Installation: Resourcesaahome/Ada-ASSURED3.5/resources
These files specify such things as default key bindings, colors, and fonts. These defaults only have an effect when loaded into the X server resource database. Unfortunately there are many different ways to do sodifferent versions of X support somewhat incompatible mechanisms; furthermore, even for the same version of X, different sites may adopt different conventions; still worse, individual users of a site may have their own approaches. The following instructions are intended to help you thread your way through this morass.
If you are using the older X release 4 (e.g., OpenWindows), you should follow the instructions in section Resources for X release 4.
Otherwise you will need to:
To get the appropriate colors, Ada-ASSURED requires the customization resource to be set either to color or mono depending on whether you have a color or monochrome monitor.
If you only intend to use black-and-white monitors, proceed with section res-loc to choose a resource location method. If you intend to use either a color or a grey-scale monitor some of the time, then the customization resource must be initialized appropriately. Enter the command
xrdb -query | grep customizationto see if customization is initialized. If you are seated at a color or grey-scale monitor and the command replies -color, or you are seated at a black-and-white monitor and the command replies -mono, assume that customization is properly initialized. X uses the value of the customization resource (in various ways) as it searches in either XAPPLRESDIR or in one of the directories listed in XUSERFILESEARCHPATH for an appropriate X resource initialization file.
Otherwise you can set this X resource by adding the lines
#ifdef COLORinto one of the resource initialization files processed by the xrdb, e.g., .Xdefaults or .Xresources.
*customization: -color
#else
*customization: -mono
#endif
In order to get the change in effect, you must then enter whichever of the following two command is appropriate:
xrdb -merge ~/.Xdefaultsor
xrdb -merge ~/.Xresources
There are three possibilities for loading X resources.
If you are sufficiently expert to know which of these three to use, proceed with the appropriate instructions. Otherwise, enter the command
printenv XUSERFILESEARCHPATH
to ascertain whether XUSERFILESEARCHPATH is typically set at your site. If so, use XUSERFILESEARCHPATH. If not, enter the command
printenv XAPPLRESDIR
to ascertain whether XAPPLRESDIR is typically set to some public directory of application resources. If so, use XAPPLRESDIR. If not, it would appear that neither method is in common use. If you know that your version of X supports XUSERFILESEARCHPATH, use XUSERFILESEARCHPATH; otherwise use XAPPLRESDIR set to a private directory.
First, determine if XUSERFILESEARCHPATH is already in use by executing the command:
printenv XUSERFILESEARCHPATHIf this returns with a blank line, enter the command
setenv XUSERFILESEARCHPATH 'aahome/Ada-ASSURED3.5/resources/%N%C:\otherwise, enter the command
aahome/Ada-ASSURED3.5/resources/%N'
setenv XUSERFILESEARCHPATH $XUSERFILESEARCHPATH':\
aahome/Ada-ASSURED3.5/resources/%N%C:\
aahome/Ada-ASSURED3.5/resources/%N'
This command adds the Ada-ASSURED resource directory to the search path in a manner that uses the customization resource if possible.
aahome/Ada-ASSURED3.5/resources/SynthesizerGeneratorTo do this, you will probably have to be a system administrator with root privileges.
aahome/Ada-ASSURED3.5/resources/SynthesizerGenerator-color
aahome/Ada-ASSURED3.5/resources/SynthesizerGenerator-color-only
setenv XAPPLRESDIR aahome/Ada-ASSURED3.5/resources/which makes the default resources automatically available to Ada-ASSURED when it is invoked by command aa.
To load the resources using xrdb, enter the command
xrdb -merge aahome/Ada-ASSURED3.5/resources/aa-resources
If you are using the older release of X, then the mechanism for specifying resources is different.
First, XUSERFILESEARCHPATH is not available in X Release 4, so you must use XAPPLRESDIR. See the above section XAPPLRESDIR for instructions on setting this method.
Second, the customization resource is not available. In order to make the color resources available, each user of a color or grey-scale monitor must load them directly each time they start the X server. This can be done using the command
xrdb -merge $XAPPLRESDIR/SynthesizerGenerator-color-onlyor by including the following lines at the end of either your .Xdefaults file or your .Xresources file (if you use xdm):
#ifdef COLORand then entering whichever of the following two command is appropriate:
#include ``aahome/Ada-ASSURED3.5/resources/SythesizerGenerator-color-only''
#endif
xrdb -merge ~/.Xdefaultsor
xrdb -merge ~/.Xresources