<?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>/var/log/jamescape &#187; adamo</title>
	<atom:link href="http://ignore-your.tv/tag/adamo/feed/" rel="self" type="application/rss+xml" />
	<link>http://ignore-your.tv</link>
	<description>Living Without Privacy</description>
	<lastBuildDate>Tue, 27 Jul 2010 04:35:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ubuntu on the Dell Adamo</title>
		<link>http://ignore-your.tv/2010/01/18/ubuntu-on-the-dell-adamo/</link>
		<comments>http://ignore-your.tv/2010/01/18/ubuntu-on-the-dell-adamo/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 05:30:13 +0000</pubDate>
		<dc:creator>James Cape</dc:creator>
				<category><![CDATA[PlanetGNOME Syndication]]></category>
		<category><![CDATA[adamo]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://ignore-your.tv/?p=813</guid>
		<description><![CDATA[I went ahead and got the Adamo from Dell, so here’s my review of it, and what I did to set it up and get it working the way I wanted.
Firstly, on the hardware: AC adapters is the weak point of this guy. For my old MacBook, I had three: one in my bag, one [...]]]></description>
			<content:encoded><![CDATA[<p>I went ahead and got the Adamo from Dell, so here’s my review of it, and what I did to set it up and get it working the way I wanted.</p>
<p>Firstly, on the hardware: AC adapters is the weak point of this guy. For my old MacBook, I had three: one in my bag, one at home, one at the office. While it was a decent extra cost, it was one I undertook after I forgot my adapter a couple times and had to go without for a while—something that everyone with a laptop deals with at some point.</p>
<p>This was particularly a pain since the one that Dell shipped with the laptop died after the first charge—which meant another three days of being unable to use it after I received it. Not cool, Dell.</p>
<p>With the power supply problem fixed, I moved on to getting Linux on the thing. The thing ships with Windows 7, which I wanted to keep on there as an option, and there’s enough travel and sensitive work stuff that I do on my laptops to justify encrypting the disk, which requires using the Ubuntu alternative installer. I also wanted to use LVM for my disks for when I start running out of space and want to shrink the Windows partition.</p>
<p>The way to make this work is non-obvious, and it required two attempts to get going:</p>
<ol>
<li>Resize the Windows partition to something less than the full disk. I chose to give it 100G, and allocate the rest for Linux. This works out of the box in the installer, which is nice.</li>
<li>Setup LVM on the remaining space next.
<ul>
<li>200M for a <code>/boot</code> partition</li>
<li>20G for swap (SSD disk means I assume that hitting swap is nowhere near as painful as it used to be)</li>
<li>The rest for a root partitiion.</li>
</ul>
</li>
<li>Setup encrypted volumes on the LVM partitions you created for root and swap (not <code>/boot</code>). You want to encrypt your swap as well, because Linux isn’t going to zero-out your swap volume when you shutdown, making it effectively an on-disk memory dump of whatever your applications were doing…</li>
</ol>
<p>I tried setting up single root/swap partitions on top of a single large encrypted volume, but Ubuntu aparently requires your /boot partition be un-encrypted, so there wasn’t an obvious way to boot it after doing so…</p>
<p>With that issue out of the way, the rest of the installation went smoothly and things booted just fine. I’ll note that Windows 7 boots <strong>much</strong> faster than Ubuntu 9.10, but I’ve only actually booted the thing from a POST onwards a few times in the last couple weeks, so who cares? The time it takes to resume from sleep is much more important for a laptop, honestly.</p>
<p>With everything installed, I used rsync to copy my documents and such off my old laptop. I had enough disk to rsync my music collection off of my world book, so I went ahead and did that too, and I’ve written a simple upstart config that performs the rsync properly when the network comes back:</p>
<pre class="brush: shell;">#!/bin/bash
# Script to dispatch NetworkManager events
#
# Runs rsync when WiFi or ethernet is connected.

set -x

if [ -z "$1" ]; then
    echo "$0: called with no interface" 1>&#038;2
    exit 1;
fi

# Fake ifupdown environment
export IFACE="$1"
export ACTION="$2"
export USERNAME="me"
export REMOTE_USERNAME="me"
export REMOTE_HOST="stuff.mine.nu"

case "$ACTION" in
    up)
	if [ "$IFACE" = "eth0" -o "$IFACE" = "wlan0" ]; then
		if [ -z "$(pidof rsync)" ]; then
			sudo -n -u $USERNAME rsync -a /home/$USERNAME/Music/* $REMOTE_USERNAME@$REMOTE_HOST:/shares/internal/MUSIC
		fi
	fi
	;;
esac</pre>
<p>I used to try and just mount the drive via SSHfs/nautilus and play via Rhythmbox, but it would skip the first 30 seconds of the song, requiring manual intervention every three minutes.</p>
<p>After that comes the custom repositories I’m using to add a little snazziness and breakage:</p>
<dl>
<dt>ppa:ricotz/testing</dt>
<dd>Latest and greatest GNOME Shell</dd>
<dt>ppa:telepathy/ppa</dt>
<dd>Bleeding Edge Telepathy/Empathy (my at-work XMPP server manages to consistently crash Empathy)</dd>
<dt>ppa:ubuntu-mozilla-daily/ppa</dt>
<dd>Nightlies of Firefox 3.6</dd>
<dt>ppa:cmsj/lifesaver</dt>
<dd>Lifesaver screensaver, search term “#fml” <img src='http://ignore-your.tv/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </dd>
<dt>ppa:chromium-daily/ppa</dt>
<dd>Chromium Web Browser nightly builds</dd>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://ignore-your.tv/2010/01/18/ubuntu-on-the-dell-adamo/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
