Packaging Requirements
Packaging Requirements
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 php-curl php-cli devscripts debhelper tar quilt arcanist (if arcanist poses any issues, follow these instructions.
- Configuration
- Uncomment the deb-src lines in /etc/apt/sources.list so apt build-dep works correctly. They should be duplicates of the normal deb lines except they begin with deb-src.
- 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 $HOME/.bashrc:
- For git:
- 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/phab # allows you to have more than one key
- Pick an even better password!
- Edit $HOME/.ssh/config to include
- Host phab.lubuntu.me
- IdentityFile ~/.ssh/phab
- Easy way
- Add ssh key to Phab:
- Go to Settings
- Click on "Personal Account Settings"
- Click on "SSH Public Keys" under "Authentication" on the left side
- Click SSH Key Actions → Upload Public Key
- Give your key a name (anything works) and then copy and paste the public key from the step above
- Create a key
- $HOME/.quiltrc from packaging guide
- Final Arcanist tweaks:
- arc set-config phabricator.uri "https://phab.lubuntu.me/"
- arc install-certificate
Extras
- gpg setup
- 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/null and that should help it along
- Add DEBSIGN_KEYID=your-key-id to ~/.devscripts. your-key-id should be equivalent to gpg --list-keys --with-colons your-email-above | grep -m 1 fpr | awk -F: '{print $10}'
- bzr setup
- Get the software: sudo apt install bzr
- Create a Launchpad account if you don't have one already.
- Create an ssh key 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-login your-launchpad-username
- Edit $HOME/.ssh/config to include
- Host bazaar.launchpad.net git.launchpad.net
- User your-launchpad-username
- Add IdentityFile /path/to/ssh/key if you use a non-default key.
- ssh agent with keychain
- Get the software: sudo apt install keychain
- Added the following to the end of your $HOME/.bashrc:
- keychain path-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.
Tags
None
Subscribers
None
- Last Author
- kc2bez
- Last Edited
- Feb 17 2022, 12:59 AM