Page:
Packaging Requirements
Pages
Bugs
Changelog
Code Review
Constitution
Contributors
Dealing with Merges
Debugging
Frequently Asked Questions (FAQ)
Home
Membership
Packages
Packaging Example
Packaging Exceptions
Packaging Guide
Packaging New Packages
Packaging Requirements
Packaging Tutorial
Packaging Versions
Packaging for New Upstream Releases
Packaging
Support
Testing
Upload to a PPA
low hanging fruit
lubuntu dev xdg
lubuntu dev
Clone
3
Packaging Requirements
Walter Lapchynski edited this page 2024-04-10 20:45:54 +00:00
Table of Contents
Purpose of this document
This is meant to provide all the requirements necessary to follow the Packaging Tutorial.
Requirements
- Software
sudo apt install ssh git devscripts debhelper tar quilt
- Configuration
- Uncomment the
deb-srclines in/etc/apt/sources.listsoapt build-depworks correctly. They should be duplicates of the normaldeblines except they begin withdeb-src. With newer versions using deb822 sources, just adddeb-srcto theTypesline. - So you get credit where credit's due:
- For
git:git config --global user.name "your full name"git config --global user.email "your email address"
- For Debian tools:
- Add the following to
$HOME/.bashrc:export DEBFULLNAME="your full name"export DEBEMAIL="your email address"export EMAIL="your email address"
- Reload your configuration for it to take effect immediately:
source $HOME/.bashrc
- Add the following to
- For
- Uncomment the
- Set up
ssh:- Create a key
- Easy way
ssh-keygen- Accept the default name (
$HOME/.ssh/id_rsa) - Enter a password ≥ 5 characters
- Hard way
ssh-keygen -C some-identifying-info -t ed25519 # more secure and supported by Launchpad; alternately use -t rsa -b 4096- Select a unique name e.g.
$HOME/.ssh/gitea # allows you to have more than one key - Pick an even better password!
- Edit
$HOME/.ssh/configto includeHost git.lubuntu.meIdentityFile ~/.ssh/gitea
- Easy way
- Add
sshkey to Gitea:- Go to Settings
- Click on "SSH/GPG Keys"
- Click on "Add Key" just above the "Manage SSH Keys" section
- Give your key a name (anything works) and then copy and paste the //public// key from the step above
- Click on "Add Key" below the "Content" section where you added your key
- Create a key
$HOME/.quiltrcfrom packaging guide
Extras
gpgsetup- Get the software:
sudo apt install gpg - Make a new key:
gpg --full-generate-key - Select an RSA and RSA pair
- Select 4096 bits for key size
- Select expiration date, or none (note you can always move the date out farther)
- Verify and accept
- Enter your real name
- Enter your email address
- A comment is not necessary
- Give it a good password
- It takes a while to gain enough entropy to finish the creation. Open a new terminal and
find / 2>/dev/nulland that should help it along - Add
DEBSIGN_KEYID=your-key-id to~/.devscripts. your-key-id should be equivalent togpg --list-keys --with-colonsyour-email-above| grep -m 1 fpr | awk -F: '{print $10}'
- Get the software:
bzrsetup- Get the software:
sudo apt install bzr - Create a Launchpad account if you don't have one already.
- Create an
sshkey or reuse one (see above), ed25519 is now supported for Launchpad. - Upload your key to Launchpad.
- Set your identification:
bzr whoami "Your Name your@emailaddress.org" - Login to Launchpad:
bzr launchpad-loginyour-launchpad-username - Edit
$HOME/.ssh/configto includeHost bazaar.launchpad.net git.launchpad.netUseryour-launchpad-username
- Add
IdentityFile /path/to/ssh/keyif you use a non-default key.
- Get the software:
sshagent withkeychain- Get the software:
sudo apt install keychain - Added the following to the end of your
$HOME/.bashrc:keychainpath-to-private-ssh-key-1 path-to-private-key-2 … path-to-private-key-n. ~/.keychain/`uname -n`-sh
- Every time you login, you will be asked for all of your passwords and then they will be held in memory.
- Get the software: