Re: so how do the pros read all those .gz docs, zless?
At 14:24 Uhr +0200 14.06.2002, Ulf Rompe wrote: Chris Gushue [EMAIL PROTECTED] writes: I wish more things supported transparently viewing gzipped files :) I remember there once was a library which overloaded the original libc functions for opening files. You had to preload it by setting the variable LD_PRELOAD to this lib (like you do with libtrash). Once you had done that, all and every program was able to read compressed files transparently! OK, after searching with Google I found out that this this is in Debian. Of course, yeah, how could I even THINK of something NOT being part of Debian - besides XFree 4.2. :-) zlibc - Uncompressing C Library There's also AVFS, which can do more than just unpack gz (i.e. RPM and so on): http://www.inf.bme.hu/~mszeredi/avfs/ http://sourceforge.net/projects/avf/ http://a5.68k.org/~frederik/avfs/ Christian Jaeger (sales_plugusing it successfully in our content management system/sales_plug) -- Christian Jaeger Programmer System Engineer +41 1 430 45 26 ETHLife CMS Project - www.ethlife.ethz.ch/newcms - www.ethlife.ethz.ch -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: so how do the pros read all those .gz docs, zless?
#include hallo.h Derrick 'dman' Hudson wrote on Wed Jun 12, 2002 um 11:59:48PM: links or galeon. Galeon will automatically decompress the gzipped ones (IIRC). Wrong. Netscape 4.x did, Mozilla and Galeon do not. Gruss/Regards, Eduard. -- Es kann aeusserst gefaehrlich sein, etwas ohne ausreichende Vorbereitung aus der Sicht eines anderen Menschen zu betrachten. === Douglas Adams / Einmal Rupert und zurueck === pgpid85CWPIK7.pgp Description: PGP signature
Re: so how do the pros read all those .gz docs, zless?
Chris Gushue [EMAIL PROTECTED] writes: I wish more things supported transparently viewing gzipped files :) I remember there once was a library which overloaded the original libc functions for opening files. You had to preload it by setting the variable LD_PRELOAD to this lib (like you do with libtrash). Once you had done that, all and every program was able to read compressed files transparently! OK, after searching with Google I found out that this this is in Debian. Of course, yeah, how could I even THINK of something NOT being part of Debian - besides XFree 4.2. :-) zlibc - Uncompressing C Library Zlibc is a preloadable shared object that allows executables to uncompress the data files that they need on the fly. No kernel patch, no recompilation of these executables and no recompilation of the libraries is needed. [x] ulf -- Nur wer selbst brennt, kann Feuer in anderen entfachen. (Augustinus) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: so how do the pros read all those .gz docs, zless?
On Thu, Jun 13, 2002 at 08:13:42AM +0800, Dan Jacobson wrote: | Lots of /usr/share/doc's are in .gz format. Nicely compressed to conserve your disk space :-). | What does Joe Average do to read them, zcat, zless, etc. over and | over? I don't know, I'm not Joe Average. (some people call me weird) I use either zless (just like I would have used 'less' if it wasn't compressed) or more often 'view' (vim in read-only mode; vim6 automatically decompresses .gz files). | (Nifty me of course | uses emacs' dired's v with auto-compression-mode on. Seems to be | ideal. | However then one encounters patches of HTML docs, which seem | best suited for galeon, mozilla, not w3...) links or galeon. Galeon will automatically decompress the gzipped ones (IIRC). | By the way I installed all those linux journals issue ...22, 33, | 44... and was surprised to see that there was some wrapping paper that | ended up in /usr/share/doc Every package is required (by Policy) to have some documentation in /usr/share/doc/package-name/. Some have better docs than others, though, and some have so much documentation that it's in a separate package. -D -- Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge Him, and He will make your paths straight. Proverbs 3:5-6 http://dman.ddts.net/~dman/ pgp4jYKdYCuzA.pgp Description: PGP signature
Re: so how do the pros read all those .gz docs, zless?
Derrick 'dman' Hudson wrote: I use either zless (just like I would have used 'less' if it wasn't compressed) or more often 'view' (vim in read-only mode; vim6 automatically decompresses .gz files). I'm pretty sure that Vim 5.x (5.6? 5.7?) did in Debian as well. I wish more things supported transparently viewing gzipped files :) -- Chris Gushue [EMAIL PROTECTED] http://www.blackplasma.net http://bplog.blackplasma.net -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: so how do the pros read all those .gz docs, zless?
On Thu, Jun 13, 2002 at 08:13:42AM +0800, Dan Jacobson wrote: Lots of /usr/share/doc's are in .gz format. What does Joe Average do to read them, zcat, zless, etc. over and over? (Nifty me of course uses emacs' dired's v with auto-compression-mode on. Seems to be ideal. However then one encounters patches of HTML docs, which seem best suited for galeon, mozilla, not w3...) Lynx will show you the text.gz without problems, and of course handle the html. I pretty much reflexively type lynx /usr/share/doc/foo before I even try man foo. dt -- Dave Thayer | If trees could scream, would we be so cavalier about Denver, Colorado USA | cutting them down? We might, if they screamed all [EMAIL PROTECTED] | the time, for no good reason. - Jack Handey -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: so how do the pros read all those .gz docs, zless?
On Wed, 2002-06-12 at 22:00, Chris Gushue wrote: Derrick 'dman' Hudson wrote: I use either zless (just like I would have used 'less' if it wasn't compressed) or more often 'view' (vim in read-only mode; vim6 automatically decompresses .gz files). I'm pretty sure that Vim 5.x (5.6? 5.7?) did in Debian as well. I wish more things supported transparently viewing gzipped files :) I put ' LESSOPEN=|/usr/bin/lesspipe %s ' in /etc/profile, and less will transparently unzip and display the file. I'd say I'm pretty much joe average: emacs isn't even on my system, and after two years of using linux I still don't know how to cut and paste in vim :) -- First Impressions are Bunk. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: so how do the pros read all those .gz docs, zless?
I put ' LESSOPEN=|/usr/bin/lesspipe %s ' in /etc/profile, and less will transparently unzip and display the file. Does debian ship /usr/bin/lesspipe? In what package? I always have it set to LESSOPEN=|lesspipe.sh %s and it finds ~/bin/lesspipe.sh in my home directory. Bob pgpz69WXXlFIp.pgp Description: PGP signature
Re: so how do the pros read all those .gz docs, zless?
On 0, Bob Proulx [EMAIL PROTECTED] wrote: I put ' LESSOPEN=|/usr/bin/lesspipe %s ' in /etc/profile, and less will transparently unzip and display the file. Does debian ship /usr/bin/lesspipe? In what package? I always have it set to LESSOPEN=|lesspipe.sh %s and it finds ~/bin/lesspipe.sh in my home directory. # dpkg -S /usr/bin/lesspipe less: /usr/bin/lesspipe There you go. In woody, at least. Tom -- Tom Cook Information Technology Services, The University of Adelaide There are few things more satisfying than seeing your children have teenagers of their own. - Doug Larson Get my GPG public key: https://pinky.its.adelaide.edu.au/~tkcook/tom.cook-at-adelaide.edu.au pgpQiW2RN6Gvt.pgp Description: PGP signature
Re: so how do the pros read all those .gz docs, zless?
On Thu, Jun 13, 2002 at 08:13:42AM +0800, Dan Jacobson wrote: Lots of /usr/share/doc's are in .gz format. What does Joe Average do to read them, zcat, zless, etc. over and over? (Nifty me of course uses emacs' dired's v with auto-compression-mode on. Seems to be ideal. However then one encounters patches of HTML docs, which seem best suited for galeon, mozilla, not w3...) w3m handles .gz and html nicely. -- Note that I use Debian version 3.0 Linux emac140 2.4.17 #1 sön feb 10 20:21:22 CET 2002 i686 unknown Hans Ekbrand pgpWwrrTcXYTo.pgp Description: PGP signature
Re: so how do the pros read all those .gz docs, zless?
Does debian ship /usr/bin/lesspipe? In what package? I always have [...] # dpkg -S /usr/bin/lesspipe less: /usr/bin/lesspipe There you go. In woody, at least. I must have been blind because I see it now too. In any case the installation of less includes a debconf that says this: less itself is only able to display plain text. But with the help of an appropriate input filter, it can be used to display various binary data, ranging from gzip compressed text files to tar archives and debian packages. For detailed information about how to use input filters with less, see the file /usr/share/doc/less/LESSOPEN or the manpage lesspipe(1). Bob pgpL4h2vQB7ja.pgp Description: PGP signature
Re: so how do the pros read all those .gz docs, zless?
On Thu, Jun 13, 2002 at 08:13:42AM +0800, Dan Jacobson wrote: Lots of /usr/share/doc's are in .gz format. What does Joe Average do to read them, zcat, zless, etc. over and over? $ mc point and F3 mc is selected by tasksel with newbie option. -- ~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~ + Osamu Aoki @ Cupertino CA USA See User's Guide: http://www.debian.org/doc/manuals/users-guide/ See Debian reference: http://www.debian.org/doc/manuals/reference/ Debian reference Project at: http://qref.sf.net I welcome your constructive criticisms and corrections. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: so how do the pros read all those .gz docs, zless?
On Thu, Jun 13, 2002 at 08:13:42AM +0800, Dan Jacobson wrote: Lots of /usr/share/doc's are in .gz format. What does Joe Average do to read them, zcat, zless, etc. over and over? (Nifty me of course uses emacs' dired's v with auto-compression-mode on. Seems to be ideal. However then one encounters patches of HTML docs, which seem best suited for galeon, mozilla, not w3...) There are also pdf and dvi documents to consider. The mime-support package, which I imagine is installed on your system, contains run-mailcap. Invoking it as `see' you'll be able to view a doc with a program determined from the entries in the mime.types and mailcap files in /etc. Personally, I customise ~/.mailcap with viewing programs of my choice. Brian. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: so how do the pros read all those .gz docs, zless?
Just install mc and browse to the docs dir and press F3 ya cant live without it :) -Matt - Original Message - From: Brian Potkin [EMAIL PROTECTED] To: debian-user@lists.debian.org Sent: Thursday, June 13, 2002 7:22 PM Subject: Re: so how do the pros read all those .gz docs, zless? On Thu, Jun 13, 2002 at 08:13:42AM +0800, Dan Jacobson wrote: Lots of /usr/share/doc's are in .gz format. What does Joe Average do to read them, zcat, zless, etc. over and over? (Nifty me of course uses emacs' dired's v with auto-compression-mode on. Seems to be ideal. However then one encounters patches of HTML docs, which seem best suited for galeon, mozilla, not w3...) There are also pdf and dvi documents to consider. The mime-support package, which I imagine is installed on your system, contains run-mailcap. Invoking it as `see' you'll be able to view a doc with a program determined from the entries in the mime.types and mailcap files in /etc. Personally, I customise ~/.mailcap with viewing programs of my choice. Brian. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
mc-like X app (was: Re: so how do the pros read all those .gz docs, zless?)
Just install mc and browse to the docs dir and press F3 ya cant live without it :) I can't ;-) does anyone know an X alternative to it? imho, gmc is not worth being called the gnome mc, and xnc is't too user-friendly either. The ultimate graphical file manager for me would look like WinCommander (ghisler.com). Total mouseless control, and able to preview files (even images and movies, in combination with IrfanView) in one pane, while browsing in the other. works under wine, too (at least the registered version) Anybody know of such an X program? (if it is as good as WinCmd, I'd even pay for it - even if it releases under GPL, which is better of course) Thanks ahead, Joris -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: mc-like X app (was: Re: so how do the pros read all those .gz docs, zless?)
On Thu, Jun 13, 2002 at 02:10:31PM +0200, Joris wrote: Just install mc and browse to the docs dir and press F3 ya cant live without it :) I can't ;-) does anyone know an X alternative to it? imho, gmc is not worth being called the gnome mc, and xnc is't too user-friendly either. Try emelfm. There is a deb package. Else try linux commander. They are x versions of mc. Regards, -- Sridhar M.A. Only a fool has no doubts. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: mc-like X app (was: Re: so how do the pros read all those .gz docs, zless?)
Joris([EMAIL PROTECTED]) is reported to have said: Just install mc and browse to the docs dir and press F3 ya cant live without it :) I can't ;-) does anyone know an X alternative to it? imho, gmc is not worth being called the gnome mc, and xnc is't too user-friendly either. Have you tried tkdesk? -- User error: replace user and press any key to continue. ___ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: so how do the pros read all those .gz docs, zless?
On Thu, Jun 13, 2002 at 08:08:25PM +1000, Matt Chipman wrote: Just install mc and browse to the docs dir and press F3 ya cant live without it :) I have mc running permanently on one virtual terminal and use it frequently so I wouldn't dream of challenging your second statement. Pressing F3 invokes the internal file viewer (if it is enabled via the Options menu) which is fine for text files, not wonderful for html and definitely of limited use with dvi files. Highlighting the file and pressing enter is much more useful for me as it displays html and dvi files with either lynx or dvisvga respectively. It works this magic via /etc/mc/mc.ext which uses run-mailcap to determine which viewer you want for a particular file type. Brian. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: so how do the pros read all those .gz docs, zless?
On Wed, Jun 12, 2002 at 10:23:23PM -0700, Rich Rudnick wrote: | On Wed, 2002-06-12 at 22:00, Chris Gushue wrote: | Derrick 'dman' Hudson wrote: | I use either zless (just like I would have used 'less' if it wasn't | compressed) or more often 'view' (vim in read-only mode; vim6 | automatically decompresses .gz files). | | I'm pretty sure that Vim 5.x (5.6? 5.7?) did in Debian as well. I wish | more things supported transparently viewing gzipped files :) Wichert included a bunch of autocommands (that won't work in vim 6) in /etc/vimrc with the 5.x packages. | I'd say I'm pretty much joe average: emacs isn't even on my system, and | after two years of using linux I still don't know how to cut and paste | in vim :) Press 'v' to enter VISUAL mode. Then move the cursor to select the text area you want. 'y' will yank (copy) the text to the cut-buffer. 'p' will paste that text after the cursor location, 'P' will paste before the cursor location. Or just use the mouse :-). -D -- All a man's ways seem innocent to him, but motives are weighed by the Lord. Proverbs 16:2 http://dman.ddts.net/~dman/ pgpg8cU4YZ2ra.pgp Description: PGP signature
Re: so how do the pros read all those .gz docs, zless?
On Thu, Jun 13, 2002 at 11:43:59AM -0500, Derrick 'dman' Hudson wrote: On Wed, Jun 12, 2002 at 10:23:23PM -0700, Rich Rudnick wrote: | I'd say I'm pretty much joe average: emacs isn't even on my system, and | after two years of using linux I still don't know how to cut and paste | in vim :) Press 'v' to enter VISUAL mode. Then move the cursor to select the text area you want. 'y' will yank (copy) the text to the cut-buffer. 'p' will paste that text after the cursor location, 'P' will paste before the cursor location. Or just use the mouse :-). Or yaction to yank simple text areas: for example, yw yanks a word, yy a line, and y} from the cursor to the end of the paragraph. -- Colin Watson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]