A Gen-conf sample session

    $ ./Gen-conf
    Welcome to the conf file generation procedure of Count 2.3

    This program creates a workable conf file for your host only, you have
    to edit it by hand if you want to add other hosts. The file will have
    enough comments in it to help you out. You also have to hand edit it
    if you want to use netmasks to mask out a entire network or a specific
    range of hosts in a network.

    First of all you must know your 
        1) fully qualified domain name (FQDN), for example,
            if your hostname is foo and your domain name is foobar.com,
            then your FQDN is

        2) IP address of your host, for example, 

        3) If your host has any nickname defined, for example,
            www.foobar.com. The nick name also has to be FQDN.

        4) If you want to allow automatic datafile creation (bad thing).

        5) If you want to run the counter in strict mode.

        6) If you want to ignore access hits from your own host.

Continue [y|n]? y
    No Error checking will be done with your hostname, therfore,
    you better make sure you are entering the fully qualifed domain name.
* Enter your fully qualified domain name [no default]: warm.semcor.com

    No Error checking will be done with your IP address, therfore,
    you better make sure you are entering the correct IP address.

* Enter your IP address [no default]:

* Does your host have any nickname [y|n]:? y
* Enter your host's nickname (FQDN) [no default]: www.semcor.com
    Now you need to decide if you will allow the users to create datafiles
    for them automatically. If you allow, the counter datafile will be
    created for the user if it does not exist and a pre-determined counter
    number will be inserted to it. If you do not allow, you have to create
    the datafile for each user, provided that the data diectory has proper
    write permission.  

    Allowing users to create datafile is very convenient, as you do not
    have to be asked all the time when someone decides to use the counter.
    But the dark side of this is, anyone will be able create datafiles in
    the data directory. The decision is yours.

* Do you want to allow automatic file creation [[y|n]? n

    Now you need to decide if you want to compile the program in strict   
    mode. If you compile the program in strict mode, the browsers which
    do not return the environment variable HTTP_REFERER, will not be
    served, that is no access hit will be recorded, no time or date
    will be displayed. Instead, a string 888888 will be displayed. 
    The strict mode ensures that your counter data file can not be messed
    by accesing the counter remotely from a browser which does not return
    that variable. Note, good browsers like netscape returns this
    variable. Other browsers e.g. Mosaic does not return this variable in
    IMG GET method at this time.  This strict mode is experimental at this

* Do you want the program to run in strict mode [[y|n]? y
* Do you want to ignore access hits from your own host [y|n]? y

    Ok, do you want the users to use the file rgb.txt for color name
    lookup? It is very inefficient to search this file every time the
    web page is loaded. If you answer yes, the color name
    will be looked up and used. If you answer no, the color will be
    looked up but instead of the counter image, the RGB value will
    be displayed and the user will be asked to use the RGB value
    instead. This will prevent users to use this file. However,
    the convenience of allowing to use rgb.txt file is that color name e.g,
    red, gold etc.  can be used instead of cryptic red, green and blue
    components of the color.
* Allow using the rgb.txt file [y|n]? y

    Created conf file "count.cfg"
    Please look at it, you might want to edit it!

Go back