--Generate the Key-- >Open the terminal. >Type in gpg –gen-key >Type in 1 >Type in 2048 >Type in 0 -So your key will not expire. >Type in Y -To confirm >Type in your Real name -NOT your nickname, your legal name. >Type in your email address -This address will be used to confirm your identity later. >Type in a comment -This can be anything, but keep it short. Write down this information! >Type in O -To confirm >In the pop-up box type in a pass-phrase. Write this down! It is EXTREMELY important to remember this, as you will use it often. If you forget it, you cannot retrieve it. >Click OK and type in the pass-phrase again. >Now just type in random characters as fast as you can, (e.g. asidjf;laeijsf;lkj), until you get a message like this: gpg: key 7B8CD597 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: 5 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 5u pub 2048R/7B8CD597 2015-02-28 Key fingerprint = FF54 4342 AE95 5C08 52C0 F8C0 274B 31E6 7B8C D597 uid Goose Duckhead (Kwak Kwak) <goose.duckhead@gmail.com> sub 2048R/972FD744 2015-02-28 This might take a while, from time to time you might get a message like: “Not enough random bytes available. Please do some other work to give the OS a chance to collect more entropy! (Need 66 more bytes” Just continue typing as fast as you can! >Write down the key it generated! This is very important! In the above case it's 7B8CD597. --Upload the key to the Ubuntu servers.-- >Type in cd ~ -In case your current directory is not already home. >Type in gpg --export -a "Your Key" > key.asc In the above case it is gpg --export -a 7B8CD597 > key.asc >Go to your home folder and open key.asc >Copy all the text >In your Web browser go to http://keyserver.ubuntu.com/ >Paste the copied text into the text box provided: >Click Submit You should get the message: "Key block added to key server database. New public keys added: 1 key(s) added successfully." --Register your key on Launchpad-- >Go to https://launchpad.net/codeofconduct >Click on Login >Sign into your Ubuntu One account -If you do not yet have one, create one. >Click on Yes, log me in >Now click on 'Register an OpenPGP key' >Back in the terminal type in gpg –fingerprint. You should get a message like this: pub 2048R/7B8CD597 2015-02-28 Key fingerprint = FF54 4342 AE95 5C08 52C0 F8C0 274B 31E6 7B8C D597 uid Goose Duckhead (Kwak Kwak) <goose.duckhead@gmail.com> sub 2048R/972FD744 2015-02-28 >Copy the key fingerprint. - Here it is FF54 4342 AE95 5C08 52C0 F8C0 274B 31E6 7B8C D597 >Paste it into the box provided on Launchpad in your browser. >Click Import Key You should now get the following message: "A message has been sent to your email address, encrypted with the key your key. To confirm the key is yours, decrypt the message and follow the link inside." >Go to your email and open the email sent by Lauchpad. >Copy the text from -----BEGIN PGP MESSAGE----- to -----END PGP MESSAGE----- >Go back to your home folder. >Create a new file and call it 1.txt (Right Click > New Document > Empty Document) >Open 1.txt with a text editor and paste the text from your email. >Save the file and close the window. > Back in the terminal type in cd ~ -In case your current directory is not already home. >Type in gpg -d 1.txt >Type in the pass-phrase you wrote down when you created the key! You should now get a message with instructions on what to do next. >At the bottom is a link you should follow (copy-paste it into your browser's URL box). --Read the Code of Conduct.-- >Go back to https://launchpad.net/codeofconduct. >Click on the Download link to download to Code of Conduct. >Read it! --Sign it!.-- >On https://launchpad.net/codeofconduct, click Sign it! >Click on the Download link and save the file to your home directory. >Back in the terminal, type in cd ~ -Again, just in case. >Type in gpg --clearsign UbuntuCodeofConduct-2.0.txt This will depend on what name you saved the file as. If it doesn't accept your pass-pharse, type in gpg --clearsign -u {Your key} UbuntuCodeofConduct-2.0.txt You should now have a file in your home directory named UbuntuCodeofConduct-2.0.txt.asc, depending on what you called the file you downloaded. >Open the file, and copy all the text inside. > Back in the Browser, paste all the text into the box. > Click Continue. You're done if you recieve a screen saying 'Codes of Conduct for {Your name}'.