WikiStart: installazioneAgilo.txt

File installazioneAgilo.txt, 5.3 KB (added by taz, 15 months ago)
Line 
1
2
3Creare il repository SVN
4C:\Program Files (x86)\VisualSVN Server\bin>svnadmin  --pre-1.6-compatible create d:\Repositories\latte
5
6
7------------------ creare il progetto Trac/Agilo
8dir di progetto    d:\Agilorep\latte
9
10accesso DB    mysql://mysqlwin:giorgio1974@62.101.68.235/agilo_latte
11
12
13C:\Python25>scripts\trac-admin.exe d:\Agilorep\latte initenv
14Creating a new Trac environment at d:\Agilorep\latte
15
16Trac will first ask a few questions about your environment
17in order to initialize and prepare the project database.
18
19 Please enter the name of your project.
20 This name will be used in page titles and descriptions.
21
22Project Name [My Project]> latte
23
24 Please specify the connection string for the database to use.
25 By default, a local SQLite database is created in the environment
26 directory. It is also possible to use an already existing
27 PostgreSQL database (check the Trac documentation for the exact
28 connection string syntax).
29
30Database connection string [sqlite:db/trac.db]> mysql://mysqlwin:giorgio1974@62.101.68.235/agilo_latte
31
32 Please specify the type of version control system,
33 By default, it will be svn.
34
35 If you don't want to use Trac with version control integration,
36 choose the default here and don't specify a repository directory.
37 in the next question.
38
39Repository type [svn]>
40
41 Please specify the absolute path to the version control
42 repository, or leave it blank to use Trac without a repository.
43 You can also set the repository location later.
44
45Path to repository [/path/to/repos]> d:\Repositories\latte
46
47Creating and Initializing Project
48....
49---------------------------------------------------------------------
50Project environment for 'latte' created.
51
52You may now configure the environment by editing the file:
53
54  d:\Agilorep\latte\conf\trac.ini
55
56If you'd like to take this new project environment for a test drive,
57try running the Trac standalone web server `tracd`:
58
59  tracd --port 8000 d:\Agilorep\latte
60
61Then point your browser to http://localhost:8000/latte.
62There you can also browse the documentation for your installed
63version of Trac, including information on further setup (such as
64deploying Trac to a real web server).
65
66The latest documentation can also always be found on the project
67website:
68
69  http://trac.edgewall.org/
70
71Congratulations!
72
73
74------------------- attivare agilo
75ATTENZIONE
76utilizzando il DB mysql il comando trac-admin upgrade (installa agilo)
77deve essere utilizzato con il parametro --no-backup
78C:\Python25>scripts\trac-admin.exe d:\Agilorep\latte upgrade --no-backup
79Creating Product Backlog...
80Creating Sprint Backlog...
81Upgrade done.
82
83to give adminstrative priviledges
84trac-admin d:\AgiloRep\gnstudio permission add GiorgioNatili TRAC_ADMIN
85
86
87
88--- site
89D:\Agilorep\latte\htdocs
90
91--- common
92C:\Python25\Lib\site-packages\Trac-0.11.4-py2.5.egg\trac\htdocs
93
94
95
96
97---- lanciare il server come servizio
98installare SRVANY.EXE
99http://www.microsoft.com/Downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en
100
101"C:\Program Files (x86)\Windows Resource Kits\Tools\instsrv.exe" tracd "C:\Program Files (x86)\Windows Resource Kits\Tools\srvany.exe"
102reg add HKLM\SYSTEM\CurrentControlSet\Services\tracd\Parameters /v Application /d "\"C:\python25\python.exe\" \"C:\python25\scripts\tracd-script.py\" --port 8000 --basic-auth=*,d:\Repositories\htpasswd,\"\" -e d:\Agilorep"
103net start tracd
104
105
106---- logo
107
108copiato il file in C:\Python25\Lib\site-packages\Trac-0.11.4-py2.5.egg\trac\htdocs
109modificata la sezione logo nel file di configurazione del progetto
110D:\Agilorep\latte\conf\trac.ini
111
112[header_logo]
113alt = (please configure the [header_logo] section in trac.ini)
114height = -1
115link = http://URL/latte
116src = common/logo_gnstudio.png
117width = -1
118
119FARE attenzione: la URL e' assoluta, modificare quando e' accessibile dall'esterno
120
121
122---------- HTTPS
123riferiemnto: http://trac.edgewall.org/wiki/STunnelTracd
124
125installare openSSL
126
127
128-- creare il certificato
129C:\Program Files (x86)\GnuWin32\bin>openssl req -new -x509 -nodes -out server.pem -keyout server.pem -days 3650 -config "C:\Program Files (x86)\GnuWin32\share\openssl.cnf"
130Loading 'screen' into random state - done
131Generating a 1024 bit RSA private key
132...++++++
133............................................++++++
134writing new private key to 'server.pem'
135-----
136You are about to be asked to enter information that will be incorporated
137into your certificate request.
138What you are about to enter is what is called a Distinguished Name or a DN.
139There are quite a few fields but you can leave some blank
140For some fields there will be a default value,
141If you enter '.', the field will be left blank.
142-----
143Country Name (2 letter code) [AU]:IT
144State or Province Name (full name) [Some-State]:Roma
145Locality Name (eg, city) []:Roma
146Organization Name (eg, company) [Internet Widgits Pty Ltd]:gnstudio.com
147Organizational Unit Name (eg, section) []:Agilo
148Common Name (eg, YOUR name) []:Roberto Bettazzoni
149Email Address []:
150
151trovi il file "server.pem" ... il certificato
152
153
154--- installare STUNNEL
155http://www.stunnel.org/download/binaries.html
156
157copiare il file server.pem
158cambiare al configurazione in:
159cert = server.pem
160key  = server.pem
161
162output = stunnel.log
163
164[tracd]
165accept  = 443
166connect = localhost:80
167
168lanciare stunnel (come servizio)
169

1.1.2-pro © 2008-2009 agile42 all rights reserved (this page was served in: 0.47000 sec.)