A Web-based Man Page Utility for SME/E-smith
How to Set up a Web-based Man-page Viewer on your SME/E-smith Server
Contributed by: MD
Sample: Click here
Caveat: This utility uses a php script that makes a system call.
System calls from a web-based form are potentially insecure.
You may want to put this in a protected area.
Step 1:
Get root
Install the manpages RPM on your system.
Here's how...
a) wget http://www.tech-geeks.org/contrib/mdrone/packages/man-1.5i2-0.7x.5.i386.rpm
b) rpm -ivh man-1.5i2-0.7x.5.i386.rpm
Step 2:
Create a web directory for the files and move into it.
Here's how...
a) mkdir /home/e-smith/files/primary/html/webmanpage
b) cd /home/e-smith/files/primary/html/webmanpage
Step 3:
Grab the webmanpage tarball and extract it.
Here's how...
a) wget http://www.tech-geeks.org/contrib/mdrone/webmanpage/webmanpage.tar.gz
b) tar -xvzf webmanpage.tar.gz
Step 4:
Discard or move the tarball
a)[Discard] rm -f webmanpage.tar.gz
b)[Move] mv webmanpage.tar.gz /root
Step 5:
Test the utility
a) Open a browser
b) Go to http://yourserveraddress/webmanpage/manpage.html
c) Test with a simple command, such as "df"
Contributed on Oct 16, 2002