<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Bad Dog Consulting - articles</title><link href="http://baddogconsulting.com/" rel="alternate"></link><link href="http://baddogconsulting.com/feeds/articles.atom.xml" rel="self"></link><id>http://baddogconsulting.com/</id><updated>2026-05-15T21:09:00-07:00</updated><entry><title>How to recover from crashed ubuntu install with zfs boot and root partitions</title><link href="http://baddogconsulting.com/how-to-recover-from-crashed-ubuntu-install-with-zfs-boot-and-root-partitions.html" rel="alternate"></link><published>2026-05-15T21:09:00-07:00</published><updated>2026-05-15T21:09:00-07:00</updated><author><name>William Deegan</name></author><id>tag:baddogconsulting.com,2026-05-15:/how-to-recover-from-crashed-ubuntu-install-with-zfs-boot-and-root-partitions.html</id><summary type="html">&lt;p&gt;In my case, the motherboard battery had also died and so I needed to install a new battery and reset the bios to boot in EFI mode&lt;/p&gt;
&lt;h1&gt;Ubuntu ZFS Recovery Guide&lt;/h1&gt;
&lt;p&gt;&lt;em&gt;Consolidated from a successful recovery session following a CMOS battery failure.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;This guide outlines the exact process used to …&lt;/p&gt;</summary><content type="html">&lt;p&gt;In my case, the motherboard battery had also died and so I needed to install a new battery and reset the bios to boot in EFI mode&lt;/p&gt;
&lt;h1&gt;Ubuntu ZFS Recovery Guide&lt;/h1&gt;
&lt;p&gt;&lt;em&gt;Consolidated from a successful recovery session following a CMOS battery failure.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;This guide outlines the exact process used to recover an Ubuntu system with a ZFS layout (&lt;code&gt;bpool&lt;/code&gt; for &lt;code&gt;/boot&lt;/code&gt; and &lt;code&gt;rpool&lt;/code&gt; for &lt;code&gt;/&lt;/code&gt;) after a motherboard battery failure wiped the BIOS settings and corrupted the boot configuration flags.&lt;/p&gt;
&lt;hr&gt;
&lt;h2&gt;Prerequisites &amp;amp; Hardware Fixes&lt;/h2&gt;
&lt;p&gt;Before repairing the software, the underlying hardware clock and motherboard configurations must be stabilized to ensure the settings stick permanently.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Replace the CMOS Battery&lt;/strong&gt;: Install a new CR2032 battery on the motherboard.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Set the Hardware Clock&lt;/strong&gt;: Enter the BIOS, update the system date, and correct the time.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Configure Storage Mode&lt;/strong&gt;: Ensure the SATA/Storage mode is explicitly set to &lt;strong&gt;AHCI&lt;/strong&gt; (do not leave it on RAID or Intel RST).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Configure Boot Mode&lt;/strong&gt;: Set the motherboard to boot exclusively in &lt;strong&gt;UEFI Mode&lt;/strong&gt; (Disable CSM / Legacy boot configuration options).&lt;/li&gt;
&lt;/ol&gt;
&lt;hr&gt;
&lt;h2&gt;Phase 1: Boot the Live USB in UEFI Mode&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Insert an Ubuntu Live USB matching your installed system version as closely as possible.&lt;/li&gt;
&lt;li&gt;Open your motherboard's boot selection menu (usually &lt;code&gt;F12&lt;/code&gt;, &lt;code&gt;F11&lt;/code&gt;, &lt;code&gt;F8&lt;/code&gt;, or &lt;code&gt;F2&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Select the option that explicitly begins with &lt;strong&gt;&lt;code&gt;UEFI:&lt;/code&gt;&lt;/strong&gt; next to your flash drive's name.&lt;/li&gt;
&lt;li&gt;Choose &lt;strong&gt;"Try Ubuntu"&lt;/strong&gt; and launch a terminal.&lt;/li&gt;
&lt;/ol&gt;
&lt;hr&gt;
&lt;h2&gt;Phase 2: Install ZFS Tools &amp;amp; Force Import Pools&lt;/h2&gt;
&lt;p&gt;Because the machine suffered an ungraceful power loss from the dead battery, the ZFS datasets must be forcefully imported to clear lingering "dirty" flags.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Gain root privileges:
   &lt;code&gt;bash
   sudo -i&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Install the ZFS utilities into your Live environment:
   &lt;code&gt;bash
   apt update &amp;amp;&amp;amp; apt install -y zfsutils-linux&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Force import the root pool (&lt;code&gt;rpool&lt;/code&gt;) onto the alternate mount path:
   &lt;code&gt;bash
   zpool import -f -R /mnt rpool&lt;/code&gt;
   &lt;em&gt;(Note: If using native ZFS encryption, add the &lt;code&gt;-l&lt;/code&gt; flag: &lt;code&gt;zpool import -f -l -R /mnt rpool&lt;/code&gt; and type your passphrase).&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Force import the boot pool (&lt;code&gt;bpool&lt;/code&gt;):
   &lt;code&gt;bash
   zpool import -f -R /mnt bpool&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;hr&gt;
