25/11/10 09:02 could not read "c:/gerald/urlib 2/col/iconet.com.br/banon/2000/12.30.22.55/doc/goto-/iconet.com.br/banon/2000/12.31.20.38": no such file or directory while executing "file mtime $path" (procedure "CreateTclPage" line 202) invoked from within "CreateTclPage $thisRepository $fileContent $language $languageRep2 $path $writeUserCodedPassword" 25/11/10 09:07 could not read "c:/gerald/urlib 2/col/iconet.com.br/banon/2000/12.30.22.55/doc/goto-/iconet.com.br/banon/2000/12.31.20.38": no such file or directory while executing "file mtime $path" (procedure "CreateTclPage" line 202) invoked from within "CreateTclPage $thisRepository $fileContent $language $languageRep2 $path $writeUserCodedPassword" 25/11/10 09:25 could not read "c:/gerald/urlib 2/col/iconet.com.br/banon/2000/12.30.22.55/doc/goto-/iconet.com.br/banon/2000/12.31.20.38": no such file or directory while executing "file mtime $path" (procedure "CreateTclPage" line 202) invoked from within "CreateTclPage $thisRepository $fileContent $language $languageRep2 $path $writeUserCodedPassword" 25/11/10 09:29 could not read "c:/gerald/urlib 2/col/iconet.com.br/banon/2000/12.30.22.55/doc/goto-/iconet.com.br/banon/2000/12.31.20.38": no such file or directory while executing "file mtime $path" (procedure "CreateTclPage" line 202) invoked from within "CreateTclPage $thisRepository $fileContent $language $languageRep2 $path $writeUserCodedPassword" 16/03/12 15:08 16/03/12 15:08 26/03/12 12:00 04/04/12 12:43 10/04/12 10:50 01/07/12 17:18 01/07/12 17:18 05/07/12 18:00 05/07/12 18:00 06/07/12 00:08 06/07/12 00:08 06/07/12 00:10 06/07/12 00:10 06/07/12 00:11 06/07/12 14:14 06/07/12 14:14 16/07/12 12:05 30/07/12 12:55 19/09/12 11:54 21/09/12 11:07 12/11/12 10:25 12/11/12 10:25 12/12/12 14:16 12/12/12 14:16 15/05/13 11:51 15/05/13 11:51 16/05/13 11:00 16/05/13 11:00 28/09/13 21:58 28/09/13 21:58 26/01/15 12:29 06/07/15 10:34 06/07/15 10:34 25/10/15 00:26 25/10/15 00:26 27/10/15 01:30 27/10/15 01:30 31/10/15 15:31 31/10/15 15:31 01/11/15 02:30 01/11/15 02:30 01/11/15 12:17 01/11/15 12:17 01/11/15 13:38 01/11/15 13:38 03/11/15 21:05 03/11/15 21:05 03/11/15 21:06 03/11/15 21:09 03/11/15 21:10 04/11/15 00:37 04/11/15 00:38 04/11/15 00:38 13/11/15 10:13 13/11/15 10:13 14/11/15 15:38 08/02/16 21:49 08/02/16 21:49 08/02/16 22:15 08/02/16 22:15 08/02/16 22:57 08/02/16 22:57 CreateTclPage (first substitution): can't read "knownPathArray(chrome,windows)": no such element in array while executing "join $knownPathArray(chrome,windows)
" invoked from within "regsub -all {/} [join $knownPathArray(chrome,windows)
] {\\}" invoked from within "subst { Starting URLibService

Starting URLibService

URLibService User's Guide
Version 2.1


Chapter 1

Starting URLibService

by Gerald J. F. Banon

Content
Basic requirements
Extracting the URLibService Environment
Starting URLibService
Posting the URLib local collection
Unposting the URLib local collection
Stopping URLibService
Updating URLibService
Resetting URLibService
Environment change
Setting your preferences
Opening the mirror page

Any questions about starting URLibService, please send a mail to <urlibservice@gmail.com>.

Once you have downloaded and extracted the URLibService Environment (see #!#1#@#), you can start the URLibService.

In this chapter, we assume that the URLib Environment have been downloaded under the directory:
C:\\URLib_path (for Windows)
/URLib_path (for UNIX).

Basic requirements

i. When starting URLibService for the first time, the current host must have a hostname, afterward this is optional.
The computer name must not begin and end with a minus sign '-', and should not contain any periods '.'.

On Windows XP, to set or change the computer name click the following sequence:

Start>My Computer>Right Mouse Button>Properties>Computer Name>Change
Enter the computer name and click OK.

On Windows 7, to set or change the computer name click the following sequence:

Start>Computer>Right Mouse Button>Properties>Advanced Setting>Computer Name>Change
Enter the computer name and click OK. Accented letter in the Computer Name should be avoided.

ii. You must inform your computer its domain name.

On Windows XP, check if:
- the DNS suffix field is filled out with the domain name by clicking the following sequence:
Start>Control Panel>Network Connections>Local Area Connection Properties>>General>Internet Protocol (TCP/IP)>Advanced>DNS>Append these DNS suffixes (in order)>Add

(if the text area is empty, you must enter the Domain suffix (i.e., the domain name))
OK

On UNIX, there must exist a file called /etc/resolv.conf whose owner is root and permissions are 644, containing the following two lines (in any order):
search aaa.bbb.com
nameserver 10.10.1.1

where, aaa.bbb.com is the computer domain name and 10.10.1.1 is the ip address of the DNS server.
If the file /etc/resolv.conf doesn't contain the line search aaa.bbb.com then you should, in some Linux distributions, append this line to the file
/etc/resolvconf/resolv.conf.d/base using, for example, the command:
echo "search aaa.bbb.com" >>/etc/resolvconf/resolv.conf.d/base

WARNING 1: this last file may be modified when using the Linux graphic user interface.

WARNING 2: the file /etc/hosts must contain the right machine ip. The ip should not be 127.0.0.1, unless the machine is used in standalone mode.

iii. On UNIX, if you are planning to use port 80, then URLibService must be started by root. In this case, if the whoami command exists (it returns root) a group say urlib and a user say urlibadm member of this group must have been set up (urlibadm@a.domain.name should be a valid e-mail address). If the whoami command doesn't exist, then the group urlib and the user urlibadm member of this group must have been set up.

iv. You should have a browser installed (optional).

On Windows, you should have Netscape installed at one of the following places:
[regsub -all {/} [join $knownPathArray(netscape,windows)
] {\\}]

or you should have Mozilla installed at one of the following places:
[regsub -all {/} [join $knownPathArray(mozilla,windows)
] {\\}]

or you should have Internet Explorer installed at one of the following places:
[regsub -all {/} [join $knownPathArray(internetExplorer,windows)
] {\\}]

or you should have Chrome installed at one of the following places:
[regsub -all {/} [join $knownPathArray(chrome,windows)
] {\\}]

If Netscape is not at one of the above places, then you may specify its absolute path in the file:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\auxdoc\\netscape.txt
If Mozilla is not at one of the above places, then you may specify its absolute path in the file:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\auxdoc\\mozilla.txt
If Internet Explorer is not at one of the above places, then you may specify its absolute path in the file:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\auxdoc\\internetExplorer.txt
(URLibService must then be resarted (not necessarily reposted) and your preference reset (see Setting the Preferences in the URLibService window)).

On UNIX, you should have Netscape installed at one of the following places:
[join $knownPathArray(netscape,unix)
]

or you should have Mozilla (or Firefox) installed at one of the following places:
[join $knownPathArray(mozilla,unix)
]

or you should have Konqueror installed at one of the following places:
[join $knownPathArray(konqueror,unix)
]

If Netscape is not at one of the above places, then you may specify its absolute path in the file:
/URLib_path/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/netscape.txt
If Mozilla is not at one of the above places, then you may specify its absolute path in the file:
C:/URLib_path/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/mozilla.txt
If Konqueror is not at one of the above places, then you may specify its absolute path in the file:
C:/URLib_path/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/konqueror.txt

WARNING: (URLibService must then be resarted (not necessarily reposted) and your preference reset (see Setting the Preferences in the URLibService window)).

v. You should have a text editor installed (optional).

On Windows, you should have Wordpad installed at one of the following places:
[regsub -all {/} [join $knownPathArray(textEditor,windows)
] {\\}]

If your preferred text editor is not at one of the above places, then you may specify its absolute path in the file:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\auxdoc\\editor.txt
(URLibService must then be resarted (not necessarily reposted)).

On UNIX, you should have a text editor installed at one of the following places:
[join $knownPathArray(textEditor,unix)
]

If your preferred text editor is not at one of the above places, then you may specify its absolute path in the file:
/URLib_path/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/editor.txt
(URLibService must then be resarted (not necessarily reposted)).

If the text editor is not found in your file system, then you will not be able to open files from the URLibService Check Window.

Extracting the URLibService Environment

On Windows, click the doc.zip file by using the mouse right button and then the Extract to... menu option and finally the OK button.

On UNIX execute the following commands:
cd /URLib_path
unzip doc.zip
chmod 774 start
cd ..
chmod -R g+w URLib_path
chmod -R g+s URLib_path

If you are planning to use port 80, you should execute the additional commands (assuming that the URLibService administrator urlibadm is member of the urlib group - see Item iii of Basic requirements):
chown -R root URLib_path
chgrp -R urlib URLib_path

Starting URLibService

To start URLibService, execute the following commands.

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe start

On UNIX:
cd /URLib_path
./start

On Windows, you can create a shortcut with the following properties:
Target:
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe start
Start in:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc

On Linux, you can create a shortcut with the following properties:
Command:
/URLib_path/start
Work path:
/URLib_path

Posting the URLib local collection

Starting URLibService automatically posts the URLib local collection on the Web (starting the Apache Server).

If you want to post the URLib local collection without opening the URLibService window, execute instead the following command.

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post

On UNIX:
cd /URLib_path
./post &

The post command is specially useful to implement the URLib local collection posting at boot time.

To implement automatic posting at boot time on Windows 95 execute the following steps.

i. Create a shortcut called, for example, PostURLibService with the following properties:
Target:
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\tclsh85.exe post
Start in:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc

ii. Click the following sequence:
Start>Settings>Taskbar & Start Menu
Start Menu Programs
Add
Browse...
Windows>Desktop>PostURLibService
Open
Next >
StartUp
Next >
Finish
OK

To implement automatic posting at boot time on Windows XP execute the following steps.

i. Create a shortcut (same procedure as described above for Windows 95)

ii. Copy the shortcut and paste it in the following folder:
C:\\Documents and Settings\\UserName\\Start Menu\\Programs\\Startup
where UserName is the name of the user who is interested in the automatic posting.
In Brazil, the same folder might be called:
C:\\Documents and Settings\\UserName\\Menu Iniciar\\Programas\\Inicializar

To implement automatic posting at boot time on SunOS see Unposting the URLib local collection below.

To implement automatic posting of more than one collection using the same httpd port at boot time on Linux, follow the example below.

#!/sbin/sh

# Local system initialization script

# This script should be stored in a file named:
# /etc/rc.d/rc.local

# This script posts the following
# URLib local collections:

# /mnt/dados1/URLibLCP
# /mnt/dados1/URLibSIBGRAPI

cd /mnt/dados1/URLibLCP
rm -f ./col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid 
./post &
until #!# -f ./col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid #@#
do
sleep 1
done
cd /mnt/dados1/URLibSIBGRAPI
./post &

# End of script
OBSERVATION: at posting it is possible to set a new port entry by using the -p argument of the post command. For example, to set the port entry mtc-m16b 802 the post command must be:

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post -- -p mtc-m16b 802

On UNIX:
cd /URLib_path
./post -- -p mtc-m16b 802 &

Unposting the URLib local collection

If the URLibService window is open, then to unpost the URLib local collection, click the Exit button.

If the URLibService window is closed, then to unpost the URLib local collection, execute the following command.

On Windows
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post -- -x

On UNIX:
/URLib_path/unpost

Once the URLib local collection has been posted, it is not necessary to unpost it to open the URLibService window. You just execute the above start command right away as explained above in the Starting URLibService subsection.

To implement automatic unposting on some Linux distributions, follow the example below.

#!/sbin/sh

# This script should be stored in a file named:
# /etc/rc.d/rc.local_shutdown

# This script unposts the following
# URLib local collections:

# /mnt/dados1/URLibSIBGRAPI
# /mnt/dados1/URLibLCP

/mnt/dados1/URLibSIBGRAPI/unpost
/mnt/dados1/URLibLCP/unpost

# End of script

To implement automatic posting and unposting on SunOS, follow the example below.

#!/sbin/sh

# This script posts (or unposts) automatically the following
# URLib local collections:

# /home/banon/URLib
# /home/banon/URLib-
# /home/banon/URLib2
# /home/banon/URLib1920

# This script should be stored in a file placed under the
# /etc/init.d directory and named URLibServer

# With Solaris, the following symbolic links must be made:

# cd /etc/rc3.d; ln -s /etc/init.d/URLibServer S99URLibServer
# cd /etc/rc0.d; ln -s /etc/init.d/URLibServer K99URLibServer
# cd /etc/rc1.d; ln -s /etc/init.d/URLibServer K99URLibServer

# To run this script enter:
# /etc/init.d/URLibServer start
# /etc/init.d/URLibServer stop

case "\$1" in
'start')

# Starting ...

su banon -c "rm -f /home/banon/URLib/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid"
su banon -c "/home/banon/URLib/post &"
su banon -c "rm -f /home/banon/URLib-/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid"
su banon -c "/home/banon/URLib-/post &"
su banon -c "rm -f /home/banon/URLib2/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid"
su banon -c "/home/banon/URLib2/post &"

         ;;

'stop')

