[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 5c91b733f88a15b9163f2f4c6f71cf711b42efc6
Author: aagbsn <aagbsn@xxxxxxxx>
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@xxxxxxxxx/BwScan1
+
+5. ./run_scan.sh



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits