<?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>sixohthree.com &#187; ubuntu</title>
	<atom:link href="http://sixohthree.com/tag/ubuntu/feed" rel="self" type="application/rss+xml" />
	<link>http://sixohthree.com</link>
	<description>The Weblog of Adam Backstrom</description>
	<lastBuildDate>Wed, 16 May 2012 15:01:59 +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>Preware Ubuntu 11.04 Chroot Script</title>
		<link>http://sixohthree.com/1900/preware-ubuntu-11-04-chroot-script</link>
		<comments>http://sixohthree.com/1900/preware-ubuntu-11-04-chroot-script#comments</comments>
		<pubDate>Mon, 23 Jan 2012 14:16:33 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Palm]]></category>
		<category><![CDATA[touchpad]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[webOS]]></category>

		<guid isPermaLink="false">http://mu.sixohthree.com/sixohthree/?p=1900</guid>
		<description><![CDATA[I&#8217;ll need this later.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll need this later.</p>
<pre>#!/bin/sh

# From /media/cryptofs/apps/usr/palm/applications/org.webosinternals.ubuntu-natty-chroot/bin

CHROOT=/media/ext3fs/ubuntu-natty-chroot

cp /etc/resolv.conf ${CHROOT}/etc/resolv.conf

mount --bind /dev ${CHROOT}/dev
mount --bind /dev/pts ${CHROOT}/dev/pts
mount --bind /proc ${CHROOT}/proc
mount --bind /sys ${CHROOT}/sys
mount --bind /tmp ${CHROOT}/tmp

chroot ${CHROOT} /bin/bash

umount ${CHROOT}/tmp
umount ${CHROOT}/sys
umount ${CHROOT}/proc
umount ${CHROOT}/dev/pts
umount ${CHROOT}/dev</pre>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/1900/preware-ubuntu-11-04-chroot-script/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 8.04 on Linode: Cloning and Upgrading to 10.04</title>
		<link>http://sixohthree.com/1329/ubuntu-8-04-on-linode-cloning-and-upgrading-to-10-04</link>
		<comments>http://sixohthree.com/1329/ubuntu-8-04-on-linode-cloning-and-upgrading-to-10-04#comments</comments>
		<pubDate>Tue, 02 Nov 2010 09:06:52 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[linode]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://sixohthree.com/?p=1329</guid>
		<description><![CDATA[Here are some jumbled notes from my Linode VPS&#8217;s upgrade from Ubuntu &#8220;Hardy Heron&#8221; 8.04 to &#8220;Lucid Lynx&#8221; 10.04. I wanted to do a test run before such a huge upgrade, and I did so by cloning my VPS to a  VMware Fusion virtual machine. Note that I also used Linode&#8217;s backup feature before the [...]]]></description>
			<content:encoded><![CDATA[<p>Here are some jumbled notes from my <a href="http://www.linode.com/?r=3b19dabb9ed30b096be4bfc83724d4e7f4c89c15">Linode</a> VPS&#8217;s upgrade from Ubuntu &#8220;Hardy Heron&#8221; 8.04 to &#8220;Lucid Lynx&#8221; 10.04. I wanted to do a test run before such a huge upgrade, and I did so by cloning my VPS to a  <a href="http://www.vmware.com/products/fusion/">VMware Fusion</a> virtual machine. Note that I also used Linode&#8217;s backup feature before the real upgrade, just to be on the safe side.</p>
<h2>Before the Storm: Finnix</h2>
<p>I had no experience with <a href="http://www.finnix.org/">Finnix</a> before this upgrade, but it was exactly what I needed throughout the process. It&#8217;s <a href="http://library.linode.com/troubleshooting/finnix-recovery">built into the Linode dashboard</a> so you can use it as a recovery console if things go wrong. I also used it as my boot disk while cloning the Linode hard disk to my VM.</p>
<h2>The Backup</h2>
<p><code>rsync</code> is my weapon of choice, since it allows for transport over SSH and incremental backups. I used <a href="http://wiki.archlinux.org/index.php/Full_System_Backup_with_rsync">this article</a> to get started with some suggested <code>rsync</code> flags. I ran this several times throughout the process:</p>
<pre>rsync -avzPH --numeric-ids --delete --delete-excluded --exclude-from=backup.lst root@server.example.com:/ /mnt/sda1/</pre>
<p>Here&#8217;s my <code>backup.lst</code> exclusion file:</p>
<pre>+ /dev/console
+ /dev/initctl
+ /dev/null
+ /dev/zero
- /dev/*
- /proc/*
- /sys/*
- /tmp/*
- *lost+found</pre>
<p>After <code>rsync</code>, <code>chroot</code> to the cloned filesystem:</p>
<pre>mount -R /proc /mnt/sda1/proc
mount -R /dev /mnt/sda1/dev
chroot /mnt/sda1 /bin/bash
vi /etc/fstab # update mountpoints. change xvda to sda1, xvdb to sda2</pre>
<p>Install a bootloader. The Linode VPS is in Xen and doesn&#8217;t normally boot its own kernel. (I know next to nothing about Xen, but this is what I&#8217;ve gleaned.)</p>
<pre>apt-get install grub
mkdir -p /boot/grub
cp -r /usr/lib/grub/i386-pc/{stage1,stage2,e2fs_stage1_5} /boot/grub
apt-get install linux
echo defoptions=vga=791 &gt;&gt;/boot/grub/menu.lst
update-grub</pre>
<p>Reboot. Make sure you kill your cron jobs while the VM is on, as many are probably inappropriate for a backup server.</p>
<pre>sudo service cron stop</pre>
<p>I recommend taking a snapshot of your backup, here. It may actually be faster to just <code>rsync</code> again, but it&#8217;s nice to have a complete backup at the ready.</p>
<p>I used a couple commands to update IP addresses on my backup so I could more accurately test services post-upgrade:</p>
<pre>sudo ~/bin/ack --follow -al '207\.192\.74\.235' /etc | sudo xargs sed -i.bak 's/207\.192\.74\.235/172.16.226.130/g'
sudo ~/bin/ack --follow -al '69\.164\.216\.5' /etc | sudo xargs sed -i.bak 's/69\.164\.216\.5/172.16.226.131/g'</pre>
<h2>The Upgrade</h2>
<p>The following notes were taking during my test upgrade, and referenced during the real upgrade. I referenced the Ubuntu Community Documentation project&#8217;s &#8220;<a href="https://help.ubuntu.com/community/LucidUpgrades">Upgrading to Ubuntu 10.04 LTS</a>&#8221; page. There is also a Linode article on <a href="http://library.linode.com/troubleshooting/upgrade-ubuntu-10.04">upgrading to Ubuntu 10.04</a>.</p>
<p>On the first pass, <code>python-setuptools</code> killed my install. This was fixed by manually reinstalling before upgrade:</p>
<pre>sudo dpkg -r python-setuptools &amp;&amp; apt-get install python-setuptools</pre>
<p>Ensure the update manager is installed, and issue the upgrade command:</p>
<pre>sudo apt-get install update-manager-core
sudo do-release-upgrade</pre>
<p>I encountered conflicts in the following packages, where I had modified local files. Also included is my resolution, which may or may not be helpful to anyone else.</p>
<ul>
<li><code>/etc/securetty</code> &#8212; keep currently installed version; package adds some unneeded ones, and removes tty0 (but does include the Xen ones added by Linode)</li>
<li><code>/etc/sysctl.conf</code> &#8212; use new; uncomment &#8220;<code>kernel.prink = 4 4 1 7</code>&#8221; and add &#8220;<code>fs.inotify.max_user_watches = 524288</code>&#8220;</li>
<li><code>/etc/mysql/my.cnf</code> &#8212; kept my version</li>
<li><code>/etc/dhcp3/dhclient.conf</code> &#8212; kept Linode version: &#8220;<code>request subnet-mask, broadcast-address, time-offset, routers, domain-name, domain-name-servers, host-name, ntp-servers;</code>&#8220;</li>
<li><code>/etc/dbconfig-common/config</code> &#8212; nothing meaningful in the diff; use new</li>
<li><code>/etc/dovecot/dovecot.conf</code> &#8212; kept mine</li>
<li><code>/etc/default/openvpn</code> &#8212; was missing; installed package version</li>
<li><code>/etc/snmp/snmpd.conf</code> &#8212; kept mine</li>
<li><code>/etc/apache2/apache2.conf</code> &#8212; kept mine, as well as other apache2 files (but I did use the new <code>mime.types</code> file)</li>
<li><code>/etc/stunnel/stunnel.conf</code> &#8212; kept mine</li>
<li><code>/etc/default/stunnel4</code> &#8212; kept mine</li>
<li><code>/etc/udev/rules.d/75-persistent-net-generator.rules</code> &#8212; kept installed, looked like the <code>GOTO="persistent_net_generator_end"</code> at the start was intentional</li>
</ul>
<p>Got a warning about vulnerable SSL keys generated by older versions of Ubuntu; solution is to regenerate your keys. The dialog recommended using <code>openssl-vulnkey</code> and <code>openvpn-vulnkey</code> to test.</p>
<p>Other than having to resolve the file conflicts, the upgrade was very smooth. I found some notes about <a href="http://www.linode.com/forums/viewtopic.php?p=29330#29330">fixing the Xen serial console</a>, and <a href="http://www.linode.com/forums/viewtopic.php?p=31756#31756">syslog breaking in 10.04</a>. I also upgraded to a newer paravirt kernel in the Linode dashboard.</p>
<h3>python-setuptools error</h3>
<p>More about that error with <code>python-setuptools</code>: <a href="http://ubuntuforums.org/showthread.php?t=292830">this thread</a> was helpful. From <code>/var/log/apt/term.log</code>:</p>
<pre>Log started: 2010-10-06  08:35:15
Setting up python-setuptools (0.6c9-0ubuntu1) ...
pycentral: pycentral pkginstall: not overwriting local files
pycentral pkginstall: not overwriting local files
dpkg: error processing python-setuptools (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 python-setuptools
Log ended: 2010-10-06  08:35:15</pre>
<p>Per the article, ran &#8220;apt-get remove python-setuptools&#8221; and &#8220;apt-get install python-setuptools&#8221;</p>
<h2>Post-upgrade Recompiling</h2>
<p>Something required apt-get install <code>libltdl-dev</code>. Useful info for this post, no?</p>
<p>I recompiled all my custom stuff, including <code>nginx</code>, <code>memcached</code>, <code>mod_php</code> and <code>php-fpm</code>, and <code>mysqld</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/1329/ubuntu-8-04-on-linode-cloning-and-upgrading-to-10-04/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMware Fusion 2</title>
		<link>http://sixohthree.com/525/fusion</link>
		<comments>http://sixohthree.com/525/fusion#comments</comments>
		<pubDate>Wed, 03 Sep 2008 01:35:48 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vmwarefusion]]></category>

		<guid isPermaLink="false">http://blogs.bwerp.net/?p=525</guid>
		<description><![CDATA[Digest version: it's sweet.]]></description>
			<content:encoded><![CDATA[<p>I bit the bullet and downloaded the VMware Fusion 2 release candidate today. For completeness, I also trashed my Ubuntu 7.04 Server virtual machine and installed Ubuntu 8.04 Desktop. Here&#8217;s some thoughts after a few hours of use.</p>
<h3>Installation</h3>
<p>During the machine setup, I was prompted to do a &#8220;Linux Easy Install.&#8221; The software auto-populated my full name and username, and asked me for a new password. I let it do its thing, having already pointed it to the Ubuntu installation ISO. A short while later, with no additional interaction, I was at the Gnome login screen. The username and password I had chosen during installation worked great.</p>
<h3>Interface</h3>
<p><a href="/~adam/wp-uploads/2008/09/unity.jpg"><img class="alignright size-thumbnail wp-image-528" src="/~adam/wp-uploads/2008/09/unity.jpg" alt="" width="150" height="93" /></a>The feature that finally pushed me over the 2.0 edge was Unity support in Linux. In the past I have only run server applications on my VM, but I had to see Linux Unity in action, layering my Linux applications with Mac OS X applications. It doesn&#8217;t disappoint.</p>
<p>At the other end of the spectrum is &#8220;Headless&#8221; mode. I&#8217;ve been waiting for this for a long time. When I&#8217;m using the server capabilities of my VM, I don&#8217;t want an extra application cluttering up my alt-tab. Now: &#8220;Enter Headless,&#8221; quit VMWare Fusion. Simple. I assume the VM will suspend if I shut down the computer, but I haven&#8217;t tested it yet.</p>
<p><a href="/~adam/wp-uploads/2008/09/library.jpg"><img class="alignleft size-thumbnail wp-image-527" src="/~adam/wp-uploads/2008/09/library.jpg" alt="" width="150" height="85" /></a>The new library window is a bit more attractive, and the machine settings list is more compact. The list also shows a live thumbnail of your VM&#8217;s display, be it console or graphical. Along the same lines, the console display can now be resized to zoom the terminal text in or out.</p>
<p><a href="/~adam/wp-uploads/2008/09/launcher.jpg"><img class="alignright size-thumbnail wp-image-526" src="/~adam/wp-uploads/2008/09/launcher.jpg" alt="" width="150" height="57" /></a>The Gnome application menu is also accessible from the Mac OS X Dock. Apps can be launched in Unity mode without restoring the Gnome desktop.</p>
<p>Seamless cursor movement between the Linux and Mac desktop, along with VM resolution adjusting to the size of the machine window, are also great features, though I suspect they were present in Fusion 1.0.</p>
<h3>Some Other Section</h3>
<p>Looks like the VMware Fusion team has been up to good things since the first release. I haven&#8217;t yet tried Parallels, but I can&#8217;t see a reason to try anything new from where I&#8217;m sitting.</p>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/525/fusion/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