# Stopping ...

su banon -c "/home/banon/URLib/unpost"
su banon -c "/home/banon/URLib-/unpost"
su banon -c "/home/banon/URLib2/unpost"
su banon -c "/home/banon/URLib1920/unpost"

         ;;

*)
         echo "Usage: \$0 { start | stop }"
         ;;

esac
exit 0

# End of script

Stopping URLibService

If URLibService is running, unposting the local collection has no effect.

To stop URLibService (that is, to stop the Apache Server and close the URLibService main window), press the Exit Button in the main window. The local collection will be automatically unposted. If you want to close the the URLibService main window leaving the local collection posted, press the Close Button in the main window.

Updating URLibService

When URLibService is running you can update it automatically combining the unpost (with option -u) and post commands.

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post -- -x -u
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post

On UNIX:
/URLib_path/updateURLibService &

Resetting URLibService

When there is an inconsistency between the data in the files and the data in the RAM (this may occur after a "disk quota exceeded" for example) the URLibService must be reset by stopping it first and then posting or starting it again using the -r option.

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post -- -x
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post -- -r

On UNIX:
/URLib_path/reset &

Environment change

At start, URLibService is prepared o recognized any environment changes such as: host name, domain name, ip address or home path changes.

On Windows, it uses the following commands:
under DOS
ping -n 1 localhost
under tcl
info hostname
under DOS
ping -n 1 hostname
under DOS
nslookup hostname

WARNING: the third and fourth commands must return the same ip. If not, you should update the data in the Internet Protocol (TCP/IP) Properties window (the ip must be the one returned by the nslookup command).

Setting your preferences

When starting URLibService for the first time, the window entitled Setting the Preferences will open. In this window you should set your preferences: language, (URLibService administrator) e-mail address, browser and port number.

Please read the online help in that window to know how to set your preferences.

On UNIX, if you are planning to use port 80, then the e-mail address must be urlibadm@a.domain.name (see Item iii of Basic requirements).

Opening the mirror page

By pressing the blue OB (Open your Browser) button on the top of the URLib window, a new window will open containing the default mirror page diplayed by your browser.

The mirror page is an interface that ofers several services like searching the local collection, submitting new documents and registering new users.

When opning the mirror page for the first time, as local administrator, you should register yourself by executing the following steps.

i. Click the following sequence:
About this Mirror>Advanced User Registration

ii. Fill out the field "eMail Address (Login)" with the e-mail address that you inform when setting your preference (see previous section: Setting your preferences) and press the Submit button.

iii. Enter your full name and password and press the Submit button.

With this password, you will be able to search hidden metadata and execute restricted commands to manage the local collection.


while executing "CreateTclPage $thisRepository $fileContent $language $languageRep2 $path $targetFileAbsolutePath $filePath $writeUserCodedPassword" 08/02/16 22:57 08/02/16 22:57 08/02/16 22:57 CreateTclPage (first substitution): can't read "knownPathArray(chrome,windows)": no such element in array while executing "join $knownPathArray(chrome,windows)
" invoked from within "regsub -all {/} [join $knownPathArray(chrome,windows)
] {\\}" invoked from within "subst { Starting URLibService

Starting URLibService

URLibService User's Guide
Version 2.1


Chapter 1

Starting URLibService

by Gerald J. F. Banon

Content
Basic requirements
Extracting the URLibService Environment
Starting URLibService
Posting the URLib local collection
Unposting the URLib local collection
Stopping URLibService
Updating URLibService
Resetting URLibService
Environment change
Setting your preferences
Opening the mirror page

Any questions about starting URLibService, please send a mail to <urlibservice@gmail.com>.

Once you have downloaded and extracted the URLibService Environment (see #!#1#@#), you can start the URLibService.

In this chapter, we assume that the URLib Environment have been downloaded under the directory:
C:\\URLib_path (for Windows)
/URLib_path (for UNIX).

Basic requirements

i. When starting URLibService for the first time, the current host must have a hostname, afterward this is optional.
The computer name must not begin and end with a minus sign '-', and should not contain any periods '.'.

On Windows XP, to set or change the computer name click the following sequence:

Start>My Computer>Right Mouse Button>Properties>Computer Name>Change
Enter the computer name and click OK.

On Windows 7, to set or change the computer name click the following sequence:

Start>Computer>Right Mouse Button>Properties>Advanced Setting>Computer Name>Change
Enter the computer name and click OK. Accented letter in the Computer Name should be avoided.

ii. You must inform your computer its domain name.

On Windows XP, check if:
- the DNS suffix field is filled out with the domain name by clicking the following sequence:
Start>Control Panel>Network Connections>Local Area Connection Properties>>General>Internet Protocol (TCP/IP)>Advanced>DNS>Append these DNS suffixes (in order)>Add

(if the text area is empty, you must enter the Domain suffix (i.e., the domain name))
OK

On UNIX, there must exist a file called /etc/resolv.conf whose owner is root and permissions are 644, containing the following two lines (in any order):
search aaa.bbb.com
nameserver 10.10.1.1

where, aaa.bbb.com is the computer domain name and 10.10.1.1 is the ip address of the DNS server.
If the file /etc/resolv.conf doesn't contain the line search aaa.bbb.com then you should, in some Linux distributions, append this line to the file
/etc/resolvconf/resolv.conf.d/base using, for example, the command:
echo "search aaa.bbb.com" >>/etc/resolvconf/resolv.conf.d/base

WARNING 1: this last file may be modified when using the Linux graphic user interface.

WARNING 2: the file /etc/hosts must contain the right machine ip. The ip should not be 127.0.0.1, unless the machine is used in standalone mode.

iii. On UNIX, if you are planning to use port 80, then URLibService must be started by root. In this case, if the whoami command exists (it returns root) a group say urlib and a user say urlibadm member of this group must have been set up (urlibadm@a.domain.name should be a valid e-mail address). If the whoami command doesn't exist, then the group urlib and the user urlibadm member of this group must have been set up.

iv. You should have a browser installed (optional).

On Windows, you should have Netscape installed at one of the following places:
[regsub -all {/} [join $knownPathArray(netscape,windows)
] {\\}]

or you should have Mozilla installed at one of the following places:
[regsub -all {/} [join $knownPathArray(mozilla,windows)
] {\\}]

or you should have Internet Explorer installed at one of the following places:
[regsub -all {/} [join $knownPathArray(internetExplorer,windows)
] {\\}]

or you should have Chrome installed at one of the following places:
[regsub -all {/} [join $knownPathArray(chrome,windows)
] {\\}]

If Netscape is not at one of the above places, then you may specify its absolute path in the file:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\auxdoc\\netscape.txt
If Mozilla is not at one of the above places, then you may specify its absolute path in the file:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\auxdoc\\mozilla.txt
If Internet Explorer is not at one of the above places, then you may specify its absolute path in the file:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\auxdoc\\internetExplorer.txt
(URLibService must then be resarted (not necessarily reposted) and your preference reset (see Setting the Preferences in the URLibService window)).

On UNIX, you should have Netscape installed at one of the following places:
[join $knownPathArray(netscape,unix)
]

or you should have Mozilla (or Firefox) installed at one of the following places:
[join $knownPathArray(mozilla,unix)
]

or you should have Konqueror installed at one of the following places:
[join $knownPathArray(konqueror,unix)
]

If Netscape is not at one of the above places, then you may specify its absolute path in the file:
/URLib_path/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/netscape.txt
If Mozilla is not at one of the above places, then you may specify its absolute path in the file:
C:/URLib_path/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/mozilla.txt
If Konqueror is not at one of the above places, then you may specify its absolute path in the file:
C:/URLib_path/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/konqueror.txt

WARNING: (URLibService must then be resarted (not necessarily reposted) and your preference reset (see Setting the Preferences in the URLibService window)).

v. You should have a text editor installed (optional).

On Windows, you should have Wordpad installed at one of the following places:
[regsub -all {/} [join $knownPathArray(textEditor,windows)
] {\\}]

If your preferred text editor is not at one of the above places, then you may specify its absolute path in the file:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\auxdoc\\editor.txt
(URLibService must then be resarted (not necessarily reposted)).

On UNIX, you should have a text editor installed at one of the following places:
[join $knownPathArray(textEditor,unix)
]

If your preferred text editor is not at one of the above places, then you may specify its absolute path in the file:
/URLib_path/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/editor.txt
(URLibService must then be resarted (not necessarily reposted)).

If the text editor is not found in your file system, then you will not be able to open files from the URLibService Check Window.

Extracting the URLibService Environment

On Windows, click the doc.zip file by using the mouse right button and then the Extract to... menu option and finally the OK button.

On UNIX execute the following commands:
cd /URLib_path
unzip doc.zip
chmod 774 start
cd ..
chmod -R g+w URLib_path
chmod -R g+s URLib_path

If you are planning to use port 80, you should execute the additional commands (assuming that the URLibService administrator urlibadm is member of the urlib group - see Item iii of Basic requirements):
chown -R root URLib_path
chgrp -R urlib URLib_path

Starting URLibService

To start URLibService, execute the following commands.

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe start

On UNIX:
cd /URLib_path
./start

On Windows, you can create a shortcut with the following properties:
Target:
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe start
Start in:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc

On Linux, you can create a shortcut with the following properties:
Command:
/URLib_path/start
Work path:
/URLib_path

Posting the URLib local collection

Starting URLibService automatically posts the URLib local collection on the Web (starting the Apache Server).

If you want to post the URLib local collection without opening the URLibService window, execute instead the following command.

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post

On UNIX:
cd /URLib_path
./post &

The post command is specially useful to implement the URLib local collection posting at boot time.

To implement automatic posting at boot time on Windows 95 execute the following steps.

i. Create a shortcut called, for example, PostURLibService with the following properties:
Target:
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\tclsh85.exe post
Start in:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc

ii. Click the following sequence:
Start>Settings>Taskbar & Start Menu
Start Menu Programs
Add
Browse...
Windows>Desktop>PostURLibService
Open
Next >
StartUp
Next >
Finish
OK

To implement automatic posting at boot time on Windows XP execute the following steps.

i. Create a shortcut (same procedure as described above for Windows 95)

ii. Copy the shortcut and paste it in the following folder:
C:\\Documents and Settings\\UserName\\Start Menu\\Programs\\Startup
where UserName is the name of the user who is interested in the automatic posting.
In Brazil, the same folder might be called:
C:\\Documents and Settings\\UserName\\Menu Iniciar\\Programas\\Inicializar

To implement automatic posting at boot time on SunOS see Unposting the URLib local collection below.

To implement automatic posting of more than one collection using the same httpd port at boot time on Linux, follow the example below.

#!/sbin/sh

# Local system initialization script

# This script should be stored in a file named:
# /etc/rc.d/rc.local

# This script posts the following
# URLib local collections:

# /mnt/dados1/URLibLCP
# /mnt/dados1/URLibSIBGRAPI

cd /mnt/dados1/URLibLCP
rm -f ./col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid 
./post &
until #!# -f ./col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid #@#
do
sleep 1
done
cd /mnt/dados1/URLibSIBGRAPI
./post &

# End of script
OBSERVATION: at posting it is possible to set a new port entry by using the -p argument of the post command. For example, to set the port entry mtc-m16b 802 the post command must be:

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post -- -p mtc-m16b 802

On UNIX:
cd /URLib_path
./post -- -p mtc-m16b 802 &

Unposting the URLib local collection

If the URLibService window is open, then to unpost the URLib local collection, click the Exit button.

If the URLibService window is closed, then to unpost the URLib local collection, execute the following command.

On Windows
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post -- -x

On UNIX:
/URLib_path/unpost

Once the URLib local collection has been posted, it is not necessary to unpost it to open the URLibService window. You just execute the above start command right away as explained above in the Starting URLibService subsection.

To implement automatic unposting on some Linux distributions, follow the example below.

#!/sbin/sh

# This script should be stored in a file named:
# /etc/rc.d/rc.local_shutdown

# This script unposts the following
# URLib local collections:

# /mnt/dados1/URLibSIBGRAPI
# /mnt/dados1/URLibLCP

/mnt/dados1/URLibSIBGRAPI/unpost
/mnt/dados1/URLibLCP/unpost

# End of script

To implement automatic posting and unposting on SunOS, follow the example below.

#!/sbin/sh

# This script posts (or unposts) automatically the following
# URLib local collections:

# /home/banon/URLib
# /home/banon/URLib-
# /home/banon/URLib2
# /home/banon/URLib1920

# This script should be stored in a file placed under the
# /etc/init.d directory and named URLibServer

# With Solaris, the following symbolic links must be made:

# cd /etc/rc3.d; ln -s /etc/init.d/URLibServer S99URLibServer
# cd /etc/rc0.d; ln -s /etc/init.d/URLibServer K99URLibServer
# cd /etc/rc1.d; ln -s /etc/init.d/URLibServer K99URLibServer

# To run this script enter:
# /etc/init.d/URLibServer start
# /etc/init.d/URLibServer stop

case "\$1" in
'start')

# Starting ...

su banon -c "rm -f /home/banon/URLib/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid"
su banon -c "/home/banon/URLib/post &"
su banon -c "rm -f /home/banon/URLib-/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid"
su banon -c "/home/banon/URLib-/post &"
su banon -c "rm -f /home/banon/URLib2/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid"
su banon -c "/home/banon/URLib2/post &"

         ;;

'stop')

# Stopping ...

su banon -c "/home/banon/URLib/unpost"
su banon -c "/home/banon/URLib-/unpost"
su banon -c "/home/banon/URLib2/unpost"
su banon -c "/home/banon/URLib1920/unpost"

         ;;

*)
         echo "Usage: \$0 { start | stop }"
         ;;

esac
exit 0

# End of script

Stopping URLibService

If URLibService is running, unposting the local collection has no effect.

To stop URLibService (that is, to stop the Apache Server and close the URLibService main window), press the Exit Button in the main window. The local collection will be automatically unposted. If you want to close the the URLibService main window leaving the local collection posted, press the Close Button in the main window.

Updating URLibService

When URLibService is running you can update it automatically combining the unpost (with option -u) and post commands.

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post -- -x -u
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post

On UNIX:
/URLib_path/updateURLibService &

Resetting URLibService

When there is an inconsistency between the data in the files and the data in the RAM (this may occur after a "disk quota exceeded" for example) the URLibService must be reset by stopping it first and then posting or starting it again using the -r option.

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post -- -x
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post -- -r

On UNIX:
/URLib_path/reset &

Environment change

At start, URLibService is prepared o recognized any environment changes such as: host name, domain name, ip address or home path changes.

On Windows, it uses the following commands:
under DOS
ping -n 1 localhost
under tcl
info hostname
under DOS
ping -n 1 hostname
under DOS
nslookup hostname

WARNING: the third and fourth commands must return the same ip. If not, you should update the data in the Internet Protocol (TCP/IP) Properties window (the ip must be the one returned by the nslookup command).

Setting your preferences

When starting URLibService for the first time, the window entitled Setting the Preferences will open. In this window you should set your preferences: language, (URLibService administrator) e-mail address, browser and port number.

Please read the online help in that window to know how to set your preferences.

On UNIX, if you are planning to use port 80, then the e-mail address must be urlibadm@a.domain.name (see Item iii of Basic requirements).

Opening the mirror page

By pressing the blue OB (Open your Browser) button on the top of the URLib window, a new window will open containing the default mirror page diplayed by your browser.

The mirror page is an interface that ofers several services like searching the local collection, submitting new documents and registering new users.

When opning the mirror page for the first time, as local administrator, you should register yourself by executing the following steps.

i. Click the following sequence:
About this Mirror>Advanced User Registration

ii. Fill out the field "eMail Address (Login)" with the e-mail address that you inform when setting your preference (see previous section: Setting your preferences) and press the Submit button.

iii. Enter your full name and password and press the Submit button.

With this password, you will be able to search hidden metadata and execute restricted commands to manage the local collection.


while executing "CreateTclPage $thisRepository $fileContent $language $languageRep2 $path $targetFileAbsolutePath $filePath $writeUserCodedPassword" 08/02/16 22:57 CreateTclPage (first substitution): can't read "knownPathArray(chrome,windows)": no such element in array while executing "join $knownPathArray(chrome,windows)
" invoked from within "regsub -all {/} [join $knownPathArray(chrome,windows)
] {\\}" invoked from within "subst { Starting URLibService

Starting URLibService

URLibService User's Guide
Version 2.1


Chapter 1

Starting URLibService

by Gerald J. F. Banon

Content
Basic requirements
Extracting the URLibService Environment
Starting URLibService
Posting the URLib local collection
Unposting the URLib local collection
Stopping URLibService
Updating URLibService
Resetting URLibService
Environment change
Setting your preferences
Opening the mirror page

Any questions about starting URLibService, please send a mail to <urlibservice@gmail.com>.

Once you have downloaded and extracted the URLibService Environment (see #!#1#@#), you can start the URLibService.

In this chapter, we assume that the URLib Environment have been downloaded under the directory:
C:\\URLib_path (for Windows)
/URLib_path (for UNIX).

Basic requirements

i. When starting URLibService for the first time, the current host must have a hostname, afterward this is optional.
The computer name must not begin and end with a minus sign '-', and should not contain any periods '.'.

On Windows XP, to set or change the computer name click the following sequence:

Start>My Computer>Right Mouse Button>Properties>Computer Name>Change
Enter the computer name and click OK.

On Windows 7, to set or change the computer name click the following sequence:

Start>Computer>Right Mouse Button>Properties>Advanced Setting>Computer Name>Change
Enter the computer name and click OK. Accented letter in the Computer Name should be avoided.

ii. You must inform your computer its domain name.

On Windows XP, check if:
- the DNS suffix field is filled out with the domain name by clicking the following sequence:
Start>Control Panel>Network Connections>Local Area Connection Properties>>General>Internet Protocol (TCP/IP)>Advanced>DNS>Append these DNS suffixes (in order)>Add

(if the text area is empty, you must enter the Domain suffix (i.e., the domain name))
OK

On UNIX, there must exist a file called /etc/resolv.conf whose owner is root and permissions are 644, containing the following two lines (in any order):
search aaa.bbb.com
nameserver 10.10.1.1

where, aaa.bbb.com is the computer domain name and 10.10.1.1 is the ip address of the DNS server.
If the file /etc/resolv.conf doesn't contain the line search aaa.bbb.com then you should, in some Linux distributions, append this line to the file
/etc/resolvconf/resolv.conf.d/base using, for example, the command:
echo "search aaa.bbb.com" >>/etc/resolvconf/resolv.conf.d/base

WARNING 1: this last file may be modified when using the Linux graphic user interface.

WARNING 2: the file /etc/hosts must contain the right machine ip. The ip should not be 127.0.0.1, unless the machine is used in standalone mode.

iii. On UNIX, if you are planning to use port 80, then URLibService must be started by root. In this case, if the whoami command exists (it returns root) a group say urlib and a user say urlibadm member of this group must have been set up (urlibadm@a.domain.name should be a valid e-mail address). If the whoami command doesn't exist, then the group urlib and the user urlibadm member of this group must have been set up.

iv. You should have a browser installed (optional).

On Windows, you should have Netscape installed at one of the following places:
[regsub -all {/} [join $knownPathArray(netscape,windows)
] {\\}]

or you should have Mozilla installed at one of the following places:
[regsub -all {/} [join $knownPathArray(mozilla,windows)
] {\\}]

or you should have Internet Explorer installed at one of the following places:
[regsub -all {/} [join $knownPathArray(internetExplorer,windows)
] {\\}]

or you should have Chrome installed at one of the following places:
[regsub -all {/} [join $knownPathArray(chrome,windows)
] {\\}]

If Netscape is not at one of the above places, then you may specify its absolute path in the file:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\auxdoc\\netscape.txt
If Mozilla is not at one of the above places, then you may specify its absolute path in the file:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\auxdoc\\mozilla.txt
If Internet Explorer is not at one of the above places, then you may specify its absolute path in the file:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\auxdoc\\internetExplorer.txt
(URLibService must then be resarted (not necessarily reposted) and your preference reset (see Setting the Preferences in the URLibService window)).

On UNIX, you should have Netscape installed at one of the following places:
[join $knownPathArray(netscape,unix)
]

or you should have Mozilla (or Firefox) installed at one of the following places:
[join $knownPathArray(mozilla,unix)
]

or you should have Konqueror installed at one of the following places:
[join $knownPathArray(konqueror,unix)
]

If Netscape is not at one of the above places, then you may specify its absolute path in the file:
/URLib_path/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/netscape.txt
If Mozilla is not at one of the above places, then you may specify its absolute path in the file:
C:/URLib_path/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/mozilla.txt
If Konqueror is not at one of the above places, then you may specify its absolute path in the file:
C:/URLib_path/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/konqueror.txt

WARNING: (URLibService must then be resarted (not necessarily reposted) and your preference reset (see Setting the Preferences in the URLibService window)).

v. You should have a text editor installed (optional).

On Windows, you should have Wordpad installed at one of the following places:
[regsub -all {/} [join $knownPathArray(textEditor,windows)
] {\\}]

If your preferred text editor is not at one of the above places, then you may specify its absolute path in the file:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\auxdoc\\editor.txt
(URLibService must then be resarted (not necessarily reposted)).

On UNIX, you should have a text editor installed at one of the following places:
[join $knownPathArray(textEditor,unix)
]

If your preferred text editor is not at one of the above places, then you may specify its absolute path in the file:
/URLib_path/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/editor.txt
(URLibService must then be resarted (not necessarily reposted)).

If the text editor is not found in your file system, then you will not be able to open files from the URLibService Check Window.

Extracting the URLibService Environment

On Windows, click the doc.zip file by using the mouse right button and then the Extract to... menu option and finally the OK button.

On UNIX execute the following commands:
cd /URLib_path
unzip doc.zip
chmod 774 start
cd ..
chmod -R g+w URLib_path
chmod -R g+s URLib_path

If you are planning to use port 80, you should execute the additional commands (assuming that the URLibService administrator urlibadm is member of the urlib group - see Item iii of Basic requirements):
chown -R root URLib_path
chgrp -R urlib URLib_path

Starting URLibService

To start URLibService, execute the following commands.

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe start

On UNIX:
cd /URLib_path
./start

On Windows, you can create a shortcut with the following properties:
Target:
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe start
Start in:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc

On Linux, you can create a shortcut with the following properties:
Command:
/URLib_path/start
Work path:
/URLib_path

Posting the URLib local collection

Starting URLibService automatically posts the URLib local collection on the Web (starting the Apache Server).

If you want to post the URLib local collection without opening the URLibService window, execute instead the following command.

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post

On UNIX:
cd /URLib_path
./post &

The post command is specially useful to implement the URLib local collection posting at boot time.

To implement automatic posting at boot time on Windows 95 execute the following steps.

i. Create a shortcut called, for example, PostURLibService with the following properties:
Target:
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\tclsh85.exe post
Start in:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc

ii. Click the following sequence:
Start>Settings>Taskbar & Start Menu
Start Menu Programs
Add
Browse...
Windows>Desktop>PostURLibService
Open
Next >
StartUp
Next >
Finish
OK

To implement automatic posting at boot time on Windows XP execute the following steps.

i. Create a shortcut (same procedure as described above for Windows 95)

ii. Copy the shortcut and paste it in the following folder:
C:\\Documents and Settings\\UserName\\Start Menu\\Programs\\Startup
where UserName is the name of the user who is interested in the automatic posting.
In Brazil, the same folder might be called:
C:\\Documents and Settings\\UserName\\Menu Iniciar\\Programas\\Inicializar

To implement automatic posting at boot time on SunOS see Unposting the URLib local collection below.

To implement automatic posting of more than one collection using the same httpd port at boot time on Linux, follow the example below.

#!/sbin/sh

# Local system initialization script

# This script should be stored in a file named:
# /etc/rc.d/rc.local

# This script posts the following
# URLib local collections:

# /mnt/dados1/URLibLCP
# /mnt/dados1/URLibSIBGRAPI

cd /mnt/dados1/URLibLCP
rm -f ./col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid 
./post &
until #!# -f ./col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid #@#
do
sleep 1
done
cd /mnt/dados1/URLibSIBGRAPI
./post &

# End of script
OBSERVATION: at posting it is possible to set a new port entry by using the -p argument of the post command. For example, to set the port entry mtc-m16b 802 the post command must be:

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post -- -p mtc-m16b 802

On UNIX:
cd /URLib_path
./post -- -p mtc-m16b 802 &

Unposting the URLib local collection

If the URLibService window is open, then to unpost the URLib local collection, click the Exit button.

If the URLibService window is closed, then to unpost the URLib local collection, execute the following command.

On Windows
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post -- -x

On UNIX:
/URLib_path/unpost

Once the URLib local collection has been posted, it is not necessary to unpost it to open the URLibService window. You just execute the above start command right away as explained above in the Starting URLibService subsection.

To implement automatic unposting on some Linux distributions, follow the example below.

#!/sbin/sh

# This script should be stored in a file named:
# /etc/rc.d/rc.local_shutdown

# This script unposts the following
# URLib local collections:

# /mnt/dados1/URLibSIBGRAPI
# /mnt/dados1/URLibLCP

/mnt/dados1/URLibSIBGRAPI/unpost
/mnt/dados1/URLibLCP/unpost

# End of script

To implement automatic posting and unposting on SunOS, follow the example below.

#!/sbin/sh

# This script posts (or unposts) automatically the following
# URLib local collections:

# /home/banon/URLib
# /home/banon/URLib-
# /home/banon/URLib2
# /home/banon/URLib1920

# This script should be stored in a file placed under the
# /etc/init.d directory and named URLibServer

# With Solaris, the following symbolic links must be made:

# cd /etc/rc3.d; ln -s /etc/init.d/URLibServer S99URLibServer
# cd /etc/rc0.d; ln -s /etc/init.d/URLibServer K99URLibServer
# cd /etc/rc1.d; ln -s /etc/init.d/URLibServer K99URLibServer

# To run this script enter:
# /etc/init.d/URLibServer start
# /etc/init.d/URLibServer stop

case "\$1" in
'start')

# Starting ...

su banon -c "rm -f /home/banon/URLib/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid"
su banon -c "/home/banon/URLib/post &"
su banon -c "rm -f /home/banon/URLib-/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid"
su banon -c "/home/banon/URLib-/post &"
su banon -c "rm -f /home/banon/URLib2/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid"
su banon -c "/home/banon/URLib2/post &"

         ;;

'stop')

# Stopping ...

su banon -c "/home/banon/URLib/unpost"
su banon -c "/home/banon/URLib-/unpost"
su banon -c "/home/banon/URLib2/unpost"
su banon -c "/home/banon/URLib1920/unpost"

         ;;

*)
         echo "Usage: \$0 { start | stop }"
         ;;

esac
exit 0

# End of script

Stopping URLibService

If URLibService is running, unposting the local collection has no effect.

To stop URLibService (that is, to stop the Apache Server and close the URLibService main window), press the Exit Button in the main window. The local collection will be automatically unposted. If you want to close the the URLibService main window leaving the local collection posted, press the Close Button in the main window.

Updating URLibService

When URLibService is running you can update it automatically combining the unpost (with option -u) and post commands.

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post -- -x -u
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post

On UNIX:
/URLib_path/updateURLibService &

Resetting URLibService

When there is an inconsistency between the data in the files and the data in the RAM (this may occur after a "disk quota exceeded" for example) the URLibService must be reset by stopping it first and then posting or starting it again using the -r option.

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post -- -x
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post -- -r

On UNIX:
/URLib_path/reset &

Environment change

At start, URLibService is prepared o recognized any environment changes such as: host name, domain name, ip address or home path changes.

On Windows, it uses the following commands:
under DOS
ping -n 1 localhost
under tcl
info hostname
under DOS
ping -n 1 hostname
under DOS
nslookup hostname

WARNING: the third and fourth commands must return the same ip. If not, you should update the data in the Internet Protocol (TCP/IP) Properties window (the ip must be the one returned by the nslookup command).

Setting your preferences

When starting URLibService for the first time, the window entitled Setting the Preferences will open. In this window you should set your preferences: language, (URLibService administrator) e-mail address, browser and port number.

Please read the online help in that window to know how to set your preferences.

On UNIX, if you are planning to use port 80, then the e-mail address must be urlibadm@a.domain.name (see Item iii of Basic requirements).

Opening the mirror page

By pressing the blue OB (Open your Browser) button on the top of the URLib window, a new window will open containing the default mirror page diplayed by your browser.

The mirror page is an interface that ofers several services like searching the local collection, submitting new documents and registering new users.

When opning the mirror page for the first time, as local administrator, you should register yourself by executing the following steps.

i. Click the following sequence:
About this Mirror>Advanced User Registration

ii. Fill out the field "eMail Address (Login)" with the e-mail address that you inform when setting your preference (see previous section: Setting your preferences) and press the Submit button.

iii. Enter your full name and password and press the Submit button.

With this password, you will be able to search hidden metadata and execute restricted commands to manage the local collection.


while executing "CreateTclPage $thisRepository $fileContent $language $languageRep2 $path $targetFileAbsolutePath $filePath $writeUserCodedPassword" 08/02/16 22:58 08/02/16 22:58 08/02/16 22:58 CreateTclPage (first substitution): can't read "knownPathArray(chrome,windows)": no such element in array while executing "join $knownPathArray(chrome,windows)
" invoked from within "regsub -all {/} [join $knownPathArray(chrome,windows)
] {\\}" invoked from within "subst { Starting URLibService

Starting URLibService

URLibService User's Guide
Version 2.1


Chapter 1

Starting URLibService

by Gerald J. F. Banon

Content
Basic requirements
Extracting the URLibService Environment
Starting URLibService
Posting the URLib local collection
Unposting the URLib local collection
Stopping URLibService
Updating URLibService
Resetting URLibService
Environment change
Setting your preferences
Opening the mirror page

Any questions about starting URLibService, please send a mail to <urlibservice@gmail.com>.

Once you have downloaded and extracted the URLibService Environment (see #!#1#@#), you can start the URLibService.

In this chapter, we assume that the URLib Environment have been downloaded under the directory:
C:\\URLib_path (for Windows)
/URLib_path (for UNIX).

Basic requirements

i. When starting URLibService for the first time, the current host must have a hostname, afterward this is optional.
The computer name must not begin and end with a minus sign '-', and should not contain any periods '.'.

On Windows XP, to set or change the computer name click the following sequence:

Start>My Computer>Right Mouse Button>Properties>Computer Name>Change
Enter the computer name and click OK.

On Windows 7, to set or change the computer name click the following sequence:

Start>Computer>Right Mouse Button>Properties>Advanced Setting>Computer Name>Change
Enter the computer name and click OK. Accented letter in the Computer Name should be avoided.

ii. You must inform your computer its domain name.

On Windows XP, check if:
- the DNS suffix field is filled out with the domain name by clicking the following sequence:
Start>Control Panel>Network Connections>Local Area Connection Properties>>General>Internet Protocol (TCP/IP)>Advanced>DNS>Append these DNS suffixes (in order)>Add

(if the text area is empty, you must enter the Domain suffix (i.e., the domain name))
OK

On UNIX, there must exist a file called /etc/resolv.conf whose owner is root and permissions are 644, containing the following two lines (in any order):
search aaa.bbb.com
nameserver 10.10.1.1

where, aaa.bbb.com is the computer domain name and 10.10.1.1 is the ip address of the DNS server.
If the file /etc/resolv.conf doesn't contain the line search aaa.bbb.com then you should, in some Linux distributions, append this line to the file
/etc/resolvconf/resolv.conf.d/base using, for example, the command:
echo "search aaa.bbb.com" >>/etc/resolvconf/resolv.conf.d/base

WARNING 1: this last file may be modified when using the Linux graphic user interface.

WARNING 2: the file /etc/hosts must contain the right machine ip. The ip should not be 127.0.0.1, unless the machine is used in standalone mode.

iii. On UNIX, if you are planning to use port 80, then URLibService must be started by root. In this case, if the whoami command exists (it returns root) a group say urlib and a user say urlibadm member of this group must have been set up (urlibadm@a.domain.name should be a valid e-mail address). If the whoami command doesn't exist, then the group urlib and the user urlibadm member of this group must have been set up.

iv. You should have a browser installed (optional).

On Windows, you should have Netscape installed at one of the following places:
[regsub -all {/} [join $knownPathArray(netscape,windows)
] {\\}]

or you should have Mozilla installed at one of the following places:
[regsub -all {/} [join $knownPathArray(mozilla,windows)
] {\\}]

or you should have Internet Explorer installed at one of the following places:
[regsub -all {/} [join $knownPathArray(internetExplorer,windows)
] {\\}]

or you should have Chrome installed at one of the following places:
[regsub -all {/} [join $knownPathArray(chrome,windows)
] {\\}]

If Netscape is not at one of the above places, then you may specify its absolute path in the file:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\auxdoc\\netscape.txt
If Mozilla is not at one of the above places, then you may specify its absolute path in the file:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\auxdoc\\mozilla.txt
If Internet Explorer is not at one of the above places, then you may specify its absolute path in the file:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\auxdoc\\internetExplorer.txt
(URLibService must then be resarted (not necessarily reposted) and your preference reset (see Setting the Preferences in the URLibService window)).

On UNIX, you should have Netscape installed at one of the following places:
[join $knownPathArray(netscape,unix)
]

or you should have Mozilla (or Firefox) installed at one of the following places:
[join $knownPathArray(mozilla,unix)
]

or you should have Konqueror installed at one of the following places:
[join $knownPathArray(konqueror,unix)
]

If Netscape is not at one of the above places, then you may specify its absolute path in the file:
/URLib_path/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/netscape.txt
If Mozilla is not at one of the above places, then you may specify its absolute path in the file:
C:/URLib_path/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/mozilla.txt
If Konqueror is not at one of the above places, then you may specify its absolute path in the file:
C:/URLib_path/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/konqueror.txt

WARNING: (URLibService must then be resarted (not necessarily reposted) and your preference reset (see Setting the Preferences in the URLibService window)).

v. You should have a text editor installed (optional).

On Windows, you should have Wordpad installed at one of the following places:
[regsub -all {/} [join $knownPathArray(textEditor,windows)
] {\\}]

If your preferred text editor is not at one of the above places, then you may specify its absolute path in the file:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\auxdoc\\editor.txt
(URLibService must then be resarted (not necessarily reposted)).

On UNIX, you should have a text editor installed at one of the following places:
[join $knownPathArray(textEditor,unix)
]

If your preferred text editor is not at one of the above places, then you may specify its absolute path in the file:
/URLib_path/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/editor.txt
(URLibService must then be resarted (not necessarily reposted)).

If the text editor is not found in your file system, then you will not be able to open files from the URLibService Check Window.

Extracting the URLibService Environment

On Windows, click the doc.zip file by using the mouse right button and then the Extract to... menu option and finally the OK button.

On UNIX execute the following commands:
cd /URLib_path
unzip doc.zip
chmod 774 start
cd ..
chmod -R g+w URLib_path
chmod -R g+s URLib_path

If you are planning to use port 80, you should execute the additional commands (assuming that the URLibService administrator urlibadm is member of the urlib group - see Item iii of Basic requirements):
chown -R root URLib_path
chgrp -R urlib URLib_path

Starting URLibService

To start URLibService, execute the following commands.

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe start

On UNIX:
cd /URLib_path
./start

On Windows, you can create a shortcut with the following properties:
Target:
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe start
Start in:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc

On Linux, you can create a shortcut with the following properties:
Command:
/URLib_path/start
Work path:
/URLib_path

Posting the URLib local collection

Starting URLibService automatically posts the URLib local collection on the Web (starting the Apache Server).

If you want to post the URLib local collection without opening the URLibService window, execute instead the following command.

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post

On UNIX:
cd /URLib_path
./post &

The post command is specially useful to implement the URLib local collection posting at boot time.

To implement automatic posting at boot time on Windows 95 execute the following steps.

i. Create a shortcut called, for example, PostURLibService with the following properties:
Target:
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\tclsh85.exe post
Start in:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc

ii. Click the following sequence:
Start>Settings>Taskbar & Start Menu
Start Menu Programs
Add
Browse...
Windows>Desktop>PostURLibService
Open
Next >
StartUp
Next >
Finish
OK

To implement automatic posting at boot time on Windows XP execute the following steps.

i. Create a shortcut (same procedure as described above for Windows 95)

ii. Copy the shortcut and paste it in the following folder:
C:\\Documents and Settings\\UserName\\Start Menu\\Programs\\Startup
where UserName is the name of the user who is interested in the automatic posting.
In Brazil, the same folder might be called:
C:\\Documents and Settings\\UserName\\Menu Iniciar\\Programas\\Inicializar

To implement automatic posting at boot time on SunOS see Unposting the URLib local collection below.

To implement automatic posting of more than one collection using the same httpd port at boot time on Linux, follow the example below.

#!/sbin/sh

# Local system initialization script

# This script should be stored in a file named:
# /etc/rc.d/rc.local

# This script posts the following
# URLib local collections:

# /mnt/dados1/URLibLCP
# /mnt/dados1/URLibSIBGRAPI

cd /mnt/dados1/URLibLCP
rm -f ./col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid 
./post &
until #!# -f ./col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid #@#
do
sleep 1
done
cd /mnt/dados1/URLibSIBGRAPI
./post &

# End of script
OBSERVATION: at posting it is possible to set a new port entry by using the -p argument of the post command. For example, to set the port entry mtc-m16b 802 the post command must be:

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post -- -p mtc-m16b 802

On UNIX:
cd /URLib_path
./post -- -p mtc-m16b 802 &

Unposting the URLib local collection

If the URLibService window is open, then to unpost the URLib local collection, click the Exit button.

If the URLibService window is closed, then to unpost the URLib local collection, execute the following command.

On Windows
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post -- -x

On UNIX:
/URLib_path/unpost

Once the URLib local collection has been posted, it is not necessary to unpost it to open the URLibService window. You just execute the above start command right away as explained above in the Starting URLibService subsection.

To implement automatic unposting on some Linux distributions, follow the example below.

#!/sbin/sh

# This script should be stored in a file named:
# /etc/rc.d/rc.local_shutdown

# This script unposts the following
# URLib local collections:

# /mnt/dados1/URLibSIBGRAPI
# /mnt/dados1/URLibLCP

/mnt/dados1/URLibSIBGRAPI/unpost
/mnt/dados1/URLibLCP/unpost

# End of script

To implement automatic posting and unposting on SunOS, follow the example below.

#!/sbin/sh

# This script posts (or unposts) automatically the following
# URLib local collections:

# /home/banon/URLib
# /home/banon/URLib-
# /home/banon/URLib2
# /home/banon/URLib1920

# This script should be stored in a file placed under the
# /etc/init.d directory and named URLibServer

# With Solaris, the following symbolic links must be made:

# cd /etc/rc3.d; ln -s /etc/init.d/URLibServer S99URLibServer
# cd /etc/rc0.d; ln -s /etc/init.d/URLibServer K99URLibServer
# cd /etc/rc1.d; ln -s /etc/init.d/URLibServer K99URLibServer

# To run this script enter:
# /etc/init.d/URLibServer start
# /etc/init.d/URLibServer stop

case "\$1" in
'start')

# Starting ...

su banon -c "rm -f /home/banon/URLib/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid"
su banon -c "/home/banon/URLib/post &"
su banon -c "rm -f /home/banon/URLib-/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid"
su banon -c "/home/banon/URLib-/post &"
su banon -c "rm -f /home/banon/URLib2/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid"
su banon -c "/home/banon/URLib2/post &"

         ;;

'stop')

# Stopping ...

su banon -c "/home/banon/URLib/unpost"
su banon -c "/home/banon/URLib-/unpost"
su banon -c "/home/banon/URLib2/unpost"
su banon -c "/home/banon/URLib1920/unpost"

         ;;

*)
         echo "Usage: \$0 { start | stop }"
         ;;

esac
exit 0

# End of script

Stopping URLibService

If URLibService is running, unposting the local collection has no effect.

To stop URLibService (that is, to stop the Apache Server and close the URLibService main window), press the Exit Button in the main window. The local collection will be automatically unposted. If you want to close the the URLibService main window leaving the local collection posted, press the Close Button in the main window.

Updating URLibService

When URLibService is running you can update it automatically combining the unpost (with option -u) and post commands.

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post -- -x -u
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post

On UNIX:
/URLib_path/updateURLibService &

Resetting URLibService

When there is an inconsistency between the data in the files and the data in the RAM (this may occur after a "disk quota exceeded" for example) the URLibService must be reset by stopping it first and then posting or starting it again using the -r option.

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post -- -x
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post -- -r

On UNIX:
/URLib_path/reset &

Environment change

At start, URLibService is prepared o recognized any environment changes such as: host name, domain name, ip address or home path changes.

On Windows, it uses the following commands:
under DOS
ping -n 1 localhost
under tcl
info hostname
under DOS
ping -n 1 hostname
under DOS
nslookup hostname

WARNING: the third and fourth commands must return the same ip. If not, you should update the data in the Internet Protocol (TCP/IP) Properties window (the ip must be the one returned by the nslookup command).

Setting your preferences

When starting URLibService for the first time, the window entitled Setting the Preferences will open. In this window you should set your preferences: language, (URLibService administrator) e-mail address, browser and port number.

Please read the online help in that window to know how to set your preferences.

On UNIX, if you are planning to use port 80, then the e-mail address must be urlibadm@a.domain.name (see Item iii of Basic requirements).

Opening the mirror page

By pressing the blue OB (Open your Browser) button on the top of the URLib window, a new window will open containing the default mirror page diplayed by your browser.

The mirror page is an interface that ofers several services like searching the local collection, submitting new documents and registering new users.

When opning the mirror page for the first time, as local administrator, you should register yourself by executing the following steps.

i. Click the following sequence:
About this Mirror>Advanced User Registration

ii. Fill out the field "eMail Address (Login)" with the e-mail address that you inform when setting your preference (see previous section: Setting your preferences) and press the Submit button.

iii. Enter your full name and password and press the Submit button.

With this password, you will be able to search hidden metadata and execute restricted commands to manage the local collection.


