<?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>kueda.net &#187; ubuntu</title>
	<atom:link href="http://kueda.net/blog/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://kueda.net</link>
	<description>I'm Back</description>
	<lastBuildDate>Thu, 26 Apr 2012 01:32:33 +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>Installing Mapnik on an Ubuntu 8.04 Slice</title>
		<link>http://kueda.net/blog/2009/09/07/installing-mapnik-on-an-ubunto-8-04-slice/</link>
		<comments>http://kueda.net/blog/2009/09/07/installing-mapnik-on-an-ubunto-8-04-slice/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 20:40:18 +0000</pubDate>
		<dc:creator>Ken-ichi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mapnik]]></category>
		<category><![CDATA[slicehost]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://kueda.net/?p=297</guid>
		<description><![CDATA[Just installed Mapnik on the iNat slice at Slicehost, which runs Ubuntu Hardy (8.04). Since the process was not exactly trivial, here&#8217;s what I ended up doing: # Get up to date and install deps # Docs: http://trac.mapnik.org/wiki/UbuntuInstallationOld aptitude update aptitude install binutils cpp-3.3 g++-3.3 gcc-3.3 gcc-3.3-base libboost-dev libboost-filesystem-dev libboost-filesystem1.34.1 libboost-iostreams-dev libboost-iostreams1.34.1 libboost-program-options-dev libboost-program-options1.34.1 libboost-python-dev [...]]]></description>
			<content:encoded><![CDATA[<p>Just installed Mapnik on the iNat slice at Slicehost, which runs Ubuntu Hardy (8.04).  Since the process was not exactly trivial, here&#8217;s what I ended up doing:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Get up to date and install deps</span>
<span style="color: #666666; font-style: italic;"># Docs: http://trac.mapnik.org/wiki/UbuntuInstallationOld</span>
<span style="color: #c20cb9; font-weight: bold;">aptitude</span> update
<span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> binutils cpp-<span style="color: #000000;">3.3</span> g++-<span style="color: #000000;">3.3</span> gcc-<span style="color: #000000;">3.3</span> gcc-<span style="color: #000000;">3.3</span>-base libboost-dev libboost-filesystem-dev libboost-filesystem1.34.1 libboost-iostreams-dev libboost-iostreams1.34.1 libboost-program-options-dev libboost-program-options1.34.1 libboost-python-dev libboost-python1.34.1 libboost-regex-dev libboost-regex1.34.1 libboost-serialization-dev libboost-serialization1.34.1 libboost-thread-dev libboost-thread1.34.1 libicu-dev libicu38 libstdc++<span style="color: #000000;">5</span> libstdc++<span style="color: #000000;">5</span>-<span style="color: #000000;">3.3</span>-dev python2.5-dev
<span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libfreetype6 libfreetype6-dev libjpeg62 libjpeg62-dev libltdl3 libltdl3-dev libpng12-<span style="color: #000000;">0</span> libpng12-dev libtiff4 libtiff4-dev libtiffxx0c2 python-imaging python-imaging-dbg proj
<span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libcairo2 libcairo2-dev python-cairo python-cairo-dev libcairomm-<span style="color: #000000;">1.0</span>-<span style="color: #000000;">1</span> libcairomm-<span style="color: #000000;">1.0</span>-dev libglib2.0-<span style="color: #000000;">0</span> libpixman-<span style="color: #000000;">1</span>-<span style="color: #000000;">0</span> libpixman-<span style="color: #000000;">1</span>-dev libpthread-stubs0 libpthread-stubs0-dev ttf-dejavu ttf-dejavu-core ttf-dejavu-extra
<span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libgdal-dev python2.5-gdal
<span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libxslt1.1 libxslt1-dev libxml2-dev libxml2
easy_install jonpy
easy_install lxml
&nbsp;
<span style="color: #666666; font-style: italic;"># Configure and instlall mapnik from source</span>
<span style="color: #666666; font-style: italic;"># Docs: http://trac.mapnik.org/wiki/UsingScons</span>
python scons<span style="color: #000000; font-weight: bold;">/</span>scons.py configure <span style="color: #007800;">INPUT_PLUGINS</span>=shape,gdal,ogr,sqlite
python scons<span style="color: #000000; font-weight: bold;">/</span>scons.py
python scons<span style="color: #000000; font-weight: bold;">/</span>scons.py <span style="color: #c20cb9; font-weight: bold;">install</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Make sure ld knows where to find the new libs</span>
<span style="color: #666666; font-style: italic;"># Thanks to http://www.drazzib.com/projets:openstreetmap:postgis_mapnik_tile_server</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;/usr/local/lib64&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ld.so.conf.d<span style="color: #000000; font-weight: bold;">/</span>local.conf
ldconfig</pre></div></div>

<p>My main mistake was thinking that the python-mapnik package in Aptitude was going to cut mustard.  Didn&#8217;t even include OGR support!  Luckily the most recent Mapnik release (0.6.1) built just fine.  Still easier that installing under OS X.</p>
]]></content:encoded>
			<wfw:commentRss>http://kueda.net/blog/2009/09/07/installing-mapnik-on-an-ubunto-8-04-slice/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Moving a Rails app to Ruby Enterprise Edition</title>
		<link>http://kueda.net/blog/2009/08/28/moving-a-rails-app-to-ruby-enterprise-edition/</link>
		<comments>http://kueda.net/blog/2009/08/28/moving-a-rails-app-to-ruby-enterprise-edition/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 20:03:25 +0000</pubDate>
		<dc:creator>Ken-ichi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[slicehost]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://kueda.net/?p=286</guid>
		<description><![CDATA[I just put iNaturalist.org on Ruby Enterprise Edition. Unfortunately, I&#8217;m really not seeing any savings in memory consumption, aside from the Passenger ApplicationSpawner taking up a few less MB. Kind of dissapointed. However, installing REE on my Mac was slightly less trivial than I was led to believe. Suffice it to say the REE installer [...]]]></description>
			<content:encoded><![CDATA[<p>I just put <a href="http://inaturalist.org">iNaturalist.org</a> on <a href="http://www.rubyenterpriseedition.com/">Ruby Enterprise Edition</a>.  Unfortunately, I&#8217;m really not seeing any savings in memory consumption, aside from the Passenger ApplicationSpawner taking up a few less MB.  Kind of dissapointed.</p>
<p>However, installing REE on my Mac was slightly less trivial than I was led to believe.  Suffice it to say the REE installer assumes you have dependent libs in <code>/usr</code> or <code>/usr/local</code>, and if you don&#8217;t, there aren&#8217;t any flags you can pass in to change that.  However, you can set ENV vars, so I was able to get the installer to work like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">CC</span>=<span style="color: #c20cb9; font-weight: bold;">gcc</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">CXX</span>=<span style="color: #c20cb9; font-weight: bold;">g++</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> .<span style="color: #000000; font-weight: bold;">/</span>installer</pre></div></div>

<p>Basically, the REE installer checks deps by using Ruby to write and compile a C file, but it&#8217;s default path to gcc was not the same as the gcc I normally use.</p>
<p>After that, I had to make sure all my gems were in place.  I ended up installing rails, Hpricot, and ruby-debug (the latter 2 require compiled C) using REE&#8217;s own copy of rubygems, and I made sure the rest of our gems were vendorized.  REE&#8217;s rubygems is just like normal:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>ree<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem <span style="color: #c20cb9; font-weight: bold;">install</span> rails ruby-debug hpricot</pre></div></div>

<p>If you run into problems, make sure you&#8217;re tailing Apache&#8217;s error log and not just the Rails log, b/c that&#8217;s where Passenger will moan about its problems.</p>
<p>As I said, memory gains seem non-existent on our Ubuntu production machine, which is weird because I saw a 25% reduction in memory usage on my Macbook. </p>
]]></content:encoded>
			<wfw:commentRss>http://kueda.net/blog/2009/08/28/moving-a-rails-app-to-ruby-enterprise-edition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Ubuntu Cheat Sheet</title>
		<link>http://kueda.net/blog/2008/08/01/my-ubuntu-cheat-sheet/</link>
		<comments>http://kueda.net/blog/2008/08/01/my-ubuntu-cheat-sheet/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 06:45:24 +0000</pubDate>
		<dc:creator>Ken-ichi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://kueda.net/?p=57</guid>
		<description><![CDATA[Looks like I&#8217;m maintaining an Ubuntu server these days&#8230; Package Management # Finding Installed Dependent Packages apt-cache rdepends --installed packageX &#160; # Installing Individual .deb Packages sudo dpkg -i package_file.deb &#160; # Ubuntu version info cat /etc/lsb-release Trust not to aptitude&#8230; Sometimes aptitude does silly things, like install X11 when all you wanted was ImageMagick. [...]]]></description>
			<content:encoded><![CDATA[<p>Looks like I&#8217;m maintaining an Ubuntu server these days&#8230;</p>
<h3>Package Management</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Finding Installed Dependent Packages</span>
<span style="color: #c20cb9; font-weight: bold;">apt-cache</span> rdepends <span style="color: #660033;">--installed</span> packageX
&nbsp;
<span style="color: #666666; font-style: italic;"># Installing Individual .deb Packages</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> package_file.deb
&nbsp;
<span style="color: #666666; font-style: italic;"># Ubuntu version info</span>
<span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>lsb-release</pre></div></div>

<h4>Trust not to aptitude&#8230;</h4>
<p>Sometimes aptitude does silly things, like install X11 when all you wanted was ImageMagick.  Try apt-get as well to see if it doesn&#8217;t have a different set of deps (this is true of ImageMagick as of December 2008).</p>
]]></content:encoded>
			<wfw:commentRss>http://kueda.net/blog/2008/08/01/my-ubuntu-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

