Assumingyou've already [created a standard VM](https://ask.it.acr.me/question/1010/how-should-we-setup-a-host-machine-for-betabox-trusty/?answer=1021#post-id-1021) in which to do this work, here are the steps:### Prepare your work environmentThese steps will turn your raw Ubuntu VM into a machine tuned for testing and packaging the pystack components.1. **Make your VM comfortable** -- Make yourself an account, add your SSH-keys for Bitbucket, install your favorite dev tools, etc.1. **Install bbsage** -- `sudo apt-get install bbsage bbansible` -- this will include all of the tools you need to build and package the pystack debs.1. **Sync bbsage dotfiles** -- You'llcustomizethisVMforpackagingsosyncthebbsagedotfilesintoyourworkingdirectory:`usebbsage&&bb-dotbbsage--sync`1.**Retrievebetabox-trustytree**-- 1.`cd~/hgdev/org.bitbucket`1.`mkdirbetabox-trusty`1.`hgclonessh://hg@bitbucket.org/betabox-trusty/betabox-trusty.bitbucket.org`1.**Addlocalbetabox-trustytreetoyour`/etc/apt/sources.list`**1.`sudomkdir/opt/apt`1.`sudoln-s${HOME}/hgdev/org/bitbucket/betabox-trusty//opt/apt/current;1.Addalinepriortotheotherbetabox-trustyentrieslike:`debfile:///opt/apt/current/ubuntufimeromain`1.`sudoapt-getupdate`1.`sudoapt-getinstallbbginger`###TestPackagingWe'lltestingthepackagingstep*first*toensurewehavealloftheprerequisitelibrariesinstallproperly.1.**Retrievepystacksourcepackages**`checkoutmanagercopystack-default`(thisworkscourtesyofbbsagedotfiles)2.**Makedebs**-- This will create the debs and install them in your local reprepro tree:1.`cd~/hgdev/org.bitbucket/autonomy/bbsage&&bb-package.sh`2.`cd~/hgdev/org.bitbucket/autonomy/bbmint&&bb-package.sh`3.`cd~/hgdev/org.bitbucket/autonomy/bbdill&&bb-package.sh`4.`cd~/hgdev/org.bitbucket/autonomy/bbthyme&&bb-package.sh`5.`cd~/hgdev/org.bitbucket/autonomy/bbginger&&bb-package.sh`3.**Install
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.