Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: viewing man pages, on non networked machine< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Aug. 22 2005,18:52 QUOTE

UCI extensions do not initially write anything to the system, except to create a mountpoint, and the optional menu item and desktop icon.  Even if they could write to the system, they should not overwrite the current files except in very special cases. Any deletion or overwriting of files is up to the user (in my opinion).

If you have an extension such as this, which uses the same command as an existing program, you could also have done one of the following to run the new program:
1) Use the full path to the program (/opt/man/bin man <manpage>, as stated in the *info file*)
2) Add the /opt/man/bin path to the beginning of your PATH variable:
export PATH="/opt/man/bin:$PATH"
Putting it at the beginning causes the new man to be found before the old one.
3) Create a symlink to the executable in a directory which is already in your path.

The main reason for doing one of the above, particularly in a HD install, is that the original man script is left untouched.  By overwriting that script, you now no longer have the ability to use it.  Also, you will now need to remount the man.uci, or copy the original script back, in order to use a man program after a reboot.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
dbickin Offline





Group: Members
Posts: 23
Joined: Mar. 2005
Posted: Aug. 22 2005,23:31 QUOTE

Well, I did rename the original man script, though I can't imagine why since it was useless. (No network means the extent of its usefulness was saying "host not found".)

Smarter would have been to take the time to see how much duplication I now have. I found the actual manpages sitting on my drive, I just lacked the program to read them. Now I have the program plus a whole new set of man pages to go with it.

A project for another day.

David
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Aug. 02 2006,22:11 QUOTE

Digging up this year-old thread just because i bumped into something last night that I prefer to the bulky man package and its dependencies, at least in DSL.  The application man2html works, I assume, as a stream editor of sorts so it doesn't require nroff, groff, and whatever else man uses.  I use this command to convert and display man formatted pages in netrik:
Code Sample
man2html /path/to/file | netrik -


Of course, man2html is not a part of DSL, but it can be extracted from a debian package (i don't think it's in man.uci, but maybe...).  It's a single file that can be run from anywhere, and has no additional dependencies.
http://packages.debian.org/cgi-bin....ase=all
http://www.oac.uci.edu/indiv/ehood/man2html.html

This is what I have in my Midnight Commander extensions file, to run this command automatically when i press Enter on a man file:
Code Sample
# Manual page
# Exception - .so libraries are not manual pages
regex/\.(so|so\.[0-9\.]*)$
       Open=
       
regex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])|\.man)$
       Open=man2html %f | netrik -


I tried getting it piped to Dillo, but so far no luck without first creating a file.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
7 replies since Aug. 18 2005,21:58 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: viewing man pages

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code