<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>thinking sysadmin &#187; ubuntu</title>
	<atom:link href="http://andyleonard.com/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://andyleonard.com</link>
	<description>qstat -u aleonard -s z</description>
	<lastBuildDate>Tue, 28 Feb 2012 04:47:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Deploying Ubuntu on Rackspace using Fog and Cloud-Init</title>
		<link>http://andyleonard.com/2011/11/28/deploying-ubuntu-on-rackspace-using-fog-and-cloud-init/</link>
		<comments>http://andyleonard.com/2011/11/28/deploying-ubuntu-on-rackspace-using-fog-and-cloud-init/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 21:53:39 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[utility computing]]></category>
		<category><![CDATA[cloud-init]]></category>
		<category><![CDATA[fog]]></category>
		<category><![CDATA[rackspace]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://andyleonard.com/?p=679</guid>
		<description><![CDATA[This post is an amalgamation of Vladimir Vuksan&#8217;s Provision to cloud in 5 minutes using fog (EC2-specific) and Jeff Gran&#8217;s Bootstrapping an Ubuntu Server on Rackspace Using Cloud-Init and Fog &#8211; I contributed little more than (inexpertly) gluing them together. Assuming you already have the Fog gem installed: First, as a prerequisite and as Jeff [...]]]></description>
			<content:encoded><![CDATA[<p>This post is an amalgamation of Vladimir Vuksan&#8217;s <a href="http://blog.vuksan.com/2010/07/20/provision-to-cloud-in-5-minutes-using-fog/">Provision to cloud in 5 minutes using fog</a> (EC2-specific) and Jeff Gran&#8217;s <a href="http://jeffgran.com/276/blog/ubuntu-cloud-init-rackspace-fog-ruby">Bootstrapping an Ubuntu Server on Rackspace Using Cloud-Init and Fog</a> &#8211; I contributed little more than (inexpertly) gluing them together.</p>
<p>Assuming you already have the Fog gem installed:</p>
<p>First, as a prerequisite and as Jeff Gran notes, you&#8217;ll need to create a Rackspace image with the cloud-init package installed.  </p>
<p>Next, similar to what Vladimir Vuksan describes, create a config.rb file, and populate the following values as appropriate for your environment:</p>
<pre class="brush: ruby; title: ; notranslate">
#!/usr/bin/env ruby

@flavor_id = 3
@image_id = 1234567

@rackspace_username =  'example'
@rackspace_api_key = '1234....'

@private_key_path = './ssh/id_rsa'
@public_key_path = './ssh/id_rsa.pub'
</pre>
<p>The flavor_id values and image_id specify the instance size and the image you built with cloud-init installed (see the &#8220;fog&#8221; executable&#8217;s &#8220;Compute[:rackspace].flavors&#8221; and &#8220;Compute[:rackspace].images&#8221;, respectively); the Rackspace username and api_key can be retrieved from within the console under &#8220;Your Account: API Access.&#8221;  The SSH key pair will be what you use to access the new instance as root.<br />
<span id="more-679"></span><br />
Third, create a cloud-init user_data file ERB template; place it in ./cloud-init/user_data.erb; for example:</p>
<pre class="brush: plain; title: ; notranslate">
#cloud-config
apt_upgrade: true
hostname: &lt;%= hostname %&gt;

packages:
- emacs
- git
- puppet

#runcmd:

#ssh_keys:
#  rsa_private: |
#  rsa_public:
#  dsa_private: |
#  dsa_public:
</pre>
<p>Finally, the script you launch to deploy Rackspace images is as follows:</p>
<pre class="brush: ruby; title: ; notranslate">
#!/usr/bin/env ruby

# Based on:
# http://blog.vuksan.com/2010/07/20/provision-to-cloud-in-5-minutes-using-fog/
# as well as:
# http://jeffgran.com/276/blog/ubuntu-cloud-init-rackspace-fog-ruby

require 'erb'
require 'optparse'

require 'rubygems'

require 'fog'
require 'mime'

# Parse options:
options = {}

optparse = OptionParser.new do|opts|
  opts.banner = &quot;Usage new_instance.rb [options]&quot;

  options[:name] = 'rax.example.com'
  opts.on( '-n', '--name INSTANCE_NAME', 'Instance name (default: rax.example.com)' ) do|n|
    options[:name] = n || 'rax.example.com'
  end

  options[:user_data] = './cloud-init/user_data.erb'
  opts.on( '-u', '--userdata USER_DATA', 'Path to Cloud-Init user_data ERB template (default: ./cloud-init/user_data.erb)' ) do |u|
    options[:user_data] = u || './cloud-init/user_data.erb'
  end

  opts.on( '-h', '--help', 'Display this help message' ) do
    puts opts
    exit
  end
end

optparse.parse!

hostname = options[:name] # to facilitate erb cloud-init template

# Create cloud-init data:

f = File.new(options[:user_data])
e = ERB.new(f.read)
user_data = MIME::MultipartMedia::Mixed.new
user_data.add_entity(MIME::TextMedia.new(e.result, 'text/plain'))

# Import Rackspace credentials:
require './config.rb'

# Connect to Rackspace:
connection = Fog::Compute.new({
  :provider           =&gt; 'Rackspace',
  :rackspace_api_key  =&gt; @rackspace_api_key,
  :rackspace_username =&gt; @rackspace_username
})

# Launch instance:
puts &quot;Launching instance '#{options[:name]}'...&quot;

server = connection.servers.bootstrap({
  :flavor_id        =&gt; @flavor_id,
  :image_id         =&gt; @image_id,
  :name             =&gt; hostname,
  :personality      =&gt; [ { 'path'     =&gt; '/var/lib/cloud/seed/nocloud-net/user-data',
                           'contents' =&gt; user_data.to_s },
                         { 'path'     =&gt; '/var/lib/cloud/seed/nocloud-net/meta-data',
                           'contents' =&gt; ' ' } ],
  :private_key_path =&gt; @private_key_path,
  :public_key_path  =&gt; @public_key_path
})

puts &quot;Instance launched at #{server.public_ip_address()}&quot;
</pre>
<p>Launch it with the &#8220;-h&#8221; flag to see usage; otherwise, launch it with no arguments to launch an instance with your default options.</p>
]]></content:encoded>
			<wfw:commentRss>http://andyleonard.com/2011/11/28/deploying-ubuntu-on-rackspace-using-fog-and-cloud-init/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>One More Useful Tool: f.lux</title>
		<link>http://andyleonard.com/2011/01/13/one-more-useful-tool-f-lux/</link>
		<comments>http://andyleonard.com/2011/01/13/one-more-useful-tool-f-lux/#comments</comments>
		<pubDate>Thu, 13 Jan 2011 19:27:52 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[f.lux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://andyleonard.com/?p=604</guid>
		<description><![CDATA[Following on to my previous post about ack and autojump, one more new-to-me tool that I&#8217;ve become quite fond of is f.lux. When you find yourself passing up your dual-core hot-rod workstation for your underpowered netbook solely because the netbook has f.lux installed, take it as a sign that the creators of f.lux are on [...]]]></description>
			<content:encoded><![CDATA[<p>Following on to my previous post about ack and autojump, one more new-to-me tool that I&#8217;ve become quite fond of is <a href="http://www.stereopsis.com/flux/">f.lux</a>.  When you find yourself passing up your dual-core hot-rod workstation for your underpowered netbook solely because the netbook has f.lux installed, take it as a sign that the creators of f.lux are on to something.</p>
<p>From the f.lux website: &#8220;f.lux makes your computer screen look like the room you&#8217;re in, all the time. When the sun sets, it makes your computer look like your indoor lights. In the morning, it makes things look like sunlight again.&#8221;  For me, the decrease in eye strain is palpable; at night, picking up a mobile phone or even looking at a TV after using a machine with f.lux installed is painful.  (Obviously, if you need accurate color representation, you can&#8217;t have f.lux on; thankfully, temporarily disabling it is a breeze.)</p>
<p>There are are Windows, OS X and Linux versions available; installation on Ubuntu is made easy through a PPA.  Here&#8217;s a little Puppet module for Ubuntu Maverick hosts, if Puppet is your thing:</p>
<pre class="brush: plain; light: true; title: ; notranslate">
class flux {

  exec { &quot;add f.lux ppa&quot;:
    command =&gt; &quot;/usr/bin/apt-add-repository ppa:kilian/f.lux&quot;,
    creates =&gt; &quot;/etc/apt/sources.list.d/kilian-f_lux-maverick.list&quot;,
    notify =&gt; Exec[&quot;apt-get update&quot;],
  }

  package { &quot;fluxgui&quot;:
    ensure =&gt; present,
    require =&gt; Exec[&quot;add f.lux ppa&quot;],
  }

}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://andyleonard.com/2011/01/13/one-more-useful-tool-f-lux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing the F5 FirePass VPN Client on Ubuntu 10.04 AMD64</title>
		<link>http://andyleonard.com/2010/05/20/installing-the-f5-firepass-vpn-client-on-ubuntu-10-04-amd64/</link>
		<comments>http://andyleonard.com/2010/05/20/installing-the-f5-firepass-vpn-client-on-ubuntu-10-04-amd64/#comments</comments>
		<pubDate>Thu, 20 May 2010 19:12:21 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[operating systems]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[f5]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[firepass]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[lucid lynx]]></category>
		<category><![CDATA[lynx]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[ssl vpn]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://andyleonard.com/?p=474</guid>
		<description><![CDATA[Disclaimer: I am not a FirePass administrator; only an end-user and have no other relationship with F5. There may be better methods to address this issue; please comment if you know of one. See also: f5vpn-login.py, described here, and brought to my attention by sh4k3sph3r3. A CLI FirePass client is quite likely a better solution [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Disclaimer:</strong> I am not a FirePass administrator; only an end-user and have no other relationship with F5.  There may be better methods to address this issue; please comment if you know of one.</p>
<p><strong>See also:</strong> <a href="http://fuhm.net/software/f5vpn-login/">f5vpn-login.py</a>, described <a href="http://fuhm.net/software/f5vpn-login/README">here</a>, and brought to my attention by <a href="http://andyleonard.com/2010/05/20/installing-the-f5-firepass-vpn-client-on-ubuntu-10-04-amd64/#comment-439">sh4k3sph3r3</a>.  A CLI FirePass client is quite likely a better solution than separate browser instances, etc.</p>
<p><strong>Preliminaries:</strong> Although the F5 FirePass SSL VPN product supports Linux, as best as I can tell, that support is somewhat limited: My understanding is that they officially claim support for 32-bit installs only, and they do not appear to track new distribution releases particularly aggressively.  F5 has also been somewhat slow in supporting new browser versions: They <a href="http://devcentral.f5.com/weblogs/f5news/archive/2008/10/06/firepass-v6.0.3-released.aspx">announced support for Firefox 3</a> on October 6, 2008, nearly four months after its release and with only two months to go before Firefox 2 was end-of-lifed.  For Firefox 3.6 support, a comment on the post linked above states that you need to request a special hot fix from F5 (which my site has not applied).  There is no Google Chrome support that I am aware of.</p>
<p>Further, F5&#8242;s automated client installation tools have unfortunately never worked for me on Linux, even when the architecture and browser are in their support matrix.  The manual download instruction links are also broken on the FirePass install I connect to.</p>
<p><strong>Solution:</strong> Install a dedicated, 32-bit version of Firefox in a supported version; create a single-purpose Firefox profile for VPN use.  Add the FirePass client to that browser and the operating system.<br />
<span id="more-474"></span><br />
For the Firefox install, follow the &#8220;Manual Installation&#8221; instructions from the <a href="https://help.ubuntu.com/community/FirefoxNewVersion/MozillaBuilds">Ubuntu Community Documentation</a> site.  Install version 3.5 if your site does not have the hotfix mentioned above.</p>
<p>Be sure to create a new Firefox profile in your account for use with the FirePass; however, I recommend modifying the script in the Ubuntu documentation to automatically take you to your FirePass site (https://firepass.example.com/ for the purposes of this post):</p>
<pre class="brush: bash; title: ; notranslate">
#!/bin/bash
exec &quot;\$HOME/firefox/firefox&quot; -P mozilla-build https://firepass.example.com/
</pre>
<p>Next, download the client components from your F5 site; again, assuming firepass.example.com, retrieve and save:</p>
<p>https://firepass.example.com/vdesk/vpn/nogzip/downloads.php/linux/np_F5_SSL_VPN.so</p>
<p>and</p>
<p>https://firepass.example.com/vdesk/vpn/nogzip/downloads.php/linux/SSLVpn.tgz</p>
<p>Move np_F5_SSL_VPN.so to the plugins directory of the new Firefox installation &#8211; ~/firefox/plugins if following the Ubuntu documentation.  Based on file layout, it appears that F5 intended for you to extract SSLVpn.tgz at the root of your file system.  Instead of following this bad practice, in scratch space and as root, extract the SSLVpn.tgz tarball and manually move the files into place:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
cp SSLVpn.tgz /tmp
cd /tmp
sudo tar -xvpzf SSLVpn.tgz
# inspect extracted files here...
cd /usr/local/lib
mkdir -p F5Networks/SSLVPN
cd /tmp/usr/local/lib/F5Networks/SSLVPN
cp -Rp etc svpn var /usr/local/lib/F5Networks/SSLVPN
</pre>
<p>Using the bash script above, you should now be able to launch your purpose-built FirePass browser installation and have it &#8220;just work&#8221; for Network Access.  Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://andyleonard.com/2010/05/20/installing-the-f5-firepass-vpn-client-on-ubuntu-10-04-amd64/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Putting Ubuntu on the Eee PC</title>
		<link>http://andyleonard.com/2008/06/22/putting-ubuntu-on-the-eee-pc/</link>
		<comments>http://andyleonard.com/2008/06/22/putting-ubuntu-on-the-eee-pc/#comments</comments>
		<pubDate>Sun, 22 Jun 2008 21:57:24 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[operating systems]]></category>
		<category><![CDATA[eee pc]]></category>
		<category><![CDATA[f5]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[firepass]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://andyleonard.com/?p=36</guid>
		<description><![CDATA[I finally got around to installing Ubuntu (Hardy) on my Eee PC this weekend. My only regret: That I waited so long to do it. I used the eeebuntu Netbook Remix RC1 build; the install went very smoothly, with the only hangup being a need to reformat my USB drive twice before I could move [...]]]></description>
			<content:encoded><![CDATA[<p>I finally got around to installing Ubuntu (Hardy) on my Eee PC this weekend.  My only regret: That I waited so long to do it.<br />
<span id="more-36"></span><br />
I used the <a href="http://www.eeebuntu.org/">eeebuntu</a> <a href="https://launchpad.net/netbook-remix">Netbook Remix</a> RC1 build; the install went very smoothly, with the only hangup being a need to reformat my USB drive twice before I could move the ISO image onto it.  The Netbook Remix interface is pretty slick, providing both a better launcher then the stock Xandros install, and more flexibility for the power user.</p>
<p>I was expecting some hassle getting wireless going after the install.  Instead, it worked out of the box.  I did have to recreate my login keyring in seahorse for reasons that I didn&#8217;t bother to pursue; the default keyring didn&#8217;t want to unlock on login, but since I had nothing in it, I lost nothing in recreating it.</p>
<p>As far as post-install modifications, I made <code>/tmp</code>, <code>/var/tmp</code> and <code>/var/log</code> all tmpfs file systems to reduce writes to the Eee&#8217;s SSD (I also chose ext2 instead of a journaling file system during the install and mounted it <code>noatime</code> for the same reason).  I had to hunt down and install a 2.x version of Firefox in parallel to Firefox 3.x since F5&#8242;s FirePass VPN client doesn&#8217;t work in 3.x.  (Cheap shot: The reason why they call it <a href="http://www.f5.com/glossary/clientless-remote-access.html">clientless</a> is that it doesn&#8217;t actually work on any clients out there.  In seriousness, the advantage over traditional VPN clients just isn&#8217;t there.)</p>
<p>Other than the above and installing a couple stock Ubuntu packages (Thunderbird and libstdc++5 for Firefox), I haven&#8217;t had to make any tweaks to the vanilla install.  If you&#8217;ve got an Eee, I highly recommend this upgrade.</p>
]]></content:encoded>
			<wfw:commentRss>http://andyleonard.com/2008/06/22/putting-ubuntu-on-the-eee-pc/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Reading List, 6/4/2008</title>
		<link>http://andyleonard.com/2008/06/04/reading-list-642008/</link>
		<comments>http://andyleonard.com/2008/06/04/reading-list-642008/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 21:15:02 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[link dump]]></category>
		<category><![CDATA[operating systems]]></category>
		<category><![CDATA[bandwidth]]></category>
		<category><![CDATA[netbook remix]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://andyleonard.com/?p=24</guid>
		<description><![CDATA[Ubuntu Netbook Remix &#8211; &#8220;A &#8216;remix&#8217; of the standard Ubuntu Desktop 8.04 release to enable it to work better on devices with small screens, such as Netbooks (sub-notebooks).&#8221; I&#8217;ve been meaning to replace Xandros on my Eee with Ubuntu &#8211; it&#8217;ll be nice to have this on top of Hardy Heron. (Seen at Ars Technica, [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li><a href="https://launchpad.net/netbook-remix">Ubuntu Netbook Remix</a> &#8211; &#8220;A &#8216;remix&#8217; of the standard Ubuntu Desktop 8.04 release to enable it to work better on devices with small screens, such as Netbooks (sub-notebooks).&#8221;  I&#8217;ve been meaning to replace Xandros on my Eee with Ubuntu &#8211; it&#8217;ll be nice to have this on top of Hardy Heron.  (Seen at <a href="http://arstechnica.com/news.ars/post/20080604-hands-on-with-the-ubuntu-netbook-remix.html">Ars Technica</a>, whose post has more info and some nice screenshots.)</li>
<li><a href="http://www.nyquistcapital.com/2008/06/03/internet-traffic-growth-doesnt-matter/">Internet Traffic Growth Doesn’t Matter</a> &#8211; A look at Internet bandwidth consumption that sounds quite level-headed to me.  A few great quotes, some of them excerpted from a <a href="http://www.dtc.umn.edu/~odlyzko/talks/gilder2008.pdf">presentation</a> by Andrew Odlyzko: “Internet traffic growth rates are slowing. Hype is accelerating.”  &#8220;Telecom is the only industry that worries about it’s [sic] customers using too much product.&#8221;  &#8220;Volume is not value. SMS messages consume almost no bandwidth but bill out at $1000/Mb.&#8221;  &#8220;Traffic growth simply doesn’t matter. Period. What matters is revenue.&#8221;  And best of all: &#8220;Most people think they are special but in realty [sic] just want to watch &#8216;American Idol&#8217;.&#8221; (Seen at <a href="http://www.datacenterknowledge.com/archives/2008/Jun/04/growth_is_slowing_hype_is_accelerating.html">Data Center Knowledge</a>.)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://andyleonard.com/2008/06/04/reading-list-642008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

