<?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>Quasi una fantasia (Mac&#039;s Blog)</title>
	<atom:link href="http://www.mollison.us/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mollison.us/blog</link>
	<description>&#34;Most people are doomed in childhood by accepting the axiom that work = pain. Those who escape this are nearly all lured onto the rocks by prestige or money. How many even discover something they love to work on? A few hundred thousand, perhaps, out of billions.&#34; -pg</description>
	<lastBuildDate>Mon, 21 Feb 2011 23:49:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How long does it take a 64-bit counter to cycle?</title>
		<link>http://www.mollison.us/blog/2011/02/21/how-long-does-it-take-a-64-bit-counter-to-cycle/</link>
		<comments>http://www.mollison.us/blog/2011/02/21/how-long-does-it-take-a-64-bit-counter-to-cycle/#comments</comments>
		<pubDate>Mon, 21 Feb 2011 23:49:47 +0000</pubDate>
		<dc:creator>mollison</dc:creator>
				<category><![CDATA[Computing]]></category>

		<guid isPermaLink="false">http://www.mollison.us/blog/?p=296</guid>
		<description><![CDATA[If it&#8217;s unsigned, and you tick it up once every nanosecond, then by my calculation, it would take approximately 584 years.]]></description>
			<content:encoded><![CDATA[<p>If it&#8217;s unsigned, and you tick it up once every nanosecond, then by my calculation, it would take approximately 584 years.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mollison.us/blog/2011/02/21/how-long-does-it-take-a-64-bit-counter-to-cycle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NetworkManager ConsoleKit Issues (Arch Linux)</title>
		<link>http://www.mollison.us/blog/2010/12/13/networkmanager-consolekit-issues-arch-linux/</link>
		<comments>http://www.mollison.us/blog/2010/12/13/networkmanager-consolekit-issues-arch-linux/#comments</comments>
		<pubDate>Mon, 13 Dec 2010 20:05:05 +0000</pubDate>
		<dc:creator>mollison</dc:creator>
				<category><![CDATA[Computing]]></category>

		<guid isPermaLink="false">http://www.mollison.us/blog/?p=292</guid>
		<description><![CDATA[After upgrading a lot of packages, nm-applet started failing with the following message: ** (nm-applet:2211): WARNING **: &#60;WARN&#62;  request_name(): Could not acquire the NetworkManagerUserSettings service. Error: (9) Connection &#8220;:1.18&#8243; is not allowed to own the service &#8220;org.freedesktop.NetworkManagerUserSettings&#8221; due to security policies in the configuration file The fix was to edit /etc/dbus-1/system.d/nm-applet.conf and copy some of [...]]]></description>
			<content:encoded><![CDATA[<p>After upgrading a lot of packages, nm-applet started failing with the following message:</p>
<blockquote><p>** (nm-applet:2211): WARNING **: &lt;WARN&gt;  request_name(): Could not acquire the NetworkManagerUserSettings service.</p>
<p>Error: (9) Connection &#8220;:1.18&#8243; is not allowed to own the service &#8220;org.freedesktop.NetworkManagerUserSettings&#8221; due to security policies in the configuration file</p></blockquote>
<p>The fix was to edit /etc/dbus-1/system.d/nm-applet.conf and copy some of the permissions given to the root user over to the default context.</p>
<p>By the way, this requires ck-launch-session to be running. FYI, here is what my ~/.xinitrc does:</p>
<blockquote><p>xmodmap ~/.Xmodmap</p>
<p>batterymon &amp;</p>
<p>ck-launch-session &amp;</p>
<p>nm-applet &amp;</p>
<p>volumeicon &amp;</p>
<p>awesome</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.mollison.us/blog/2010/12/13/networkmanager-consolekit-issues-arch-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ArchLinux (or any Linux) without initrd/initramdisk, in qemu</title>
		<link>http://www.mollison.us/blog/2010/11/05/archlinux-or-any-linux-without-initrdinitramdisk-in-qemu/</link>
		<comments>http://www.mollison.us/blog/2010/11/05/archlinux-or-any-linux-without-initrdinitramdisk-in-qemu/#comments</comments>
		<pubDate>Sat, 06 Nov 2010 01:30:05 +0000</pubDate>
		<dc:creator>mollison</dc:creator>
				<category><![CDATA[Computing]]></category>

		<guid isPermaLink="false">http://www.mollison.us/blog/?p=285</guid>
		<description><![CDATA[Intro: In this post, I&#8217;m going to document something particularly arduous (for me) that I accomplished over the last few days. Goal: Create an ArchLinux guest image that can be booted in qemu-kvm using a custom kernel specified to qemu-kvm with the -kernel option, and which doesn&#8217;t use an initrd. (Such a host can be [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Intro</strong>: In this post, I&#8217;m going to document something particularly arduous (for me) that I accomplished over the last few days.</p>
<p><strong>Goal</strong>: Create an ArchLinux guest image that can be booted in qemu-kvm using a custom kernel specified to qemu-kvm with the -kernel option, and which doesn&#8217;t use an initrd. (Such a host can be used for testing kernel work.)</p>
<p><strong>Part 1: Installing the guest.</strong> This wasn&#8217;t too bad; there are instructions out there. The problem I ran into was trying to do it without using a GUI, since I was actually doing the install on a remote machine I was connected to using SSH. Maybe there&#8217;s a way to get around the problem I had using X forwarding and/or VNC, but I used the &#8211;curses option on the qemu installation command line. (I tried the same thing with a Debian image and could not get it to work, though.)</p>
<p><strong>Part 2: Compiling the kernel. </strong>In the &#8220;normal&#8221; boot process, the kernel starts; passes control to an initrd, which loads the filesystem drivers and then passes control back to the kernel; and /sbin/init is started, which sets everything up for the OS and spawns a login shell. We want to skip having an initrd. So, we need to compile our filesystem drivers directly into the kernel (i.e. not as modules). I used ext4 when I installed Arch Linux, so I had to add that to my kernel config. Everything else I needed was already in my config. I had a config designed to work with x86-64 qemu-kvm &#8220;hardware,&#8221; which I got from a colleague. Without that, the process of getting a working kernel config may have been much worse.</p>
<p><strong>Part 3: Booting the guest. </strong>I used a command like the following:</p>
<pre>qemu-system-x86_64 -smp $NR_CPU -cpu core2duo -hda $IMAGE -m 2000 -net nic,model=e1000 -net user -k en-us -kernel $VMLINUZ -append "console=ttyS0 root=/dev/hda3" ro -nographic -redir tcp:3333::22</pre>
<p>First, note the root=/dev/hda3. For some reason, my root partition always becomes /dev/hda3 instead of /dev/hda1. You may have to play around with this. It&#8217;s OK to guess different numbers until you get it to work.</p>
<p>The -nographic is what lets this work over an SSH terminal; the console=ttyS0 tells the kernel to send output to serial console 0, which is what qemu interfaces with in -nographic mode. If you run this command without modifying the guest OS at all (just doing a basic install), the guest will appear to hang right when a login: prompt should be presented. It turns out, that&#8217;s because init has to be told to present an instance of agetty on ttyS0 (normally it&#8217;s not presented there). (NOTE: the following instructions may be slightly off for other distros.) To make this happen, you need to modify /etc/inittab in the guest (should be fairly obvious how to do so). You will now get a login prompt, but you will not be able to log in as root. To allow root to login from ttyS0, you need to modify /etc/securetty in the guest (again, pretty self-explanatory once you look at that file).</p>
<p>By the way, the -redir tcp makes the host port 3333 tunnel to the guest port 22, so if you run an SSH server on the guest at port 22, you will be able to connect to it from the host if you ssh to localhost port 3333.</p>
<p><strong>Additional tweaks: </strong>I found that my Arch Linux guest was not sending printk messages to the console (as I wanted), or at least, not the ones I was looking for. You can configure what &#8220;level&#8221; of printk message get sent to the console by writing to /proc/sys/kernel/printk or by putting kernel.printk = &lt;# # # #&gt; in /etc/sysctrl.conf. I got it right by using 7 4 1 7.</p>
<p><strong>Special thanks:</strong> #archlinux IRC channel, and particularly the user <span style="text-decoration: underline;">falconindy</span>, who gave good advice and kept a good sense of humor despite my obvious frustration.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mollison.us/blog/2010/11/05/archlinux-or-any-linux-without-initrdinitramdisk-in-qemu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I miss Wachovia</title>
		<link>http://www.mollison.us/blog/2010/10/25/i-miss-wachovia/</link>
		<comments>http://www.mollison.us/blog/2010/10/25/i-miss-wachovia/#comments</comments>
		<pubDate>Tue, 26 Oct 2010 02:15:48 +0000</pubDate>
		<dc:creator>mollison</dc:creator>
				<category><![CDATA[Personal Stuff]]></category>

		<guid isPermaLink="false">http://www.mollison.us/blog/?p=281</guid>
		<description><![CDATA[Wachovia spent years earning my trust. Wells Fargo is not taking very long to lose it. Among other (pretty minor, but still annoying) issues, I got unsolicited mail from Wells Fargo today talking about a Super Bowl contest. Since the government-forced takeover of Wells Fargo by Wachovia, I&#8217;ve noticed a marked decline in service when [...]]]></description>
			<content:encoded><![CDATA[<p>Wachovia spent years earning my trust. Wells Fargo is not taking very long to lose it. Among other (pretty minor, but still annoying) issues, I got unsolicited mail from Wells Fargo today talking about a Super Bowl contest.</p>
<p>Since the government-forced takeover of Wells Fargo by Wachovia, I&#8217;ve noticed a marked decline in service when engaging with the Wells Fargo side of the company, but have still had excellent service when engaging with the Wachovia side.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mollison.us/blog/2010/10/25/i-miss-wachovia/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting volume buttons to work</title>
		<link>http://www.mollison.us/blog/2010/09/27/getting-volume-buttons-to-work/</link>
		<comments>http://www.mollison.us/blog/2010/09/27/getting-volume-buttons-to-work/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 19:58:03 +0000</pubDate>
		<dc:creator>mollison</dc:creator>
				<category><![CDATA[Computing]]></category>

		<guid isPermaLink="false">http://www.mollison.us/blog/?p=275</guid>
		<description><![CDATA[Typically, whenever I&#8217;ve installed Linux on a computer with hardware volume controls (e.g. my ThinkPads), those controls do not work. To get them working, you need to find the keysyms for them. You can do this by running the program xev. Once you have the keysym for them (e.g. XF86AudioMute), you need to tell some [...]]]></description>
			<content:encoded><![CDATA[<p>Typically, whenever I&#8217;ve installed Linux on a computer with hardware volume controls (e.g. my ThinkPads), those controls do not work. To get them working, you need to find the keysyms for them. You can do this by running the program xev. Once you have the keysym for them (e.g. XF86AudioMute), you need to tell some program to listen to them and run the appropriate command in response. One popular choice is xbindkeys, but you can typically get your window manager/desktop environment to do it, as well. Here is what I did with awesome (in my rc.lua):<br />
<code><br />
awful.key({},"XF86AudioMute", function () awful.util.spawn("amixer set Master toggle") end),<br />
awful.key({},"XF86AudioRaiseVolume", function () awful.util.spawn("amixer set Master playback 5%+") end),<br />
awful.key({},"XF86AudioLowerVolume", function () awful.util.spawn("amixer set Master playback 5%-") end)</code></p>
<p>These lines were added to the end of my &#8220;Keybindings&#8221; table.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mollison.us/blog/2010/09/27/getting-volume-buttons-to-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NetworkManager password issues, etc.</title>
		<link>http://www.mollison.us/blog/2010/09/21/networkmanager-password-issues-etc/</link>
		<comments>http://www.mollison.us/blog/2010/09/21/networkmanager-password-issues-etc/#comments</comments>
		<pubDate>Tue, 21 Sep 2010 13:09:11 +0000</pubDate>
		<dc:creator>mollison</dc:creator>
				<category><![CDATA[Computing]]></category>

		<guid isPermaLink="false">http://www.mollison.us/blog/?p=272</guid>
		<description><![CDATA[I&#8217;ve tried various Linux network managers like wicd and netcfg, but always had buggy performance, where they wouldn&#8217;t connect to certain networks for various reasons. So for a while I&#8217;ve been back on the gold standard NetworkManager, and have been really pleased with it. Except that it always made me re-enter the network password. This [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve tried various Linux network managers like wicd and netcfg, but always had buggy performance, where they wouldn&#8217;t connect to certain networks for various reasons. So for a while I&#8217;ve been back on the gold standard NetworkManager, and have been really pleased with it.</p>
<p>Except that it always made me re-enter the network password. This was despite following all instructions on Arch Wiki.</p>
<p>A number of people on the Internet apparently have had related issues. (Many people complain about gnome-keyring issues, but I haven&#8217;t had that problem, possibly since I don&#8217;t have GNOME). In the past, I found some &#8220;potential&#8221; fixes that involved massive updates to obscure configuration files (i.e., copy these 100 lines into /etc/somedir/somefile, this works for me but you may need to modify for your system). I didn&#8217;t try these.</p>
<p>Finally, today. I found out that you can do sudo nm-connection-editor and set up your networks in there, then check the &#8220;Allow all users to access this network&#8221; box. Bingo! This worked for me, though your mileage may vary.</p>
<p>P.S. I&#8217;ve disabled blog comments because I had started getting like 20 spam comments a day. Hopefully I&#8217;ll find a solution soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mollison.us/blog/2010/09/21/networkmanager-password-issues-etc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up Encryption in Arch Linux</title>
		<link>http://www.mollison.us/blog/2010/06/20/setting-up-encryption-in-arch-linux/</link>
		<comments>http://www.mollison.us/blog/2010/06/20/setting-up-encryption-in-arch-linux/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 06:58:35 +0000</pubDate>
		<dc:creator>mollison</dc:creator>
				<category><![CDATA[Computing]]></category>

		<guid isPermaLink="false">http://www.mollison.us/blog/?p=257</guid>
		<description><![CDATA[Why this article? I wanted to encrypt my netbook (running Arch Linux). Using the Arch Linux wiki as my primary source, I didn&#8217;t find the process to be too straightforward. In particular, the LUKS article seems to assume you&#8217;re doing a fresh install, which isn&#8217;t necessary. I hope to make the process easier for others [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Why this article?</strong></p>
<p>I wanted to encrypt my netbook (running Arch Linux). Using the Arch Linux wiki as my primary source, I didn&#8217;t find the process to be too straightforward. In particular, the LUKS article seems to assume you&#8217;re doing a fresh install, which isn&#8217;t necessary. I hope to make the process easier for others and clarify my own thinking about it.</p>
<p><strong>Who is this article meant for, and how do I read it?</strong></p>
<p>This  is meant for someone who doesn&#8217;t know how to do encryption on their  computer (ideally an Arch Linux system, although I think it&#8217;s pretty  Linux generic). It&#8217;s intended to be read linearly. I&#8217;d welcome any feedback/suggestions/clarifications/amendments, etc. There&#8217;s a lot of really cool stuff you can do that&#8217;s not mentioned here.The wiki links below are excellent sources of information.</p>
<p><strong>Why encrypt?</strong></p>
<p>There are a number of reasons why you might want to encrypt your data. In thinking about what kind of security I need, my imaginary &#8220;adversary&#8221; is an airport agent who can seize my laptop, copy the data off it, and pass the data on to a buddy who specializes in identity theft or stealing credit card numbers. Since I plan on international travel, and since I have this kind of information on my netbook, this is an actual concern for me.</p>
<p><strong>What are the options for encryption?<br />
</strong></p>
<ol>
<li><a href="http://wiki.archlinux.org/index.php/GnuPG">GnuPG</a>. Good for emails and possibly if you want to encrypt a few files. Not what we&#8217;re looking for here (I want to encrypt at least my entire home directory).</li>
<li><a href="http://wiki.archlinux.org/index.php/Truecrypt">TrueCrypt</a>. Can be used for full partition encryption or for creating an encrypted file or directory. This would be an acceptable tool for the job. However, I was told in IRC that TrueCrypt is &#8220;easier but not as professional.&#8221; In my experience with it, it can be kind of opaque, and the authors&#8217; website is really sketch. So those marginal factors are what let me to go with option 3. Note that TrueCrypt can give you plausible deniability (see section below), which isn&#8217;t something I&#8217;m interested in at the moment.</li>
<li><a href="http://wiki.archlinux.org/index.php/LUKS#Why_LUKS_for_dm-crypt.3F">LUKS for dm-crypt</a>. This seems to be the &#8220;professional&#8221; way to do it, and seemed to be &#8220;acceptably&#8221; well-documented. This is what I settled on. I&#8217;ve been really happy with this so far. I imagine you can get plausible deniability with it somehow, but I haven&#8217;t looked into it.</li>
</ol>
<p><strong>What is this &#8220;plausible deniability&#8221; issue?</strong></p>
<p>What if somebody points a gun at you and tells you to decrypt your data for them? Or what if you just want to not look suspicious? Or what if you&#8217;re leaving/entering a country that does not allow you to take/bring in encryption, and you&#8217;re worried they&#8217;ll actually catch you and enforce the rules? You woul want to hide the encrypted data by making sure it looks like random data, and then making sure the rest of your data looks legit and &#8220;normal.&#8221; You could even have a secret encrypted partition inside an &#8220;obvious&#8221; encrypted partition. This isn&#8217;t really a concern of mine right now, and so is outside the scope of this article.</p>
<p><strong>What needs to be encrypted?</strong></p>
<p>Ideally, you keep all your private data in your home directory. So you don&#8217;t need to encrypt the root partition. Some people do, but I personally would like to avoid that. You also don&#8217;t want to encrypt your boot partition, unless you want to make your computer only bootable from an external USB drive. That&#8217;s a pain, and probably not worth it unless you really want to (mostly) defend against the Evil Made Attack, which I&#8217;ve <a href="http://www.mollison.us/blog/2009/10/31/defending-from-the-evil-maid-attack/">written about before</a>. I&#8217;m not that paranoid. Additionally, there is concern about /tmp. If you set up /tmp to be a separate partition from / and to use tmpfs, the data is lost whenever you reboot, so there&#8217;s no concern. I actually <em>don&#8217;t</em> have this setup, but I&#8217;m not worried that any programs I use will write sensitive data to /tmp. So that issue isn&#8217;t further covered in this article.</p>
<p>What do you need to encrypt? /home, and the swap partition. The swap partition stores data that won&#8217;t fit in main memory, if all your memory gets used up. So if you don&#8217;t encrypt it, open file in /home could leak into swap space and onto your hard drive. A determined attacker (e.g. computer-savvy criminal) would be able to retrieve it with a tool like <a href="http://foremost.sourceforge.net/">Foremost</a>.</p>
<p><strong>How do I figure out how my partitions are set up?<br />
</strong></p>
<p>You can do this by catting /etc/fstab. Typically, partitions are given names like /dev/(s|h)daX (where X is an integer) by the Linux kernel. Under normal conditions, they don&#8217;t change numbering. However, there are some circumstances in which they may. Arch Linux by default now uses UUIDs for each disk in the /etc/fstab. If you want to correlate these UUIDs to the normal partition names, run the command blkid as root.</p>
<p>Under Arch Linux, /home is on its own partition by default, so I&#8217;m going to assume you have that setup already.</p>
<p><strong>Do I need to back up?</strong></p>
<p>YES. In my case, I&#8217;d been using my netbook for a while, so I just backed up my home directory, and then after I had an empty encrypted home partition, I copied it back over from an external USB drive.</p>
<p><strong>How do I clear out any old, possibly sensitive data that has been written to /home or swap?</strong></p>
<p>dd if=/dev/zero of=/dev/sdaX, replacing X with the appropriate partition. For me, /dev/sda2 is swap and /dev/sda4 is /home. This wries zeroes over the entire partition, destroying it. There are other options (e.g. /dev/urandom to write random bits), and they are documented in other places (not here).</p>
<p><strong>What software do I need to install?</strong></p>
<p>With Arch Linux, at least in my case, I already had everything I need. The cryptsetup package is part of the &#8216;base&#8217; Arch Linux package group. I don&#8217;t know where the dm-crypt and aes-i586 modules come from (NOTE: plase let me know if you can tell me how to find out this information&#8230;). If it turns out you don&#8217;t have something, you can probably get it pretty easily with your package manager.</p>
<p><strong>OK, how do I set it up, already?</strong></p>
<p>Load the necessary modules (I&#8217;m assuming aes encrpytion):</p>
<pre># modprobe dm-crypt
# modprobe aes-i586</pre>
<p>Write a LUKS (Linux Unified Key System) header to your /home partition. You&#8217;ll be prompted for a passphrase, which you will have to supply in order to use the encrypted partition in the future. It&#8217;s also possible to use a keyfile, but that&#8217;s not covered in this article.</p>
<pre># cryptsetup -c aes-xts-plain -y -s 512 luksFormat /dev/sdaX</pre>
<p>Mount the partition. This will create a device at /dev/mapper/home which is what you actually read to/write from (i.e. it performs the encryption and decryption). You&#8217;ll be prompted for your passphrase.</p>
<pre># cryptsetup luksOpen /dev/sdaX home</pre>
<p>Create an ext4 filesystem (or some other filesystem of your choice) in the partition.</p>
<pre># mkfs.ext4 /dev/mapper/home</pre>
<p>Update /etc/crypttab, which will be checked automatically at boot time. The following entry should work for you. It tells dm_crypt to ask for a passphrase to mount /dev/sdaX as /dev/mapper/home, and to create a new swap partition at /dev/sdaY with a random key.</p>
<pre>home /dev/sdaX ASK
swap /dev/sdaY SWAP -c aes-xts-plain -h whirlpool -s 512
</pre>
<p>Update your fstab to reflect the /dev/mapper devices, instead of /dev/sdaX (or possibly UUID=) devices.</p>
<pre>/dev/mapper/swap swap swap defaults 0 0
/dev/mapper/home /home ext4 defaults 0 1</pre>
<p><strong>What else do I need to do?</strong></p>
<p>You need to add dm_crypt and aes_i586 to the MODULES list in /etc/rc.conf.</p>
<p>That&#8217;s it. When you boot up, you should be asked for your passphrase.</p>
<p><strong>Are there any pitfalls?</strong></p>
<p>The only problem I had was that I originally set up my swap partition to be a LUKS encrypted partition with a passphrase. dm_crypt will not create a swap device for a partition that already has a LUKS header, so I had to re-zero the swap partition.</p>
<p><strong>What if I need to change my passphrase?</strong></p>
<p>This might happen if you accidentally reveal your passphrase. Fortunately, it&#8217;s not a problem.</p>
<p>You can have multiple passphrases for each encrypted partition.</p>
<p>To add a new passphrase, do this:</p>
<pre># cryptsetup luksAddKey /dev/sdaX
</pre>
<p>To remove an existing passphrase, do this:</p>
<pre># cryptsetup luksRemoveKey /dev/sdaX
</pre>
<p>In either case, user-friendly prompts will guide you through the process.</p>
<p><strong>Special thanks</strong></p>
<p>Contributors to the Arch Linux wiki (which is pretty much where I figured all this stuff out, although there were some non-obvious stumbling blocks for me), and the #archlinux IRC channel, which proved helpful.</p>
<p><strong>Is this article a work in progress?</strong></p>
<p>I&#8217;m sure it could use some more editing, and may receive some, but I think it&#8217;s reasonably complete, in that I don&#8217;t believe I&#8217;ve left out anything important and non-obvious.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mollison.us/blog/2010/06/20/setting-up-encryption-in-arch-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sharing files between host and guest</title>
		<link>http://www.mollison.us/blog/2010/06/17/sharing-files-between-host-and-guest/</link>
		<comments>http://www.mollison.us/blog/2010/06/17/sharing-files-between-host-and-guest/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 07:29:33 +0000</pubDate>
		<dc:creator>mollison</dc:creator>
				<category><![CDATA[Computing]]></category>

		<guid isPermaLink="false">http://www.mollison.us/blog/?p=251</guid>
		<description><![CDATA[This post describes a simple way to share files between a Linux host and a Windows XP (possibly others as well) guest running under VirtualBox. My motivation is that for some reason the Arch Linux article on VirtualBox was not very clear on this point (perhaps very outdated?). I don&#8217;t want to update it myself&#8211;would [...]]]></description>
			<content:encoded><![CDATA[<p>This post describes a simple way to share files between a Linux host and a Windows XP (possibly others as well) guest running under VirtualBox.</p>
<p>My motivation is that for some reason the <a href="http://wiki.archlinux.org/index.php/Virtualbox#Sharing_folders_between_the_host_and_the_guest">Arch Linux article</a> on VirtualBox was not very clear on this point (perhaps very outdated?). I don&#8217;t want to update it myself&#8211;would rather allow an expert to do so&#8211;but I do want to record/make available the method that worked for me.</p>
<p>First, make sure Guest Additions is installed in the guest OS.</p>
<p>Second, execute something like the following in the host OS:</p>
<pre>VBoxManage sharedfolder add WinXP --name shr --hostpath /home/mollison/shr
</pre>
<p>In the above, WinXP is the name of the guest, shr is what I&#8217;m calling the shared directory, and /home/mollison/shr is its location on the disk.</p>
<p>Third, boot up the guest and execute the following in a terminal:</p>
<p>net use x: \\VBOXSVR\shr</p>
<p>Now, in My Computer, the share folder is accessible as the X drive.</p>
<p>I believe there are other ways to do this that allow for faster file transfer, but this is easy and quick to set up.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mollison.us/blog/2010/06/17/sharing-files-between-host-and-guest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CUPS may be harder than you think</title>
		<link>http://www.mollison.us/blog/2010/04/22/cups-may-be-harder-than-you-think/</link>
		<comments>http://www.mollison.us/blog/2010/04/22/cups-may-be-harder-than-you-think/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 22:12:09 +0000</pubDate>
		<dc:creator>mollison</dc:creator>
				<category><![CDATA[Computing]]></category>

		<guid isPermaLink="false">http://www.mollison.us/blog/?p=248</guid>
		<description><![CDATA[I finally was able to print on BOTH sides of the page, using my computer and the printer across the hall. (Previously, I had to switch to another computer if I wanted to do both sides, which I rarely did.) The trick was to (a) tell CUPS that the printer had a duplexer installed (which [...]]]></description>
			<content:encoded><![CDATA[<p>I finally was able to print on BOTH sides of the page, using my computer and the printer across the hall. (Previously, I had to switch to another computer if I wanted to do both sides, which I rarely did.)</p>
<p>The trick was to (a) tell CUPS that the printer had a duplexer installed (which was not the default assumption); and (b) tell my application that I wanted to do dual-sided printing (which was not the default assumption). I had tried (b) before, but never noticed (a).</p>
<p>Also, updating to a slightly more modern CUPS and telling it the printer was slightly older may have helped.</p>
<p>Isn&#8217;t it ironic that this is [Exploit the] Earth Day?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mollison.us/blog/2010/04/22/cups-may-be-harder-than-you-think/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Campus Health Services is awesome</title>
		<link>http://www.mollison.us/blog/2010/04/13/campus-health-services-is-awesome/</link>
		<comments>http://www.mollison.us/blog/2010/04/13/campus-health-services-is-awesome/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 18:52:06 +0000</pubDate>
		<dc:creator>mollison</dc:creator>
				<category><![CDATA[UNC/Chapel Hill]]></category>

		<guid isPermaLink="false">http://www.mollison.us/blog/?p=244</guid>
		<description><![CDATA[I like to complain on this blog a lot. Mainly because when I see something wrong with something, I feel the urge to do something about it. If I can&#8217;t actually do something about it, I like to make a record of the problem, in the hope that somebody else will fix it or at [...]]]></description>
			<content:encoded><![CDATA[<p>I like to complain on this blog a lot. Mainly because when I see something wrong with something, I feel the urge to do something about it. If I can&#8217;t actually do something about it, I like to make a record of the problem, in the hope that somebody else will fix it or at least in the hope that other people can route around the problem.</p>
<p>Well, for once, I am going to say something positive about something I&#8217;ve previously complained about.</p>
<p>Although it was really hard for me to get an appointment at Campus Health Services, because they do not actually answer their phones for the entire time span they claim they do, when I finally did get an appointment, everything went really well. I&#8217;ve been twice recently and practically everybody has been very helpful and caring, including medical and non-medical personnel. I&#8217;ve been so satisfied that I&#8217;m not going to bother to get an off-campus doctor (at least for now), which is something I was planning on doing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mollison.us/blog/2010/04/13/campus-health-services-is-awesome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

