Re: [NTLK] Installing pkg with webserver

From: John Charlton (johncharlton_at_mac.com)
Date: Thu Mar 20 2003 - 05:08:08 PST


On Thursday, Mar 20, 2003, at 03:46 America/Montreal, Robert Benschop
wrote:

>> On OS X you may look in: /private/etc/httpd/mime.types
>> I added the line: application/x-newton-compatible-pkg pkg
>
> John, you care to elaborate on that? Checked for 'private' and just
> found an empty folder and a search for 'mime' didn't yield anything
> like this either...

Ah, are you looking from the Finder or from Terminal.app? The Finder
cleverly hides some files from you. (There are some programs which will
reveal all.)

If you open a shell (Applications/Utilities/Terminal) type in the
command (sans quotes):

"cd /private/etc/httpd"

(If that returns an error something is amiss with your OS X
installation that I don't know about.)

Then about the simplest way to add the line you need would be:

hang on, that didn't work... Dang permissions. Try:

"sudo pico mime.types"

You'll be prompted for your Administrator password, then the pico
editor should start. Scroll down to the bottom (Control-V goes by page,
it's a long file) and type in a new line as above. Write the file with
Control-O, then exit with Control-X. Voila. I hope. Start your personal
web-sharing in Control Panels, put the Newton files in your 'Sites'
directory and I believe you should be able to get them with:

"http://your.ip.address/~yourshortname/newton.pkg

or something along those lines (don't have time to check right now,
already late for coffee). Nethopper should like it, browsing it on my
Mac made the Package Installer choke.

One word of warning, spaces in file names are a problem. Replace the
space with %20 in the URL field should work, again, sorry, no time to
check.

Good luck,

jc

-- 
This is the NewtonTalk list - http://www.newtontalk.net/ for all inquiries
List FAQ/Etiquette/Terms: http://www.newtontalk.net/faq.html
Official Newton FAQ: http://www.chuma.org/newton/faq/


This archive was generated by hypermail 2.1.5 : Thu Mar 20 2003 - 11:30:00 PST