Chapter 1.  Setting up the environment

Table of Contents

A User Account
Packages
GPG keys
Preparing the shell
GPG and Environment Check
PBuilder Config
Creating COWBuilder chroots
git-buildpackage
Build Check
reprepro setup
Dupload setup
Using the repository
Hello w/git

You've got before you a PC with Ubuntu Precise on it, almost out-of-the-box. The machine is connected to the Internet. The ssh server is running, but it denies password logins.

In this session, we 'll set up all necessities for packaging. No packages wil be created yet.

[Warning]Warning

IPtables is off, and there is no upstream firewall protecting you either.

Also, if somehow you break the OS, lock yourself out, or generally do something that requires reinstallation, you will need to go through this session again to get your environment set up. And you will lose your work if you haven't uploaded it to somewhere else.

Please change the password of your account. Be sure to also set the root password. If you want a different account, now is the time to create it.

Do set the root password before you do anything else, so you have a way to get back in.

If you edit /etc/sudoers, do not edit it directly. Use visudo instead.

[Warning]Warning

Trying to do all exercises from a root shell is not a good idea. Chances are you will have to reinstall the machine.