configuring VRML .mailcap

Don Brutzman ([email protected])
Mon, 12 Dec 1994 13:54:23 -0800 (PST)


I've followed Scott Nelson's WWWtest page with mixed success.
You can use the guidance in
http://www-dsed.llnl.gov/documents/WWWtest.html
to set up your .mailcap to have a mosaic-type browser spawn the proper viewer
for .iv and .oogl files. So far so good. When I then point mosaic at an
.iv file on an anonymous ftp server or an .iv file on a local host, only
text pops up.

Attached is an extended dialog on this subject. I've been reading RFC 1521
for Multipurpose Internet Mail Extensions (MIME), the html internet draft
and various www help pages without success. I expect that a "mime.types"
file is needed as Scott suggests, but I haven't found a reference to one.

These messages are being forwarded in the hopes that someone on the list
can devise a clean way to configure .mailcap (or embed Content-Type info in
.html links) to facilitate 3D browser launching. Thanks for any help.

regards, Don

-- 
Don Brutzman   Naval Postgraduate School, Code OR/Br     work 408.656.2149
               Monterey California 93943-5000 USA        fax  408.656.2595
AUV Underwater Virtual World ftp://taurus.cs.nps.navy.mil/pub/auv/auv.html

> Re: WWW Viewer Test Page (http://www-dsed.llnl.gov/documents/WWWtest.html) > >Thanks, this is a great resource. > >I've got a bug with viewing inventor files that you might know how to fix. >I can view your pointer to an _OpenInventor document_ and it spawns the >viewer just fine. When I retrieve one of my .iv files, the text of the >file is displayed and no viewer is spawned. This happens with local files >too. > >thanks, Don >-- >Don Brutzman Naval Postgraduate School, Code OR/Br work 408.656.2149 > Monterey California 93943-5000 USA fax 408.656.2595 >AUV Underwater Virtual World ftp://taurus.cs.nps.navy.mil/pub/auv/auv.html

From: "Scott Nelson" <[email protected]> Message-Id: <[email protected]> In-Reply-To: [email protected] (Don Brutzman) "Re: WWW Viewer Test Page" (Dec 10, 8:28pm)

Don,

Re: auv.iv when using ivview as follows on your file, I got the following error:

% ivview auv.iv Reading file(s)... Running ivquicken... Segmentation fault - core dumped Inventor read error: File does not have a valid header string Occurred at line 1 in <user-defined file pointer> Error reading file auv.iv

but if ivquicken was turned off then everything looked OK:

% ivview -q auv.iv

I didn't look to see why ivquicken was failing; I'll leave that little exercise to you...

...

Re: opening local iv files using Mosaic: 1. modify your mailcap file (usually /usr/local/lib/mosaic/mailcap but might be /etc/mailcap. In general, there are several mailcap files on your system -- especially if you have an SGI like I do. Best idea there is to have them all point to a single real file) as follows:

world/vrml; showvrml %s world/iv; showiv %s world/oogl; showoogl %s

where 'showiv' is "ivview", 'showoogl' is "geomview", and 'showvrml' is your favorite VRML viewer.

2. modify your server mime.types file. This is probably why you can see my IV files since my machine is the server. When YOUR machine is the server (i.e. looking at local HTML files) then you have to also modify YOUR mime.types file. This file is usually /usr/local/etc/httpd/conf/mime.types

world/vrml wrl vrml world/iv iv world/oogl oogl

Note also that like mailcap, there are probably several mime.types files on your system. It's best to have them all point to one real file.

If the above solves your problem, then please forward these directions along with any additional comments to [email protected] in case others are having the same problem.

Thanks for your interest. Also, feel free to create pointers from any of your pages to our Viewer Test Page: http://www-dsed.llnl.gov/documents/WWWtest.html

Scott Nelson Lawrence Livermore National Lab

+---------------------------------------------------------+ |Scott D. Nelson B131 Rm2074 email:[email protected] | |Lawrence Livermore National Laboratory | |7000 East Ave., L-153 | |Livermore CA 94550 | +---------------------------------------------------------+

On Dec 11, 5:59pm, Don Brutzman wrote: > Subject: Re: WWW Viewer Test Page >Scott, thanks a lot. I will try what you say tomorrow and will post >confirmed results to the list. > >It looks like it's time for me to take a close read at RFC 1521 (MIME). >I've been using a .mailcap file but didn't know about mime.types >files. Do you know if you can have a local .mime.types file? >Is there a reference for SGIs other than RFC 1521? I didn't see a >mime.types file on our system. > >I've already put a pointer to your web page on ours, thanks again. > >regards, Don >-- >Don Brutzman Naval Postgraduate School, Code OR/Br work 408.656.2149 > Monterey California 93943-5000 USA fax 408.656.2595 >AUV Underwater Virtual World ftp://taurus.cs.nps.navy.mil/pub/auv/auv.html

From: "Scott Nelson" <[email protected]> In-Reply-To: [email protected] (Don Brutzman) "Re: WWW Viewer Test Page" (Dec 11, 5:59pm)

If you have an httpd server running then the mime.types file is in /usr/local/etc/httpd/conf

If you have zmail (MediaMail) then the mime.types file is actually one or more of the following: /usr/lib/Zmail/attach.types /usr/lib/Zmail/bin/type-by-suffix /usr/lib/Zmail/bin/type-by-magic

There are also mailcap files (either the above) or in /etc and /usr/local/lib/mosaic

Hope this helps...

SDN

-- 

+---------------------------------------------------------+ |Scott D. Nelson B131 Rm2074 email:[email protected] | |Lawrence Livermore National Laboratory | |7000 East Ave., L-153 | |Livermore CA 94550 | +---------------------------------------------------------+