while executing "CreateTclPage $thisRepository $fileContent $language $languageRep2 $path $targetFileAbsolutePath $filePath $writeUserCodedPassword" 08/02/16 22:58 CreateTclPage (first substitution): can't read "knownPathArray(chrome,windows)": no such element in array while executing "join $knownPathArray(chrome,windows)
" invoked from within "regsub -all {/} [join $knownPathArray(chrome,windows)
] {\\}" invoked from within "subst { Starting URLibService

Starting URLibService

URLibService User's Guide
Version 2.1


Chapter 1

Starting URLibService

by Gerald J. F. Banon

Content
Basic requirements
Extracting the URLibService Environment
Starting URLibService
Posting the URLib local collection
Unposting the URLib local collection
Stopping URLibService
Updating URLibService
Resetting URLibService
Environment change
Setting your preferences
Opening the mirror page

Any questions about starting URLibService, please send a mail to <urlibservice@gmail.com>.

Once you have downloaded and extracted the URLibService Environment (see #!#1#@#), you can start the URLibService.

In this chapter, we assume that the URLib Environment have been downloaded under the directory:
C:\\URLib_path (for Windows)
/URLib_path (for UNIX).

Basic requirements

i. When starting URLibService for the first time, the current host must have a hostname, afterward this is optional.
The computer name must not begin and end with a minus sign '-', and should not contain any periods '.'.

On Windows XP, to set or change the computer name click the following sequence:

Start>My Computer>Right Mouse Button>Properties>Computer Name>Change
Enter the computer name and click OK.

On Windows 7, to set or change the computer name click the following sequence:

Start>Computer>Right Mouse Button>Properties>Advanced Setting>Computer Name>Change
Enter the computer name and click OK. Accented letter in the Computer Name should be avoided.

ii. You must inform your computer its domain name.

On Windows XP, check if:
- the DNS suffix field is filled out with the domain name by clicking the following sequence:
Start>Control Panel>Network Connections>Local Area Connection Properties>>General>Internet Protocol (TCP/IP)>Advanced>DNS>Append these DNS suffixes (in order)>Add

(if the text area is empty, you must enter the Domain suffix (i.e., the domain name))
OK

On UNIX, there must exist a file called /etc/resolv.conf whose owner is root and permissions are 644, containing the following two lines (in any order):
search aaa.bbb.com
nameserver 10.10.1.1

where, aaa.bbb.com is the computer domain name and 10.10.1.1 is the ip address of the DNS server.
If the file /etc/resolv.conf doesn't contain the line search aaa.bbb.com then you should, in some Linux distributions, append this line to the file
/etc/resolvconf/resolv.conf.d/base using, for example, the command:
echo "search aaa.bbb.com" >>/etc/resolvconf/resolv.conf.d/base

WARNING 1: this last file may be modified when using the Linux graphic user interface.

WARNING 2: the file /etc/hosts must contain the right machine ip. The ip should not be 127.0.0.1, unless the machine is used in standalone mode.

iii. On UNIX, if you are planning to use port 80, then URLibService must be started by root. In this case, if the whoami command exists (it returns root) a group say urlib and a user say urlibadm member of this group must have been set up (urlibadm@a.domain.name should be a valid e-mail address). If the whoami command doesn't exist, then the group urlib and the user urlibadm member of this group must have been set up.

iv. You should have a browser installed (optional).

On Windows, you should have Netscape installed at one of the following places:
[regsub -all {/} [join $knownPathArray(netscape,windows)
] {\\}]

or you should have Mozilla installed at one of the following places:
[regsub -all {/} [join $knownPathArray(mozilla,windows)
] {\\}]

or you should have Internet Explorer installed at one of the following places:
[regsub -all {/} [join $knownPathArray(internetExplorer,windows)
] {\\}]

or you should have Chrome installed at one of the following places:
[regsub -all {/} [join $knownPathArray(chrome,windows)
] {\\}]

If Netscape is not at one of the above places, then you may specify its absolute path in the file:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\auxdoc\\netscape.txt
If Mozilla is not at one of the above places, then you may specify its absolute path in the file:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\auxdoc\\mozilla.txt
If Internet Explorer is not at one of the above places, then you may specify its absolute path in the file:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\auxdoc\\internetExplorer.txt
(URLibService must then be resarted (not necessarily reposted) and your preference reset (see Setting the Preferences in the URLibService window)).

On UNIX, you should have Netscape installed at one of the following places:
[join $knownPathArray(netscape,unix)
]

or you should have Mozilla (or Firefox) installed at one of the following places:
[join $knownPathArray(mozilla,unix)
]

or you should have Konqueror installed at one of the following places:
[join $knownPathArray(konqueror,unix)
]

If Netscape is not at one of the above places, then you may specify its absolute path in the file:
/URLib_path/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/netscape.txt
If Mozilla is not at one of the above places, then you may specify its absolute path in the file:
C:/URLib_path/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/mozilla.txt
If Konqueror is not at one of the above places, then you may specify its absolute path in the file:
C:/URLib_path/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/konqueror.txt

WARNING: (URLibService must then be resarted (not necessarily reposted) and your preference reset (see Setting the Preferences in the URLibService window)).

v. You should have a text editor installed (optional).

On Windows, you should have Wordpad installed at one of the following places:
[regsub -all {/} [join $knownPathArray(textEditor,windows)
] {\\}]

If your preferred text editor is not at one of the above places, then you may specify its absolute path in the file:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\auxdoc\\editor.txt
(URLibService must then be resarted (not necessarily reposted)).

On UNIX, you should have a text editor installed at one of the following places:
[join $knownPathArray(textEditor,unix)
]

If your preferred text editor is not at one of the above places, then you may specify its absolute path in the file:
/URLib_path/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/editor.txt
(URLibService must then be resarted (not necessarily reposted)).

If the text editor is not found in your file system, then you will not be able to open files from the URLibService Check Window.

Extracting the URLibService Environment

On Windows, click the doc.zip file by using the mouse right button and then the Extract to... menu option and finally the OK button.

On UNIX execute the following commands:
cd /URLib_path
unzip doc.zip
chmod 774 start
cd ..
chmod -R g+w URLib_path
chmod -R g+s URLib_path

If you are planning to use port 80, you should execute the additional commands (assuming that the URLibService administrator urlibadm is member of the urlib group - see Item iii of Basic requirements):
chown -R root URLib_path
chgrp -R urlib URLib_path

Starting URLibService

To start URLibService, execute the following commands.

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe start

On UNIX:
cd /URLib_path
./start

On Windows, you can create a shortcut with the following properties:
Target:
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe start
Start in:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc

On Linux, you can create a shortcut with the following properties:
Command:
/URLib_path/start
Work path:
/URLib_path

Posting the URLib local collection

Starting URLibService automatically posts the URLib local collection on the Web (starting the Apache Server).

If you want to post the URLib local collection without opening the URLibService window, execute instead the following command.

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post

On UNIX:
cd /URLib_path
./post &

The post command is specially useful to implement the URLib local collection posting at boot time.

To implement automatic posting at boot time on Windows 95 execute the following steps.

i. Create a shortcut called, for example, PostURLibService with the following properties:
Target:
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\tclsh85.exe post
Start in:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc

ii. Click the following sequence:
Start>Settings>Taskbar & Start Menu
Start Menu Programs
Add
Browse...
Windows>Desktop>PostURLibService
Open
Next >
StartUp
Next >
Finish
OK

To implement automatic posting at boot time on Windows XP execute the following steps.

i. Create a shortcut (same procedure as described above for Windows 95)

ii. Copy the shortcut and paste it in the following folder:
C:\\Documents and Settings\\UserName\\Start Menu\\Programs\\Startup
where UserName is the name of the user who is interested in the automatic posting.
In Brazil, the same folder might be called:
C:\\Documents and Settings\\UserName\\Menu Iniciar\\Programas\\Inicializar

To implement automatic posting at boot time on SunOS see Unposting the URLib local collection below.

To implement automatic posting of more than one collection using the same httpd port at boot time on Linux, follow the example below.

#!/sbin/sh

# Local system initialization script

# This script should be stored in a file named:
# /etc/rc.d/rc.local

# This script posts the following
# URLib local collections:

# /mnt/dados1/URLibLCP
# /mnt/dados1/URLibSIBGRAPI

cd /mnt/dados1/URLibLCP
rm -f ./col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid 
./post &
until #!# -f ./col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid #@#
do
sleep 1
done
cd /mnt/dados1/URLibSIBGRAPI
./post &

# End of script
OBSERVATION: at posting it is possible to set a new port entry by using the -p argument of the post command. For example, to set the port entry mtc-m16b 802 the post command must be:

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post -- -p mtc-m16b 802

On UNIX:
cd /URLib_path
./post -- -p mtc-m16b 802 &

Unposting the URLib local collection

If the URLibService window is open, then to unpost the URLib local collection, click the Exit button.

If the URLibService window is closed, then to unpost the URLib local collection, execute the following command.

On Windows
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post -- -x

On UNIX:
/URLib_path/unpost

Once the URLib local collection has been posted, it is not necessary to unpost it to open the URLibService window. You just execute the above start command right away as explained above in the Starting URLibService subsection.

To implement automatic unposting on some Linux distributions, follow the example below.

#!/sbin/sh

# This script should be stored in a file named:
# /etc/rc.d/rc.local_shutdown

# This script unposts the following
# URLib local collections:

# /mnt/dados1/URLibSIBGRAPI
# /mnt/dados1/URLibLCP

/mnt/dados1/URLibSIBGRAPI/unpost
/mnt/dados1/URLibLCP/unpost

# End of script

To implement automatic posting and unposting on SunOS, follow the example below.

#!/sbin/sh

# This script posts (or unposts) automatically the following
# URLib local collections:

# /home/banon/URLib
# /home/banon/URLib-
# /home/banon/URLib2
# /home/banon/URLib1920

# This script should be stored in a file placed under the
# /etc/init.d directory and named URLibServer

# With Solaris, the following symbolic links must be made:

# cd /etc/rc3.d; ln -s /etc/init.d/URLibServer S99URLibServer
# cd /etc/rc0.d; ln -s /etc/init.d/URLibServer K99URLibServer
# cd /etc/rc1.d; ln -s /etc/init.d/URLibServer K99URLibServer

# To run this script enter:
# /etc/init.d/URLibServer start
# /etc/init.d/URLibServer stop

case "\$1" in
'start')

# Starting ...

su banon -c "rm -f /home/banon/URLib/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid"
su banon -c "/home/banon/URLib/post &"
su banon -c "rm -f /home/banon/URLib-/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid"
su banon -c "/home/banon/URLib-/post &"
su banon -c "rm -f /home/banon/URLib2/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid"
su banon -c "/home/banon/URLib2/post &"

         ;;

'stop')

# Stopping ...

su banon -c "/home/banon/URLib/unpost"
su banon -c "/home/banon/URLib-/unpost"
su banon -c "/home/banon/URLib2/unpost"
su banon -c "/home/banon/URLib1920/unpost"

         ;;

*)
         echo "Usage: \$0 { start | stop }"
         ;;

esac
exit 0

# End of script

Stopping URLibService

If URLibService is running, unposting the local collection has no effect.

To stop URLibService (that is, to stop the Apache Server and close the URLibService main window), press the Exit Button in the main window. The local collection will be automatically unposted. If you want to close the the URLibService main window leaving the local collection posted, press the Close Button in the main window.

Updating URLibService

When URLibService is running you can update it automatically combining the unpost (with option -u) and post commands.

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post -- -x -u
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post

On UNIX:
/URLib_path/updateURLibService &

Resetting URLibService

When there is an inconsistency between the data in the files and the data in the RAM (this may occur after a "disk quota exceeded" for example) the URLibService must be reset by stopping it first and then posting or starting it again using the -r option.

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post -- -x
C:\\URLib_path\\col\\iconet.com.br\\banon\\2010\\06.17.00.19\\doc\\bin\\wish85.exe post -- -r

On UNIX:
/URLib_path/reset &

Environment change

At start, URLibService is prepared o recognized any environment changes such as: host name, domain name, ip address or home path changes.

On Windows, it uses the following commands:
under DOS
ping -n 1 localhost
under tcl
info hostname
under DOS
ping -n 1 hostname
under DOS
nslookup hostname

WARNING: the third and fourth commands must return the same ip. If not, you should update the data in the Internet Protocol (TCP/IP) Properties window (the ip must be the one returned by the nslookup command).

Setting your preferences

When starting URLibService for the first time, the window entitled Setting the Preferences will open. In this window you should set your preferences: language, (URLibService administrator) e-mail address, browser and port number.

Please read the online help in that window to know how to set your preferences.

On UNIX, if you are planning to use port 80, then the e-mail address must be urlibadm@a.domain.name (see Item iii of Basic requirements).

Opening the mirror page

By pressing the blue OB (Open your Browser) button on the top of the URLib window, a new window will open containing the default mirror page diplayed by your browser.

The mirror page is an interface that ofers several services like searching the local collection, submitting new documents and registering new users.

When opning the mirror page for the first time, as local administrator, you should register yourself by executing the following steps.

i. Click the following sequence:
About this Mirror>Advanced User Registration

ii. Fill out the field "eMail Address (Login)" with the e-mail address that you inform when setting your preference (see previous section: Setting your preferences) and press the Submit button.

iii. Enter your full name and password and press the Submit button.

With this password, you will be able to search hidden metadata and execute restricted commands to manage the local collection.


while executing "CreateTclPage $thisRepository $fileContent $language $languageRep2 $path $targetFileAbsolutePath $filePath $writeUserCodedPassword" 08/02/16 23:01 08/02/16 23:01 09/02/16 01:07 09/02/16 01:07 28/03/16 12:22 06/12/16 10:43 06/12/16 10:43 13/10/17 22:22 13/10/17 22:22 13/10/17 23:51 13/10/17 23:51 13/10/17 23:52 13/10/17 23:52 13/10/17 23:57 14/10/17 00:01 14/10/17 00:01 14/10/17 00:01 14/10/17 01:26 14/10/17 01:26 14/10/17 01:34 14/10/17 01:34 14/10/17 01:46 14/10/17 01:46 14/10/17 01:50 14/10/17 01:50 14/10/17 12:07 14/10/17 12:07 14/10/17 12:08 30/05/18 14:35 30/05/18 14:35 11/12/18 10:07 11/12/18 10:07 30/12/18 00:46 30/12/18 00:46 28/03/20 00:28 28/03/20 00:28 28/03/20 00:30 28/03/20 00:30 29/03/20 00:01 29/03/20 00:01 29/03/20 02:05 29/03/20 02:05 12/04/20 01:38 12/04/20 01:38 15/04/20 13:25 25/04/20 18:55 25/04/20 18:57 25/04/20 18:59 25/04/20 19:03 25/04/20 19:03 25/04/20 19:04 25/04/20 19:04 25/04/20 19:06 25/04/20 19:10 25/04/20 19:11 25/04/20 19:12 25/04/20 19:14 25/04/20 20:31 25/04/20 20:33 26/04/20 00:07 26/04/20 00:26 26/04/20 00:30 05/07/21 01:07 05/07/21 01:22 05/07/21 01:37 05/07/21 01:53 05/07/21 01:54 05/07/21 01:55 05/07/21 01:55 05/07/21 01:56 05/07/21 01:56 05/07/21 01:57 05/07/21 11:00 05/07/21 11:03 05/07/21 11:04 05/07/21 11:07 05/07/21 11:08 05/07/21 11:38 06/07/21 01:31 06/07/21 01:39 06/07/21 12:41 06/07/21 16:23 06/07/21 16:31 06/07/21 16:32 06/07/21 17:02 06/07/21 17:03 06/07/21 17:04 06/07/21 17:05 06/07/21 17:07 06/07/21 19:08 10/07/21 22:29 05/10/21 11:15 06/10/21 20:29 06/10/21 21:24 06/10/21 23:37 06/10/21 23:39 06/10/21 23:49 06/10/21 23:49 06/10/21 23:54 07/10/21 00:04 07/10/21 00:05 07/10/21 00:06 07/10/21 00:18 07/10/21 00:31 07/10/21 00:31 07/10/21 00:33 07/10/21 00:34 07/10/21 00:34 CreateTclPage (first substitution): can't read "knownPathArray(netscape,windows)": no such element in array while executing "join $knownPathArray(netscape,windows)
" invoked from within "regsub -all {/} [join $knownPathArray(netscape,windows)
] {\\}" invoked from within "subst { Starting URLibService Starting URLibService

This page and the related files are hosted by

URLibService User's Guide
Version 2.1


Chapter 1

Starting URLibService

by Gerald J. F. Banon

Content

Preamble
Basic requirements
Extracting the URLibService Environment
Starting URLibService
Posting the URLib local collection
Unposting the URLib local collection
Stopping URLibService
Updating URLibService
Resetting URLibService
Environment change
Setting your preferences
Opening the mirror page

Preamble

Any questions about starting URLibService, please send a mail to <urlibservice@gmail.com>.

Once you have downloaded the URLibService Environment (see #!#1#@#), follow the recommendations below.

In this chapter, we assume that the URLib Environment have been downloaded under the directory:
C:\\URLib_path (for Windows)
/URLib_path (for UNIX).

Basic requirements

i. The current host must have a hostname. The hostname must not begin and end with a minus sign '-', and should not contain any periods '.'.

On Windows 10, to set or change the hostname click the following sequence:

Start>Settings>About>Rename this computer

Accented letter in the hostname should be avoided.

ii. You must inform your computer its domain name.

On UNIX, there must exist a file called /etc/resolv.conf whose owner is root and permissions are 644, containing the following two lines (in any order):
search aaa.bbb.com
nameserver 10.10.1.1

where, aaa.bbb.com is the computer domain name and 10.10.1.1 is the ip address of the DNS server.
If the file /etc/resolv.conf doesn't contain the line search aaa.bbb.com then you should, in some Linux distributions, append this line to the file
/etc/resolvconf/resolv.conf.d/base using, for example, the command:
echo "search aaa.bbb.com" >>/etc/resolvconf/resolv.conf.d/base

WARNING 1: this last file may be modified when using the Linux graphic user interface.

WARNING 2: the file /etc/hosts must contain the right machine ip. The ip should not be 127.0.0.1, unless the machine is used in standalone mode.

iii. On UNIX, if you are planning to use port 80, then URLibService must be started by root. In this case, a group say urlib and a user say urlibadm member of this group must have been set up in such a way that urlibadm@a.domain.name is a valid e-mail address.

iv. You should have a browser installed (optional).

On Windows, you should have Netscape installed at one of the following places:
[regsub -all {/} [join $knownPathArray(netscape,windows)
] {\\}]

or you should have Mozilla installed at one of the following places:
[regsub -all {/} [join $knownPathArray(mozilla,windows)
] {\\}]

or you should have Internet Explorer installed at one of the following places:
[regsub -all {/} [join $knownPathArray(internetExplorer,windows)
] {\\}]

or you should have Chrome installed at one of the following places:
[regsub -all {/} [join $knownPathArray(chrome,windows)
] {\\}]

If Netscape is not at one of the above places, then you may specify its absolute path in the file:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\auxdoc\\netscape.txt
If Mozilla is not at one of the above places, then you may specify its absolute path in the file:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\auxdoc\\mozilla.txt
If Internet Explorer is not at one of the above places, then you may specify its absolute path in the file:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\auxdoc\\internetExplorer.txt
If Chrome is not at one of the above places, then you may specify its absolute path in the file:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\auxdoc\\chrome.txt
(URLibService must then be resarted (not necessarily reposted) and your preference reset (see Setting the Preferences in the URLibService window)).

On UNIX, you should have Netscape installed at one of the following places:
[join $knownPathArray(netscape,unix)
]

or you should have Mozilla (or Firefox) installed at one of the following places:
[join $knownPathArray(mozilla,unix)
]

or you should have Konqueror installed at one of the following places:
[join $knownPathArray(konqueror,unix)
]

If Netscape is not at one of the above places, then you may specify its absolute path in the file:
/URLib_path/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/netscape.txt
If Mozilla is not at one of the above places, then you may specify its absolute path in the file:
C:/URLib_path/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/mozilla.txt
If Konqueror is not at one of the above places, then you may specify its absolute path in the file:
C:/URLib_path/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/konqueror.txt

WARNING: (URLibService must then be resarted (not necessarily reposted) and your preference reset (see Setting the Preferences in the URLibService window)).

v. You should have a text editor installed (optional).

On Windows, you should have Wordpad installed at one of the following places:
[regsub -all {/} [join $knownPathArray(textEditor,windows)
] {\\}]

If your preferred text editor is not at one of the above places, then you may specify its absolute path in the file:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\auxdoc\\editor.txt
(URLibService must then be resarted (not necessarily reposted)).

On UNIX, you should have a text editor installed at one of the following places:
[join $knownPathArray(textEditor,unix)
]

If your preferred text editor is not at one of the above places, then you may specify its absolute path in the file:
/URLib_path/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/editor.txt
(URLibService must then be resarted (not necessarily reposted)).

If the text editor is not found in your file system, then you will not be able to open files from the URLibService Check Window.

Extracting the URLibService Environment

On Windows, click the doc.zip file by using the mouse right button and then the Extract to... menu option and finally the OK button.

On UNIX execute the following commands:
cd /URLib_path
unzip doc.zip
chmod 774 start
cd ..
chmod -R g+w URLib_path
chmod -R g+s URLib_path

If you are planning to use port 80, you should execute the additional commands (assuming that the URLibService administrator urlibadm is member of the urlib group - see Item iii of Basic requirements):
chown -R root URLib_path
chgrp -R urlib URLib_path

Starting URLibService

Before starting URLibService for the first time, you must send a registration key of your choice consisting of a 10-digit number to urlibservice@gmail.com and copy it in a file called registrationKey stored in the URLib_path directory (this file will be automatically removed at the end of the start process).

For example, if you have chosen as URLib_path directory, the directory named MyURLib and its absolute path (under Windows) is C:\\Users\\Public\\MyURLib, the registration key must copied in the file: C:\\Users\\Public\\MyURLib\\registrationKey.

Once received the reply from urlibservice@gmail.com and your computer connected to internet (this is a MUST first time starting URLibService), you may start URLibService by executing the following commands.

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\urlib.net\\www\\2021\\06.17.22.20\\doc\\bin\\wish.exe start

On UNIX:
cd /URLib_path
./start

On Windows, you can create a shortcut with the following properties:
Target:
C:\\URLib_path\\col\\urlib.net\\www\\2021\\06.17.22.20\\doc\\bin\\wish.exe start
Start in:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc

On Linux, you can create a shortcut with the following properties:
Command:
/URLib_path/start
Work path:
/URLib_path

Posting the URLib local collection

Starting URLibService automatically posts the URLib local collection on the Web (starting the Apache Server).

If you want to post the URLib local collection without opening the URLibService window, execute instead the following command.

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\urlib.net\\www\\2021\\06.17.22.20\\doc\\bin\\wish.exe post

On UNIX:
cd /URLib_path
./post &

The post command is specially useful to implement the URLib local collection posting at boot time.

To implement automatic posting at boot time on Windows 95 execute the following steps.

i. Create a shortcut called, for example, PostURLibService with the following properties:
Target:
C:\\URLib_path\\col\\urlib.net\\www\\2021\\06.17.22.20\\doc\\bin\\tclsh.exe post
Start in:
C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc

ii. Click the following sequence:
Start>Settings>Taskbar & Start Menu
Start Menu Programs
Add
Browse...
Windows>Desktop>PostURLibService
Open
Next >
StartUp
Next >
Finish
OK

To implement automatic posting at boot time on Windows XP execute the following steps.

i. Create a shortcut (same procedure as described above for Windows 95)

ii. Copy the shortcut and paste it in the following folder:
C:\\Documents and Settings\\UserName\\Start Menu\\Programs\\Startup
where UserName is the name of the user who is interested in the automatic posting.
In Brazil, the same folder might be called:
C:\\Documents and Settings\\UserName\\Menu Iniciar\\Programas\\Inicializar

To implement automatic posting at boot time on SunOS see Unposting the URLib local collection below.

To implement automatic posting of more than one collection using the same httpd port at boot time on Linux, follow the example below.

#!/sbin/sh

# Local system initialization script

# This script should be stored in a file named:
# /etc/rc.d/rc.local

# This script posts the following
# URLib local collections:

# /mnt/dados1/URLibLCP
# /mnt/dados1/URLibSIBGRAPI

cd /mnt/dados1/URLibLCP
rm -f ./col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid 
./post &
until #!# -f ./col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid #@#
do
sleep 1
done
cd /mnt/dados1/URLibSIBGRAPI
./post &

# End of script
OBSERVATION: at posting it is possible to set a new port entry by using the -p argument of the post command. For example, to set the port entry mtc-m16b 802 the post command must be:

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\urlib.net\\www\\2021\\06.17.22.20\\doc\\bin\\wish.exe post -- -p mtc-m16b 802

On UNIX:
cd /URLib_path
./post -- -p mtc-m16b 802 &

Unposting the URLib local collection

If the URLibService window is open, then to unpost the URLib local collection, click the Exit button.

If the URLibService window is closed, then to unpost the URLib local collection, execute the following command.

On Windows
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\urlib.net\\www\\2021\\06.17.22.20\\doc\\bin\\wish.exe post -- -x

On UNIX:
/URLib_path/unpost

Once the URLib local collection has been posted, it is not necessary to unpost it to open the URLibService window. You just execute the above start command right away as explained above in the Starting URLibService subsection.

To implement automatic unposting on some Linux distributions, follow the example below.

#!/sbin/sh

# This script should be stored in a file named:
# /etc/rc.d/rc.local_shutdown

# This script unposts the following
# URLib local collections:

# /mnt/dados1/URLibSIBGRAPI
# /mnt/dados1/URLibLCP

/mnt/dados1/URLibSIBGRAPI/unpost
/mnt/dados1/URLibLCP/unpost

# End of script

To implement automatic posting and unposting on SunOS, follow the example below.

#!/sbin/sh

# This script posts (or unposts) automatically the following
# URLib local collections:

# /home/banon/URLib
# /home/banon/URLib-
# /home/banon/URLib2
# /home/banon/URLib1920

# This script should be stored in a file placed under the
# /etc/init.d directory and named URLibServer

# With Solaris, the following symbolic links must be made:

# cd /etc/rc3.d; ln -s /etc/init.d/URLibServer S99URLibServer
# cd /etc/rc0.d; ln -s /etc/init.d/URLibServer K99URLibServer
# cd /etc/rc1.d; ln -s /etc/init.d/URLibServer K99URLibServer

# To run this script enter:
# /etc/init.d/URLibServer start
# /etc/init.d/URLibServer stop

case "\$1" in
'start')

# Starting ...

su banon -c "rm -f /home/banon/URLib/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid"
su banon -c "/home/banon/URLib/post &"
su banon -c "rm -f /home/banon/URLib-/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid"
su banon -c "/home/banon/URLib-/post &"
su banon -c "rm -f /home/banon/URLib2/col/dpi.inpe.br/banon/1998/08.02.08.56/auxdoc/serverDir/logs/httpd.pid"
su banon -c "/home/banon/URLib2/post &"

         ;;

'stop')

# Stopping ...

su banon -c "/home/banon/URLib/unpost"
su banon -c "/home/banon/URLib-/unpost"
su banon -c "/home/banon/URLib2/unpost"
su banon -c "/home/banon/URLib1920/unpost"

         ;;

*)
         echo "Usage: \$0 { start | stop }"
         ;;

esac
exit 0

# End of script

Stopping URLibService

If URLibService is running, unposting the local collection has no effect.

To stop URLibService (that is, to stop the Apache Server and close the URLibService main window), press the Exit Button in the main window. The local collection will be automatically unposted. If you want to close the the URLibService main window leaving the local collection posted, press the Close Button in the main window.

Updating URLibService

When URLibService is running you can update it automatically combining the unpost (with option -u) and post commands.

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\urlib.net\\www\\2021\\06.17.22.20\\doc\\bin\\wish.exe post -- -x -u
C:\\URLib_path\\col\\urlib.net\\www\\2021\\06.17.22.20\\doc\\bin\\wish.exe post

On UNIX:
/URLib_path/updateURLibService &

Resetting URLibService

When there is an inconsistency between the data in the files and the data in the RAM (this may occur after a "disk quota exceeded" for example) the URLibService must be reset by stopping it first and then posting or starting it again using the -r option.

On Windows:
cd C:\\URLib_path\\col\\dpi.inpe.br\\banon\\1998\\08.02.08.56\\doc
C:\\URLib_path\\col\\urlib.net\\www\\2021\\06.17.22.20\\doc\\bin\\wish.exe post -- -x
C:\\URLib_path\\col\\urlib.net\\www\\2021\\06.17.22.20\\doc\\bin\\wish.exe post -- -r

On UNIX:
/URLib_path/reset &

Environment change

At start, URLibService is prepared o recognized any environment changes such as: host name, domain name, ip address or home path changes.

On Windows, it uses the following commands:
under DOS
ping -n 1 localhost
under tcl
info hostname
under DOS
ping -n 1 hostname
under DOS
nslookup hostname

WARNING: the third and fourth commands must return the same ip. If not, you should update the data in the Internet Protocol (TCP/IP) Properties window (the ip must be the one returned by the nslookup command).

Setting your preferences

When starting URLibService for the first time, the window entitled Setting the Preferences will open. In this window you should set your preferences: language, (URLibService administrator) e-mail address, browser and port number.

Please read the online help in that window to know how to set your preferences.

On UNIX, if you are planning to use port 80, then the e-mail address must be urlibadm@a.domain.name (see Item iii of Basic requirements).

Opening the mirror page

By pressing the blue OB (Open your Browser) button on the top of the URLib window, a new window will open containing the default mirror page diplayed by your browser.

The mirror page is an interface that ofers several services like searching the local collection, submitting new documents and registering new users.

When opning the mirror page for the first time, as local administrator, you should register yourself by executing the following steps.

i. Click the following sequence:
About this Mirror>Advanced User Registration

ii. Fill out the field "eMail Address (Login)" with the e-mail address that you inform when setting your preference (see previous section: Setting your preferences) and press the Submit button.

iii. Enter your full name and password and press the Submit button.

With this password, you will be able to search hidden metadata and execute restricted commands to manage the local collection.


while executing "CreateTclPage $thisRepository $fileContent $language $languageRep2 $path $targetFileAbsolutePath $filePath $writeUserCodedPassword" 07/10/21 00:35 07/10/21 00:37 07/10/21 00:52 07/10/21 15:09 02/11/21 16:55 02/11/21 18:50 02/11/21 18:50 02/11/21 18:51 02/11/21 18:53 02/11/21 18:54 02/11/21 18:57 02/11/21 18:58 02/11/21 19:03 02/11/21 20:31 02/11/21 20:32 02/11/21 20:36 05/11/21 19:50 11/11/21 18:53 15/10/23 16:38 15/10/23 16:39 16/10/23 03:24 16/10/23 06:46 16/10/23 18:46 18/10/23 16:58 18/10/23 19:41 19/10/23 01:35 19/10/23 01:35 19/10/23 11:30 19/10/23 11:36 19/10/23 19:54 19/10/23 19:54 19/10/23 23:36 19/10/23 23:36 20/10/23 07:11 22/10/23 21:18 23/10/23 08:50 24/10/23 11:12 24/10/23 11:32 24/10/23 21:49 25/10/23 00:02 25/10/23 07:03 25/10/23 09:31 26/10/23 06:29 26/10/23 11:29 27/10/23 04:36 27/10/23 04:36 28/10/23 14:49 28/10/23 14:50 28/10/23 14:52 28/10/23 14:52 28/10/23 14:54 28/10/23 14:54 28/10/23 16:41 30/10/23 05:34 30/10/23 06:37 30/10/23 11:11 01/11/23 00:25 02/11/23 08:51 02/11/23 09:53 02/11/23 10:32 02/11/23 10:33 02/11/23 13:28 03/11/23 01:42 03/11/23 08:39 can't read "filePath": no such variable while executing "CreateTclPage $thisRepository $fileContent $language $languageRep2 $path $targetFileAbsolutePath $filePath $writeUserCodedPassword" 04/11/23 03:21 04/11/23 03:26 04/11/23 03:50 04/11/23 12:17 04/11/23 12:18 04/11/23 12:25 04/11/23 13:01 04/11/23 13:02 04/11/23 13:10 05/11/23 02:00 05/11/23 15:43 05/11/23 22:09 06/11/23 18:53 can't read "filePath": no such variable while executing "CreateTclPage $thisRepository $fileContent $language $languageRep2 $path $targetFileAbsolutePath $filePath $writeUserCodedPassword" 08/11/23 12:04 08/11/23 18:08 08/11/23 18:08 08/11/23 22:15 09/11/23 07:45 09/11/23 07:45 09/11/23 07:46 09/11/23 07:46 09/11/23 08:17 09/11/23 08:47 09/11/23 08:47 09/11/23 09:10 09/11/23 09:10 09/11/23 12:16 09/11/23 12:38 09/11/23 22:10 10/11/23 00:14 10/11/23 00:55 10/11/23 01:47 10/11/23 13:52 11/11/23 12:25 11/11/23 22:26 11/11/23 22:26 12/11/23 13:43 12/11/23 13:43 12/11/23 23:55 12/11/23 23:55 13/11/23 14:30 13/11/23 14:30 14/11/23 15:10 14/11/23 15:10 14/11/23 15:56 14/11/23 15:57 14/11/23 19:06 14/11/23 19:06 15/11/23 10:42 15/11/23 11:26 15/11/23 11:26 15/11/23 12:06 15/11/23 12:36 15/11/23 13:25 17/11/23 08:13 18/11/23 11:55 18/11/23 11:55 18/11/23 12:01 18/11/23 12:01 18/11/23 13:03 18/11/23 13:03 18/11/23 19:00 22/11/23 06:26 22/11/23 06:26 22/11/23 06:26 22/11/23 06:26 24/11/23 22:09 24/11/23 22:09 01/12/23 01:57 01/12/23 05:08 03/12/23 06:47 03/12/23 08:59 04/12/23 00:34 04/12/23 01:14 04/12/23 06:26 04/12/23 10:55 04/12/23 12:35 04/12/23 14:10 04/12/23 14:56 05/12/23 15:25 05/12/23 16:04 05/12/23 16:09 05/12/23 16:15 05/12/23 16:21 05/12/23 16:31 05/12/23 16:35 07/12/23 11:21 11/12/23 11:23 12/12/23 18:39 12/12/23 18:39 13/12/23 22:24 18/12/23 15:38 20/12/23 20:48 21/12/23 20:00 22/12/23 01:33 22/12/23 08:18 25/12/23 21:22 26/12/23 13:46 29/12/23 00:44 29/12/23 00:44 29/12/23 19:31 04/01/24 15:48 04/01/24 15:48 04/01/24 15:48 04/01/24 15:48 05/01/24 08:57 05/01/24 14:12 05/01/24 17:55 05/01/24 18:08 05/01/24 21:42 07/01/24 12:04 11/01/24 21:11 13/01/24 10:39 14/01/24 23:59 17/01/24 05:21 17/01/24 14:49 17/01/24 14:49 17/01/24 14:51 17/01/24 14:51 18/01/24 15:30 22/01/24 21:31 26/01/24 17:41 27/01/24 12:55 27/01/24 12:55 01/02/24 01:03 02/02/24 20:09 02/02/24 20:10 03/02/24 01:00 03/02/24 02:19 03/02/24 02:19 04/02/24 20:21 07/02/24 17:42 can't read "filePath": no such variable while executing "CreateTclPage $thisRepository $fileContent $language $languageRep2 $path $targetFileAbsolutePath $filePath $writeUserCodedPassword" 13/02/24 09:55 13/02/24 09:55 15/02/24 00:46 15/02/24 00:46 15/02/24 00:47 15/02/24 00:47 15/02/24 00:48 15/02/24 00:48 16/02/24 19:44 16/02/24 19:44 16/02/24 22:21 16/02/24 22:21 17/02/24 01:10 17/02/24 01:10 17/02/24 09:58 17/02/24 10:12 18/02/24 05:37 18/02/24 05:58 19/02/24 21:16 can't read "filePath": no such variable while executing "CreateTclPage $thisRepository $fileContent $language $languageRep2 $path $targetFileAbsolutePath $filePath $writeUserCodedPassword" 21/02/24 10:36 24/02/24 14:28 28/02/24 22:33 28/02/24 22:33 28/02/24 23:37 28/02/24 23:37 28/02/24 23:38 28/02/24 23:39 28/02/24 23:39 29/02/24 14:59 29/02/24 15:01 29/02/24 15:01 29/02/24 15:01 29/02/24 15:03 29/02/24 15:03 29/02/24 15:03 03/03/24 23:17 03/03/24 23:17 06/03/24 22:15 07/03/24 01:43 08/03/24 10:30 08/03/24 16:50 10/03/24 10:47 15/03/24 02:30 15/03/24 06:49 16/03/24 15:48 17/03/24 11:19 18/03/24 23:39