aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorVikraman Choudhury <vikraman.choudhury@gmail.com>2011-05-12 23:46:14 +0530
committerVikraman Choudhury <vikraman.choudhury@gmail.com>2011-05-12 23:46:14 +0530
commitf71aa99801b8588d9060feee06f501c18613cfa6 (patch)
tree20b8bffb59c4fd91fd8cd5591b7eccd01af842d6 /docs
parentfixes after code review (diff)
downloadgentoostats-f71aa99801b8588d9060feee06f501c18613cfa6.tar.gz
gentoostats-f71aa99801b8588d9060feee06f501c18613cfa6.tar.bz2
gentoostats-f71aa99801b8588d9060feee06f501c18613cfa6.zip
added setup instructions
Diffstat (limited to 'docs')
-rw-r--r--docs/setup.txt48
1 files changed, 48 insertions, 0 deletions
diff --git a/docs/setup.txt b/docs/setup.txt
new file mode 100644
index 0000000..b80d255
--- /dev/null
+++ b/docs/setup.txt
@@ -0,0 +1,48 @@
+
+Gentoostats
+===========
+
+Server
+======
+Dependencies
+------------
+dev-db/mysql
+dev-python/mysql-python
+dev-python/webpy
+=dev-lang/python-2.*
+
+Instructions
+------------
+* Start the mysql server
+* Execute server/sql/init.sql as mysql root user
+
+ mysql -u root -p < server/sql/init.sql
+
+* Execute server/sql/setup.sql as user gentoo, password gentoo
+
+ mysql -u gentoo -p < server/sql/setup.sql
+
+* Start the main.py script, either from the server/ directory or
+ by exporting PYTHONPATH
+
+ export PYTHONPATH=server/
+ server/main.py
+
+
+Client
+======
+Dependencies
+------------
+=dev-lang/python-2.*
+app-portage/gentoolkit
+
+Instructions
+------------
+* Set host uuid and password in client/bin/client
+* Execute client/bin/client as root or some user in portage group
+
+ export PYTHONPATH=client/
+ client/bin/client
+
+
+P.S. All paths are relative to source directory