This is a super simple two line script to use a much larger online collection of man pages in instead of the usual incomplete local collection.
As it covers things not available in puppy, and requires an active internet connection, it should not replace the man command, so I named it mana instead of man because I'm used to typing man, so it is close, and is fast to type, but name it whatever you like, of course. You can also change the browser to whatever you wish by simply swapping the word "dillo" for another, like "opera", but dillo is good for this because it opens quickly and will appear on the top of other windows, while opera or others already open will open the page in the frame currently used by the open page and not bring it to the forground. You can also change the url to use whatever online man page collection you wish by replacing the URL, being sure to put $@ where the search term belongs in the URL.
We have a situation in puppy: we use busybox, which replaces a huge number of normal linux functions with one single multipurpose tool. This is hidden from the user because it is aliased to the names of the commands it replaces, but sometimes it does come into awareness because it uses only a subset of the functionality of some commands in order to be smaller, a reasonable trade off. However, we also have the busybox man page (notice singular) instead of man pages for each command, and this really is minimal documentation. I often want the full man page for a command, even if it leaves me with command envy for the options not available in the busybox version. I need to be able to read all the sections, especially the examples, for commands I'm learning. There are also other holes in our man pages... they are just not all there (can't think of the examples I've encountered, but it has happened a number of times: just get the Welcome to Puppy/Puppy Help page when hoping to get a man page because it isn't there.
Here is a two line script you can add to /usr/local/bin as, say, mana:
Code: Select all
#!/bin/sh
exec nohup dillo "http://www.penguin-soft.com/penguin/man?q=$@§ion=ALL&action=man" &
Code: Select all
#!/bin/sh
Code: Select all
exec nohup dillo "http://www.penguin-soft.com/penguin/man?q=$@§ion=ALL&action=man" &
Create the file in any text editor, save it to /usr/local/bin/mana, and change the permissions to make it executable by either typing
Code: Select all
chmod a+x /usr/local/bin/mana