KnowledgeBase

Differences between revisions 31 and 32
Revision 31 as of 2008-10-10 02:16:40
Size: 9157
Editor: c-98-201-24-5
Comment:
Revision 32 as of 2008-11-05 22:57:47
Size: 9008
Editor: 74
Comment: Step 3 creates the local branch. Step 4 was not required (and thus was removed).
Deletions are marked like this. Additions are marked like this.
Line 37: Line 37:
 1. Create your own branch
   * $ bzr branch ubuntu-desktop-course-beta ubuntu-desktop-course-beta-<NAME OR NICK>
    * This is your working copy

Home

Getting Involved

Knowledge Base

FAQ

Contacts

NEXT TRAINING MEETING:
TBD (details)

Meeting Logs

Launchpad and Bazaar

This is a step-by-step guide for creating a branch of the Ubuntu Desktop Course and working on it. The Ubuntu Desktop course is hosted on Launchpad in a bazaar repository (https://launchpad.net/ubuntu-desktop-course)

  1. Create a directory on your system, we use ubuntu-desktop-course here
    • $ mkdir ubuntu-desktop-course; cd ubuntu-desktop-course
  2. Create a repository to hold branches
    • $ bzr init-repo .
      • [Note the '.' in the above command]
      • This step is not absolutely necessary, but of advantage if you want to have several branches
  3. Branch from the desktop course beta
    • If you want to take a look at the Ubuntu Desktop Course XML files and images, please use the lightweight branch method described below. This will download around 90 MB of data.
    • If you want to contribute to the Ubuntu Desktop Course development by publishing your own branch, please use the full branch method described below. This will download around 500 MB of data.
    1.1 Lightweight branch 1.1 Full branch
  4. Edit and change the XML files
  5. Commit your changes
    • $ bzr commit -m "Example commit, corrected error on bzr usage"
      • Commit after every logical change, e.g. update of a paragraph or list
      • Use sensible commit messages
  6. Publish your branch
    • From your branch directory call
      • bzr push bzr+ssh://<LAUNCHPAD USERNAME>@bazaar.launchpad.net/~<LAUNCHPAD USERNAME>/ubuntu-desktop-course/<YOUR BRANCH NAME>

Required packages

You can install the ubuntu-desktop-course-devel package, which is hosted in the ubuntu-training team PPA. Installing this package will bring in all the bits and pieces you need to build the courseware from DocBook source. See https://launchpad.net/~ubuntu-training/+archive for the actual package and repository information.

If you would rather install the required tools by hand, you will need the following packages: docbook-xsl, xsltproc, dblatex, make and bzr. You can install these using the command line ("sudo apt-get install ...") or the Synaptic package manager.

HOWTO translate the Ubuntu Desktop Course

into another language (in collaboration with others).

Prerequisites:

  • a launchpad account (https://launchpad.net/+login)

  • a computer with Ubuntu 7.10 running and access to the Internet
  • a public rsa key in the file ~/.ssh/id_rsa.pub on your computer (*)

(*) If you don't have a public rsa key then create one with the command "ssh-keygen -t rsa".

Login into your launchpad account, go to the "Overview" page of your account and choose "Update SSH keys" from the "Actions" menue. Insert the contents of ~/.ssh/id_rsa.pub into the textbox and click on <Import Public Key>.

Go to the Ubuntu Desktop Course Code page at https://code.launchpad.net/ubuntu-desktop-course and check if there is already a branch for the language you want to translate into (ubuntu-desktop-course-german for example). If there isn't such a branch then you are the first one starting the translation into your language. If you are the first one you should register two branches (ubuntu-desktop-course-german and ubuntu-desktop-course-german-your_name for example). If you are not the first one you have to register only one branch (ubuntu-desktop-course-german-your_name for example). Therefore click on "Register branch" in the "Actions" menue to register your branch(es). Select "Branch Type: Hosted". As "Name" and "Title" type in ubuntu-desktop-course-german-your_name for example.

Now you can create a branch (or two) as a working copy on your computer, start translating and publish your work. For details see "Launchpad and Bazaar" above. Use for example ubuntu-desktop-course-german-your_name only for your own translation work. ubuntu-desktop-course-german should only be used to merge the work of all who are translating into German.

Example 1: Linus is the first one who starts translation into Finnish:

bzr branch http://bazaar.launchpad.net/~canonical-training/ubuntu-desktop-course/ubuntu-desktop-course-beta

bzr branch ubuntu-desktop-course-beta ubuntu-desktop-course-finnish

bzr branch ubuntu-desktop-course-beta ubuntu-desktop-course-finnish-torvalds

After translating in ubuntu-desktop-course-finnish-torvalds:

bzr commit ...

bzr push bzr+ssh://linus-torvalds@bazaar.launchpad.net/~linus-torvalds/ubuntu-desktop-course/ubuntu-desktop-course-finnish-torvalds

After merging all translations in ubuntu-desktop-course-finnish (for example with
bzr merge ../ubuntu-desktop-course-finnish-torvalds
bzr merge ../ubuntu-desktop-course-finnish-raikkonen
bzr merge ../ubuntu-desktop-course-finnish-halonen
...):

bzr commit ...

bzr push bzr+ssh://linus-torvalds@bazaar.launchpad.net/~linus-torvalds/ubuntu-desktop-course/ubuntu-desktop-course-finnish

Example 2: Marie Curie is the third one who starts translation into French (Paula Couvert was the first one):

bzr branch http://bazaar.launchpad.net/~paula-couvert/ubuntu-desktop-course/ubuntu-desktop-course-french

bzr branch ubuntu-desktop-course-french ubuntu-desktop-course-french-curie

After translating in ubuntu-desktop-course-french-curie:

bzr commit ...

bzr push bzr+ssh://marie-curie@bazaar.launchpad.net/~marie-curie/ubuntu-desktop-course/ubuntu-desktop-course-french-curie

HOWTO add the Ubuntu Desktop Course on an Ubuntu 7.10 Live CD

with a little help from the UCK (Ubuntu Customization Kit).

Prerequisites:

  • a computer with Ubuntu 7.10 running and access to the Internet
  • 5 GByte free disk space in $HOME/tmp
  • an Ubuntu 7.10 ISO-Image file (700 MByte)
  • the Ubuntu Desktop Course file (73 MByte, $HOME/student.pdf for example)

Download uck_2.0.1_all.deb from uck.sourceforge.net and install it.

Open a Terminal window (Applications -> Accessories -> Terminal) and type in the command uck-gui. Answer all the questions the uck-gui asks you...

When the uck-gui asks you "Do you want to customize CD manually during build" then answer "yes"...

When the "Please choose customization action" window appears then let it untouched.

Instead open another Terminal window (Applications -> Accessories -> Terminal) and type in the following commands:

  • sudo mkdir $HOME/tmp/remaster-iso/docs
  • sudo cp $HOME/student.pdf $HOME/tmp/remaster-iso/docs/
  • sudo mkdir $HOME/tmp/remaster-root/etc/skel/Desktop
  • sudo ln -s /cdrom/docs/student.pdf $HOME/tmp/remaster-root/etc/skel/Desktop/Ubuntu_Desktop_Course.pdf

Close the Terminal window.

Get back to the "Please choose customization action" window, select "Continue building" and klick on <OK>...

After a while you will find the remastered ISO-Image file as $HOME/tmp/remaster-new-files/livecd.iso (780 MByte).

Burn livecd.iso on a DVD(*) and then boot from this DVD...

You will see an "Ubuntu_Desktop_Course.pdf" icon on the desktop. Klick on the icon to open the Ubuntu Desktop Course. Smile :-)

(*)BE AWARE: If you want to burn livecd.iso on a CD the size of the file has to be less than 700 MByte. To achieve this select "Run package manager" in the "Please choose customization action" window of the uck-gui and remove some software packages you don't need.

Training/KnowledgeBase (last edited 2009-08-31 10:21:51 by 88-134-43-96-dynip)