Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 20 May 2013, 12:13
All times are UTC - 4
 Forum index » House Training » Bugs ( Submit bugs )
Needless man files?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 4 [46 Posts]   Goto page: 1, 2, 3, 4 Next
Author Message
8-bit


Joined: 03 Apr 2007
Posts: 3012
Location: Oregon

PostPosted: Sat 21 Nov 2009, 15:42    Post subject:  Needless man files?
Subject description: unused man pages
 

RANT
Puppy 4.3.1 seems to have a number of man directories each containing information on programs in puppy or installed programs.

One directory is /usr/man.
Another is /usr/share/man.
Another is /usr/local/man.
And yet another created by an installed program is /usr/local/shared/man.

Yet when you open a terminal and type "man [name of program], the local man page is not found and displayed.

Having to hunt down the correct man directory/subdirectory with the name of the installed program,
opening a terminal in that directory, and typing
"nroff -man [complete name of man page]" seems to be a pain.

When you just open a terminal and type man [program name], you see some searching done and the file is not found so a default to the internet for a man page is done.

So are these man pages in the original, not htm, format wasted space?
I tried doing a "man program name from all the man directories using the names given and they just seem to be invisible to the man command.
If you have man pages locally, and they are not used, why even have them?

When I used Puppy 4.2.1, the man command seemed to find local man pages and display them.
What changed?

END OF RANT

Last edited by 8-bit on Sat 21 Nov 2009, 23:25; edited 1 time in total
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1229
Location: Ukraine

PostPosted: Sat 21 Nov 2009, 17:02    Post subject:  

Dear 8-bit,

Man needs config info found in /etc/ (either man.conf, manpath.config or man.config - or all three). The important lines in these files point to the dirs in which man pages are stored. Boot 4.21 and do an ls /etc/man*. You will find the necessary files and they should work in 4.3.1. If they already exist, edit the files to reflect the location of your man pages.

With kind regards,
vovchik
Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3012
Location: Oregon

PostPosted: Sat 21 Nov 2009, 20:27    Post subject:  

the man command seems to be ignoring the man.conf file andonly doing a search in /usr/share/doc!
I found the man.conf file on both Puppy 4.21 and Puppy 4.3.1.
It did not even make a difference as to adding a complete path to a man file.
So it looks like the search for a man file seems to be restricted to /usr/share/doc.
But where do I add the parameters/path for man to search.
As I said, man seems to be ignoring it's own configuration file.

If you open ROX and navigate to a man page, note the name of the file.
Then open a terminal and type "man [name of file] without the .8 or .1 whatever be the case.
You will see a search of /usr/share/doc with all the html files being stated as "not a directory"
So it is my opinion that something in where man searches for the man files is broke!

terminal output of existing man page in the path shown in man.conf

# man ufiformat
find: /usr/share/doc/hiawatha.htm/: Not a directory
find: /usr/share/doc/release-4.0.8.htm/: Not a directory
find: /usr/share/doc/release-4.0.9.htm/: Not a directory
find: /usr/share/doc/release-4.1.0.htm/: Not a directory
find: /usr/share/doc/release-4.1.1.htm/: Not a directory
find: /usr/share/doc/release-4.1.2.htm/: Not a directory
find: /usr/share/doc/release-4.3.1.htm/: Not a directory
find: /usr/share/doc/hiawatha.htm/: Not a directory
find: /usr/share/doc/release-4.0.8.htm/: Not a directory
find: /usr/share/doc/release-4.0.9.htm/: Not a directory
find: /usr/share/doc/release-4.1.0.htm/: Not a directory
find: /usr/share/doc/release-4.1.1.htm/: Not a directory
find: /usr/share/doc/release-4.1.2.htm/: Not a directory
find: /usr/share/doc/release-4.3.1.htm/: Not a directory
default
#
That is what I am trying to show. man is not using it's own configuration file to find man pages.
Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3012
Location: Oregon

PostPosted: Sat 21 Nov 2009, 23:21    Post subject:  

