* Re: File associations in Linux
File associations in Linux Victor Tsaran
@ ` Jacob Schmude
` Victor Tsaran
` Chris Nestrud
` Kirk Reiser
1 sibling, 2 replies; 5+ messages in thread
From: Jacob Schmude @ UTC (permalink / raw)
To: speakup; +Cc: Speakup List
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Certainly! First, look at your lynx.cfg and make sure it has
"GLOBAL_MAILCAP" or something like that defined, and edit that file it
refers to. On redhat and debian systems its /etc/mailcap but on
slackware, the user needs to define this. Now, look at your mime.types
(usually /etc/mime.types, but on slackware this needs to be created as
well) and see if it has entries for the pls extension. If not, add a
mime type. Your mime type and the server's mime type must match, use D
in links and it will give you a content-type. Mine looks like this:
audio/x-scpls pls
Then go back to lynx.cfg and make sure it has the global mime type file
set to /etc/mime.types. Now here comes some bad news. Some servers, ACB
radio for example, have the pls file as text/plain. In this situation,
you don't want to have freeamp played on the text/plain mime type, so
you can't do anything except download the pls file and set freeamp loose
on it. However, if it has a mime type for pls and you've added it, now
put the following in your /etc/mailcap file (or wherever you defined it
to be in lynx.cfg):
audio/x-scpls; freeamp %s (substitute the mime type if necessary)
That's it. The same thing applies to other file types as well.
On Sun, 16 Apr 2000, Victor Tsaran wrote:
> Hello, listers!
> I understand that in order for, say, Lynx to recognize .pls files as those
> to be played by FreeAmp, one needs to edit .mailcap file. However, is there
> such a thing to have these associations to be applied accross the whole
> operating environment?
> thanks in advance,
> Vic
>
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
Jacob Schmude
mailto:jacobs@ncinter.net
ICQ: 53401220
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: Made with pgp4pine
iD8DBQE4+n77wQVAN6Zb5dARAiY1AJ9TZU4hk3g+k0Jz4bBYnG7RXKisUwCfUC7E
iq0t4pXawVw37nj3cbjp6v0=
=iAp/
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 5+ messages in thread
* File associations in Linux
@ Victor Tsaran
` Jacob Schmude
` Kirk Reiser
0 siblings, 2 replies; 5+ messages in thread
From: Victor Tsaran @ UTC (permalink / raw)
To: Speakup List
Hello, listers!
I understand that in order for, say, Lynx to recognize .pls files as those
to be played by FreeAmp, one needs to edit .mailcap file. However, is there
such a thing to have these associations to be applied accross the whole
operating environment?
thanks in advance,
Vic
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: File associations in Linux
` Jacob Schmude
@ ` Victor Tsaran
` Chris Nestrud
1 sibling, 0 replies; 5+ messages in thread
From: Victor Tsaran @ UTC (permalink / raw)
To: speakup
Thanks, Jacob!
That was very useful. Gonna try it now.
regards,
Vic
----- Original Message -----
From: "Jacob Schmude" <jacobs@ncinter.net>
To: <speakup@braille.uwo.ca>
Cc: "Speakup List" <speakup@speech.braille.uwo.ca>
Sent: Sunday, April 16, 2000 8:03 PM
Subject: Re: File associations in Linux
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Certainly! First, look at your lynx.cfg and make sure it has
> "GLOBAL_MAILCAP" or something like that defined, and edit that file it
> refers to. On redhat and debian systems its /etc/mailcap but on
> slackware, the user needs to define this. Now, look at your mime.types
> (usually /etc/mime.types, but on slackware this needs to be created as
> well) and see if it has entries for the pls extension. If not, add a
> mime type. Your mime type and the server's mime type must match, use D
> in links and it will give you a content-type. Mine looks like this:
> audio/x-scpls pls
> Then go back to lynx.cfg and make sure it has the global mime type file
> set to /etc/mime.types. Now here comes some bad news. Some servers, ACB
> radio for example, have the pls file as text/plain. In this situation,
> you don't want to have freeamp played on the text/plain mime type, so
> you can't do anything except download the pls file and set freeamp loose
> on it. However, if it has a mime type for pls and you've added it, now
> put the following in your /etc/mailcap file (or wherever you defined it
> to be in lynx.cfg):
> audio/x-scpls; freeamp %s (substitute the mime type if necessary)
>
> That's it. The same thing applies to other file types as well.
>
>
> On Sun, 16 Apr 2000, Victor Tsaran wrote:
>
> > Hello, listers!
> > I understand that in order for, say, Lynx to recognize .pls files as
those
> > to be played by FreeAmp, one needs to edit .mailcap file. However, is
there
> > such a thing to have these associations to be applied accross the whole
> > operating environment?
> > thanks in advance,
> > Vic
> >
> >
> >
> > _______________________________________________
> > Speakup mailing list
> > Speakup@braille.uwo.ca
> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> >
>
> Jacob Schmude
> mailto:jacobs@ncinter.net
> ICQ: 53401220
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.1 (GNU/Linux)
> Comment: Made with pgp4pine
>
> iD8DBQE4+n77wQVAN6Zb5dARAiY1AJ9TZU4hk3g+k0Jz4bBYnG7RXKisUwCfUC7E
> iq0t4pXawVw37nj3cbjp6v0=
> =iAp/
> -----END PGP SIGNATURE-----
>
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: File associations in Linux
File associations in Linux Victor Tsaran
` Jacob Schmude
@ ` Kirk Reiser
1 sibling, 0 replies; 5+ messages in thread
From: Kirk Reiser @ UTC (permalink / raw)
To: speakup; +Cc: Speakup List
There is a small tarball in the linux/goodies directory called
mailcapstuff.tar.gz which has copies of my .mime.types and .mailcap.
You could unpack that into you home directory and edit the .mailcap
for your tools. I think mine is set up to use aplay, freeamp and rap
if I'm not mistaken.
Kirk
--
Kirk Reiser The Computer Braille Facility
e-mail: kirk@braille.uwo.ca University of Western Ontario
phone: (519) 661-3061
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: File associations in Linux
` Jacob Schmude
` Victor Tsaran
@ ` Chris Nestrud
1 sibling, 0 replies; 5+ messages in thread
From: Chris Nestrud @ UTC (permalink / raw)
To: speakup; +Cc: Speakup List
I found that on some sites such as shoutcast.com, the file passed to
freeamp doesn't end in .pls. I made a script /usr/local/bin/lynxfreeamp
arg1 arg2 which just adds the extention arg2 to the file arg1, then runs
freeamp with the new file, then deletes the file when finished. Script
below.
#cut here#
#!/bin/bash
mv $1 $1.$2
freeamp $1.$2
rm $1.$2
#cut here#
Then I just use '/usr/local/bin/lynxfreeamp %s extention' where
'extention' is the extention the file should have when sent to
freeamp.
Chris
On Sun, 16 Apr 2000, Jacob Schmude wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Certainly! First, look at your lynx.cfg and make sure it has
> "GLOBAL_MAILCAP" or something like that defined, and edit that file it
> refers to. On redhat and debian systems its /etc/mailcap but on
> slackware, the user needs to define this. Now, look at your mime.types
> (usually /etc/mime.types, but on slackware this needs to be created as
> well) and see if it has entries for the pls extension. If not, add a
> mime type. Your mime type and the server's mime type must match, use D
> in links and it will give you a content-type. Mine looks like this:
> audio/x-scpls pls
> Then go back to lynx.cfg and make sure it has the global mime type file
> set to /etc/mime.types. Now here comes some bad news. Some servers, ACB
> radio for example, have the pls file as text/plain. In this situation,
> you don't want to have freeamp played on the text/plain mime type, so
> you can't do anything except download the pls file and set freeamp loose
> on it. However, if it has a mime type for pls and you've added it, now
> put the following in your /etc/mailcap file (or wherever you defined it
> to be in lynx.cfg):
> audio/x-scpls; freeamp %s (substitute the mime type if necessary)
>
> That's it. The same thing applies to other file types as well.
>
>
> On Sun, 16 Apr 2000, Victor Tsaran wrote:
>
> > Hello, listers!
> > I understand that in order for, say, Lynx to recognize .pls files as those
> > to be played by FreeAmp, one needs to edit .mailcap file. However, is there
> > such a thing to have these associations to be applied accross the whole
> > operating environment?
> > thanks in advance,
> > Vic
> >
> >
> >
> > _______________________________________________
> > Speakup mailing list
> > Speakup@braille.uwo.ca
> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> >
>
> Jacob Schmude
> mailto:jacobs@ncinter.net
> ICQ: 53401220
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.1 (GNU/Linux)
> Comment: Made with pgp4pine
>
> iD8DBQE4+n77wQVAN6Zb5dARAiY1AJ9TZU4hk3g+k0Jz4bBYnG7RXKisUwCfUC7E
> iq0t4pXawVw37nj3cbjp6v0=
> =iAp/
> -----END PGP SIGNATURE-----
>
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~ UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
File associations in Linux Victor Tsaran
` Jacob Schmude
` Victor Tsaran
` Chris Nestrud
` Kirk Reiser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).