&lt;h2&gt;Phase 3: Mount Your EFI Partition &amp;amp; System Trees&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;Note: During recovery, the Live USB may register as &lt;code&gt;/dev/sda&lt;/code&gt;, shifting your primary operating system drive to &lt;code&gt;/dev/sdb&lt;/code&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Mount your actual system EFI partition (which is partition 1 on your true OS drive, e.g., &lt;code&gt;/dev/sdb1&lt;/code&gt;):
   &lt;code&gt;bash
   mount /dev/sdb1 /mnt/boot/efi&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Bridge the critical virtual filesystems and API links from the Live environment into your target path:
   &lt;code&gt;bash
   mount --bind /dev /mnt/dev
   mount --bind /proc /mnt/proc
   mount --bind /sys /mnt/sys
   mount --bind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivars&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Chroot straight into your native Ubuntu operating system environment:
   &lt;code&gt;bash
   chroot /mnt&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;hr&gt;
&lt;h2&gt;Phase 4: Rebuild the Bootloader&lt;/h2&gt;
&lt;p&gt;Now that you are safely executing commands inside your own system, synchronize your modules and rewrite the EFI boot registers.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Re-generate and update your kernel modules and ZFS drivers:
   &lt;code&gt;bash
   update-initramfs -u -k all&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Reinstall GRUB directly to the EFI directory to re-register Ubuntu with your newly-reset motherboard NVRAM:
   &lt;code&gt;bash
   grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ubuntu --recheck&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Refresh the GRUB bootloader configuration menu:
   &lt;code&gt;bash
   update-grub&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;hr&gt;
&lt;h2&gt;Phase 5: Clean Exit &amp;amp; Safe Unmounting&lt;/h2&gt;
&lt;p&gt;To prevent dataset errors or stuck locks on the next hardware boot, you must break background system hooks cleanly.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Exit the chroot session:
   &lt;code&gt;bash
   exit&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Force-unmount stuck hooks or busy errors on the boot structures using a lazy unmount:
   &lt;code&gt;bash
   umount -l /mnt/boot&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Unmount remaining system elements and the EFI path:
   &lt;code&gt;bash
   umount /mnt/sys/firmware/efi/efivars
   umount /mnt/sys /mnt/proc /mnt/dev
   umount /mnt/boot/efi&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Export both ZFS pools to cleanly close their file access flags:
   &lt;code&gt;bash
   zpool export -f bpool
   zpool export -f rpool&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Restart your machine and remove the flash drive:
   &lt;code&gt;bash
   reboot&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;</content><category term="articles"></category></entry><entry><title>How to revive your doorstop Nexus 7 2012</title><link href="http://baddogconsulting.com/how-to-revive-your-doorstop-nexus-7-2012.html" rel="alternate"></link><published>2018-04-30T20:12:00-07:00</published><updated>2018-04-30T20:12:00-07:00</updated><author><name>William Deegan</name></author><id>tag:baddogconsulting.com,2018-04-30:/how-to-revive-your-doorstop-nexus-7-2012.html</id><summary type="html">&lt;h1&gt;The Story&lt;/h1&gt;
&lt;p&gt;If you have a Nexus 7 (2012) you reveled in the glory of a cheap and highly functional Android Tablet.&lt;/p&gt;
&lt;p&gt;** This only applies to the WiFi only version of Nexus 7. The GSM+WiFi version may be similar, but you need different AOSP at least **&lt;/p&gt;
&lt;p&gt;Until... the upgrade …&lt;/p&gt;</summary><content type="html">&lt;h1&gt;The Story&lt;/h1&gt;
&lt;p&gt;If you have a Nexus 7 (2012) you reveled in the glory of a cheap and highly functional Android Tablet.&lt;/p&gt;
&lt;p&gt;** This only applies to the WiFi only version of Nexus 7. The GSM+WiFi version may be similar, but you need different AOSP at least **&lt;/p&gt;
&lt;p&gt;Until... the upgrade of doom.. Android 5.0.0 (and 5.0.x)&lt;/p&gt;
&lt;p&gt;Then, your wonderful tablet started to hang and generally became unusable.&lt;/p&gt;
&lt;p&gt;Google stopped loving you and never issued another upgrade, and if you were lucky you (or a tech friend) downgraded you to Android 4.4.4..&lt;/p&gt;
&lt;p&gt;Well there's now a better way...&lt;/p&gt;
&lt;h2&gt;Download these&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://twrp.me/asus/asusnexus72012wifi.html"&gt;TWRP Custom Recovery Tool&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://androidfilehost.com/?fid=673956719939834037"&gt;AOSP Android Open Source download link&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://opengapps.org/"&gt;Open Gapps- You want ARM/7.1/pico&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;The Process&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;First step, get your Nexus into developer mode.&lt;ol&gt;
&lt;li&gt;Find the adb and fastboot tools in your android sdk download&lt;/li&gt;
&lt;li&gt;Put them in your path&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;On your device, go into Settings -&amp;gt; About and find the Build Number and tap on it 7 times to enable developer settings. Press back and go into Developer Options and enable USB debugging.&lt;/li&gt;
&lt;li&gt;adb reboot bootloader&lt;/li&gt;
&lt;li&gt;fastboot flash recovery twrp.img&lt;/li&gt;
&lt;li&gt;fastboot reboot&lt;/li&gt;
&lt;li&gt;Boot into Recover&lt;ol&gt;
&lt;li&gt;To reboot, hold down power, volume up and volume down.&lt;/li&gt;
&lt;li&gt;You'll get an android on the screen, use the up/down volume buttons to get it to show recovery, then press the power button.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Find the factory reset, and do that.&lt;/li&gt;
&lt;li&gt;adb push &amp;lt;filename for aosp&amp;gt; /sdcard/&lt;/li&gt;
&lt;li&gt;adb push &amp;lt;filename for open gapps&amp;gt; /sdcard/&lt;/li&gt;
&lt;li&gt;Find the option to Install&lt;/li&gt;
&lt;li&gt;Select the aosp (in /sdcard/) and do the install&lt;/li&gt;
&lt;li&gt;After it's done, you can then install gapps.&lt;/li&gt;
&lt;li&gt;Then reboot.&lt;/li&gt;
&lt;li&gt;You should see a prompt to install the twrp app. Go ahead and bring up the play store and do so.&lt;/li&gt;
&lt;/ol&gt;</content><category term="articles"></category></entry><entry><title>Building Python with libxml2 and libxslt on Ubuntu 14.04 from source</title><link href="http://baddogconsulting.com/building-python-with-libxml2-and-libxslt-on-ubuntu-1404-from-source.html" rel="alternate"></link><published>2012-12-01T10:02:00-08:00</published><updated>2012-12-01T10:02:00-08:00</updated><author><name>William Deegan</name></author><id>tag:baddogconsulting.com,2012-12-01:/building-python-with-libxml2-and-libxslt-on-ubuntu-1404-from-source.html</id><summary type="html">&lt;p&gt;Bill.. Why are you building python on ubuntu.. Doesn't it ship with a perfectly good version (you might ask)?&lt;/p&gt;
&lt;p&gt;Well it turns out that the version that both debian and Ubuntu ship doesn't include the windows installer stubs that we use for the SCons project's windows installers.  So while I …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Bill.. Why are you building python on ubuntu.. Doesn't it ship with a perfectly good version (you might ask)?&lt;/p&gt;
&lt;p&gt;Well it turns out that the version that both debian and Ubuntu ship doesn't include the windows installer stubs that we use for the SCons project's windows installers.  So while I could copy the files into the right place, I'm not comfortable munging the system installed packages and it (should have) be(en) an easy job to just install from source and use that.&lt;/p&gt;
&lt;p&gt;Well it turns out if you omit the "rpath.." below, you will get a strange error when building the libxslt python library about missing the xml.sax.expatreader.  This is caused by the binary picking up the system installed python expat shared object instead of the one we just built.  Debugging this to failing to load the shared object in question required a little detective work in finding the actual exception which propagated up to issue that message.  Once I found that, I got a symbol missing error and from there it wasn't too hard to figure out the cause and solution.&lt;/p&gt;
&lt;p&gt;Now that I've done the hard work, here's a recipe to build it properly for yourself.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;set&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;base_dir&lt;/span&gt;&lt;span class="o"&gt;=$&lt;/span&gt;&lt;span class="n"&gt;HOME&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;tools&lt;/span&gt;
&lt;span class="n"&gt;set&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;python_dir&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;python&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;2.7&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;
&lt;span class="n"&gt;set&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;kits_dir&lt;/span&gt;&lt;span class="o"&gt;=$&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;base_dir&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;kits&lt;/span&gt;
&lt;span class="n"&gt;set&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;install_dir&lt;/span&gt;&lt;span class="o"&gt;=$&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;base_dir&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;/$&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;python_dir&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="n"&gt;mkdir&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;$&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;base_dir&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;/$&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;python_dir&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;lib&lt;/span&gt;
&lt;span class="n"&gt;mkdir&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;$&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;kits_dir&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;


&lt;span class="n"&gt;sudo&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;apt&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;get&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;install&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;build&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;essential&lt;/span&gt;
&lt;span class="n"&gt;sudo&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;apt&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;get&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;build&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;dep&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;python2&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;7&lt;/span&gt;

&lt;span class="n"&gt;pushd&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;$&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;kits_dir&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;wget&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;https&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="n"&gt;www&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;python&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;org&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;ftp&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;python&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mf"&gt;2.7&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;Python&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;2.7&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mf"&gt;10.&lt;/span&gt;&lt;span class="n"&gt;tgz&lt;/span&gt;
&lt;span class="n"&gt;wget&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ftp&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="n"&gt;xmlsoft&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;org&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;libxml2&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;libxml2&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;2.9&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mf"&gt;2.&lt;/span&gt;&lt;span class="n"&gt;tar&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gz&lt;/span&gt;
&lt;span class="n"&gt;wget&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ftp&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="n"&gt;xmlsoft&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;org&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;libxml2&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;libxslt&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;1.1&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mf"&gt;28.&lt;/span&gt;&lt;span class="n"&gt;tar&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gz&lt;/span&gt;

&lt;span class="n"&gt;tar&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;xvfz&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Python&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;2.7&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mf"&gt;10.&lt;/span&gt;&lt;span class="n"&gt;tgz&lt;/span&gt;
&lt;span class="n"&gt;tar&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;xvfz&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;libxml2&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;2.9&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mf"&gt;2.&lt;/span&gt;&lt;span class="n"&gt;tar&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gz&lt;/span&gt;
&lt;span class="n"&gt;tar&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;xvfz&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;libxslt&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;1.1&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mf"&gt;28.&lt;/span&gt;&lt;span class="n"&gt;tar&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gz&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;PATH&lt;/span&gt;&lt;span class="o"&gt;=$&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;install_dir&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;bin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;$&lt;/span&gt;&lt;span class="n"&gt;PATH&lt;/span&gt;
&lt;span class="n"&gt;mkdir&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;$&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;install_dir&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;lib&lt;/span&gt;

&lt;span class="n"&gt;pushd&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Python&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;2.7&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;
&lt;span class="n"&gt;LDFLAGS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;-Wl,-rpath=$HOME/tools/python-2.7.10/lib&amp;quot;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;./&lt;/span&gt;&lt;span class="n"&gt;configure&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;prefix&lt;/span&gt;&lt;span class="o"&gt;=$&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;install_dir&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;enable&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;shared&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;enable&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;unicode&lt;/span&gt;
&lt;span class="n"&gt;make&lt;/span&gt;
&lt;span class="n"&gt;make&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;install&lt;/span&gt;
&lt;span class="n"&gt;popd&lt;/span&gt;

&lt;span class="n"&gt;pushd&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;libxml2&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;2.9&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;
&lt;span class="n"&gt;LDFLAGS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;-Wl,-rpath=$HOME/tools/python-2.7.10/lib&amp;quot;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;./&lt;/span&gt;&lt;span class="n"&gt;configure&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;prefix&lt;/span&gt;&lt;span class="o"&gt;=$&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;install_dir&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;enable&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;shared&lt;/span&gt;
&lt;span class="n"&gt;make&lt;/span&gt;
&lt;span class="n"&gt;make&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;install&lt;/span&gt;
&lt;span class="n"&gt;popd&lt;/span&gt;

&lt;span class="n"&gt;pushd&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;libxslt&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;1.1&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;
&lt;span class="n"&gt;LDFLAGS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;-Wl,-rpath=$HOME/tools/python-2.7.10/lib&amp;quot;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;./&lt;/span&gt;&lt;span class="n"&gt;configure&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;prefix&lt;/span&gt;&lt;span class="o"&gt;=$&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;install_dir&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;enable&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;shared&lt;/span&gt;
&lt;span class="n"&gt;make&lt;/span&gt;
&lt;span class="n"&gt;make&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;install&lt;/span&gt;
&lt;span class="n"&gt;popd&lt;/span&gt;


&lt;span class="n"&gt;wget&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;https&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="n"&gt;bootstrap&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pypa&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;io&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;ez_setup&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;py&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;O&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;python&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</content><category term="articles"></category></entry></feed>