From: Hansang Bae (hbae@xxxxxxxxxx)
Date: Sun Jun 23 2002 - 00:19:58 GMT-3
At 12:08 PM 6/21/2002 -0700, Christopher Jarosz wrote:
>Just a quick stupid question, has anyone installed the Cisco Documents CDROM
>on a Linux system ? I know that you can install it on almost anything else
>(Solaris, SunOS, HPUX, AIX...etc).
**************************************************************************
From: Question 51
Date: 02 February 2002
Subject: How do I use the Cisco Documentation CD (UniverseCD) under Linux?
Answer by: Vincent C Jones VCJones@NetworkingUnlimited.com
Another option is to suffer like us Linux users and forego the
ability to search the CD (but hey, for that you can go online). The
technique below works fine if your platform can run an Apache web
server. Note the update for more recent CD's which use bzip2 rather
than gzip compression.
Using Apache/1.3.3, I use these configuration directives:
-----CUT HERE-----
Alias /cisco/ /cisco-cdrom-mount-point/
<Directory /cisco-cdrom-mount-point>
Options Indexes
AllowOverride None
order deny,allow
deny from all
allow from localhost
</Directory>
<Location /cisco/cc/>
AddEncoding x-gzip htm pdf
</Location>
-----CUT HERE-----
and then, you should be able to acces all compressed contents!
Start with 'http://localhost/cisco/home/home.htm'.
All the trick is to make Apache tell netscape (or ie, or lynx)
that contents must be gunziped (HTTP/1.1 Mime-Encoding header).
**************************************************************************---
Update added July 15, 2000 by Dr Vincent C Jones, PE:
Starting July 2000 or so, the encoding switched to bzip2. So change
the apache entries to "x-bzip" and add bzip entries if required to
/opt/netscape/Netscape.ad as shown below
*encodingFilters: \
x-compress : : .Z : uncompress -c \n\
compress : : .Z : uncompress -c \n\
x-bzip : : .bz,.bz2 : bzip2 -cdq \n\
bzip : : .bz,.bz2 : bzip2 -cdq \n\
x-gzip : : .z,.gz : gzip -cdq \n\
gzip : : .z,.gz : gzip -cdq \n
=================================================================
And the following will be added to the next FAQ.
**************************************************************************---
No problem, hope it helps. Small change... I should have known better
than to have trusted user input :)
After:
FILE=${BASE}${PATH_INFO}
Add:
# Sanitize the filename...
FILE=`echo $FILE | sed 's/[^A-Za-z0-9\.\/\_]//g'`
FILE=`echo $FILE | sed 's/\.\.//g'`
Sean
On Wed, 2002-05-29 at 21:11, Hansang Bae wrote:
> Thank you. I'll add it to the next FAQ (in a few weeks as I just posted a ne
w version)
>
>
>
> On 03:11 PM 5/28/2002 -0500, Sean A. Walberg wrote:
> >Hi,
> >
> >As you mention in the Cisco FAQ, the newer documentation CDs are bzipped.
> >Adding the encoding line to my xresources and updating apache fixes it for
> >netscape, but I'm unable to use either mozilla (linux) or IE (windows).
> >
> >What I ended up doing was writing a quick CGI in shell that lets you
> >browse the CD. Toss the script in cgi-bin, change the BASE variable to
> >point to your CD mount point, and then hit /cgi-bin/doccd/. You can see
> >it running at
> >
> >http://ertw.com/cgi-bin/doccd/
> >
> >Nothing too fancy, but maybe it'll save someone some aggravation down the
> >road.
hsb
This archive was generated by hypermail 2.1.4 : Tue Jul 02 2002 - 08:12:40 GMT-3