Solved Offline freebsd.org/cgi/man.cgi

Is there a way to have a full clone of https://www.freebsd.org/cgi/man.cgi on a PC?
* Offline -- Setting up some type of local CGI server, to execute queries and read the result on a local browser.
* Complete -- With all its set of man pages, represented on <select name="manpath"> section/element,
i.e. man pages for FreeBSD*, OpenBSD*, NetBSD*, etc. Exactly like the online website.
 
man.cgi is part of mdocml (which is not built/installed by default) it's also in /usr/src/contrib
put you can use mandoc -T html as a cgi prog

zcat /usr/share/man/man1/ls.1.gz |mandoc -T html
 
Random: with FreeBSD, what's the nearest alternative to open(1) in Mac OS X?

(I did figure this out, long ago, with something in Stack Exchange but I lost track.)

Like, I know that zcat /usr/share/man/man1/ls.1.gz |mandoc -T html > /tmp/a\ page.html && open /tmp/a\ page.html will not work so, instead:

zcat /usr/share/man/man1/ls.1.gz |mandoc -T html > /tmp/a\ page.html && firefox /tmp/a\ page.html

Bwana for Mac OS X https://www.bruji.com/bwana/ was great.

Open man pages in safari or other browsers in osx Jonathans Blog hmm …
 
I think that's because the line between the OS and the desktop is rather blurred on MacOS. Section 1 does seem appropriate, but the headers are a little "off" the mark (the command has nothing to do with BSD).
 
As a reference, CDE* UI related tools manpages are also in Section 1 but they use the title of "User Commands"

But yeah as SirDice suggested, xdg-open is pretty close.

* Yes, CDE. The pinnacle of desktop standards! The closest I could find. ;)
 
Back
Top