Changeset 2851 for pykota/trunk/docs

Show
Ignore:
Timestamp:
04/08/06 18:51:50 (18 years ago)
Author:
jerome
Message:

Enough is enough !

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/docs/installation.sgml

    r2844 r2851  
    6161      <para> 
    6262        Of course, depending on the size of your network, you may very well 
    63         use the same machine as both a Print Server and a Storage Server. 
     63        use the same machine as both a Print Server and a database server. 
    6464        This is especially the case if you've got only one server. 
    6565      </para> 
     
    6868   
    6969  <sect1> 
    70     <title>Storage Server Installation</title> 
     70    <title>Database server installation</title> 
    7171     
    7272    <para> 
     
    8989       
    9090      <para> 
    91         To configure your Storage Server, you must have PostgreSQL already working. 
     91        To configure your database, you must have PostgreSQL already working. 
    9292        The complete installation of <application>PostgreSQL</application> is not covered by 
    9393        the present manual, please refer to your system's documentation or to  
     
    160160        is waiting for your connections, you have to create the print quota database. 
    161161        To do so, you'll have to feed <application>PostgreSQL</application> with the 
    162         <filename>pykota-1.24/initscripts/postgresql/pykota-postgresql.sql</filename> file. 
     162        <filename>pykota-1.24_official/initscripts/postgresql/pykota-postgresql.sql</filename> file. 
    163163        This file will create a print quota database administrator in the <application>PostgreSQL</application> system, then create an empty 
    164164        print quota database and set some permissions on it. The print quota database administrator 
     
    175175        users from being able to modify their own, or other users', quota information. 
    176176        The database which will be created will be named <literal>pykota</literal> by default. 
     177        The <literal>pykotaadmin</literal> and <literal>pykotauser</literal> users by 
     178        default respectively have <literal>readwritepw</literal> and <literal>readonlypw</literal> 
     179        as their passwords. 
    177180        <note> 
    178181          <title>Note</title> 
    179182          <para> 
    180             You can choose other names if you want, just modify the  
     183            You can choose other names and passwords if you want by modifying the  
    181184            <filename>initscripts/postgresql/pykota-postgresql.sql</filename> file 
    182185            accordingly, and report your changes into <application>PyKota</application>'s 
     
    220223       
    221224      <para> 
    222         For security reasons, you may want to set passwords in  
     225        If you want to you can change passwords later in 
    223226        <application>PostgreSQL</application> for the  
    224227        <literal>pykotaadmin</literal> and <literal>pykotauser</literal> users. 
    225         Otherwise any user able to connect to  
    226         <application>PostgreSQL</application> on your print quota database server  
    227         could connect to the quota database, and either see it, or even modify it without problem.  
    228       </para> 
    229        
    230       <para> 
    231228        To do so, just type the following lines while still being at the <command>psql</command> 
    232         prompt (replace the password values by your own, and do the same for the <literal>pykotauser</literal> user) : 
     229        prompt (replace the password values by your own : 
    233230        <screen> 
    234231pykota=# ALTER USER pykotaadmin PASSWORD 'somepassword'; 
    235232ALTER USER 
     233pykota=# ALTER USER pykotauser PASSWORD 'anotherpassword'; 
    236234pykota=# \q 
    237235jerome@nordine:~/pykota-1.24_official/initscripts/postgresql$ 
     
    260258          </para> 
    261259        </warning>   
     260      </para> 
     261       
     262      <para> 
     263        For more details, please see <filename>initscripts/mysql/README.mysql</filename>. 
    262264      </para> 
    263265       
     
    424426       
    425427      <para> 
    426         <application>MySQL</application> is supported but not documented for now. 
    427       </para> 
     428        <application>MySQL</application> is a simple Relationnal DataBase 
     429        Management System distributed under a <firstterm>Free Software</firstterm> 
     430        license from the  
     431        <ulink url="http://www.mysql.org">http://www.mysql.org</ulink> 
     432        web site.  
     433      </para> 
     434       
     435      <para> 
     436        To configure your database, you must have MySQL already working. 
     437        The complete installation of <application>MySQL</application> is not covered by 
     438        the present manual, please refer to your system's documentation or to  
     439        <ulink url="http://www.mysql.org">http://www.mysql.org</ulink> for 
     440        details. 
     441      </para> 
     442       
     443      <para> 
     444        One thing you have to check, though, is that every Print Server on which you 
     445        want to install the print quota mechanism, must be able to connect to the 
     446        <application>MySQL</application> server. In the default installation of 
     447        <application>MySQL</application> this may not be the case for security reasons, except if both 
     448        servers are in fact the same machine. In any case, it is recommended that you 
     449        check the <filename>/etc/mysql/my.cnf</filename> file and modify it if 
     450        needed. 
     451        <tip> 
     452          <title>Tip</title> 
     453          <para> 
     454            Don't forget to restart <application>MySQL</application> if you modify 
     455            any of its configuration files, in order for the changes to take effect. 
     456          </para> 
     457        </tip>   
     458      </para> 
     459       
     460      <para> 
     461        Be careful, you may be unable to connect from a Print Server to the <application>MySQL</application> 
     462        server even if the configuration is correct. Sometimes your connections may be blocked by 
     463        one or more network firewalls along the route from one machine to the other. If this 
     464        is the case, then the best thing you can do is to ask your <firstterm>Network Administrator</firstterm> 
     465        to not filter the IP port used by <application>MySQL</application>, which is 
     466        usually port <literal>3306/tcp</literal>. 
     467        <note> 
     468          <title>Note</title> 
     469          <para> 
     470            The TCP/IP network port used by MySQL may be different. When in doubt, ask your  
     471            <firstterm>System Administrator</firstterm> for the correct value.  
     472          </para> 
     473        </note>   
     474      </para> 
     475       
     476      <para> 
     477        Now that your <application>MySQL</application> server is up and running, and 
     478        is waiting for your connections, you have to create the print quota database. 
     479        To do so, you'll have to feed <application>MySQL</application> with the 
     480        <filename>pykota-1.24_official/initscripts/mysql/pykota-mysql.sql</filename> file. 
     481        This file will create an empty 
     482        print quota database and set some permissions on it.  
     483        The database which will be created will be named <literal>pykota</literal> by default. 
     484        Two database users will be defined to have access in readonly and read+write modes under 
     485        the respective names <literal>pykotauser</literal> and <literal>pykotaadmin</literal>. 
     486        The <literal>pykotaadmin</literal> and <literal>pykotauser</literal> users by 
     487        default respectively have <literal>readwritepw</literal> and <literal>readonlypw</literal> 
     488        as their passwords. 
     489        <note> 
     490          <title>Note</title> 
     491          <para> 
     492            You can choose other names and passwords if you want by modifying the  
     493            <filename>initscripts/mysql/pykota-mysql.sql</filename> file 
     494            accordingly, and report your changes into <application>PyKota</application>'s 
     495            configuration files. 
     496          </para> 
     497        </note>   
     498      </para> 
     499       
     500      <para> 
     501        To run this script, you can use the <command>mysql</command> frontend to 
     502        <application>MySQL</application>, but your priviledges must be sufficient 
     503        to be allowed to create databases. You can launch <command>mysql</command> 
     504        as the <literal>root</literal> user for example. 
     505        From a command line interpreter (i.e. shell), type the following commands : 
     506        <screen> 
     507jerome@nordine:~$ cd pykota-1.24_official/initscripts/mysql 
     508jerome@nordine:~/pykota-1.24_official/initscripts$ mysql &lt;pykota-mysql.sql 
     509        </screen> 
     510        <note> 
     511          <title>Note</title> 
     512          <para> 
     513            If you use RPM or DEB packages, usually the 
     514            <filename>pykota-mysql.sql</filename> file gets installed into the 
     515            <filename>/usr/share/pykota/mysql</filename> directory, along  
     516            with a README file. 
     517          </para> 
     518        </note>   
     519      </para> 
     520       
     521      <para> 
     522        To improve security further, you could encrypt your database connections, or 
     523        take any other step as needed. Please refer to <application>MySQL</application>'s 
     524        documentation for details.  
     525      </para> 
     526       
     527      <para> 
     528        For more details, please see <filename>initscripts/mysql/README.mysql</filename>. 
     529      </para> 
     530       
     531      <para> 
     532        If no error occured, then your print quota database is ready to be used. 
     533        Now you can let the print quota database server alone, the remaining work 
     534        will have to be done on each one of the print servers which will 
     535        use this particular print quota database server. 
     536        <tip> 
     537          <title>Tip</title> 
     538          <para> 
     539            If an error occured, maybe your MySQL version is too old, or 
     540            an unexpected problem (like a bug) happened. Please contact us via email so that we 
     541            can try to fix the problem. Thanks in advance. 
     542          </para> 
     543        </tip>   
     544      </para> 
     545       
    428546    </sect2>   
    429547