Getting started as an Author or Editor
To work on the project, you’ll need to know how to do a few things:
- Create a Launchpad account and create an SSH key
- Join our team
- Download the bzr branch
- Install TeX Live 2011
- Start working on the tex files
- Compile the manual to test your work
- Commit and push to Launchpad
We’ll walk you through each step here.
Creating a Launchpad Account
- Go to https://launchpad.net and click "Register" in the top-right corner of the page
- Fill in your details
Now you need to create an SSH key. Instructions taken from here.
- Install OpenSSH. On Ubuntu, you can install OpenSSH by opening your terminal and typing:
- Once OpenSSH is installed, stay in the terminal and type:
- 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 stored in ~/.ssh/ as id_rsa.pub (public key) and id_rsa (private key)
$ sudo apt-get install openssh-client
$ ssh-keygen -t rsa
- Visit your SSH keys page.
- Paste your public key into the text box and then click the Import public key button to continue.
Now you need to upload the public portion of your SSH key to Launchpad:
Open your public key in a text editor and copy its contents to your clipboard. The public key file has the extension .pub. For example: id_rsa.pub
Joining our team
- Go here.
- Click on "Join this team."
- You should subscribe to the mailing list as well.
Downloading the bzr branch
You will need to install bzr. Run these commands in a terminal to install bzr and configure it.
- Install bzr:
- Configure bzr with your name and email:
- Create a new directory in your home folder called "Projects".
- Change into that directory in a terminal window:
- Once you are in your Projects directory, run this command to download our branch:
- Bzr will now download the project files. This may take a few minutes depending on your connection speed.
$ sudo apt-get install bzr
$ bzr whoami "Your name <email@domain.com>"To check that bzr knows who you are, run:
$ bzr whoamiIf it has worked, it should return your name and email address. Now we need to download the Ubuntu Manual branch.
$ cd ~/Projects
$ bzr branch lp:ubuntu-manual
Installing TeX Live 2011
The Ubuntu Manual requires TeX Live 2011. The version of TeX Live in the Ubuntu repositories is incomplete and out-dated. You must use the upstream version of TeX Live 2011 to compile the manual successfully.
Installing TeX Live 2011
- First, remove any Ubuntu TeX Live packages, if you have them installed.
- Download the TeX Live 2011 install script: Download now
- Unpack the tarball:
- Change to the newly-unpacked directory:
- Run the script:
- Select where you’d like to install everything, and any other options you prefer. If you choose not to install everything, the minimum that you’ll need is the following collections:
- Essential programs and files (a)
- LaTeX recommended packages (s)
- XeTeX packages (C)
- From the main TeX Live installation menu select Options (O).
- From the Options menu, select “create symlinks in standard directories” (L).
- The default directories are usually okay.
- Press R to return the main menu.
- Run the install-pkgs.sh script that’s in the ubuntu-manual/pkgs/ directory to make sure you have all the required packages.
- If everything checks out okay, you should be able to run: make ubuntu-manual-LANG.pdf where LANG is the language code (see the po/ directory for a list of supported languages).
$ sudo apt-get remove texlive-*
$ tar xvf install-tl-unx.tar.gz
$ cd install-tl-*
$ sudo ./install-tl
Under the language collections, you can skip all the documentation, but be sure to install all the languages you wish to translate into. (If the language you wish to translate into isn’t listed in the menu, don’t worry, there are just no specific packages required for that language.)
You should also enable the creation of the symlinks:
Once those are installed, we can install the remainder of the packages with the install-pkgs.sh script. (Note that this hasn’t been tested yet and it’s pure guesswork on Kevin’s part! Let us know if it does or doesn’t work for you.)
Checking Prerequisites
To make sure you have all the prerequisites installed, run the install-pkgs.sh script (located in the ubuntu-manual/pkgs/ directory).
The script will check for the required Ubuntu packages, TeX packages, and fonts.