[tor-commits] [torflow/master] 4067 update BwAuthority README

mikeperry at torproject.org mikeperry at torproject.org
Sat Oct 1 00:20:36 UTC 2011


commit 5c91b733f88a15b9163f2f4c6f71cf711b42efc6
Author: aagbsn <aagbsn at extc.org>
Date:   Wed Sep 21 02:28:51 2011 -0700

    4067 update BwAuthority README
    
    Add Appendix B: for postgres configuration
    
    Explain how to get a postgres backend working
    with BwAuthority
---
 NetworkScanners/BwAuthority/README.BwAuthorities |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/NetworkScanners/BwAuthority/README.BwAuthorities b/NetworkScanners/BwAuthority/README.BwAuthorities
index 395f9d8..516465b 100644
--- a/NetworkScanners/BwAuthority/README.BwAuthorities
+++ b/NetworkScanners/BwAuthority/README.BwAuthorities
@@ -160,4 +160,26 @@ for i in 512 256 128 64 32 16; do
 done
 
 
+Appendix B: Configuring PostgreSQL backend
 
+To use postgres instead of sqlite:
+
+1. Install postgresql:
+sudo apt-get install postgresql postgresql-common postgresql-client-common
+
+2. Create role:
+sudo -u postgres psql
+ CREATE USER bwscanner WITH PASSWORD 'password';
+
+3. Create databases:
+sudo -u postgres createdb BwScan1 -O bwscanner
+sudo -u postgres createdb BwScan2 -O bwscanner
+sudo -u postgres createdb BwScan3 -O bwscanner
+sudo -u postgres createdb BwScan4 -O bwscanner
+
+4. Update bwauthority.cfg files
+comment out the lines beginning with db_url=
+uncomment the line:
+#db_url = postgresql://bwscanner:password@127.0.0.1/BwScan1
+
+5. ./run_scan.sh





More information about the tor-commits mailing list