Edgewall Software

Changes between Version 1 and Version 2 of Ubuntu-10.04-Bazaar


Ignore:
Timestamp:
Sep 28, 2010, 3:18:52 PM (14 years ago)
Author:
natewlew@…
Comment:

Fixed some typos

Legend:

Unmodified
Added
Removed
Modified
  • Ubuntu-10.04-Bazaar

    v1 v2  
    77Install 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.
    88
    9 * Update the System:
     9Update the System:
    1010
    1111{{{
     
    1717}}}
    1818
    19 * Install base packages:
     19Install base packages:
    2020
    2121{{{
     
    2323}}}
    2424
    25 * (optional):
     25(optional):
    2626
    2727{{{
     
    3131   Enter MySQL root password during mysql install.
    3232
    33 * Install Trac:
     33Install Trac:
    3434
    3535{{{
     
    3939   This will also install a Geshi egg
    4040
    41 * Setup Database. Log into MySQL:
     41Setup Database. Log into MySQL:
    4242
    4343{{{
     
    4545}}}
    4646
    47 * Once logged in, run these mysql commands:
     47Once logged in, run these mysql commands:
    4848
    4949{{{
     
    5151}}}
    5252
    53 * Create MySQL Password:
     53Create MySQL Password:
    5454
    5555{{{
     
    6363}}}
    6464
    65 * Create a Project:
     65Create a Project:
    6666
    6767   I am going to put the trac projects under /var/tracprojects/. The name of the new project is newproject.
     
    7979}}}
    8080
     81Enter your projects name (newproject) and press enter:
    8182{{{
    8283Project Name [My Project]> newproject (press enter)
    8384}}}
    8485
     86Enter the MySQL connection screen and press enter:
     87
    8588{{{
    8689Database connection string [sqlite:db/trac.db]> mysql://tracuser:yourpassword@localhost/trac (press enter)
     
    8992   Now we need to convert the mysql tables to INNODB
    9093
    91 * Log back into mysql:
     94Log back into mysql:
    9295
    9396{{{
     
    105108If the engine is MYISAM it must be converted.
    106109
    107 * Run the folowing mysql commands on the trac database as one command and press enter at the end to complete the statments:
     110Run the folowing mysql commands on the trac database as one command and press enter at the end to complete the statments:
    108111
    109112{{{
     
    129132}}}
    130133
    131 * Recheck that all database types are InnoDB:
     134Recheck that all database types are InnoDB:
    132135
    133136{{{
     
    139142}}}
    140143
    141 * Deploy the Project (this creates the .wsgi file):
     144Deploy the Project (this creates the .wsgi file):
    142145
    143146{{{
     
    145148}}}
    146149
    147 * Change permissions to apache on the project:
     150Change permissions to apache on the project:
    148151
    149152{{{
     
    151154}}}
    152155
    153 * Set apache for wsgi:
     156Set apache for wsgi:
    154157
    155158{{{
     
    157160}}}
    158161
    159 * paste the following contents into the file and save it:
     162Paste the following contents into the file and save it:
    160163
    161164{{{
     
    198201We 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.
    199202
    200 * Run the following command to create a password for user admin:
     203Run the following command to create a password for user admin:
    201204
    202205{{{
     
    206209   Enter your password twice.
    207210
    208 * Grant admin rights to user admin:
     211Grant admin rights to user admin:
    209212
    210213{{{
     
    212215}}}
    213216
    214 * Enable rewrite in apache:
     217Enable rewrite in apache:
    215218
    216219{{{
     
    218221}}}
    219222
    220 * Now restart Apache:
     223Now restart Apache:
    221224
    222225{{{
     
    232235Now we need to setup bazaar as our vcs.
    233236
    234 * Install TracBzr:
     237Install the Trac Bazaar plugin:
    235238
    236239{{{
     
    246249}}}
    247250
    248 * Open the config file:
     251Open the config file:
    249252
    250253{{{
     
    252255}}}
    253256
    254 * Find the section [trac]. Change repository_dir and repository_type to look like this:
     257Find the section [trac]. Change repository_dir and repository_type to look like this:
    255258
    256259{{{
     
    259262}}}
    260263
    261 * Add this to the bottom of the file add:
     264Add this to the bottom of the file:
    262265
    263266{{{
     
    268271   Save the file.
    269272
    270 * Create the bzr access file. We will create this in the deploy/cgi-bin directory:
     273Create the bzr access file. We will create this in the deploy/cgi-bin directory:
    271274
    272275{{{
     
    274277}}}
    275278
    276 * Paste this in the file:
     279Paste this in the file:
    277280
    278281{{{
     
    288291}}}
    289292
    290 * Restart apache:
     293Restart apache:
    291294
    292295{{{
     
    296299You should be able to the the Browse Source link at the top. You will see an error because there is no source yet.
    297300
    298 * Create the brz repo on the server:
     301Create the brz repo on the server:
    299302
    300303{{{
     
    314317 }}}
    315318
    316 * Now initialize the project from the client:
     319Now initialize the project from the client:
    317320
    318321{{{
     
    344347}}}
    345348
    346 * If you get any errors when commiting make sure perrmissions are set to apache on the server:
     349If you get any errors when commiting make sure perrmissions are set to apache on the server:
    347350
    348351{{{
     
    354357I recommend a GUI app called Bazaar Explorer. See http://wiki.bazaar.canonical.com/BzrExplorer
    355358
    356 * You can optionally install the default ssl on ubuntu by running:
     359'''Optional'''
     360
     361You can optionally install the default ssl on ubuntu by running:
    357362
    358363{{{
     
    368373}}}
    369374
    370 * I had to remove python-pycurl on my Ubuntu client to connect to the bzr repo through https:
     375I had to remove python-pycurl on my Ubuntu client to connect to the bzr repo through https:
    371376
    372377{{{
     
    374379}}}
    375380
    376 * use:
     381use:
    377382
    378383{{{
     
    380385}}}
    381386
    382 * instead of:
     387instead of:
    383388
    384389{{{