Chapter 22: Making documents available to the network
Table of contents
Chapter 22
Making documents available to the network
SCOhelp uses an HTTP (HyperText Transfer Protocol)
server
(scohttp(ADM))
to find and display HTML (HyperText Markup Language)
documents in the SCOhelp window.
This means that you can write your own documents and make them
available to your local network and that you can configure one
machine on your local network as a document server for the other
machines. You do this by creating
HTML
documents and making them accessible to scohttpd.
This chapter describes how to serve
documents to the network and how to configure one system
as a help document server.
See also:
Using a homepage to serve documents to a local network
To serve documents to a local network (assuming you have
already created them) you must:
-
Create a homepage.
-
Configure scohttpd to serve your homepage to the local network.
Home pages are special
HTML
documents that SCOhelp displays at startup (if help is started from
the desktop icon or from a UNIX command line).
Home pages provide hyperlinks to any document that you
want to make available to your network.
To create a homepage,
use a text editor (for example, emacs or vi)
to create your own HTML document
(see
Chapter 3, ``Writing HTML documents'' in Using Help)
or customize the sample
homepage in Using Help
found in /usr/lib/scohelp/XHelp/sample.html.
After you have created your homepage, configure the help server
(scohttp) to use it.
To configure the help server, complete the following steps:
-
Log in as root.
-
Move your homepage to your document root
(the directory you want to make available
to the network).
By default, the document root is /usr/lib/scohelp.
If you want to use the default directory, move your new homepage
to /usr/lib/scohelp and skip to step 12. If you want
to change the default directory, complete steps 3 through 11.
WARNING:
If you want access to the SCO Documentation Library,
do not change the document root. To use your own
homepage while retaining access to the help library,
move your homepage to /usr/lib/scohelp and
skip to step 12.
-
Change directories to /var/scohttpd/conf.
-
Open srm.conf.
-
Find the line defining DocumentRoot. This
is the directory out of which you serve your
help documents.
The line resembles the following:
DocumentRoot /usr/lib/scohelp
-
Change this directory to the new name. For example, if you
want to serve documents from the directory /usr/local/documents,
you would add the following line:
DocumentRoot /usr/local/documents
-
Save the file and exit.
-
Open access.conf.
-
Find the following line:
<Directory /usr/lib/scohelp>
-
Replace this directory pathname with the one used
by DocumentRoot in srm.conf.
In the above example, this line would be the following:
<Directory /usr/local/documents>
-
Save the file and exit.
-
Change directories to /usr/lib/X11/app-defaults.
-
Open ScoHelp and search for the following line:
*homeDocument: http://localhost/dochome
Change *homeDocument to reflect your new homepage.
For example, if your new homepage file is called
myhome.html, the line would look like this.
*homeDocument: http://localhost/myhome.html
NOTE:
If you change the homeDocument resource and still want access
to the Help library (/usr/lib/scohelp/dochome.html)
on your homepage,
make sure you create a hyperlink to dochome.html
on your new homepage (there are also links to the library
on the Navigate menu and the toolbar).
-
Save the file and exit.
-
Start and stop the help server (scohttp)
by issuing the commands:
scohttp stop
scohttp start
-
To test your configuration, issue
the command:
scohelp
SCOhelp should start with your new
homepage displayed in the SCOhelp window.
See also:
Configuring a help document server system
By default, all SCO graphical systems have
a help library (located in /usr/lib/scohelp and
/usr/man) and a help server (scohttp).
Because the document set is quite large (over 40 MB),
you may want to use one machine as a
help server for the other machines on
your local network.
To do this, configure
scohelp(XC)
on client Systems to use
scohttp(ADM)
(the help server daemon) on the help document server system.
This section explains how to set up
help server systems.
The configuration process assumes
that you have installed and are running TCP/IP and that
you have installed the SCO documentation
components on the machine you want to use
as a help document server system.
To configure a scohelp client system
to use a remote help server, see
``Using scohelp with a remote help server''
and
``Using context-sensitive help on a document server system''.
To learn more about help or the help server, see
CAUTION:
If, at any future point, you update all or part of your
SCO server or client systems,
you may create an incompatibility between the documentation version
and the release number of the installed software.
The amount of incompatibility will vary depending upon
the changes in the software updated.
For more information on installing or configuring
TCP/IP or the
help server or document set, see:
Using scohelp with a remote help server
To use SCOhelp with a document server,
you must configure SCOhelp
to use the server, and then make sure that context sensitive
help will work.
See also:
Configuring SCOhelp to use a remote server
To configure scohelp on a given SCO system
to use a remote help server, complete the following steps.
For the purposes of this procedure, we
assume three things:
-
The server machine name is helpsrv.sco.com,
-
The client machine name is helpcli.sco.com,
-
SCOhelp document resources
(in /usr/lib/X11/app-defaults/ScoHelp)
and scohttp document root values
(in /var/scohttpd/conf/srm.conf
and /var/scohttpd/conf/access.conf) are set
to their default values. For more information on setting those values, see
the manual pages for
scohttp(ADM)
and
scohelp(XC).
CAUTION:
This procedure sets helpcli.sco.com to use a remote help server
by default.
Individual users can override the system default in /$HOME/.Xdefaults
files.
-
Log in as root.
-
If scohttp is installed and you no longer intend
to use it locally,
disable scohttp by entering:
scohttp disable
-
With your ASCII
editor, open
/usr/lib/X11/app-defaults/ScoHelp.
-
Find the following X resource definitions:
*documentServer: http://localhost
*homeDocument: http://localhost/dochome
-
Change them to read:
*documentServer: http://helpsrv.sco.com:457
*homeDocument: http://helpsrv.sco.com:457/dochome
NOTE:
These settings assume the default resource configuration
on the server.
For more information about X resources, see
Chapter 5, ``Understanding resources'' in the Graphical Environment Guide.
For more information on scohelp resources,
see the manual page for
scohelp(XC).
-
Log on as root to helpsrv.sco.com and enter
scohttp query. If the server is
running the output should resemble the following:
Scohttp is currently running.
Scohttp is enabled.
If it is not running, see
scohttp(ADM).
-
Start help on helpcli.sco.com by entering
scohelp at a SCOterm
UNIX command line. If the help library appears, you have
correctly configured helpcli.sco.com to use the
help libraries on helpsrv.sco.com.
If it does not, check to make sure you followed the
steps correctly.
-
After completing this procedure, make sure that
context-sensitive help works on
helpcli.sco.com
by pressing <F1> with the cursor in any graphical application.
If help for that application appears, context-sensitive help is
working. If the an error message or the
Documentation Library appears
see
``Using context-sensitive help on a document server system''.
Using context-sensitive help on a document server system
For context-sensitive help to work on machines using
a help server, a set of configuration
files called ``hook'' files
must be installed on the local machine
(the machine running the application requesting help).
Hook files tell SCOhelp which help files to display
if it receives a context-sensitive help request.
By default, hook files are installed on every system
when you install the Online Documentation packages.
If you are using a documentation server, you may not
have installed all (or any of) the Online Documentation packages.
If you are not sure, or if you have configured a
document server and context-sensitive help does not
work, complete the following procedure.
For the purposes of this procedure, we
assume that the server machine name is helpsrv.sco.com.
and the client machine name is helpcli.sco.com.
-
Log on as root to helpsrv.sco.com.
-
Change directories to
/tmp.
-
Issue the following hook file archive command:
arhk -f filename
where filename is any name you choose.
-
arhk creates a file in /tmp named
/tmp/filename.cpio.
-
Open an ftp connection to the help client
machine using the following command:
ftp helpcli.sco.com
-
After you log in, change directories
to /tmp.
-
Issue the following command:
put filename.cpio
-
After the file transfer is complete, exit ftp
and log in as root on
helpcli.sco.com.
-
Change directories to
/tmp.
-
Make sure that filename.cpio
is in the directory and issue the following command:
cpio -ivd <filename.cpio
-
cpio creates the appropriate directories
and copies the hook files into them.
-
Verify that the hook files are now in the correct directories
using the following command:
ls /usr/lib/scohelp/*/*.hk
Your output should look like this:
/usr/lib/scohelp/GECG/GECG.hk
/usr/lib/scohelp/HANDBOOK/HANDBOOK.hk
/usr/lib/scohelp/MailMsgG/MailMsgG.hk
/usr/lib/scohelp/NetAdminG/NetAdminG.hk
/usr/lib/scohelp/NetConfigG/NetConfigG.hk
/usr/lib/scohelp/OSAdminG/OSAdminG.hk
/usr/lib/scohelp/VidConfigG/VidConfigG.hk
/usr/lib/scohelp/XCalHelp/XCalHelp.hk
/usr/lib/scohelp/XDeskHelp/XDeskHelp.hk
/usr/lib/scohelp/XEditHelp/XEditHelp.hk
/usr/lib/scohelp/XHelp/XHelp.hk
/usr/lib/scohelp/XMailHelp/XMailHelp.hk
/usr/lib/scohelp/XPaintHelp/XPaintHelp.hk
/usr/lib/scohelp/XTermHelp/XTermHelp.hk
If it does, you have successfully transferred the hook
files to the client machine.
-
After completing this procedure, verify that
context-sensitive help works on
helpcli.sco.com
by pressing <F1> with the cursor inside any graphical application.
If help for that application appears, context-sensitive help is
working. If the an error message appears
make sure you have configured the client correctly.
See
``Configuring SCOhelp to use a remote server''
for more information.
If the
Documentation Library appears,
make sure you have completed this procedure correctly, and then
make sure that the graphical application you tested is installed on the
help server.
If the graphical application is not installed on the
server, install it. Make sure you install the documentation
if you are asked.
If the procedures have been completed correctly and the
graphical application is installed on the server system,
make sure that
scohttp is set up correctly on the server system.
See also: