[mirrorbrain-commits] [opensuse-svn] r6360 - trunk/tools/download-redirector-v2

From: Novell Forge SVN <noreply_at_novell.com>
Date: Tue, 3 Feb 2009 15:21:33 -0700 (MST)
Author: poeml
Date: 2009-02-03 15:21:30 -0700 (Tue, 03 Feb 2009)
New Revision: 6360

Modified:
   trunk/tools/download-redirector-v2/INSTALL
Log:
further work on the INSTALL document.


Modified: trunk/tools/download-redirector-v2/INSTALL
===================================================================
--- trunk/tools/download-redirector-v2/INSTALL	2009-02-03 22:21:05 UTC (rev 6359)
+++ trunk/tools/download-redirector-v2/INSTALL	2009-02-03 22:21:30 UTC (rev 6360)
@@ -189,24 +189,64 @@
   mailto = your_mail_at_example.com, another_mail_at_example.com
 
 
-- load the Apache modules:
-   a2enmod form
-   a2enmod dbd
-   a2enmod mirrorbrain
+- collect a list of mirrors (their HTTP baseurl, and their rsync or FTP baseurl
+  for scanning). For example:
 
+    http://ftp.isr.ist.utl.pt/pub/MIRRORS/ftp.suse.com/projects/
+    rsync://ftp.isr.ist.utl.pt/suse/projects/
 
+    http://ftp.kddilabs.jp/Linux/distributions/ftp.suse.com/projects/
+    rsync://ftp.kddilabs.jp/suse/projects/
+
+
+
+  Now you need to enter the mirrors into the database; it could be done using the
+  "mb" mirrorbrain tool. (See 'mb help new' for full option list.)
+
+    mb new ftp.isr.ist.utl.pt \
+           --http http://ftp.isr.ist.utl.pt/pub/MIRRORS/ftp.suse.com/projects/ \
+           --rsync rsync://ftp.isr.ist.utl.pt/suse/projects/
+
+    mb new ftp.kddilabs.jp \
+           --http http://ftp.kddilabs.jp/Linux/distributions/ftp.suse.com/projects/ \
+           --rsync rsync://ftp.kddilabs.jp/suse/projects/
+
+
+  The tool automatically figures out the GeoIP location of each mirror by itself.
+  But you could also specify them on the commandline.
+
+  If you want to edit a mirror later, use
+    mb edit <identifier>
+
+  To simply display a mirror dataset, you'd use 'mb show kddilabs', for instance.
+
+  Finally, each mirror needs to be scanned and enabled:
+    mb scan --enable <identifier>
+
+  See the output of 'mb help' for more commands.
+
+
+
+
 - configure Apache:
 
+  - load the Apache modules:
+     a2enmod form
+     a2enmod dbd
+     a2enmod mirrorbrain
+
   - create a DNS alias for your web host, if needed
 
-  - configure the database adapter, and mod_mirrorbrain. Put it in server-wide
-    context, and make the file chmod 640 because it contains the database
-    password.
+  - configure the database adapter (mod_dbd) and mod_mirrorbrain. Put this
+    configuration in server-wide context. Make the file chmod 0640, owned
+    root:root because it will contain the database password.
 
 
 Config example::
 
     ------------------------------------------------------------------------
+    # for MySQL:
+
     <IfModule mod_dbd.c>
         DBDriver mysql
         # reconnect=0 is needed with the mysql adapter. It means that connections
@@ -223,6 +263,19 @@
         </IfModule>
     </IfModule>
     
+    # or, for PostgreSQL:
+
+    <IfModule mod_dbd.c>
+        DBDriver pgsql
+        DBDParams "host=localhost, user=wwwrun, pass=12345, dbname=mirrorbrain"
+        <IfModule !prefork.c>
+                #
+                DBDMin  0
+                DBDMax  32
+                DBDKeep 4
+                DBDExptime 10
+        </IfModule>
+    </IfModule>
     ------------------------------------------------------------------------
 
   - create a vhost for it (e.g. /etc/apache2/vhosts.d/go-oo.zrkadlo.org.conf)
@@ -264,48 +317,14 @@
     
 
 
-- collect a list of mirrors (their HTTP baseurl, and their rsync or FTP baseurl
-  for scanning). For example:
 
-    http://ftp.isr.ist.utl.pt/pub/MIRRORS/ftp.suse.com/projects/
-    rsync://ftp.isr.ist.utl.pt/suse/projects/
 
-    http://ftp.kddilabs.jp/Linux/distributions/ftp.suse.com/projects/
-    rsync://ftp.kddilabs.jp/suse/projects/
++++
+That's how far the instructions go. I hope they are useful. Please subscribe to
+the mirrorbrain mailing list, see http://mirrorbrain.org/communication .
+Questions can be answered there, feedback is appreciated.
 
 
-
-  Now you need to enter the mirrors into the database; it could be done using the
-  "mb" mirrorbrain tool. (See 'mb help new' for full option list.)
-
-    mb new ftp.isr.ist.utl.pt \
-           --http http://ftp.isr.ist.utl.pt/pub/MIRRORS/ftp.suse.com/projects/ \
-           --rsync rsync://ftp.isr.ist.utl.pt/suse/projects/
-
-    mb new ftp.kddilabs.jp \
-           --http http://ftp.kddilabs.jp/Linux/distributions/ftp.suse.com/projects/ \
-           --rsync rsync://ftp.kddilabs.jp/suse/projects/
-
-
-  The mirror doctor figures out the GeoIP location of each mirror by itself.
-  But you could also specify them on the commandline.
-
-  If you want to edit a mirror later, use
-    mb edit <identifier>
-
-  See the output of 'mb help' for more commands.
-
-  Finally, each mirror needs to be scanned and enabled:
-    mb scan --enable <identifier>
-
-
-
-
-
-Sorry, but further instructions are missing here. I hope I can add them later.
-For now, please contact me at <poeml_at_suse.de>, and I'll help you, and it will
-give me an occasion to improve this document along the way.
-
 TODO:
 
 - add wrapper script to run mirrorprobe / scanner as unprivileged user

_______________________________________________
Opensuse-svn mailing list
Opensuse-svn_at_forge.novell.com
http://forge.novell.com/mailman/listinfo/opensuse-svn


_______________________________________________
mirrorbrain-commits mailing list

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on 2009-02-03Z22:21:58

This archive was generated by hypermail 2.2.0 : 2009-07-10Z19:18:10 GMT