This article provides information about changing the configuration of the Documentation Library Service after it has been initially installed and configured. For instructions on how to set up the library service for the first time on a computer, see Installing and Configuring the Documentation Library Service and Installing AIX Documentation in AIX Version 4.3 Installation Guide.
Note: In AIX Versions 4.3.0 to 4.3.2 the service was called the Documentation Search Service. In AIX Version 4.3.3, it was renamed to the Documentation Library Service to reflect its broader functionality.
The following main topics are covered in this chapter:
This process shows the default system documentation server settings. If users have specified different settings in the .profile file in their home directories, they will not be affected by the default settings.
You can view the configuration of the documentation library service by using either of the AIX system management tools:
Change to the root user.
At the command line, type:
wsm system
then press Enter.
In the System Environments window, double-click on Internet Environments.
When the notebook appears, click on the Default Browser tab if it isn't already the front page. This shows the current command that is used to launch the default browser that displays the library application.
The Documentation Server configuration page shows the current settings for the documentation server for this computer.
Change to the root user.
At the command line, type:
smit web_configure
then press Enter.
From the web configuration menu, select Show Documentation and Search Server to display the current configuration information.
This configuration process changes the default system documentation server. If users have specified a different server in their own .profile file in their home directories, they will not be affected by the default settings.
You can view the configuration of the documentation library service by using either of the AIX system management tools:
Change to the root user.
At the command line, type:
wsm system
then press Enter. This opens the System Environments container.
In the System Environments window, double-click on the Internet Environments icon to open it, then click on the Documentation Server tab.
Click on the Remote server radio button, then type the name of the documentation server computer in Computer name. This is the server computer that contains the documents that you want this client computer to be able to access and search.
In Server port, at the bottom, type the port number the web server software is using. The most commonly used port is 80,. An exception is the Lite NetQuestion web server, which must use port 49213. Your client computer will now be reconfigured to use the new server.
smit web_configure
then press Enter.
In NAME of remote documentation server, type the name or IP address of the new server and the appropriate port number. When the output pane shows the message Documentation server configuration completed., the reconfiguration is finished.
All users on a computer do not have to use the same documentation server. The system administrator sets the default server for users, but users can choose to use a different server. There are two ways users can specify the documentation server they want to use:
A user's default documentation server is the documentation server that will be used when he or she starts the Documentation Library Service. System administrators set up a default server for all users logged into a system. A user who does not want to use the default documentation server can specify a different personal default documentation server.
To specify their own personal default documentation server, users can do the following:
Insert the following two lines in the .profile file in their home directory:
export DOCUMENT_SERVER_MACHINE_NAME=<servername> export DOCUMENT_SERVER_PORT=<portnumber>
Replace <servername>with the name of the documentation search server computer they want to use.
Replace <portnumber> with the number of the port that the web server on the server uses. In most cases this will be 80. An exception is the Lite NetQuestion web server, which must use port 49213.
Once these two lines are placed in the .profile file in their home directory, changes that the system administrator makes to the system-wide default settings will not affect these users. If these users want to resume using the system-wide default server, they can remove the above two lines from their profile, log out, then log back in.
When users don't want to change their default documentation server, but want to use the documents on another documentation server, they can type the following into the URL location field of his browser:
http://<server_name>[:<port_number>]/cgi-bin/ds_form
This opens into their browser the library application from the document server with the server_name given in the URL. The <port_number> only needs to be entered if the port is different from 80. (80 is the standard port number for most webservers; an exception is the Lite NetQuestion web server which uses port 49213).
For example, if a user wants to search the documents on a document server named hinson, and the web server on hinson uses the standard port 80, the user can enter this URL:
http://hinson/cgi-bin/ds_form
A library application would open in the user's browser to display the documents registered on the server hinson. Once the library application from a document server appears in the user's browser, the user can create a bookmark that goes back to the server. The system administrator of a web server can also create a web page that contains links to all the different documentation servers in an organization.
In this case, you have a client computer that is using a remote documentation server to access documents. You want to convert this client computer to be a documentation server so that the documents stored on this computer can be read and searched by the users on this computer or by remote users.
See the Installing and Configuring the Documentation Library Service and Installing AIX Documentation in AIX Version 4.3 Installation Guide for instructions for installing and configuring a documentation service. Choose the procedures that configure a system as a documentation server.
You can disable a server temporarily, or uninstall it permanently.
There are several different techniques:
Note: If you are using the Lite NetQuestion web server software, it is automatically restarted each time you reboot the computer. To turn off the Lite NetQuestion web server until the next reboot, kill the process named "httpdlite". To prevent the web server software from being automatically restarted each time the computer reboots, edit the file /etc/inittab and remove or comment out this line:
httpdlite:2:once:/usr/IMNSearch/httpdlite -r /etc/IMNSearch/httpdlite/httpdlite.conf>/dev/console 2>&1
To restore automatic startup of the lite server, reinsert or uncomment the above line in /etc/inittab.
To manually start the Lite NetQuestion server, type the following command (there is a single space before and after the "-r"):
/usr/IMNSearch/httpdlite/httpdlite -r /etc/IMNSearch/httpdlite/httpdlite.conf
If you think you might ever want to re-register the index, you must record the index's registry information before you remove it. To delete an index:
/usr/IMNSearch/cli/imndomap /var/docsearch/indexes -l <index_name>
where <index_name> is replaced with the name of the index.
/usr/IMNSearch/cli/imndomap /var/docsearch/indexes -d <index_name>
cp /var/docsearch/indexes/imnmap.dat /usr/docsearch/indexes/imnmap.dat
If you ever want to re-register this same index:
/usr/IMNSearch/cli/imndomap /var/docsearch/indexes -c <index_name> <document path> "<title>"
where you insert the index name, document path, and title values you recorded above in step 2.
If you are sure you want to permanently remove the documentation library service functions, do the following:
Note: In each of the following steps make sure you do uninstalls using SMIT instead of just deleting software. Deletes will not clean up the system properly.
Note: If you are using the Lite NetQuestion web server software, you can remove it by uninstalling the fileset IMNSearch.rte.httpdlite (NetQuestion Local HTTP Daemon).
Note: The operating system documents can be read directly from the documentation CDs by opening the readme file in the top directory of the CDs. However, the search functions will not work.
To unregister an index type:
rm -r /usr/docsearch/indexes/<index name>
where <index name> is the name of the index you want to remove.
All of the documentation server functions should now be disabled. If the users of this computer were using this computer as their documentation server, you should go into SMIT and change the name of the default documentation server to another computer. See Changing a Client Computer's Default Remote Documentation Library Server.
The difference between a stand alone documentation server and a public remote server is that the remote server allows people on other machines to access and search the documents stored on the remote server. After a standalone server is connected to a network, modify the web server software's security configuration controls to allow users on other computers to access the documents on this computer. Consult the web server documentation for instructions on how to alter these access permissions.
Note: If you are using the Lite NetQuestion web server software for your standalone documentation server, you must replace the lite server with a more full-functioned web server software package that can serve remote users. The lite web server can only serve local users. After you install the new server you must reconfigure the documentation service to use the new server. For more instructions on reconfiguration, see the section Change the Web Server Software on A Documentation Server.
This procedure changes the default browser that is used by applications that use the defaultbrowser command to open a browser window. The default browser is the browser that is launched when users use the docsearch command or the Documentation Library icon on the Help subpanel in the CDE desktop. You can change the default browser by using either of the AIX system management tools, Web-based System Manager or SMIT.
wsm system
to open the System Environments container.
smit web_configure
Use this procedure if you have already configured a documentation server and you now want to change the web server software that it is using.
If your computer is going to serve documents to remote users, you must also configure your web server software to allow access from the users and remote computers that will be using this computer as their documentation search server. Note: If you are using the Lite NetQuestion web server software you do not need to do this step since the lite server can only be used for standalone documents serves. It does not support access by remote users.
wsm system
to open the System Environments container.
Note: If your web server software is listed by name, but you installed it in a non-default location on your system, or if you set up the web servers to use non-standard locations for their cgi-bin or HTML directories, you must select Other.
smit web_configure
By default, if a user opens the library using the docsearch command, the Documentation Library icon in the CDE desktop, or the AIX Base Library icon, the library application displays in the same language as the current locale of the user's client computer. However, there may be reasons that users want to see the documentation in a language other than their computer's current default locale. The documentation language can be changed for all users on a computer, or it can be changed for a single user.
Note: These techniques do not affect the language that is used if you are opening a document or search form from an HTML link inside a document. These techniques only affect what language is used when you use the desktop icons or the docsearch command.
Note: Before a computer can serve documents in a language, the AIX locale (language environment) for that language, and the library service messages for the language must be installed on the documentation server. For instructions on installing languages, see the section on installing languages in the Documentation Library Service chapter in the operating system Installation Guide.
To change the default documentation language for all users on a computer, the system administrator (as root) can use the Web-based System Manager or SMIT.
wsm system
to open the System Environments container.
smit web_configure
then press Enter.
A system administrator may assign a single user a documentation language that is different than the default language of the user's computer. This is done by running (as root) the following command:
/usr/bin/chdoclang [-u UID|username] <locale>
where <locale> is replaced by the locale that will be the new language and <username> is replaced with the user's username. Locale names can be found in the AIX Language Support Table.
Running the command as described above will add the following line to the user's $HOME/.profile file:
export DOC_LANG=<locale>
where <locale> is the locale that will be the new default documentation viewing and searching language.
For example, to change the documentation language of user <fred> to be Spanish(es_ES), you can type the following command:
/usr/bin/chdoclang -u fred es_ES
Note: If the DOC_LANG environment variable is defined in a user's .profile, it takes precedence over any global DOC_LANG setting in the /etc/environment file on the user's computer. Also, for the CDE Desktop, you must uncomment the DTSOURCEPROFILE=true line in the $HOME/.dtprofile file, which causes the $HOME/.profile file to be read during CDE login. The change to a user's documentation language takes effect the next time the user logs out and then logs back in.
If the documentation language has been set, you can delete the setting. To delete the global system default documentation language setting, run (as root) the following command:
/usr/bin/chdoclang -d
To delete a single user's language setting, run the following command:
/usr/bin/chdoclang -d [UID|username]
For example, to remove the user fred's personal language setting to use the system default language, run the following command:
/usr/bin/chdoclang -d fred