SetupDeveloperEnvironment

Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2012-11-12 10:12:24
Size: 3204
Editor: 80
Comment:
Revision 3 as of 2012-11-12 14:12:39
Size: 1566
Editor: 80
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
== Create GPG Key == == Keys ==
Line 7: Line 7:
"GPG stands for GNU Privacy Guard and it implements the OpenPGP standard which allows you to sign and encrypt messages and files. This is useful for a number of purposes. In our case it is important that you can sign files with your key so they can be identified as something that you worked on. If you upload a source package to Launchpad, it will only accept the package if it can absolutely determine who uploaded the package." === Create a GPG Key ===
Line 9: Line 9:
'''Command to create a gpg key in a terminal''' ''For a more thorough explanation on GPG, see [[https://help.ubuntu.com/community/GnuPrivacyGuardHowto|GPG How To]]''

The GPG key is primarily used for signing Debian packages (.deb). To create a GPG key, use this command in a terminal:
Line 12: Line 14:
gpg --gen-key $ gpg --gen-key
Line 15: Line 17:
'''Press ''Enter'' to select ''(default)'':''' Follow the instructions carefully. Choosing the default options is fine. Make sure to type in your real name and the email you want to have associated with your key. Choose a secure passphrase. If you loose the passphrase, there is no way to retrieve it.

Once you are done, you will need to publish your key to a server in order for it to be usable. First, you need to find out what your public ID is. To see all the GPG keys in your system, do:
Line 17: Line 22:
Please select what kind of key you want:
   (1) RSA and RSA (default)
   (2) DSA and Elgamal
   (3) DSA (sign only)
   (4) RSA (sign only)
$ gpg --list-keys
Line 24: Line 25:
'''Press ''Enter'' to select ''(2048)'':'''
{{{
What keysize do you want? (2048)
}}}

'''Press ''Enter'' to select ''(0)'':'''
{{{
Please specify how long the key should be valid.
         0 = key does not expire
      <n> = key expires in n days
      <n>w = key expires in n weeks
      <n>m = key expires in n months
      <n>y = key expires in n years
Key is valid for? (0)
}}}

'''Answer ''y'' for Yes:'''
{{{
Is this correct? (y/N)
}}}

'''Type your real name here:'''
In this example, the public ID is '''F06EFAE2'''
Line 48: Line 28:
You need a user ID to identify your key; the software constructs the user ID
from the Real Name, Comment and Email Address in this form:
    "Heinrich Heine (Der Dichter) <heinrichh@duesseldorf.de>"

Real name: Kaj Ailomaa
}}}

'''Type your email adress:'''
{{{
Email address: zequence@mousike.me
}}}

'''Add a comment for you to keep track of this gpg key:'''
{{{
Comment: Debian/Ubuntu signing key
}}}

'''Answer ''O'' to accept:'''
{{{
You selected this USER-ID:
    "Kaj Ailomaa (Debian/Ubuntu package signing key) <zequence@mousike.me>"

Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit?
}}}

'''Create a password which will be used each time you sign with this key:'''
{{{
Enter passphrase: <longandcomplexpassword>
}}}

'''The result will look something like this:'''
{{{
gpg: key F06EFAE2 marked as ultimately trusted
public and secret key created and signed.

gpg: checking the trustdb
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0 valid: 2 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 2u
Line 87: Line 29:
      Key fingerprint = 85A3 E041 0A36 8A7C 9EDA 06C9 1473 559D F06E FAE2
Line 92: Line 33:
'''Next, you need to upload the public part of your key to a keyserver so the world can identify messages and files as yours. To do so, enter:''' ''(KEY ID in my case is F06EFAE2 as seen above)'' Now, publish your GPG key using your public ID:
Line 94: Line 36:
gpg --send-keys <KEY ID> $ gpg --send-keys <KEY ID>
Line 97: Line 39:
'''It may take up to one hour before the key is published and ready to be used''' It may take up to an hour before your key is published and ready to be used. There are alternative key servers to publish to, which may be quicker. For more info on that, please see [[https://help.ubuntu.com/community/GnuPrivacyGuardHowto|GPG How To]]
Line 99: Line 41:
[[http://developer.ubuntu.com/packaging/html/getting-set-up.html#create-your-gpg-key|GPG Reference at developer.ubuntu.com]]

== Create SSH Key ==
=== Create SSH Key ===
  • Set up launchpad account
  • Set up developer system
  • Set up testing system

Keys

Create a GPG Key

For a more thorough explanation on GPG, see GPG How To

The GPG key is primarily used for signing Debian packages (.deb). To create a GPG key, use this command in a terminal:

$ gpg --gen-key

Follow the instructions carefully. Choosing the default options is fine. Make sure to type in your real name and the email you want to have associated with your key. Choose a secure passphrase. If you loose the passphrase, there is no way to retrieve it.

Once you are done, you will need to publish your key to a server in order for it to be usable. First, you need to find out what your public ID is. To see all the GPG keys in your system, do:

$ gpg --list-keys

In this example, the public ID is F06EFAE2

pub   2048R/F06EFAE2 2012-11-12
uid                  Kaj Ailomaa (Debian/Ubuntu signing key) <zequence@mousike.me>
sub   2048R/140030E5 2012-11-12

Now, publish your GPG key using your public ID:

$ gpg --send-keys <KEY ID>

It may take up to an hour before your key is published and ready to be used. There are alternative key servers to publish to, which may be quicker. For more info on that, please see GPG How To

Create SSH Key

Setup Launchpad Account

Setup Developer System

Setup Testing Environment

UbuntuStudio/SetupDeveloperEnvironment (last edited 2015-11-09 12:16:45 by h-141-65)