| 1 |
|
|---|
| 2 |
|
|---|
| 3 | Creare il repository SVN
|
|---|
| 4 | C:\Program Files (x86)\VisualSVN Server\bin>svnadmin --pre-1.6-compatible create d:\Repositories\latte
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 | ------------------ creare il progetto Trac/Agilo
|
|---|
| 8 | dir di progetto d:\Agilorep\latte
|
|---|
| 9 |
|
|---|
| 10 | accesso DB mysql://mysqlwin:giorgio1974@62.101.68.235/agilo_latte
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 | C:\Python25>scripts\trac-admin.exe d:\Agilorep\latte initenv
|
|---|
| 14 | Creating a new Trac environment at d:\Agilorep\latte
|
|---|
| 15 |
|
|---|
| 16 | Trac will first ask a few questions about your environment
|
|---|
| 17 | in 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 |
|
|---|
| 22 | Project 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 |
|
|---|
| 30 | Database 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 |
|
|---|
| 39 | Repository 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 |
|
|---|
| 45 | Path to repository [/path/to/repos]> d:\Repositories\latte
|
|---|
| 46 |
|
|---|
| 47 | Creating and Initializing Project
|
|---|
| 48 | ....
|
|---|
| 49 | ---------------------------------------------------------------------
|
|---|
| 50 | Project environment for 'latte' created.
|
|---|
| 51 |
|
|---|
| 52 | You may now configure the environment by editing the file:
|
|---|
| 53 |
|
|---|
| 54 | d:\Agilorep\latte\conf\trac.ini
|
|---|
| 55 |
|
|---|
| 56 | If you'd like to take this new project environment for a test drive,
|
|---|
| 57 | try running the Trac standalone web server `tracd`:
|
|---|
| 58 |
|
|---|
| 59 | tracd --port 8000 d:\Agilorep\latte
|
|---|
| 60 |
|
|---|
| 61 | Then point your browser to http://localhost:8000/latte.
|
|---|
| 62 | There you can also browse the documentation for your installed
|
|---|
| 63 | version of Trac, including information on further setup (such as
|
|---|
| 64 | deploying Trac to a real web server).
|
|---|
| 65 |
|
|---|
| 66 | The latest documentation can also always be found on the project
|
|---|
| 67 | website:
|
|---|
| 68 |
|
|---|
| 69 | http://trac.edgewall.org/
|
|---|
| 70 |
|
|---|
| 71 | Congratulations!
|
|---|
| 72 |
|
|---|
| 73 |
|
|---|
| 74 | ------------------- attivare agilo
|
|---|
| 75 | ATTENZIONE
|
|---|
| 76 | utilizzando il DB mysql il comando trac-admin upgrade (installa agilo)
|
|---|
| 77 | deve essere utilizzato con il parametro --no-backup
|
|---|
| 78 | C:\Python25>scripts\trac-admin.exe d:\Agilorep\latte upgrade --no-backup
|
|---|
| 79 | Creating Product Backlog...
|
|---|
| 80 | Creating Sprint Backlog...
|
|---|
| 81 | Upgrade done.
|
|---|
| 82 |
|
|---|
| 83 | to give adminstrative priviledges
|
|---|
| 84 | trac-admin d:\AgiloRep\gnstudio permission add GiorgioNatili TRAC_ADMIN
|
|---|
| 85 |
|
|---|
| 86 |
|
|---|
| 87 |
|
|---|
| 88 | --- site
|
|---|
| 89 | D:\Agilorep\latte\htdocs
|
|---|
| 90 |
|
|---|
| 91 | --- common
|
|---|
| 92 | C:\Python25\Lib\site-packages\Trac-0.11.4-py2.5.egg\trac\htdocs
|
|---|
| 93 |
|
|---|
| 94 |
|
|---|
| 95 |
|
|---|
| 96 |
|
|---|
| 97 | ---- lanciare il server come servizio
|
|---|
| 98 | installare SRVANY.EXE
|
|---|
| 99 | http://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"
|
|---|
| 102 | reg 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"
|
|---|
| 103 | net start tracd
|
|---|
| 104 |
|
|---|
| 105 |
|
|---|
| 106 | ---- logo
|
|---|
| 107 |
|
|---|
| 108 | copiato il file in C:\Python25\Lib\site-packages\Trac-0.11.4-py2.5.egg\trac\htdocs
|
|---|
| 109 | modificata la sezione logo nel file di configurazione del progetto
|
|---|
| 110 | D:\Agilorep\latte\conf\trac.ini
|
|---|
| 111 |
|
|---|
| 112 | [header_logo]
|
|---|
| 113 | alt = (please configure the [header_logo] section in trac.ini)
|
|---|
| 114 | height = -1
|
|---|
| 115 | link = http://URL/latte
|
|---|
| 116 | src = common/logo_gnstudio.png
|
|---|
| 117 | width = -1
|
|---|
| 118 |
|
|---|
| 119 | FARE attenzione: la URL e' assoluta, modificare quando e' accessibile dall'esterno
|
|---|
| 120 |
|
|---|
| 121 |
|
|---|
| 122 | ---------- HTTPS
|
|---|
| 123 | riferiemnto: http://trac.edgewall.org/wiki/STunnelTracd
|
|---|
| 124 |
|
|---|
| 125 | installare openSSL
|
|---|
| 126 |
|
|---|
| 127 |
|
|---|
| 128 | -- creare il certificato
|
|---|
| 129 | C:\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"
|
|---|
| 130 | Loading 'screen' into random state - done
|
|---|
| 131 | Generating a 1024 bit RSA private key
|
|---|
| 132 | ...++++++
|
|---|
| 133 | ............................................++++++
|
|---|
| 134 | writing new private key to 'server.pem'
|
|---|
| 135 | -----
|
|---|
| 136 | You are about to be asked to enter information that will be incorporated
|
|---|
| 137 | into your certificate request.
|
|---|
| 138 | What you are about to enter is what is called a Distinguished Name or a DN.
|
|---|
| 139 | There are quite a few fields but you can leave some blank
|
|---|
| 140 | For some fields there will be a default value,
|
|---|
| 141 | If you enter '.', the field will be left blank.
|
|---|
| 142 | -----
|
|---|
| 143 | Country Name (2 letter code) [AU]:IT
|
|---|
| 144 | State or Province Name (full name) [Some-State]:Roma
|
|---|
| 145 | Locality Name (eg, city) []:Roma
|
|---|
| 146 | Organization Name (eg, company) [Internet Widgits Pty Ltd]:gnstudio.com
|
|---|
| 147 | Organizational Unit Name (eg, section) []:Agilo
|
|---|
| 148 | Common Name (eg, YOUR name) []:Roberto Bettazzoni
|
|---|
| 149 | Email Address []:
|
|---|
| 150 |
|
|---|
| 151 | trovi il file "server.pem" ... il certificato
|
|---|
| 152 |
|
|---|
| 153 |
|
|---|
| 154 | --- installare STUNNEL
|
|---|
| 155 | http://www.stunnel.org/download/binaries.html
|
|---|
| 156 |
|
|---|
| 157 | copiare il file server.pem
|
|---|
| 158 | cambiare al configurazione in:
|
|---|
| 159 | cert = server.pem
|
|---|
| 160 | key = server.pem
|
|---|
| 161 |
|
|---|
| 162 | output = stunnel.log
|
|---|
| 163 |
|
|---|
| 164 | [tracd]
|
|---|
| 165 | accept = 443
|
|---|
| 166 | connect = localhost:80
|
|---|
| 167 |
|
|---|
| 168 | lanciare stunnel (come servizio)
|
|---|
| 169 |
|
|---|