Managing A Site In Launchpad: Difference between revisions

From IHRIS Wiki
(Created page with 'This tutorial will take you through the steps of managing a site on Launchpad based on some customizations that you have already made to iHRIS Manage on your Ubuntu machine. We …')
 
No edit summary
Line 1: Line 1:
This tutorial will take you through the steps of managing a site on Launchpad based on some customizations that you have already made to iHRIS Manage on your Ubuntu machine.
This tutorial will take you through the steps of managing a site via bazaar on Launchpad based on some customizations that you have already made to iHRIS Manage on your Ubuntu machine.


We will assume that, for the purposes of this tutorial, that the existing customizations live under  
We will assume that, for the purposes of this tutorial, that the existing customizations live under  
Line 5: Line 5:




==First Steps==
We first need to setup a user account on launchpad and connect it to the account on your machine.  We will also need to make sure the bazaar version control software is installed.
===Launchpad First Steps===


==Launchpad First Steps==
====Creating a Launchpad Account====
First you should create an account on [https://launchpad.net/ Launchpad] if you not have already done so.  We will refer to this account as '''LAUNCHPAD_USER.'''
First you should create an account on [https://launchpad.net/ Launchpad] if you not have already done so.  We will refer to this account as '''LAUNCHPAD_USER.'''


Since we will want to contribute to the code, we will need to create a [https://help.launchpad.net/YourAccount/CreatingAnSSHKeyPair ssh public key] on your Ubuntu machine to add to Launchpad:
===Creating a Launchpad Team===
 
Presumably, you will want to have several people be able to update the customizations you are storing on Launchpad.  This is done by creating a team.
 
====Adding Intrahealth Informatics====
 
You may also wish to give the ''intrahealth-informatics'' team to the team you just created.  This will enable the people
 
 
====Linking your Launchpad Account to your Ubuntu Machine====
 
Since we will want to contribute to the code, we need to let Launchpad know who are.  To do this, we create a [https://help.launchpad.net/YourAccount/CreatingAnSSHKeyPair ssh public key] on your Ubuntu machine to add to Launchpad:
  sudo apt-get install openssh-client
  sudo apt-get install openssh-client
  ssh-keygen -t rsa
  ssh-keygen -t rsa
Line 20: Line 34:
you can now copy the contents of gedit (the public key) into the text box in the web browser.  Now simply click on the button ''Import Public Key''
you can now copy the contents of gedit (the public key) into the text box in the web browser.  Now simply click on the button ''Import Public Key''


For every computer/account that you use you will need to repeat these steps to create and import a public key.
'''Note:''' For every computer/account that you use you will need to repeat these steps to create and import a public key.
 


==Bazaar First Steps==
===Bazaar First Steps===
First we need to make sure the [http://bazaar-vcs.org/en/ Bazaaar] (bzr) version control software is installed:
First we need to make sure the [http://bazaar-vcs.org/en/ Bazaaar] (bzr) version control software is installed:
   sudo apt-get install bzr bzrtools
   sudo apt-get install bzr bzrtools
You may wish to read the [http://doc.bazaar-vcs.org/latest/en/mini-tutorial/index.html five minute tutorial] at this point.  You should also let bzr know how you are:
You may wish to read the [http://doc.bazaar-vcs.org/latest/en/mini-tutorial/index.html five minute tutorial] at this point.  You should also let bzr know how you are:
   bzr whoami "'''Your Name <your@email.add.ress>'''"
   bzr whoami "'''Your Name <your@email.add.ress>'''"
==Join the iHRIS Team==
Launchpad uses "teams" to control who can modify code it stores under bazaar.

Revision as of 10:49, 9 August 2010

This tutorial will take you through the steps of managing a site via bazaar on Launchpad based on some customizations that you have already made to iHRIS Manage on your Ubuntu machine.

We will assume that, for the purposes of this tutorial, that the existing customizations live under

/var/lib/iHRIS/sites/manage


First Steps

We first need to setup a user account on launchpad and connect it to the account on your machine. We will also need to make sure the bazaar version control software is installed.

Launchpad First Steps

Creating a Launchpad Account

First you should create an account on Launchpad if you not have already done so. We will refer to this account as LAUNCHPAD_USER.

Creating a Launchpad Team

Presumably, you will want to have several people be able to update the customizations you are storing on Launchpad. This is done by creating a team.

Adding Intrahealth Informatics

You may also wish to give the intrahealth-informatics team to the team you just created. This will enable the people


Linking your Launchpad Account to your Ubuntu Machine

Since we will want to contribute to the code, we need to let Launchpad know who are. To do this, we create a ssh public key on your Ubuntu machine to add to Launchpad:

sudo apt-get install openssh-client
ssh-keygen -t rsa

When prompted, press Enter to accept the default file name for your key. Next, enter then confirm a password to protect your SSH key.

Your key pair is now stored in ~/.ssh/id_rsa.pub (public key) and ~/.ssh/id_rsa (private key). Now you need to upload the public portion of your SSH key to Launchpad. To do this, open in your web browser:

https://www.launchpad.net/~LAUNCHPAD_USER

You will see a place that says SSH Keys with an exclamation point (!) in a yellow circle next to it. Click on the (!) scroll down until you see Add an SSH Key and a text box. We will paste our public key into this text box. To do so type in a terminal:

gedit ~/.ssh/id_rsa.pub

you can now copy the contents of gedit (the public key) into the text box in the web browser. Now simply click on the button Import Public Key

Note: For every computer/account that you use you will need to repeat these steps to create and import a public key.


Bazaar First Steps

First we need to make sure the Bazaaar (bzr) version control software is installed:

 sudo apt-get install bzr bzrtools

You may wish to read the five minute tutorial at this point. You should also let bzr know how you are:

 bzr whoami "Your Name <your@email.add.ress>"