Building from source/Napa

Napa is based on Debian Squeeze (version 6) In order to compile a Vyatta Napa image, do the following on a (clean) Debian Squeeze machine:

For a 64bit version basically change the "i386" in further references with "amd64"

echo "Package: squashfs-tools" >> /etc/apt/preferences echo "Pin: version 4.*">> /etc/apt/preferences echo "Pin-Priority: 1001" >> /etc/apt/preferences

cd /tmp wget -O - http://packages.vyatta.com/vyatta-dev/vyatta-pubkey.gpg | sudo apt-key add -
 * 1) install the Vyatta packaget repository GPG key

wget http://packages.vyatta.com/vyatta-dev/mendocino/unstable/pool/main/squashfs-tools_4.1+vyatta-5+mendocino1_i386.deb sudo dpkg -i squashfs-tools_4*.deb
 * 1) install squashfs package

apt-get update

apt-get install ssh build-essential sudo bzip2 curl autoconf git devscripts debhelper autotools-dev automake \ libtool bison flex lintian libglib2.0-dev libapt-pkg-dev libboost-filesystem1.42-dev libncurses5-dev libdb-dev \ libssl-dev cdbs libreadline5-dev libpam0g-dev libcap-dev libsnmp-dev gawk unzip kernel-package \ libatm1-dev git-buildpackage libnfnetlink-dev libnetfilter-conntrack-dev libattr1-dev rsync libxml2-dev \ libedit-dev libpcap0.8-dev libpci-dev lsb-release quilt ruby genisoimage liblzo2-dev unifont libpopt-dev \ libgmp3-dev libcurl4-openssl-dev libopensc2-dev libldap2-dev libkrb5-dev  hardening-wrapper libgcrypt11-dev \ libpcre3-dev libprelude-dev libgnutls-dev libperl-dev python-all-dev python-setuptools live-helper syslinux \ libsort-versions-perl

cd /usr/src/ git clone http://git.vyatta.com/build-iso.git cd build-iso git checkout --track -b napa origin/napa
 * 1) get the actual source from vyatta using git

export PATH=/sbin:/usr/sbin:$PATH autoreconf -i ./configure sudo make iso