-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.txt
97 lines (64 loc) · 2.5 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
This overly complex buildout is being cleaned up a bit at a time, but
will probably be end-of-lifed before it's sane. Basic install instructions are:
Get python2.4 and virtualenv installed on your system
postgresql >= 8.3 (9.1 or 9.2 are fine)
configure postgresql to allow 'trust' access for unix domain socket connections
git clone [email protected]:Rhaptos/cnx-buildout.git cnx-buildout
cd cnx-buildout
virtualenv -p /usr/bin/python2.4 .
. ./bin/activate
mkdir downloads
python bootstrap.py
pip install simplejson==1.9.2
bin/buildout
. bin/libs.sh
pip install lxml
Detailed install for Ubuntu 12.0.4.2 LTS server:
base install
configure access to hardy (yes hardy):
echo "deb http://us.archive.ubuntu.com/ubuntu/ hardy main" >/etc/apt/sources.list.d/hardy.list
apt-get update
apt-get install postgresql postresql-contrib libpq-dev openjdk-7-jre-headless
apt-get install python2.4-dev python-virtualenv make git libjpeg-dev libpng-dev build-essential
Modify postgresql config to allow trusted access on local domain sockets:
as root:
vi /etc/postgresql/9.1/main/pg_hba.conf
replace 'peer' w/ 'trust' in two places.
Back to regular user:
git clone [email protected]:Rhaptos/cnx-buildout.git cnx-buildout
cd cnx-buildout
virtualenv -p /usr/bin/python2.4 .
source bin/activate
mkdir downloads
python bootstrap.py
pip install simplejson==1.9.2
bin/buildout
source bin/libs.sh
pip install lxml
then:
bin/zeoserver start
bin/instance fg
Use browser to connect to http://localhost:8888/manage_main
login admin:admin
Use dropdown to add a 'Rhaptos Site'
Assign an id ('site' usually)
accept other defaults
you now have 'generic rhaptos' site at: http://localhost:8888/site
----------------------------------------------------------------------------
For cnx.org styles:
in management interface, go to portal_setup.
Select "Properties" tab (which should be this url: http://localhost:8888/site/portal_setup/manage_tool)
Select "Products.CNXPloneSite" from dropdown and "Update"
Select "Import" tab
Select CNXPloneSite Customization Policy
Scroll to bottom, click "Import selected steps"
Go back to http://localhost:8888/site
You should see cnx.org styled site.
-----------------------------------------------------------------------------
from the commandline, go to cnx-buildout
kill the 'bin/instance fg' (crtl-C)
rerun as daemon:
bin/instance start
run: scripts/add_users.sh
This will install user[1234], org[12] and manager1. Each has the same username and password.
Congrats, you have a local devel install of cnx.org codebase.