Changes between Version 1 and Version 2 of Ubuntu-10.04-Bazaar
- Timestamp:
- Sep 28, 2010, 3:18:52 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ubuntu-10.04-Bazaar
v1 v2 7 7 Install a base ubuntu server (this should work for a desktop install as well). I selected ssh during install so I could get into the machine. 8 8 9 *Update the System:9 Update the System: 10 10 11 11 {{{ … … 17 17 }}} 18 18 19 *Install base packages:19 Install base packages: 20 20 21 21 {{{ … … 23 23 }}} 24 24 25 *(optional):25 (optional): 26 26 27 27 {{{ … … 31 31 Enter MySQL root password during mysql install. 32 32 33 *Install Trac:33 Install Trac: 34 34 35 35 {{{ … … 39 39 This will also install a Geshi egg 40 40 41 *Setup Database. Log into MySQL:41 Setup Database. Log into MySQL: 42 42 43 43 {{{ … … 45 45 }}} 46 46 47 *Once logged in, run these mysql commands:47 Once logged in, run these mysql commands: 48 48 49 49 {{{ … … 51 51 }}} 52 52 53 *Create MySQL Password:53 Create MySQL Password: 54 54 55 55 {{{ … … 63 63 }}} 64 64 65 *Create a Project:65 Create a Project: 66 66 67 67 I am going to put the trac projects under /var/tracprojects/. The name of the new project is newproject. … … 79 79 }}} 80 80 81 Enter your projects name (newproject) and press enter: 81 82 {{{ 82 83 Project Name [My Project]> newproject (press enter) 83 84 }}} 84 85 86 Enter the MySQL connection screen and press enter: 87 85 88 {{{ 86 89 Database connection string [sqlite:db/trac.db]> mysql://tracuser:yourpassword@localhost/trac (press enter) … … 89 92 Now we need to convert the mysql tables to INNODB 90 93 91 *Log back into mysql:94 Log back into mysql: 92 95 93 96 {{{ … … 105 108 If the engine is MYISAM it must be converted. 106 109 107 *Run the folowing mysql commands on the trac database as one command and press enter at the end to complete the statments:110 Run the folowing mysql commands on the trac database as one command and press enter at the end to complete the statments: 108 111 109 112 {{{ … … 129 132 }}} 130 133 131 *Recheck that all database types are InnoDB:134 Recheck that all database types are InnoDB: 132 135 133 136 {{{ … … 139 142 }}} 140 143 141 *Deploy the Project (this creates the .wsgi file):144 Deploy the Project (this creates the .wsgi file): 142 145 143 146 {{{ … … 145 148 }}} 146 149 147 *Change permissions to apache on the project:150 Change permissions to apache on the project: 148 151 149 152 {{{ … … 151 154 }}} 152 155 153 *Set apache for wsgi:156 Set apache for wsgi: 154 157 155 158 {{{ … … 157 160 }}} 158 161 159 * paste the following contents into the file and save it:162 Paste the following contents into the file and save it: 160 163 161 164 {{{ … … 198 201 We will use the same .htpasswd to authenticate bzr users as the trac install. Anyone you give access to trac will have write access to the bzr repo. You can change the bzr.wsgi setting readonly to true to disable any write access (see below). You could also create a different .htpasswd to seperate trac from bzr or require certain users by changing Require valid-user to Require admin. 199 202 200 *Run the following command to create a password for user admin:203 Run the following command to create a password for user admin: 201 204 202 205 {{{ … … 206 209 Enter your password twice. 207 210 208 *Grant admin rights to user admin:211 Grant admin rights to user admin: 209 212 210 213 {{{ … … 212 215 }}} 213 216 214 *Enable rewrite in apache:217 Enable rewrite in apache: 215 218 216 219 {{{ … … 218 221 }}} 219 222 220 *Now restart Apache:223 Now restart Apache: 221 224 222 225 {{{ … … 232 235 Now we need to setup bazaar as our vcs. 233 236 234 * Install TracBzr:237 Install the Trac Bazaar plugin: 235 238 236 239 {{{ … … 246 249 }}} 247 250 248 *Open the config file:251 Open the config file: 249 252 250 253 {{{ … … 252 255 }}} 253 256 254 *Find the section [trac]. Change repository_dir and repository_type to look like this:257 Find the section [trac]. Change repository_dir and repository_type to look like this: 255 258 256 259 {{{ … … 259 262 }}} 260 263 261 * Add this to the bottom of the file add:264 Add this to the bottom of the file: 262 265 263 266 {{{ … … 268 271 Save the file. 269 272 270 *Create the bzr access file. We will create this in the deploy/cgi-bin directory:273 Create the bzr access file. We will create this in the deploy/cgi-bin directory: 271 274 272 275 {{{ … … 274 277 }}} 275 278 276 *Paste this in the file:279 Paste this in the file: 277 280 278 281 {{{ … … 288 291 }}} 289 292 290 *Restart apache:293 Restart apache: 291 294 292 295 {{{ … … 296 299 You should be able to the the Browse Source link at the top. You will see an error because there is no source yet. 297 300 298 *Create the brz repo on the server:301 Create the brz repo on the server: 299 302 300 303 {{{ … … 314 317 }}} 315 318 316 *Now initialize the project from the client:319 Now initialize the project from the client: 317 320 318 321 {{{ … … 344 347 }}} 345 348 346 *If you get any errors when commiting make sure perrmissions are set to apache on the server:349 If you get any errors when commiting make sure perrmissions are set to apache on the server: 347 350 348 351 {{{ … … 354 357 I recommend a GUI app called Bazaar Explorer. See http://wiki.bazaar.canonical.com/BzrExplorer 355 358 356 * You can optionally install the default ssl on ubuntu by running: 359 '''Optional''' 360 361 You can optionally install the default ssl on ubuntu by running: 357 362 358 363 {{{ … … 368 373 }}} 369 374 370 *I had to remove python-pycurl on my Ubuntu client to connect to the bzr repo through https:375 I had to remove python-pycurl on my Ubuntu client to connect to the bzr repo through https: 371 376 372 377 {{{ … … 374 379 }}} 375 380 376 *use:381 use: 377 382 378 383 {{{ … … 380 385 }}} 381 386 382 *instead of:387 instead of: 383 388 384 389 {{{