I found that the man command in both Puppy 4.3.1 and Puppy 4.2.1 are script files.
The man script file in Puppy 4.2.1 is an older version. But after renaming /usr/bin/man to usr/bin/new_man, and coping the man script from Puppy 4.2.1,
the man command worked correctly.
So why did the script get changed?
Was it to try to support the htm files in /usr/doc?
Both man scripts appear to have been made by Barry K.
Back to top
View user's profile Send private message 
alienjeff


Joined: 08 Jul 2006
Posts: 2290
Location: Winsted, CT - USA

PostPosted: Sun 22 Nov 2009, 00:09    Post subject:  

8-bit wrote:
Both man scripts appear to have been made by Barry K.

There's your answer...

_________________
hangout: ##arch-ftw on irc.freenode.net
diversion: http://alienjeff.net - visit The Fringe
quote: "The foundation of authority is based upon the consent of the people." - Thomas Hooker

Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3012
Location: Oregon

PostPosted: Sun 22 Nov 2009, 00:20    Post subject:  

That is not the answer.
The man script from Puppy 4.2.1 seems to find local man pages and htm files fine.
But it fails at properly finding help for programs and commands that have to bi accessed online from die.net.

On the other hand, the man script from Puppy 4.3.1 does not find local man pages, but it succeeds at finding the info online at die.net.

I am not experienced enough yet to combine both scripts into one that finds local man pages and htm files and also finds and displays online content.
Back to top
View user's profile Send private message 
sikpuppy


Joined: 29 Mar 2009
Posts: 433

PostPosted: Sun 22 Nov 2009, 03:21    Post subject:  

It would be really nice if the man command actually worked as a command line tool. Having it automagically connect to the internet is very neat, but when I need a man page I am more often than not totally disconnected from the interwebs.

Still, top marks for thinking outside the box.

_________________
ASUS A1000, 800Mhz PIII Coppermine!, 192Mb RAM, 10Gb IBM Travelstar HDD, Build date August 2001.
Back to top
View user's profile Send private message MSN Messenger 
trapster


Joined: 28 Nov 2005
Posts: 1966
Location: Maine, USA

PostPosted: Sun 22 Nov 2009, 07:18    Post subject:  

Which 431 are you using? man works fine on mine.
_________________
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install:Puppeee4.31 + 1.0, Puppy4.10 + Lupu52
Currently using Puppeee-1.0 AND lupu52 w/ fluxbox
Back to top
View user's profile Send private message Visit poster's website 
ttuuxxx


Joined: 05 May 2007
Posts: 10720
Location: Ontario Canada,Sydney Australia

PostPosted: Sun 22 Nov 2009, 10:45    Post subject:  

Here's a small man viewer/editor that I compiled on 2.14X but should work on anything. Smile
ttuuxxx
gmanedit-0.4.2-i386.pet
Description 
pet

 Download 
Filename  gmanedit-0.4.2-i386.pet 
Filesize  33.53 KB 
Downloaded  348 Time(s) 

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile

Back to top
View user's profile Send private message Visit poster's website 
8-bit


Joined: 03 Apr 2007
Posts: 3012
Location: Oregon

PostPosted: Sun 22 Nov 2009, 12:37    Post subject:  

trapster, I am using Puppy 4.3.1 scsi with the 2.6.30.5 kernel.

ttuuxxx, I got man working by renaming /usr/bin/man to usr bin new_man, copying the man script from 4.21 to usr/bin/man, loading both into Geany, and replacing the last line that goes to the die.net website with the command/program parameter with the one in the now renamed new_man script that does a google search of die.net for the command/program.
I still have to incorporate doogle's added contribution in it. but it works for me now.
If you temporarily copied the man script from 4.2.1 over to 4.3.1, and opened both in an editor, you would see what I mean.
For clarification, lets say man from 4.3.1 is called new_man and man from 4.2.1 is called man.

When I open a terminal and type "new_man vala" I am taken to an online vala site.
When I do the same with man, I am shown the puppy included manual for vala.
For a person with dialup internet, the man command finding local man pages is helpful in the fact that he does not have to go online to access a man page that is available locally.
Back to top
View user's profile Send private message 
alienjeff


Joined: 08 Jul 2006
Posts: 2290
Location: Winsted, CT - USA

PostPosted: Sun 22 Nov 2009, 12:42    Post subject:  

Can anyone say "man page SFS?"
_________________
hangout: ##arch-ftw on irc.freenode.net
diversion: http://alienjeff.net - visit The Fringe
quote: "The foundation of authority is based upon the consent of the people." - Thomas Hooker

Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3012
Location: Oregon

PostPosted: Sun 22 Nov 2009, 13:20    Post subject:  

I am including both my modified man script from Puppy 421 called "man" and the original man script from Puppy 431 scsi called "new_man".

You can compare both by running them and also by opening each with Geany.
Keep in mind that
new_man is the man script from Puppy 431 scsi
man is my modified script from Puppy 421.
man_files.tar.gz
Description  Contains man script from Puppy 431 scsi called new_man and script from Puppy 421 called man
gz

 Download 
Filename  man_files.tar.gz 
Filesize  2.29 KB 
Downloaded  360 Time(s) 
Back to top
View user's profile Send private message 
sikpuppy


Joined: 29 Mar 2009
Posts: 433

PostPosted: Sun 22 Nov 2009, 20:17    Post subject:  

trapster wrote:
Which 431 are you using? man works fine on mine.

I think my point could have been better made.

man should be a command line application, it is a PITA when I am working from a command line (not Terminal) and need to view a man page.

Oh, it doesn't need a workaround, I just would prefer when I type "man" that the linux command line app works and doesn't bring up a fancy pants GUI. Compiling and writing scripts shouldn't need GUI applications, IMHO.

_________________
ASUS A1000, 800Mhz PIII Coppermine!, 192Mb RAM, 10Gb IBM Travelstar HDD, Build date August 2001.
Back to top
View user's profile Send private message MSN Messenger 
trapster


Joined: 28 Nov 2005
Posts: 1966
Location: Maine, USA

PostPosted: Sun 22 Nov 2009, 20:24    Post subject:  

No gui here.
"man irssi" spits out the info from the file in the ...um...command line.

_________________
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install:Puppeee4.31 + 1.0, Puppy4.10 + Lupu52
Currently using Puppeee-1.0 AND lupu52 w/ fluxbox
Back to top
View user's profile Send private message Visit poster's website 
sikpuppy


Joined: 29 Mar 2009
Posts: 433

PostPosted: Sun 22 Nov 2009, 20:28    Post subject:  

trapster wrote:
No gui here.
"man irssi" spits out the info from the file in the ...um...command line.

Code:
# man irssi
find: /usr/share/doc/hiawatha.htm/: Not a directory
find: /usr/share/doc/release-4.0.8.htm/: Not a directory
find: /usr/share/doc/release-4.0.9.htm/: Not a directory
find: /usr/share/doc/release-4.1.0.htm/: Not a directory
find: /usr/share/doc/release-4.1.1.htm/: Not a directory
find: /usr/share/doc/release-4.1.2.htm/: Not a directory
find: /usr/share/doc/release-4.3.1.htm/: Not a directory
find: /usr/share/doc/hiawatha.htm/: Not a directory
find: /usr/share/doc/release-4.0.8.htm/: Not a directory
find: /usr/share/doc/release-4.0.9.htm/: Not a directory
find: /usr/share/doc/release-4.1.0.htm/: Not a directory
find: /usr/share/doc/release-4.1.1.htm/: Not a directory
find: /usr/share/doc/release-4.1.2.htm/: Not a directory
find: /usr/share/doc/release-4.3.1.htm/: Not a directory
default
#


Methinks there's something wrong with my 4.31. Apologies Trapster, I guess some directories have vanished :S

_________________
ASUS A1000, 800Mhz PIII Coppermine!, 192Mb RAM, 10Gb IBM Travelstar HDD, Build date August 2001.
Back to top
View user's profile Send private message MSN Messenger 
Display posts from previous:   Sort by:   
Page 1 of 4 [46 Posts]   Goto page: 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Bugs ( Submit bugs )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0771s ][ Queries: 13 (0.0116s) ][ GZIP on ]