Configuring Xmosaic

You'll find life on the Web easier if you take a little time to customize your environment:

Reset some of your X Defaults by adding these to your ~/.Xdefaults file:

  • Mosaic*homeDocument: Put a pointer to your own Home Page here
  • Mosaic*defaultWidth:, Mosaic*defaultHeight: I like to use a larger window
  • Mosaic*geometry: I like it to be in the same place every time
  • Mosaic*PlainFont, Mosaic*Font: Use fonts that support foreign characters
  • Mosaic*background: Change the background color?
  • Mosaic*visitedAnchorColor: Make the "visited" color something other than BLACK (e.g., RED)
  • XTerm*charClass: Make it easier to cut and paste URLs from an xterm
  • For Example:
    Mosaic*homeDocument: /afs/cs/user/mwm/ftp/www/HomePage 
    Mosaic*defaultWidth:800 
    Mosaic*defaultHeight:875 
    Mosaic*geometry: +0+0 
    Mosaic*PlainFont: -adobe-courier-medium-r-normal-*-14-*-*-*-*-*-iso8859-1 
    Mosaic*Font: -adobe-times-medium-r-normal-*-17-*-*-*-*-*-iso8859-1 
    Mosaic*background: LightCyan 
    Mosaic*visitedAnchorColor: #b0b000000000 
    XTerm*charClass:33:48,35-43:48,45-47:48,58:48,61:48,63-64:48,126:48 
    
    Making Changes If you make any changes to these resources, you'll have to quit XMosaic, load the changes into the X server (using xrdb -load ~/.Xdefaults), and restart XMosaic for them to take effect.

    Define the display tools in the MIME-derived .mailcap file.

    Your ~/.mailcap file defines the tools that will be used to display the data downloaded from the Net. On the IUS Suns you will probably want to use a .mailcap file like the one below.

    Displaying Images For TIFF images you should use xv, but for almost any other format xli is much faster. However, for URT images it's not clear which program to use. To be consistent with other image formats you might prefer xli, but sometimes URT image files are really animations, and then only getx11 can display them. It's up to you, if you prefer xli then delete the line that begins image/x-urt.

    Feel free to change this file to suit your needs, but be aware that Mailcap files are parsed from top to bottom. So make sure you put any generic patterns (e.g., image/*) after the list of exceptions. Otherwise the exceptions will never match, and your special viewers will not be used.

    audio/*; /usr/local/pkg/openwin3.0/bin/audiotool %s
    image/tiff; /usr/local/bin/xv %s
    image/x-urt; /usr/local/pkg/img_utils/bin/getx11 -m %s
    image/*; /usr/local/pkg/img_utils/bin/xli -quiet %s
    video/mpeg; /usr/local/pkg/img_utils/bin/mpeg_play -quiet %s
    video/quicktime; /afs/cs/user/mprice/.bin/sun4_mach/moov %s
    video/*; /usr/local/pkg/img_utils/bin/xanim %s
    application/postscript; /usr/local/bin/gv %s
    application/x-dvi; /usr/local/bin/xdvi %s
    message/rfc822; xterm -e metamail %s
    
    Making Changes You won't need to quit XMosaic, but you will have to select the Reload Config Files choice from the Options menu for these changes to take effect.
    VASC'94 Retreat -- mwm@cmu.edu