<?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>Josh Braun&#039;s Blog</title>
	<atom:link href="http://wideaperture.net/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://wideaperture.net/blog</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Sun, 19 May 2013 13:16:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>CBS, ABC, NBC, and Fox are all wrapping up one of their worst seasons on record. Many successful shows have lost steam, with no breakout hits to fill the void. The trickle of viewers that has been lost year over year became a sharp drop. &#8230; A media analyst for Bank of America Merrill Lynch was quoted in The New York Times saying &#8216;This year was the tipping point.&#8217;&#8221;</title>
		<link>http://wideaperture.net/blog/?p=4095</link>
		<comments>http://wideaperture.net/blog/?p=4095#comments</comments>
		<pubDate>Sun, 19 May 2013 13:16:53 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Clipped]]></category>
		<category><![CDATA[network tv]]></category>
		<category><![CDATA[quotes]]></category>
		<category><![CDATA[ratings]]></category>

		<guid isPermaLink="false">http://wideaperture.net/blog/?p=4095</guid>
		<description><![CDATA[—Studio 360, &#8220;Is Network TV Dead Yet?&#8221;]]></description>
				<content:encoded><![CDATA[<p>—<a href="http://www.studio360.org/2013/may/17/is-network-tv-dead-yet/"><em>Studio 360</em>, &#8220;Is Network TV Dead Yet?&#8221;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wideaperture.net/blog/?feed=rss2&#038;p=4095</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some Notes on &#8220;Governing Algorithms&#8221;</title>
		<link>http://wideaperture.net/blog/?p=4085</link>
		<comments>http://wideaperture.net/blog/?p=4085#comments</comments>
		<pubDate>Sun, 19 May 2013 12:15:29 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Journalism, New Media & Digital Culture]]></category>
		<category><![CDATA[algorithms]]></category>
		<category><![CDATA[governing algorithms]]></category>

		<guid isPermaLink="false">http://wideaperture.net/blog/?p=4085</guid>
		<description><![CDATA[I was asked to write up a few words on the conference I just attended for the Quinnipiac School of Communications blog, and thought I&#8217;d cross-post here for posterity&#8230; ••• The Internet, and much of our media landscape today, is &#8230; <a href="http://wideaperture.net/blog/?p=4085">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>I was asked to write up a few words on the conference I just attended for the <a href="http://quschoolofcomm.wordpress.com/2013/05/18/notes-on-the-recent-governing-algorithms-conference/">Quinnipiac School of Communications blog</a>, and thought I&#8217;d cross-post here for posterity&#8230;</p>
<p style="text-align: center;">•••</p>
<p><a href="http://wideaperture.net/blog/wp-content/uploads/2013/05/fractalalgo2.jpg"><img class="alignright size-full wp-image-4087" alt="fractalalgo2" src="http://wideaperture.net/blog/wp-content/uploads/2013/05/fractalalgo2.jpg" width="240" height="218" /></a>The Internet, and much of our media landscape today, is full of suggestions: search results constructed from our keywords, movies recommended based on our personal tastes, books purchased by customers like us, news stories we might like to read, Facebook users who may be our friends, Twitter users we might wish to follow, ads for products based on our search histories and online activity, trending discussions, and restaurants in our area. These computed recommendations have become part of the wallpaper of our media culture. The software that produces them is invariably a chunk of code called an “algorithm.”</p>
<p>Last week, I had the pleasure of attending “<a href="http://governingalgorithms.org/">Governing Algorithms</a>,” a two day conference on algorithms in Manhattan. The event, which was sponsored by Intel and convened by researchers in NYU’s Department of Media, Culture, and Communication, was a meeting of scholars studying algorithms from different communication and social science perspectives.</p>
<p>One thing that became apparent at the meeting was that the definition of the term “algorithm” isn’t always clear cut. While people popularly associate the term algorithm with computer code, the idea of algorithms predates computers by <a href="http://www.ms.uky.edu/~carl/ma330/project2/al-khwa21.html">at least twelve hundred years</a>. In its most basic form, an algorithm is simply a set of logical instructions intended to solve a problem that will produce a different answer depending on the conditions it’s given. “If it’s raining, take your umbrella; otherwise, leave it at home,” is an example of a simple algorithm. It’s a set of instructions that produces a different result depending on whether or not it’s raining.</p>
<p>When these sorts of instructions are formalized in computer code, they can do things like show us recommendations. For example, Facebook’s friend suggestions are, in all likelihood, produced by a more nuanced version of some basic algorithm along the lines of “if two people on the site are unconnected, but share five or more friends, suggest to both users that they may wish to friend one another.”</p>
<p>These sorts of “if this, then that” statements are pervasive. Computer algorithms go into processes and areas as diverse as <a href="http://money.cnn.com/2010/10/01/markets/SEC_CFTC_flash_crash/index.htm">high-frequency stock market trading</a> (“If X stock has trended downward by Y% over the last minute, sell Z shares”), computerized surveillance (“If something that looks like a person on the surveillance camera is moving through airport security in the wrong direction, sound an alert”), the safety systems on new cars (“If the driver presses the gas pedal and the brake pedal simultaneously, respond only to the brake”), and generating your credit score (“If person has missed X payments in Y months and owes greater than Z, penalize them.”).</p>
<p>In the world of media specifically, algorithms are big business. Many simple algorithms determine the basic behaviors of things like webpages and mobile apps (e.g., “If the user is logged in, display her email; otherwise don’t.”). But conference attendees were generally interested in more involved applications of algorithms. For example, like the mass media that went before, many of our online media are advertising-supported. As developer Claudia Perlich discussed at the conference, in the 50 milliseconds it takes your browser to load a webpage, there’s an instantaneous and fully automated auction going on between advertisers whose algorithms have determined that, based on what they know of your recent searches or browsing history, you might be receptive to a client’s ad. Billions of these auctions occur daily, helping to support the media we consume and interact with, as well as to determine which products and services become visible to us.</p>
<p>Likewise, algorithms play key roles in many types of online media. Social networks are more likely to achieve or maintain success if they can identify and connect you with other users you know or find interesting. Online film and television distributors like Netflix find that using algorithms to help users locate movies they like within the company’s existing catalog is often a cheaper way of raising customer satisfaction than acquiring new titles. News sites whose automated suggestions get itinerant visitors to read an extra story <a href="http://www.niemanlab.org/2011/08/the-newsonomics-of-what-to-read-next/">can generate more ad revenue</a>. And retailers who can successfully suggest new books to avid readers will boost their bottom line.</p>
<p>It’s understandable, then, that we see algorithms everywhere, and why companies, software developers, and computer scientists have invested so heavily in learning how to build successful ones. As algorithms have become ubiquitous, they’ve also garnered the attention of communication researchers and social scientists, but there’s been relatively little organized conversation between these folks. A major purpose of the “Governing Algorithms” conference was to convene this community of scholars for a series of productive conversations about how best to grapple with the role that algorithms play in commerce, in politics, and in our everyday lives. A few of the interesting themes and questions raised by speakers and panelists included the following.</p>
<p><a href="http://wideaperture.net/blog/wp-content/uploads/2013/05/fractalalgo.jpg"><img class="alignright size-full wp-image-4086" alt="fractalalgo" src="http://wideaperture.net/blog/wp-content/uploads/2013/05/fractalalgo.jpg" width="240" height="240" /></a>(1) Algorithms raise interesting questions about editorial responsibility. If an important event is left off the front page of a local newspaper, it’s the editors we hold accountable. But when it’s a computer program that’s responding to our need for information—delivering a page of search results, a list of trending topics, or an array of headlines aggregated from different news sources—whose editorial judgment is at issue?</p>
<p>(2) Many of the algorithms that deliver information to us via the Internet, like search results, movie recommendations, or lists of trending topics, are proprietary. Companies like Google and Twitter keep them intentionally secret, so that competitors can’t make use of them and so that users and content providers can’t employ their knowledge of the algorithms to game the results they produce. Today, when so much of our access to news and information is filtered and presented by algorithm-based technologies like search engines and news aggregators, should it concern us that we are prohibited from knowing how they work? This also traces back to the issue of accountability. As speaker Tarleton Gillespie highlighted, when Occupy Wall Street was being discussed across the country and the globe, <a href="http://limn.it/can-an-algorithm-be-wrong/">but did not appear on Twitter’s list of trending topics</a>, when <a href="http://www.guardian.co.uk/technology/2009/nov/25/google-obama-offensive-racist">racist</a> or <a href="http://www.searchenginejournal.com/google-explains-jew-watch-search-results/552/">anti-semitic</a> sites and images rose to the top of Google’s search results for common terms, and when Apple’s “Siri” search assistant for the iPhone <a href="http://www.cnn.com/2011/12/01/tech/mobile/abortion-clinic-siri-iphone">remained strangely coy</a> in response to questions like “Where can I get an abortion?” the initial response from Twitter, Google, and Apple has been the same: The result was determined by the algorithm and is therefore a neutral editorial attempt to represent the information available. In each case this was very likely the truth, but (a) the trade secrecy surrounding the companies’ various algorithms makes the assertion impossible to check, and (b) the nature of the claim also makes it impossible to ascertain whether or when a company <em>has</em> intervened more directly into the results it provides. As disconcerting as this deflection of responsibility can be when it comes to news, consider that proprietary algorithms also do things like trade stocks, identify criminal suspects, and determine credit scores.</p>
<p>(3) Even if we could see the algorithms that we’re intrigued by, in many cases they’d be impossible to understand. And I don’t mean that as shorthand for “without a Ph.D. in computer science.” Rather, an increasing number of contemporary computer algorithms are built through what are called “machine learning techniques,” wherein the software is given an immense amount of data and actually writes its own “if this, then that” rules for coming up with search results or answers to questions. Machine learning software like this starts out fairly stupid. The engineer runs searches or asks it to display results, the computer spits out information, and in response the engineer tells it whether it’s right or wrong. After a while, the computer learns which relationships between different sorts of data are most likely to give a correct result. Your email program’s spam filter is a simple example of machine learning. After you send enough messages to your junk folder (and pull enough of them out), the program begins to learn that emails from particular senders, containing certain combinations of words, or better yet, from certain senders that <em>also</em> contain certain combinations words, are likely to be junk. Eventually the computer will generate a large number of rules and exceptions for deciding whether an email message is spam or not. You as a person didn’t make those determinations, and if you were to see what the computer came up with you might well be surprised at the things it found predictive. And for complex sorting that involves more than two categories (junk and not junk), or intricate tasks such as generating search results, recommending films, or determining which people in a social network might know each other, the list of rules becomes immense and many of the things the software finds predictive seem quite confusing to a human observer. When we rely on algorithms for important information, but the sets of rules they involve become so complex that we’re incapable of holding them all in our head, how do understand the results they give us? Who or what becomes accountable for the information we receive when even the designers of the original software no longer understand what it’s doing? And do designers have particular responsibilities when they create such systems, such as precluding some sensitive categories of information that the computer might decide are predictive for particular tasks, such as race, gender, or income, in situations where we may not be able to easily understand how these factors are being used?</p>
<p>These were just a few of the points raised by the excellent speakers, panelists, and attendees at the conference. Here in Quinnipiac’s Interactive Media Masters program we teach a few units on algorithms and I’m already looking forward to incorporating some of the intriguing papers and conversations from this week into the next offerings of my classes. If these are questions that interest you, I recommend <a href="http://governingalgorithms.org/resources/">checking out</a> the wonderful conference papers and participant-contributed reading list on the <a href="http://governingalgorithms.org/">Governing Algorithms</a> website. I believe portions of the conference were recorded and may eventually be available there as well.</p>
<p>[Image Credits: <a href="http://www.flickr.com/photos/fractal_ken/">Fractal images generated by algorithms cc-by 2.0 Fractal Ken</a> ]</p>
]]></content:encoded>
			<wfw:commentRss>http://wideaperture.net/blog/?feed=rss2&#038;p=4085</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spring Cleaning Notice</title>
		<link>http://wideaperture.net/blog/?p=4079</link>
		<comments>http://wideaperture.net/blog/?p=4079#comments</comments>
		<pubDate>Fri, 17 May 2013 10:07:02 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[One-Off Musings]]></category>
		<category><![CDATA[site update]]></category>

		<guid isPermaLink="false">http://wideaperture.net/blog/?p=4079</guid>
		<description><![CDATA[So, after a discovering a cloaking hack that was gradually populating the search indices for my site with bogus links, I decided to do some much needed cleaning up around my web server.  As a result there may be a &#8230; <a href="http://wideaperture.net/blog/?p=4079">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><a href="http://wideaperture.net/blog/wp-content/uploads/2013/05/windex_original.jpg"><img class="alignright size-full wp-image-4080" alt="windex_original" src="http://wideaperture.net/blog/wp-content/uploads/2013/05/windex_original.jpg" width="218" height="160" /></a>So, after a discovering a cloaking hack that was gradually populating the search indices for my site with bogus links, I decided to do some much needed cleaning up around my web server.  As a result there may be a few dead links around here.  If you discover one, or if there&#8217;s something you need that you can no longer find, feel free to ask.  I have it all backed up somewhere.</p>
]]></content:encoded>
			<wfw:commentRss>http://wideaperture.net/blog/?feed=rss2&#038;p=4079</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Quinnipiac&#039;s BobcatNet With &#039;netctl&#039;</title>
		<link>http://wideaperture.net/blog/?p=4078</link>
		<comments>http://wideaperture.net/blog/?p=4078#comments</comments>
		<pubDate>Tue, 16 Apr 2013 14:22:35 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Surviving (in) Academia]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[netctl]]></category>
		<category><![CDATA[quinnipiac]]></category>
		<category><![CDATA[software documentation]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://wideaperture.net/blog/?p=4078</guid>
		<description><![CDATA[I use a Linux machine with Quinnipiac&#8217;s wireless network, BobcatNet.  I have until recently used &#8216;netcfg&#8217; as my wireless network manager, as it&#8217;s both highly configurable and the default network manager for Arch, my Linux distro.  I had shared my netcfg &#8230; <a href="http://wideaperture.net/blog/?p=4078">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>I use a Linux machine with Quinnipiac&#8217;s wireless network, BobcatNet.  I have until recently used &#8216;netcfg&#8217; as my wireless network manager, as it&#8217;s both highly configurable and the default network manager for Arch, my Linux distro.  I had <a href="http://wideaperture.net/blog/?p=4060">shared my netcfg settings</a> for other folks who might wish to connect to BobcatNet using a Linux machine and &#8216;netcfg&#8217;.  Recently, however, Arch changed things up and &#8216;netctl&#8217; is now the default network manager for the distro.  I&#8217;ve made the switch and figured I&#8217;d share my new netctl wireless settings for BobcatNet.  The following goes in a netctl profile file in &#8216;/etc/netctl/&#8217;:</p>
<blockquote><p><code>Connection=wireless<br />
Interface=wlp4s0<br />
Security=wpa-configsection<br />
IP=dhcp<br />
WPAConfigSection=(<br />
&nbsp;&nbsp;&nbsp;'ssid="BobcatNet"'<br />
&nbsp;&nbsp;&nbsp;'key_mgmt=WPA-EAP'<br />
&nbsp;&nbsp;&nbsp;'eap=PEAP'<br />
&nbsp;&nbsp;&nbsp;'group=TKIP'<br />
&nbsp;&nbsp;&nbsp;'pairwise=TKIP CCMP'<br />
&nbsp;&nbsp;&nbsp;'identity="YOURUSERNAME"'<br />
&nbsp;&nbsp;&nbsp;'password="YOURPASSWORD"'<br />
&nbsp;&nbsp;&nbsp;'priority=1'<br />
&nbsp;&nbsp;&nbsp;'phase2="auth=MSCHAPV2"'<br />
)</code></p></blockquote>
<p>I&#8217;ve called the above profile file &#8216;qu&#8217;.  To start the wireless connection, the command is &#8216;netctl start qu&#8217; and to disconnect I use &#8216;netctl stop-all&#8217;.</p>
]]></content:encoded>
			<wfw:commentRss>http://wideaperture.net/blog/?feed=rss2&#038;p=4078</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clone of BSD Games &#039;worm&#039; in JavaScript</title>
		<link>http://wideaperture.net/blog/?p=4067</link>
		<comments>http://wideaperture.net/blog/?p=4067#comments</comments>
		<pubDate>Fri, 08 Mar 2013 17:51:30 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Journalism, New Media & Digital Culture]]></category>
		<category><![CDATA[bsd games]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[worm]]></category>

		<guid isPermaLink="false">http://wideaperture.net/blog/?p=4067</guid>
		<description><![CDATA[I&#8217;ve been brushing up on my JavaScript skills lately and I&#8217;ve written a clone of the old BSD Unix game &#8216;worm&#8217; that runs in the browser.  I&#8217;ve tried to be as faithful to the original as possible.  Try playing a &#8230; <a href="http://wideaperture.net/blog/?p=4067">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><a href="http://wideaperture.net/worm/"><img class="alignnone size-full wp-image-4068" alt="worm" src="http://wideaperture.net/blog/wp-content/uploads/2013/03/worm.png" width="650" height="417" /></a></p>
<p>I&#8217;ve been brushing up on my JavaScript skills lately and I&#8217;ve written a clone of the old BSD Unix game &#8216;worm&#8217; that runs in the browser.  I&#8217;ve tried to be as faithful to the original as possible.  Try <a href="http://wideaperture.net/worm/">playing a few rounds</a> and feel free to tinker with the code.  I&#8217;ve <a href="http://sourceforge.net/projects/jsworm/">released the program</a> under an open source MIT License.</p>
]]></content:encoded>
			<wfw:commentRss>http://wideaperture.net/blog/?feed=rss2&#038;p=4067</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Quinnipiac&#039;s BobcatNet With Linux</title>
		<link>http://wideaperture.net/blog/?p=4060</link>
		<comments>http://wideaperture.net/blog/?p=4060#comments</comments>
		<pubDate>Tue, 05 Feb 2013 16:38:58 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Surviving (in) Academia]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[netcfg]]></category>
		<category><![CDATA[quinnipiac]]></category>
		<category><![CDATA[software documentation]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://wideaperture.net/blog/?p=4060</guid>
		<description><![CDATA[Update 4/16/2013: My Linux distro, Arch, has changed its default network manager from netcfg to netctl. The details in this post should still work for users of netcfg, but I&#8217;ve also posted my new netctl settings here. Quinnipiac University&#8217;s IT &#8230; <a href="http://wideaperture.net/blog/?p=4060">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><strong>Update 4/16/2013: My Linux distro, Arch, has changed its default network manager from netcfg to netctl.  The details in this post should still work for users of netcfg, but I&#8217;ve <a href="http://wideaperture.net/blog/?p=4078">also posted my new netctl settings here.</a></strong></p>
<p>Quinnipiac University&#8217;s IT department doesn&#8217;t support Linux, but it is, of course, possible to use a Linux machine here.  I do, and in the event that anyone else is interested in doing so, I&#8217;ll occasionally put up posts on how best to get your Linux computer working with QU&#8217;s resources.  Here&#8217;s how I got my wireless working with QU&#8217;s secure BobcatNet WiFi network.</p>
<p>First off, I use netcfg as my network manager.  If you use wicd or another network manager, you may have to extrapolate a bit.  With netcfg, the settings for each of your regular wireless networks is stored as a separate config file in the directory &#8216;/etc/network.d/&#8217;.  If you&#8217;re using netcfg, just create a new blank configuration file in the aforementioned folder—I called mine &#8216;qu&#8217;—and place the following in it:</p>
<blockquote><p><code>CONNECTION='wireless'<br />
INTERFACE=yourWirelessInterface<br />
SECURITY='wpa-configsection'<br />
IP='dhcp'<br />
CONFIGSECTION='<br />
&nbsp;&nbsp;&nbsp;ssid="BobcatNet"<br />
&nbsp;&nbsp;&nbsp;key_mgmt=WPA-EAP<br />
&nbsp;&nbsp;&nbsp;eap=PEAP<br />
&nbsp;&nbsp;&nbsp;group=TKIP<br />
&nbsp;&nbsp;&nbsp;pairwise=TKIP CCMP<br />
&nbsp;&nbsp;&nbsp;identity="your MyQ username"<br />
&nbsp;&nbsp;&nbsp;password="your password"<br />
&nbsp;&nbsp;&nbsp;priority=1<br />
&nbsp;&nbsp;&nbsp;phase2="auth=MSCHAPV2"'</code></p></blockquote>
<p>You will, of course, need to fill in your own network username and password.  To find the name of your wireless interface (usually, but not always, wlan0), run the &#8216;iwconfig&#8217; command from the command line and use whatever combination of letters and numbers it identifies as being associated with your wireless card.</p>
<p>Once finished, you can connect to the network at any time with the command &#8216;netcfg qu&#8217; (where &#8216;qu&#8217; is whatever you&#8217;ve called your config file).  To disconnect, it&#8217;s &#8216;netcfg down qu&#8217;.  You can, of course, automate connecting and disconnecting with systemd (or initscripts, for that matter).  Check out the Arch wiki for <a href="https://wiki.archlinux.org/index.php/Netcfg">more information</a> on configuring and/or automating netcfg.</p>
<p>Lastly, no small thanks to Jon Gjengset of Bond University, who <a href="http://techthat.net/2010/06/17/wpa2-enterprise-wireless-with-netcfg/">posted a WPA2 Enterprise netcfg config file</a> for his own school that, along with netcfg&#8217;s own example files, served as an excellent guide for getting this working.</p>
]]></content:encoded>
			<wfw:commentRss>http://wideaperture.net/blog/?feed=rss2&#038;p=4060</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Up VirtualBox Shared Folders</title>
		<link>http://wideaperture.net/blog/?p=4034</link>
		<comments>http://wideaperture.net/blog/?p=4034#comments</comments>
		<pubDate>Mon, 31 Dec 2012 14:54:29 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Journalism, New Media & Digital Culture]]></category>
		<category><![CDATA[arch linux]]></category>
		<category><![CDATA[guest additions]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shared folders]]></category>
		<category><![CDATA[software documentation]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://wideaperture.net/blog/?p=4034</guid>
		<description><![CDATA[In my previous post on installing Arch Linux in VirtualBox, I&#8217;d mentioned that I&#8217;d eventually add information on sharing folders and files between Arch and the host operating system.  I wasn&#8217;t going to get around to writing this up for &#8230; <a href="http://wideaperture.net/blog/?p=4034">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>In <a href="http://wideaperture.net/blog/?p=3851">my previous post</a> on installing Arch Linux in VirtualBox, I&#8217;d mentioned that I&#8217;d eventually add information on sharing folders and files between Arch and the host operating system.  I wasn&#8217;t going to get around to writing this up for a while, but <a href="https://bbs.archlinux.org/viewtopic.php?pid=1211859#p1211859">a question came up about it</a> in a discussion on the Arch forums, so I ended up doing it sooner than later.</p>
<p><img class="alignright  wp-image-4039" alt="folder" src="http://wideaperture.net/blog/wp-content/uploads/2012/12/folder.png" width="200" height="128" />Here&#8217;s how I&#8217;ve configured shared folders on my own VirtualBox install of Arch Linux.  These instructions should work for other Linux distros used with VirtualBox as well, but the usual disclaimers apply—this worked for me, but your mileage may vary and there&#8217;s no warranty here express or implied.</p>
<h3>The System</h3>
<p>Everyone hates outdated instructions, so I’m going to include the version numbers I’m working with.  The instructions in this guide were executed on a 13-inch MacBook Pro (early 2011 model) running Mac OS X 10.7.5 (Lion) and VirtualBox 4.2.6.  The Arch guest OS is running Guest Additions packages from the Arch community repository, the version numbers for which are virtualbox-guest-utils 4.2.6-1 and virtualbox-guest-modules 4.2.6-3.</p>
<h3>Setting Up Shared Folders</h3>
<p>Note that before you can begin, you need to have installed and configured the VirtualBox Guest Additions in Arch.  These instructions assume that you&#8217;ve done so already.</p>
<ol>
<li><em>Create a folder on your host OS to be shared with your Arch Linux guest.</em>  Note that this folder has to be in a location that&#8217;s not &#8220;owned&#8221; by a particular user of your host OS.  There&#8217;s some weirdness to this, as it appears to be about more than just the permissions assigned to a particular folder.  I&#8217;ve found that on OS X, creating a folder either in the ~/Public folder (&lt;&#8211;this is where I put my shared folder) or on the Desktop works, while creating a folder in the ~/Documents directory does not, despite the fact that the permissions for some of these different directories are similar.  Also, at this stage, place a text file or some other file in the folder—later on, if you can see and view the contents of this file from within Arch you&#8217;ll know the folder&#8217;s been shared successfully</li>
<li><em>Identify the shared folder in your VM&#8217;s VirtualBox settings.</em> In the VirtualBox Manager window, prior to booting your VM, select your Arch Linux guest and go to &#8220;Settings &gt; Shared Folders&#8221;.  Click the folder icon with a plus on it to add a shared folder.  For &#8220;Folder Path&#8221; open the dropdown menu and select &#8220;Other&#8230;&#8221; to launch your host OS&#8217; file browser.  Select the folder you created on your host OS in step one.  For &#8220;Folder Name&#8221;, if it&#8217;s not autofilled, enter a name for the folder to identify it to the Arch Linux guest—to avoid dealing with escape characters and so forth later on, I generally make this something simple, like &#8220;Shared&#8221;, and avoid spaces or special characters.  For simplicity&#8217;s sake, I also usually make this name the same as the name of the folder I created in step one.  &#8220;Read Only&#8221; should be left unchecked, assuming you want to be able to add files to the shared folder from within Arch.  Also, leave &#8220;Auto-mount&#8221; unchecked—there&#8217;s an alternative configuration in which you leave this checked, but for present purposes it shouldn&#8217;t be.  Finally, check &#8220;Make Permanent&#8221; to have the folder available every time the Arch guest is booted.  When you&#8217;ve filled out the form and clicked &#8216;OK&#8217; your new folder-to-be-shared should appear in the &#8220;Settings &gt; Shared Folders&#8221; window under the list of &#8220;Machine Folders&#8221;.</li>
<li><em>Boot your Arch Linux VM.</em>   Log in with your normal user account (i.e., not as root).</li>
<li><em>Create a mount point in Arch for the shared folder.</em> By this, I mean create a folder in Arch where you want the contents of the shared folder on the host OS to appear.  I usually create this folder in my home (~) directory and, for consistency, name it the same thing I named the folder on the host OS, which is also the same &#8220;Folder Name&#8221; name I gave when identifying it in the VM settings.</li>
<li><em>Test the availability of the shared folder by manually mounting it.</em>  Momentarily, we&#8217;ll automate this process, but before we do it&#8217;s a good idea to make sure everything&#8217;s working correctly.  This is an example of the command to run, which I&#8217;ll explain subsequently:
<div>
<blockquote><p><code># sudo mount -t vboxsf -o gid=1000,uid=1000 Shared /home/josh/Shared</code></p></blockquote>
</div>
<p>In the above command,</p>
<ul>
<li>sudo is obviously to invoke administrative privileges, which are needed to mount the folder;</li>
<li>mount is the mount command;</li>
<li>-t is a flag specifying the type of thing to be mounted, which is a Virtual Box shared folder (&#8216;vboxsf&#8217;);</li>
<li>-o is the options flag, which is there so we can invoke the option to make the folder writable for the users in the group with the number 1000 (gid=1000) and the particular user with id number 1000 (uid=1000).  Assuming this is a personal install and you created only one non-root user account for yourself, user 1000 in group 1000 will be<em>you</em>, however if you&#8217;ve got multiple user accounts or have set up weird group privileges, you may need to look up the group and user id that apply to you;</li>
<li>&#8216;Shared&#8217; is the name you gave as &#8220;Folder Name&#8221; in step two;</li>
<li>&#8216;/home/josh/Shared&#8217; is the absolute path to the folder you created in step four (my username is &#8216;josh&#8217;).  Note that you have to give this filepath without any shortcuts or symlinks (i.e., &#8216;~/Shared&#8217; will not work).</li>
</ul>
<p>Note that if you want to temporarily share a folder between your guest and host in the future, you can use this same &#8216;mount&#8217; command in conjunction with VirtualBox&#8217;s &#8220;Devices &gt; Shared Folders&#8221; menu while the VM is running.  The only difference is that the folder you share using &#8220;Devices &gt; Shared Folders&#8221; will be added to a list of &#8220;Transient Folders&#8221; rather than the &#8220;Machine Folders&#8221; list, meaning that it will only be available for the current VM session.</li>
<li><em>Test the shared folder.</em>  Once you&#8217;ve run this command, you should be able to see and view the contents of any files you&#8217;ve placed in the shared folder on the host OS by navigating to the mount-point folder you created from within Arch.  You should also try copying a file from your Arch system into the shared folder to see if it shows up on the host OS.  If not, you may not have write privileges for the folder, and you should check (1) the folder permissions on the host, as well as (2) the uid/gid you used in your command to make sure they correctly apply to your user account.</li>
<li><em>Add instructions for mounting the folder to /etc/fstab.</em>  If everything&#8217;s worked up &#8217;til now, you can go ahead and add instructions for mounting to the folder to your /etc/fstab file.  This will automatically mount the shared folder in the future when Arch boots.  At the end of my /etc/fstab file, I placed the following:
<div>
<blockquote><p><code># VirtualBox Shared Folder Shared /home/josh/Shared vboxsf uid=1000,gid=1000 0 0</code></p></blockquote>
</div>
<p>While the order is slightly different, you&#8217;ll see that all of the options set here are identical to the ones used in the &#8216;mount&#8217; command above, so you should set them to whatever the personal equivalents are that you used previously.  The only exceptions are the last two zeroes, which you should just leave as is.  These turn off Linux&#8217;s file system backup (&#8216;dump&#8217;) and file system check (&#8216;fsck&#8217;) for the shared folder, neither of which is needed here.</li>
<li><em>Reboot Arch.</em> At this point, you should be able to reboot Arch and, if everything&#8217;s worked correctly, the shared folder should be automatically mounted for you.</li>
</ol>
<h3>Alternative Configurations and an Important Note on the &#8216;Auto-mount&#8217; Feature</h3>
<p>Lastly, I should mention how the method I&#8217;ve described here is different from alternatives that some other people use, so there&#8217;s no confusion if or when you encounter a forum thread at some point in which people have done it differently.  Some other folks will use much the same process I&#8217;ve outlined, but instead of having &#8216;fstab&#8217; mount their shared folder will instead create a systemd configuration file or initscript to do the same thing.</p>
<p>Still other folks will check &#8220;Auto-mount&#8221; in step two above, and omit my steps 4–7.  Instead, they create user privileges for Guest Additions within Arch that allow the Guest Additions software to mount volumes by itself.  Guest Additions will then automatically mount the shared folder as an external drive that shows up under the &#8216;/media&#8217; directory.  I&#8217;ve never tried this method personally, but if you wanted to, you could find instructions on doing so with a bit of Googling.</p>
<p>Note that if you use my configuration, you should leave &#8216;Auto-mount&#8217; unchecked—if you leave it checked, things will work just fine when you boot and while you&#8217;re working, but will cause problems when you try to shut down the VM.  At that point, VirtualBox&#8217;s ongoing attempt at connecting to the VM as a removable device, hitherto harmless, causes Arch to wig out as it&#8217;s unmounting and closing down all the virtual hardware.  This usually induces a slew of error messages ending in a kernel panic (on the VM), and the need for a hard shutdown of the virtual machine.</p>
<p>That&#8217;s it!  Hopefully this works for you, and feel free to leave your own critiques, comments, or alternative configurations in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://wideaperture.net/blog/?feed=rss2&#038;p=4034</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A Guide to Installing Arch in VirtualBox</title>
		<link>http://wideaperture.net/blog/?p=3851</link>
		<comments>http://wideaperture.net/blog/?p=3851#comments</comments>
		<pubDate>Sat, 22 Dec 2012 22:21:09 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Journalism, New Media & Digital Culture]]></category>
		<category><![CDATA[arch linux]]></category>
		<category><![CDATA[installation guide]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[software documentation]]></category>

		<guid isPermaLink="false">http://wideaperture.net/blog/?p=3851</guid>
		<description><![CDATA[Author&#8217;s Note (12/26/2012): This post has been updated to take advantage of some of the excellent corrections and constructive criticism provided by the Arch Linux community on Reddit.  Many thanks to them for their advice and suggestions. Author&#8217;s Note (3/21/2013): &#8230; <a href="http://wideaperture.net/blog/?p=3851">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><strong>Author&#8217;s Note (12/26/2012): This post has been updated to take advantage of some of the <a href="http://www.reddit.com/r/archlinux/comments/15c3kt/my_attempt_at_an_arch_linux_installation_guide/">excellent corrections and constructive criticism</a> provided by the Arch Linux community on Reddit.  Many thanks to them for their advice and suggestions.</strong></p>
<p><strong>Author&#8217;s Note (3/21/2013): I&#8217;m thankful for all the nice things users have said about this guide and all the advice they&#8217;ve given in the comments—you folks are great.  There&#8217;ve been a number of calls to update this post to reflect recent changes in Arch.  </strong><strong>I&#8217;ve added a few updates throughout the text and will probably continue to do so once or twice a year until it becomes unwieldy.  </strong>With that said, however, given that Arch is a rolling release that changes all the time, keeping this entire post up to date for the indefinite future would be a constant, and quite possibly losing, battle.  That&#8217;s why we have the Arch Wiki, edited by the masses and not one guy. It&#8217;s also why I put dates and version numbers high up in this post—so people could easily see how dated the instructions were.  Your best experience with this guide will be to use it alongside the <a href="https://wiki.archlinux.org/">Arch Wiki</a> and other resources, so you can take what&#8217;s helpful and leave what&#8217;s not.  And if you&#8217;re coming to this post for the first time, you should also most definitely check the comment thread, where users have added helpful comments and advice about changes that have occurred with Arch since the post was written.  Also, note that while I try to be helpful, I can&#8217;t necessarily provide tech support here for everyone following these instructions. Check out the Arch <a href="https://bbs.archlinux.org/">wiki</a>, <a href="https://bbs.archlinux.org/">forums</a>, <a href="https://wiki.archlinux.org/index.php/IRC_Channel">IRC channel</a>, and <a href="https://plus.google.com/communities/113935870359973712582">Google+ community</a>, as these are your best resources for questions.</p>
<p>As the title suggests, this is a guide to installing Arch Linux in VirtualBox.  However, since there are a lot of these out there at this point, I&#8217;ve tried to make it a bit more than <a href="https://wiki.archlinux.org/index.php/Installation_Template">a utilitarian installation template</a>, but to put together a more substantive resource for relative beginners, reflecting on why I run Arch and providing a bit more context as to what&#8217;s actually going on during the installation process.  If you are indeed a beginner, please also check out Arch Linux&#8217;s <a href="https://wiki.archlinux.org/index.php/Beginners%27_Guide">Beginner&#8217;s Guide</a> [<a href="http://www.reddit.com/r/archlinux/comments/15c3kt/my_attempt_at_an_arch_linux_installation_guide/c7l8bom">H/T nCrazed</a>], a great resource which I wish I&#8217;d been aware of when I first started out.  If you know what you&#8217;re doing, on the other hand, feel free to <a href="#beginguide">skip directly to the instructions</a> and take only what you need, or to find <a href="http://www.wikihow.com/Install-Arch-Linux">another post</a> or <a href="http://youtu.be/HtTt674qi74">YouTube video</a> that describes the process more concisely.</p>
<h3>Introduction</h3>
<p>As of this writing, I&#8217;ve been a Linux user for around five years.  As with many Linux noobs who began the adventure around the time I did, I started out with Ubuntu.  As a gateway drug, Ubuntu served me well.  It&#8217;s easy to use, it installs itself with little user intervention, it familiarized me with *nix in a way that even OS X didn&#8217;t, and as with almost any Linux distro you can&#8217;t argue with the price.  But it wasn&#8217;t long before I wanted to know more about Linux than I did, or at least—given <a href="http://en.wikipedia.org/wiki/List_of_Linux_distributions">the vast number of Linux distros in the wild</a> and the remarkable customizability of the operating system—to explore a few other options.</p>
<h3>Why Arch Linux?</h3>
<p>I started out very tame, installing <a href="http://www.psychocats.net/ubuntu/whichbuntu">other Ubuntu variants</a> and then <a href="http://www.debian.org/">Debian</a> (on which Ubuntu is based), before a friendly Linux user <a href="https://plus.google.com/+JoshBraun/posts/S1RCCfQzY9R">suggested</a> that, if I ever wanted to figure out what the hell I was doing, I should try tinkering with a Linux distro that <em>wasn&#8217;t</em> based on Debian, just to broaden my perspective a bit.  After a little poking about I decided to try <a href="http://archlinux.org">Arch</a>, and that&#8217;s when I fell in love.</p>
<p><img class="alignright size-full wp-image-3855" alt="arch-linux-logo" src="http://wideaperture.net/blog/wp-content/uploads/2012/12/arch-linux-logo.png" width="300" height="251" />The philosophy behind the Arch distro is dubbed &#8220;<a href="https://wiki.archlinux.org/index.php/The_Arch_Way">The Arch Way</a>&#8221; and it revolves around a definition of the word &#8220;simple&#8221; that diverges sharply from what Ubuntu users think of as &#8220;simple.&#8221;  For the folks behind Ubuntu, simple means <a href="http://www.muktware.com/news/2759">a polished user experience</a>—the idea that your whole system will install instantly, easily and out of the box with all your essential needs met.   At its best, this means that a new Ubuntu user can install the operating system in a few minutes, find the applications she needs already there, and immediately begin loading up her music and pictures, browsing the web, checking her email and working with office documents.</p>
<p>But the Ubuntu philosophy of &#8220;simple&#8221; can also mean that your new system is bulky, built with every contingency in mind and preinstalled with applications you may never have asked for.  While it&#8217;s true that Ubuntu installations can be customized, opening a new default installation can feel a bit like booting up an old Compaq Windows PC for the first time and finding it loaded with &#8220;<a href="http://www.techrepublic.com/blog/five-apps/five-apps-for-crapware-cleanup/1256">crapware</a>&#8220;—software you don&#8217;t need and would never have chosen to install yourself.  The introduction of Ubuntu&#8217;s custom &#8220;Unity&#8221; desktop—a new system interface <a href="http://royal.pingdom.com/2011/11/23/ubuntu-linux-losing-popularity-fast-new-unity-interface-to-blame/">reviled</a> by many users—doesn&#8217;t help matters, either.</p>
<p>The Arch definition of &#8220;simple&#8221; meanwhile is &#8220;<a href="https://wiki.archlinux.org/index.php/The_Arch_Way">without unnecessary additions, modifications, or complications</a>.&#8221;  In other words, it&#8217;s less about user friendliness and more about leanness and customizability.  You can still add a noob-friendly desktop environment to an Arch installation, of course, and as much software as you want.  But out of the box an Arch Linux distro comes without bells and whistles installed.</p>
<p>As with Ubuntu, it comes with a package manager that makes it easy to add new software and update your system from there (Arch is also a &#8220;bleeding edge&#8221; distribution, which sends out software updates as soon as they become available, with all the benefits—and perils—that such a release cycle involves [<a href="http://www.reddit.com/r/archlinux/comments/15c3kt/my_attempt_at_an_arch_linux_installation_guide/c7l8ra7">H/T Silentl620</a>]), but with Arch you are able from the get-go to choose everything that you want (and don&#8217;t want) installed on your computer. Getting my first Arch installation up and running was a revelation in that, for possibly the first time, I had an OS that was exactly as I wanted it.  At its best an Arch installation fits you like a tailored garment, its capabilities and selection of software shaped to your every specification.</p>
<p>This is, of course, possible with other Linux distros as well.  Even Ubuntu makes a &#8220;minimal install&#8221; package available that will allow you to start small and customize.  And more broadly my treatise here is meant not as a judgment on Ubuntu or a testament to the unique superiority of Arch, but rather as a description of my personal experience switching between the two and the new horizons it opened for me.  Part of my affinity for Arch is no doubt sentimentality surrounding this experience—it&#8217;s not just about Arch itself, but about exploring an alternative approach to the OS and having my eyes opened to a greater diversity of philosophies behind Linux and open source computing.</p>
<h3>Why an Installation Guide?</h3>
<p>Recently, in setting up a new Arch installation, I got to know the distribution even more intimately.  The folks behind the distro have decided to discontinue the auto-installer they had previously offered.  The installation process for Arch is now largely done from the command line, which may be a bit frightening for folks whose idea of &#8220;simplicity&#8221; is more in line with Ubuntu&#8217;s.  But for those willing and interested in learning a bit more about how their OS works—in short, the user base Arch hopes to attract—it&#8217;s an interesting and educational process.  And there&#8217;s a lot of help out there to step you through it, both in the form of play-by-play <a href="http://youtu.be/HtTt674qi74">YouTube</a> <a href="http://youtu.be/y_ecAmNOSGg">tutorials</a>, and the <a href="https://wiki.archlinux.org/index.php/Installation_Guide">documentation on the Arch website itself</a>.</p>
<p>Nonetheless, if you&#8217;re not an old hand at Linux/Unix, installing Arch for the first time requires a fair amount of digging and reading to learn exactly what you&#8217;re doing—especially if, like me, you were unaware of <a href="https://wiki.archlinux.org/index.php/Beginners%27_Guide">Arch&#8217;s Beginner&#8217;s Guide</a> when you began.  Whenever I get myself into something like this, I try and take careful notes so that (a) I can easily go back and find the sources I used, and (b) I can repeat the process more easily myself in the future.</p>
<p>And since I&#8217;m not a Linux developer, I try to share some of this documentation as a way of giving back to the open source community and paying forward all the help I&#8217;ve gotten over the years.  My guides aren&#8217;t perfect—keep in mind that they&#8217;re inevitably written at the point when I&#8217;m still just on the cusp of knowing what the hell it is that I&#8217;m doing.  But, without any warranty, express or implied, my hope is that they can help the next person get at least as far as I did.  And often visitors to this site will do everyone a huge favor by correcting my mistakes, updating outdated instructions, and pointing out ways of doing things that are better than those I&#8217;ve contributed.  So please check the comment threads for helpful addendums.  And without further ado, here is my guide to installing Arch Linux.  Once again, this worked for me, but there’s no warranty here, express or implied.</p>
<p><span id="more-3851"></span></p>
<h3>Who is This Written For and What Should I Know in Advance?</h3>
<p>This tutorial is written for three &#8220;typical users,&#8221; including:</p>
<ol>
<li>Current users of a beginner-friendly Linux installation like Ubuntu or Linux Mint, who aren&#8217;t necessarily computer science nerds, but have gotten comfortable with their OS and would like to branch out and explore another Linux distribution.</li>
<li>Web developers and/or Mac users who&#8217;ve spent some time in their system&#8217;s terminal program and gotten comfortable using the command line, but know little about Linux.</li>
<li>Any motivated novice who&#8217;s not afraid of looking up terms or tools they don&#8217;t yet know based on these instructions.</li>
</ol>
<p>Generally speaking, I&#8217;m assuming you know something about how directory structures (e.g., /path/to/file) are represented in Linux and Unix, and are comfortable doing basic tasks on the command line like changing directories or making new folders.  But even if you aren&#8217;t, these are ideas and tasks you <a href="http://youtu.be/bE9DyH43C2I">can learn in as little as 15 minutes</a>.  So whatever your skill level, feel free to follow along, as well as to add your experiences in the comments to help future readers.</p>
<p>I&#8217;ve also borrowed heavily from YouTube tutorials by <a href="http://youtu.be/HtTt674qi74">Sean Bruen</a> and <a href="http://youtu.be/y_ecAmNOSGg">Jonathan Vasquez</a> in putting my own installation guide together, so feel free to check these out as well.</p>
<h3 id="beginguide">The System</h3>
<p>Everyone hates outdated instructions, so I’m going to include the version numbers I’m working with.  First off, as indicated in the title of this post and in the directions below, I&#8217;m virtualizing Arch Linux (running it within my existing operating system).  If you don&#8217;t know what this means, hang in there—I&#8217;ll explain this and other terms below.</p>
<p>The instructions in this guide were executed on a 13-inch MacBook Pro (early 2011 model) running Mac OS X 10.7.5 (Lion).  The virtualization software used was VirtualBox 4.2.4 from Oracle, and the installation media used to install Arch was snapshot version 2012.12.01.</p>
<p>If you’re reading this two years from the date it was written, your mileage may vary.  In theory, these instructions should work on any machine capable of running a recent version of VirtualBox—which currently includes PCs running Windows, Linux, OS X, and Solaris—however it should be noted that virtualizing an operating system tends to require a good deal of system memory and hard disk space.  So if you&#8217;re using an older computer or one with fewer resources you may wish to demur, or to install Arch Linux directly to a physical hard drive partition.  In the latter case you may wish to find an installation guide that describes this process more directly.</p>
<p>Lastly, as mentioned previously, while I&#8217;m going to attempt beginner-friendly step-by-step instructions for getting Arch Linux working in VirtualBox, advanced users can skip the mundane stuff and grab the things they need.</p>
<h3>The Setup</h3>
<p>There are numerous ways to run Linux at this point in time.  You can install it directly to your hard drive, either as your only operating system or alongside your existing one.  When the latter is the case, you&#8217;re able to decide when you boot up your PC which operating system to use at that time—hence the common name for such a set-up, a &#8220;dual-boot system.&#8221;  You can also install Linux on an external hard drive, like a USB stick, and then boot your computer from this drive when you wish to run Linux.  You can even use a Linux operating system installed elsewhere on a computer network—so-called &#8220;netbooting.&#8221;</p>
<p>Or, lastly, you can use the method I describe here, which is to &#8220;virtualize&#8221; Linux, meaning you can set it up to run as an application within your existing operating system.  Virtualizing Linux—or any other operating system—requires the help of some additional software.  This virtualization software—in our case, VirtualBox—runs as a program on your existing operating system, and its role is create a sort of virtual reality for the new operating system you wish to install.  The idea here is that the new operating system—Arch—will think it&#8217;s running on a physical computer, when in fact the &#8220;machine&#8221; Arch is running on is a fake PC simulated by VirtualBox.  Simply put, VirtualBox dupes Arch into believing it&#8217;s running on its own computer, rather than as an application loaded inside of OS X or Windows.</p>
<p>As I&#8217;ve said before, there are lots of ways to put Linux on your computer, but I personally choose to virtualize Arch for a number of reasons:</p>
<ol>
<li><em>OS switching.</em>  When Arch is running inside of OS X, I can seamlessly switch back and forth between applications on both operating systems.  While I&#8217;d love to use Linux as my only OS, my work makes this impossible.  And since I&#8217;m always tied to OS X, it makes my workflow a lot simpler to be able to use both operating systems simultaneously, rather than having to shut down my computer and reboot into the second OS.  It&#8217;s true that a virtualized operating system is slower than one that&#8217;s running directly from your physical machine, but on a sufficiently fast computer the difference generally isn&#8217;t noticeable unless you plan to do some hardcore gaming.</li>
<li><em>Ease of &#8220;hardware&#8221; setup. </em>One thing about Linux that&#8217;s notoriously difficult for beginners is getting the operating system to play nice with your particular PC&#8217;s hardware. I don&#8217;t want to exaggerate these difficulties, but one advantage of virtualizing is that the fake computer VirtualBox presents to Arch tends to have fewer quirky hardware compatibility issues to be solved than the actual, physical hardware of your PC.  As we&#8217;ll see, getting Arch working with the virtual PC&#8217;s hardware presents its own quirks, but in general the setup is comparatively simple when we&#8217;re working with a &#8220;virtual&#8221; computer as opposed to a real one.</li>
<li><em>Failure is free.  </em>If you screw up your virtual machine, it&#8217;s a lot easier to repair than your physical one.  Again, I don&#8217;t want to overplay this—if you make a mistake installing an operating system to your actual hard drive, it&#8217;s easy enough to wipe the partition and start over.  But with a virtual machine, if you screw up the installation process, you can start over instantly.  The &#8220;machine&#8221; is just a folder of files managed by your existing operating system, which can be deleted in two clicks and recreated again nearly as easily.  This folder also gets backed up by Time Machine (or whatever your system&#8217;s backup tool is), so if you break your Linux installation at any point, you can roll back to a working version simply by restoring an older version of the folder from your backup disk.  You can also take &#8220;snapshots&#8221; of your OS in VirtualBox itself that you can roll back to if you get yourself in trouble—though I admit I generally haven&#8217;t made use of this functionality.</li>
<li><em>Portability.</em>  When I change computers, I just copy the folder containing my virtual machine over to my new PC.  Migration complete.</li>
<li><em>Freedom to experiment.  </em>Because you&#8217;re not infinitely partitioning your hard drive to install new OSes, and because setting up new virtual machines is so simple, it&#8217;s very easy to experiment and try new operating systems.  Try as many Linux distros as you like.  Install Windows 98 and get your Starcraft CD working again.  When I first discovered virtualization, I got carried away and was running <a href="http://openindiana.org/">a fork of Solaris</a> and <a href="http://plan9.bell-labs.com/plan9/index.html">some experimental OS from Bell Labs</a> within the week.  You learn a lot by experimenting, and experimenting is a lot simpler and more fun when you&#8217;re not worried about destroying your computer.</li>
</ol>
<p>And, while it may go without saying, all this makes virtualization a great way for beginners to try out Arch Linux, or any other OS for that matter, which makes it well suited to an installation guide for beginners.</p>
<h3>Step One: Assemble the Components</h3>
<p>All right, that&#8217;s probably enough about why I virtualize Arch.  Let&#8217;s get down to how to do it.  First, you will need to download two things, both of which are free:</p>
<ul>
<li><em><a href="https://www.virtualbox.org/wiki/Downloads">The VirtualBox Software</a>;</em> download the version that will run on your existing operating system (a.k.a. the &#8220;host&#8221;).  While the download page lists a number of available tools, there&#8217;s no need to grab anything beyond basic VirtualBox—i.e., no extensions or developer kit.</li>
<li><em><a href="https://www.archlinux.org/download/">The Arch Linux Install Media</a>;</em> this is the file normally used to make an installation disk when you&#8217;re installing Arch on a physical computer.  Since we&#8217;re virtualizing, we won&#8217;t need to make an install disk, but we&#8217;ll still need the file.  Download it as a torrent or directly from any of the mirrors provided on the Arch download page.</li>
</ul>
<p>Once you&#8217;ve downloaded both of these things, go ahead and install VirtualBox on your computer.  It installs like any other program you&#8217;re used to working with, so this part&#8217;s easy.</p>
<h3>Step Two: Creating the Virtual Machine</h3>
<p>After we&#8217;ve installed VirtualBox, we get to use it to create the virtual machine on which we&#8217;ll be installing Arch.  Again, VirtualBox&#8217;s role is to dupe Arch into thinking it&#8217;s running as the primary operating system of a physical PC, when in fact it&#8217;s running as an application inside your existing operating system.  To do this, we first need to create our fake PC using VirtualBox.</p>
<p>To begin, launch the VirtualBox application as you would any program on your computer.  In the application, there&#8217;ll be a series of friendly icons at the top, one of which reads &#8220;New&#8221;.  Click the &#8220;New&#8221; icon to create our new virtual machine.</p>
<p><em>Author&#8217;s Note: As I was writing this guide, VirtualBox 4.2.6 came out.  The process for setting up a virtual machine is the same, as are all the options to be selected, however some of the forms depicted below in screenshots have now been combined.</em></p>
<p>You&#8217;ll then be greeted by the following form screen.  You can fill the form out as shown, but VirtualBox should helpfully autofill all of the fields the moment you begin typing &#8220;Arch&#8221; into the text box.  You can name your machine anything you like, incidentally—I just usually begin the machine name with &#8220;Arch&#8221; because I&#8217;m lazy and I enjoy having VirtualBox fill everything out for me&#8230;</p>
<p><img class="size-full wp-image-3880 alignnone" alt="newmachine" src="http://wideaperture.net/blog/wp-content/uploads/2012/12/newmachine.jpg" width="636" height="407" /></p>
<p>Click &#8220;Continue&#8221; when you&#8217;ve filled out this form, and you&#8217;ll be taken next to the following form.  Here you adjust the slider to determine how much memory (RAM) your virtual machine is going to have.  You can set the slider to whatever value you like—256 MB isn&#8217;t a bad recommendation, but it is on the low end.  My computer&#8217;s fast enough that I generally drag the slider to the top of the green zone, which is the upper recommended limit for the virtual machine&#8217;s memory.  This makes the virtual computer run faster, but it will also hog more of your real system&#8217;s resources, so beware.</p>
<p><img class="size-full wp-image-3879 alignnone" alt="memorysize" src="http://wideaperture.net/blog/wp-content/uploads/2012/12/memorysize.jpg" width="636" height="407" /></p>
<p>Click &#8220;Continue&#8221; again when you&#8217;ve completed the form, and you&#8217;ll be presented with the next screen.  Leave this screen as the default—you&#8217;re creating a new virtual PC, not loading an existing one, so you want to create a new virtual hard drive.</p>
<p><img class="size-full wp-image-3875 alignnone" alt="virtualdrive" src="http://wideaperture.net/blog/wp-content/uploads/2012/12/virtualdrive.jpg" width="636" height="407" /></p>
<p>Click &#8220;Create&#8221; when you&#8217;re done.  You&#8217;ll be presented with yet another form (but fear not, you&#8217;re nearly done with this part).  In this screen, you&#8217;re asked what &#8220;hard drive file type&#8221; you want.  Again, you can generally leave the default selection, which is .VDI, VirtualBox&#8217;s native filetype.  The other options are there in case you want to create a virtual machine that can also run in other virtualization software.  But unless you&#8217;re planning on porting your virtual machine to something other than VirtualBox, like Parallels or QEMU, you can use .VDI.</p>
<p><img class="wp-image-3876 alignnone" alt="vdi" src="http://wideaperture.net/blog/wp-content/uploads/2012/12/vdi.jpg" width="650" height="430" /></p>
<p>Click &#8220;Continue&#8221; to move to the following and penultimate form.  This one is asking how much space on your actual hard drive you want your virtual machine to take up.  Choose the default, &#8220;Dynamically Allocated&#8221;, which means that when you&#8217;re only using, say, two gigabytes of your virtual machine&#8217;s fake 40 GB hard drive, VirtualBox will only ask for around two gigabytes of actual disk space on your computer, rather than demanding space for the entire fake drive up front before you&#8217;ve even used it.  The actual disk space taken up by your virtual machine will, of course, grow as you fill up more of the virtual machine&#8217;s hard drive.</p>
<p><img class="wp-image-3877 alignnone" alt="dynamicallyallocated" src="http://wideaperture.net/blog/wp-content/uploads/2012/12/dynamicallyallocated.jpg" width="650" height="430" /></p>
<p>Click &#8220;Continue&#8221; again when you&#8217;ve made your selection.  You&#8217;ll be presented with one last screen, which asks how big your virtual PC&#8217;s fake hard drive should be.  This needs to be at least big enough to fit the operating system with a little room to spare—10 GB is <a href="http://null-byte.wonderhowto.com/how-to/create-custom-arch-linux-distro-0131002/">probably a reasonable minimum</a> in this regard.  With that said, you should really set a value that&#8217;s big enough that you can actually do useful stuff with your virtual machine—add applications, store photos, collect music, etc.  At the same time, remember that if you fill up your fake hard drive, it&#8217;s going to take up space on your real computer.  So don&#8217;t set a value that&#8217;s bigger than the amount of space on your <em>actual </em>hard drive that you can spare.  Forty GB is probably a reasonable compromise here, though I&#8217;ve gone as high as 100 GB when I had the physical hard drive space to spare.  Remember that the OS doesn&#8217;t take up this much space at the beginning, it&#8217;s just an upper limit on how much the size of the file containing your virtual PC can grow.</p>
<p><img class="wp-image-3878 alignnone" alt="size" src="http://wideaperture.net/blog/wp-content/uploads/2012/12/size.jpg" width="650" height="430" /></p>
<p>Click &#8220;Create&#8221; to create your new virtual PC.  You should now see it listed among the available virtual machines in VirtualBox&#8217;s home window (or perhaps as the only one, if this is your first virtual PC).</p>
<p>We&#8217;re not quite done setting up our virtual hardware, however.  Before we boot up our virtual computer for the first time, we still need to configure a couple options that weren&#8217;t presented to us in the initial setup process.  Single-click on the name of your new virtual machine in VirtualBox to select it (double-clicking will boot it, we don&#8217;t want to do that yet).  Then click the &#8220;Settings&#8221; icon in the VirtualBox window.  This will bring up a window that shows us all all of the specs of our virtual PC.  On this new window, click on the tab marked &#8220;Display&#8221;.  This will reveal a view of the machine&#8217;s video card specs.  By default these specs are abysmally low—they would prevent us from running a graphical desktop environment in Linux or any software with nice visuals.  So naturally, we&#8217;ll want to increase them to something reasonable.</p>
<p>I generally drag the &#8220;Video Memory&#8221; all the way up to 128 MB and check &#8220;Enable 3D Acceleration&#8221;, as shown in the following image (3D acceleration is required should you later choose to use some of the newer graphical desktop environments, like GNOME 3).  Note that the 3D and 2D acceleration options were not meant to be used simultaneously, so check only &#8220;Enable 3D Acceleration.&#8221;</p>
<p><img class="size-full wp-image-3881 alignleft" style="margin-right: 130px;" alt="Display" src="http://wideaperture.net/blog/wp-content/uploads/2012/12/Display.jpg" width="568" height="355" /></p>
<p>Click &#8220;OK&#8221; to finish up.  You&#8217;re now done setting up the hardware of your virtual PC.  Next, we begin the process of installing Arch Linux.</p>
<p>Also, at this point make sure your PC is connected to the internet, because we&#8217;re going to need this connection periodically throughout the remainder of the setup process.  Since some parts of this process are also likely to be memory-intensive, it might not be a bad idea to close up any applications and browser tabs that you aren&#8217;t going to need during the installation.</p>
<h3>Step Three: Booting Into the Arch Linux Installation Media</h3>
<p>To install Arch on a physical computer, we&#8217;d need to insert an install disk into our PC&#8217;s CD tray and turn it on.  The computer would then boot from the CD, and from there we could install Arch to our computer&#8217;s hard drive.  In concept, it&#8217;s pretty much the same as most operating system upgrades and installations you&#8217;ve done over the course of your life.</p>
<p>The procedure for installing Arch on a virtual machine is pretty much identical, except like the PC our installation disk is also virtual.  When we boot up our virtual PC for the first time, VirtualBox will allow us to load up the the .iso file—the one we downloaded in step one from archlinux.org—as though it were a physical installation CD.</p>
<p>So, at this point, go ahead and double-click on the name of your new virtual PC in VirtualBox to boot it for the first time.  A dialogue window should appear (if it doesn&#8217;t fear not and read on) asking you to select a start-up disk.  Click the little folder icon in the dialogue window and it will bring up your computer&#8217;s file browser.  Browse to the installation media file that you downloaded earlier from archlinux.org—something along the lines of &#8216;archlinux-2012.12.01-dual.iso&#8217;—and select it.  Then, when you&#8217;re returned to the original dialogue window, go ahead and click &#8220;Start&#8221; to boot your virtual PC from this virtual installation disk:</p>
<p><img class="alignnone size-full wp-image-3884" style="margin-right: 130px;" alt="startupdisk" src="http://wideaperture.net/blog/wp-content/uploads/2012/12/startupdisk.jpg" width="589" height="315" /></p>
<p>If everything so far has worked as advertised, you can skip ahead to the next step.  But occasionally, for reasons beyond me, VirtualBox may not offer you the dialogue box allowing you to choose a start-up disk, and may instead try to boot directly into your new virtual PC, which as yet has no data on the hard drive—so unsurprisingly, when it does this it doesn&#8217;t get very far.  This state of affairs results in a window displaying an unhappy blank screen reading:</p>
<blockquote><p>FATAL: No bootable medium found! System halted.</p></blockquote>
<p>Don&#8217;t panic.  Simply go up to the menu bar and select</p>
<blockquote><p>Devices &gt; CD/DVD Devices &gt; Choose a virtual CD/DVD disk file&#8230;</p></blockquote>
<p>This will bring up a file browser, again allowing you to select the installation media file you downloaded earlier.  Once you&#8217;ve chosen it, go to the menu bar again and this time select the following to reboot your machine using the newly selected virtual CD:</p>
<blockquote><p>Machine &gt; Reset (Host+R)</p></blockquote>
<h3>Interlude: Some VirtualBox Terminology and Quirks Explained</h3>
<p>Before proceeding, it&#8217;s worth taking a moment to discuss some important terminology and some quirks of VirtualBox.  First, when you&#8217;re running an operating system on a virtual machine in VirtualBox, the system running on that virtual PC is called the &#8220;guest&#8221; operating system.  Your actual everyday operating system, meanwhile, is called the &#8220;host&#8221; operating system.</p>
<p>The reason I explain this is that when using VirtualBox, you&#8217;ll see frequent references to the &#8220;Host key.&#8221;  As you may already have noticed, your guest OS is displayed inside an application window on your host OS.  And by default, when you begin typing in the window displaying your guest OS, all your keystrokes are directed at that guest OS.  This makes intuitive sense, but it can sometimes produce results that seem alarming unless you remember what&#8217;s going on.</p>
<p>For example, when you&#8217;re typing in the guest OS and you want to, say, change to another program on your host operating system, you may instinctively type Alt-Tab or Command-Tab, only to be surprised when nothing happens.  This is because the keystrokes, Command-Tab, were registered by the guest OS, not your normal host OS.  In VirtualBox lingo, your keyboard has been &#8220;captured&#8221; by the guest OS.</p>
<p>Luckily, this isn&#8217;t as scary as it sounds.  VirtualBox reserves one key on your keyboard to be a hotkey that, when pressed, will tell the system that whatever you type next is directed at the host operating system (i.e. your everyday computer).  This key is called the &#8220;Host Key.&#8221;  So, for example, to jump back to your host operating system and use Command-Tab after typing in the guest OS, you would <em>first</em> hit the Host Key, and <em>then </em>type Command-Tab.</p>
<p>By default, the Host Key is your keyboard&#8217;s left-hand &#8220;superkey&#8221;—a.k.a. the command key on a Mac or the Windows key on a Windows PC.  But you can reassign the host key to be whatever key you like.  To do so, first return to your VirtualBox application (note that while it&#8217;s running, a virtual machine registers on your computer as a second application separate from VirtualBox, though you should know that both applications must be running at the same time).  Once back in VirtualBox, go to the menu bar and select</p>
<blockquote><p>VirtualBox &gt; Preferences &gt; Input</p></blockquote>
<p>Here you&#8217;ll see a place where you can assign the Host Key to the key of your choosing.  I use the right-hand command key on my Mac keyboard, since it&#8217;s not a key I generally use for anything else.</p>
<p>Now that you know where your Host Key is, you can also use it to perform various keyboard shortcuts defined in the menu bar accompanying your virtual machine as &#8220;Host-Somekey.&#8221;  For example, Host-F toggles your virtual machine between windowed mode and fullscreen mode (though we&#8217;ll have to install some more stuff before fullscreen mode begins to look nice; hold tight a few minutes).</p>
<h3>Step Four: Select a 32- or 64-bit Version of Arch Linux</h3>
<p>Once you&#8217;ve successfully started up your new virtual PC using the virtual installation disk, you&#8217;ll see a welcome screen presented.</p>
<p><img class="alignnone size-full wp-image-3886" alt="boot" src="http://wideaperture.net/blog/wp-content/uploads/2012/12/boot.jpg" width="640" height="479" /></p>
<p>The screen includes a menu that you can navigate using your keyboard&#8217;s arrow keys (no mouse just yet).  The first two options here are the ones that are important to us at present.  They&#8217;re asking us to select which version of Arch from the CD we&#8217;d like to boot into and ultimately install.  The first, &#8216;x86_64&#8242;, is a 64-bit version of the operating system, while the second, &#8216;i686&#8242;, is a 32-bit version of the OS.  While in a few years time everyone will want to choose 64-bit, at present I typically choose 32-bit for a couple reasons.</p>
<p>First, while 64-bit operating systems and their ability to handle more memory, are <a href="http://gizmodo.com/5076473/giz-explains-whats-so-awesome-about-64+bit">undoubtedly the future</a>, at the moment there&#8217;s more software available for 32-bit operating systems.  And second, since virtualizing a 64-bit system is a bit more memory intensive, I find that I get slightly better performance when virtualizing 32-bit Arch on my computer.  However, if you select the 64-bit version of Arch, you should still be able to follow along with the rest of this tutorial.  When choosing between the two, here&#8217;s a <a href="http://jeffhoogland.blogspot.com/2010/08/32-bit-vs-64-bit-linux-which-to-choose.html">slightly dated, but helpful tutorial</a>.</p>
<p>When you&#8217;ve selected the version of Arch you&#8217;d like to install, hit the &#8216;Return&#8217; key to boot the computer from the installation disk.</p>
<h3>Step Five: Getting Started and Partitioning Your Virtual Hard Drive</h3>
<p><img class="alignright size-full wp-image-3892" alt="Screen Shot 2012-12-14 at 2.52.27 PM" src="http://wideaperture.net/blog/wp-content/uploads/2012/12/Screen-Shot-2012-12-14-at-2.52.27-PM.png" width="364" height="109" />After you&#8217;ve selected a version of Arch to install, your new virtual PC will finish booting Arch for the first time from the CD.  You&#8217;ll see the OS spitting out a bunch of notifications as the system boots.  And eventually, Arch will present you with a command prompt, signifying it&#8217;s ready to take your instructions:</p>
<blockquote><p>root@archiso ~ #</p></blockquote>
<p>As experienced Linux users will know, by displaying &#8216;root@archiso ~&#8217;, the command here is telling you that you are currently using the system as the &#8216;root&#8217; user (i.e., as the all powerful superuser, capable of making any desired change to the system), that the name of the system you&#8217;re using is &#8220;archiso&#8221; (your cue that you&#8217;re currently running Arch off the CD; later once Arch is on our virtual hard drive, we&#8217;ll get to set our own system name), and finally that you&#8217;re currently operating from the root user&#8217;s home directory (the home directory of the logged-in user is always nicknamed &#8216;~&#8217; for brevity).  Lastly, the &#8216;#&#8217; symbol simply means, &#8220;your command goes here.&#8221;</p>
<p><em>Interlude for non-U.S. users</em></p>
<p>By default, Arch assumes you&#8217;re using a U.S. keyboard.  But if you&#8217;re typing on something <em>other</em> than a standard U.S. keyboard, the first command you&#8217;ll want to issue is the &#8220;loadkeys&#8221; command, which tells Arch the nationality of your keyboard.  For example&#8230;</p>
<blockquote><p># loadkeys uk</p></blockquote>
<p>&#8230;should load up a British keyboard.  &#8217;loadkeys be&#8217; should do Belgian, &#8216;loadkeys cf&#8217; Canadian French, and so forth.  If you&#8217;re not sure the letters to use for the keyboard of your nationality, the Arch Wiki has <a href="https://wiki.archlinux.org/index.php/KEYMAP">a guide that may be useful</a>.  Generally speaking, where the wiki table says something like&#8230;</p>
<blockquote><p>KEYMAP=fr-latin1</p></blockquote>
<p>&#8230;you&#8217;ll want to use the lettering right of the equal sign and left of the hyphen.  So in the above example, &#8216;loadkeys fr&#8217; for French.</p>
<p><em>&lt;/interlude&gt;</em></p>
<p>Again, we&#8217;re currently running Arch off a virtual CD, but we&#8217;d like to copy it over to our virtual machine&#8217;s hard drive.  But before we can do that, we need to prepare that hard drive, first by dividing it into the partitions where our Arch installation will live, and then by formatting those partitions so that they&#8217;re ready to use.</p>
<p>Partitions are basically different sections of your hard drive that your operating system will treat as distinct drives.  Generally speaking a Linux system uses several partitions, but over the years I&#8217;ve gathered that just how many and how they should be organized is something of a religious debate.  As one <a href="http://www.centos.org/docs/4/html/rhel-ig-ppc-multi-en-4/ap-partitions.html">primer on the matter states</a>, &#8220;The question of &#8216;how many partitions&#8217; continues to spark debate within the Linux community and, without any end to the debate in sight, it is safe to say that there are probably as many partition layouts as there are people debating the issue.&#8221;</p>
<p>I&#8217;m going to skip this debate entirely and present what I&#8217;ve gathered is one of the more common partitioning schemes out there.  Though if you&#8217;re interested, you should check out <a href="https://wiki.archlinux.org/index.php/Partitioning">Arch&#8217;s primer on partitioning</a> and do a bit of Googling to learn more.  Presently, for the sake of this guide, I&#8217;m going to make four partitions:</p>
<ol>
<li><em>The boot partition</em> // This partition is where your virtual computer&#8217;s &#8220;boot loader&#8221; will live.  More on what this is and does later, but suffice to say we&#8217;ll need a boot loader if we want the operating system to start at all.</li>
<li><em>The swap partition</em> // Linux uses this space as extra memory—when the operating system takes on a lot of tasks, it can actually make use of this hard drive space to free up some RAM (i.e., the swap partition provides Linux with &#8220;virtual memory&#8221;).  If you put your computer to sleep, Linux can also use this swap partition as a temporary place to store the tasks you were working on, and load them back up when you wake up the computer.</li>
<li><em>The root partition</em> // This is the partition that serves as the highest level of your computer&#8217;s file system—when other partitions, like &#8220;boot&#8221; and &#8220;home&#8221; are loaded up (&#8220;mounted&#8221;), they will appear as subdirectories of the root partition.</li>
<li><em>The home partition</em> // This is the partition where all the user&#8217;s files and personal settings will be stored.</li>
</ol>
<p>The last thing to discuss before we go and make these partitions is what sort of &#8216;partition table&#8217; to use.  Basically, a partition table is the system&#8217;s ledger for keeping track of how many partitions there are on the hard drive, as well as where each begins and ends.  But this ledger can be kept in different formats.  Two commonly used types of partition tables are MBR (which stands for Master Boot Record) and GPT (which stands for GUID Partition Table).</p>
<p>While I&#8217;ve done <a href="https://wiki.archlinux.org/index.php/GPT">some reading</a> on the subject, I do not pretend to be an expert with regard to all the ins and outs of choosing one over the other.  MBR is older and some argue out of date.  GPT is newer and apparently addresses some of MBR&#8217;s shortcomings.  The Arch documentation <a href="https://wiki.archlinux.org/index.php/Partitioning#Using_GPT_-_Modern_Method">recommends the use of GPT over MBR</a>, so that&#8217;s what I&#8217;ve used and what I&#8217;ll demonstrate here.</p>
<p>To create a GPT partition table, we&#8217;ll use a command line utility that speaks GPT.  <a href="https://wiki.archlinux.org/index.php/Partitioning#Partitioning_tools">There are several</a> you can choose from, but I&#8217;m going to demo the one I&#8217;ve used most, called &#8216;gdisk&#8217;.</p>
<p>The only other thing we need to know before getting started is how the install disk we&#8217;re running is representing our virtual PC&#8217;s hard drive.  The drive shows up just like a file; if you look at the contents of the CD&#8217;s /dev directory, by entering the command&#8230;</p>
<blockquote><p># ls /dev</p></blockquote>
<p>&#8230;it will be displayed as an object called &#8216;sda&#8217;, which stands for <a href="http://en.wikipedia.org/wiki/Serial_ATA">SATA</a> Drive A.  (If we had a second hard drive, it would be listed as &#8216;sdb&#8217; for SATA Drive B, and so on.)</p>
<p>Now that we know the program we&#8217;ll be using to create our partition table (gdisk) and we know where to find the hard drive we&#8217;ll be partitioning, it&#8217;s time to go ahead and create the partition table for our virtual PC&#8217;s hard drive.  To do this we&#8217;ll fire up gdisk and tell it we want to work with &#8216;/dev/sda&#8217;—enter the following on the command line:</p>
<blockquote><p># gdisk /dev/sda</p></blockquote>
<p>The gdisk partitioning program will start, offering a prompt that looks like this:</p>
<blockquote><p>Command (? for help):</p></blockquote>
<p>Type &#8216;p&#8217; at the prompt and hit &#8216;Return&#8217; to see an intial summary of your system vitals.  Now, let&#8217;s create the four partitions I discussed above.  To create the first partition, our boot partition&#8230;</p>
<ol>
<li>Type &#8216;n&#8217; at the prompt and hit &#8216;Return&#8217; to tell gdisk you want to create a new partition.</li>
<li>When it asks for a partition number, hit &#8216;Return&#8217; to accept the default (1).</li>
<li>When it asks for a &#8220;first sector&#8221;, hit &#8216;Return&#8217; to accept the default.  This will start the partition at the beginning of your virtual hard disk.</li>
<li>When it asks for a &#8220;last sector&#8221;, type &#8216;+250M&#8217; (without quotes).  This will make the boot partition 250 megabytes in size, which is large enough for the boot loader software we&#8217;ll be installing there in a few minutes. Hit &#8216;Return&#8217; to continue.</li>
<li>When it asks for a &#8220;hex code&#8221;, it&#8217;s asking you to give it a number that corresponds to the type of filesystem you&#8217;d like that partition to use.  As you may have guessed from the prompt, you can leave the default (8300 for &#8220;Linux File System&#8221;) and hit &#8216;Return&#8217;.</li>
</ol>
<p>At this point the boot partition has been drafted—gdisk knows what you want—but, importantly, it hasn&#8217;t yet been implemented.  We&#8217;re first going to create all of our partitions in gdisk, and then when we&#8217;re done drafting them, we&#8217;ll end by asking gdisk to write them to our virtual hard disk.</p>
<p>So it&#8217;s now time to create the second of our four partitions, the swap partition.  Before we create this one, I should add a few words of context.  In the instruction that follows, I create a 2 gigabyte swap partition.  Be aware, though, that if you gave your virtual system a small amount RAM when you created it in VirtualBox, you may be able to get away with a smaller swap partition.  And if you gave your virtual system 2 gigabytes or more of RAM, you may not need a swap partition at all (though for better or worse, I&#8217;ve generally created one anyway, despite configuring my virtual machine with quite a bit of memory, and I&#8217;m demoing it here).  For some pointers on how large your swap partition should be,  check out <a href="https://wiki.archlinux.org/index.php/Partitioning#Swap">the guide in the Arch wiki</a>.  Now, assuming you&#8217;re with me, let&#8217;s create the swap partition:</p>
<ol>
<li>Type &#8216;n&#8217; at the prompt and hit &#8216;Return&#8217; to tell gdisk you want to create a new partition.</li>
<li>When it asks for a partition number, hit &#8216;Return&#8217; to accept the default (2).</li>
<li>When it asks for a &#8220;first sector&#8221;, hit &#8216;Return&#8217; to accept the default.  This will put the start of the new partition right next to the end of the previous one on the hard disk.</li>
<li>When it asks for a &#8220;last sector&#8221;, type &#8216;+2G&#8217; (without quotes).  This will make the swap partition 2 gigabytes in size, which is plenty of room in almost all cases (see the note above).  Hit &#8216;return&#8217; to continue.</li>
<li>When it asks for a &#8220;hex code&#8221;, it&#8217;s asking you to give it a number that corresponds to the type of filesystem you&#8217;d like that partition to use.  In this case, <em>we don&#8217;t want the default</em>.  Type &#8217;8200&#8242;, which is the hex code for &#8216;Linux swap&#8217; and hit &#8216;Return&#8217;.  (For those who are interested, <a href="http://www.basicconfig.com/hex_codes_system_id">here&#8217;s a link to a list</a> of the different hex codes for all the various file types gdisk can create.)</li>
</ol>
<p>The third partition we want to create is the &#8216;root&#8217; partition.  This partition should be sizable, because when you start downloading applications they&#8217;re going to live here and some of them will be large.  I&#8217;ve made the mistake of making this partition too small before, and suffice to say that it&#8217;s not enjoyable when you run out of space.  It&#8217;s often a year or two into using the system that this partition fills up, resizing it turns out not to be as simple as you&#8217;d like, and at that point you&#8217;ve already put a bunch of files onto your system and won&#8217;t be thrilled about the idea of migrating to a new virtual machine.</p>
<p>In this tutorial, I created a machine with a 40 gigabyte hard drive.  I&#8217;m going to give the root partition 15 gigabytes of that space (though you could probably get away with 10 GB, or less if you don&#8217;t plan on installing too much stuff).</p>
<ol>
<li>Type &#8216;n&#8217; at the prompt and hit &#8216;Return&#8217; to tell gdisk you want to create a new partition.</li>
<li>When it asks for a partition number, hit &#8216;Return&#8217; to accept the default (3).</li>
<li>When it asks for a &#8220;first sector&#8221;, hit &#8216;Return&#8217; to accept the default. This will put the start of the new partition right next to the end of the previous one on the hard disk.</li>
<li>When it asks for a &#8220;last sector&#8221;, type &#8216;+15G&#8217; (without quotes).  This will make the boot partition 15 gigabytes in size, which is roomy enough for our applications and system updates. Hit &#8216;Return&#8217; to continue.</li>
<li>When it asks for a &#8220;hex code&#8221;, it&#8217;s asking you to give it a number that corresponds to the type of filesystem you&#8217;d like that partition to use.  In this case, you can once again leave the default (8300 for &#8220;Linux File System&#8221;) and hit &#8216;Return&#8217;.</li>
</ol>
<p>All right, we&#8217;re now almost done with the partition scheme.  We have one last partition to create, which is the &#8216;home&#8217; partition, which is the place on the machine where all our personal files and settings will live.  This one&#8217;s the simplest one yet.</p>
<ol>
<li>Type &#8216;n&#8217; to create a new partition and hit &#8216;Return&#8217; as usual.</li>
<li>Then just go through and hit &#8216;Return&#8217; repeatedly to accept the default partition number, first sector, last sector, partition size, and hex code.  This will create a final partition with a Linux filetype that fills the remainder of our virtual hard drive.</li>
</ol>
<p>Now type &#8216;p&#8217; and hit &#8216;Return&#8217; to see the finished partition scheme. It should include all your newly defined partitions with the information you entered.  Mine looks like this:</p>
<p><img class="alignnone  wp-image-3896" alt="Screen Shot 2012-12-14 at 4.27.10 PM" src="http://wideaperture.net/blog/wp-content/uploads/2012/12/Screen-Shot-2012-12-14-at-4.27.10-PM.png" width="650" height="85" /></p>
<p>Make a note of the different partition numbers (i.e., which is the boot partition, which is the root partition, and so on)—as you might expect, they&#8217;re going to be important again soon.  Also make a note of which numbered partitions have been prepared for a &#8216;Linux filesystem&#8217; and which partition number is the &#8216;Linux swap&#8217; partition.</p>
<p>Now that we&#8217;ve drafted all our partitions, type &#8216;w&#8217; at the gdisk prompt and hit &#8216;Return&#8217;  to write the partition scheme to the disk. When gdisk asks whether you&#8217;re sure you want to do this, type &#8216;Y&#8217; and hit &#8216;Return&#8217; to say yes.  Gdisk will implement your partition table and then quit, leaving you back at the command line:</p>
<blockquote><p>root@archiso ~ #</p></blockquote>
<h3>Step Six: Formatting and Mounting Your New Disk Partitions</h3>
<p>Next, back at the command line, we&#8217;re going to format our new disk partitions so that we can begin using them. This is not unlike formatting any other disk, except perhaps that you may be used to doing this with a mouse and a desktop GUI.  We&#8217;ll be doing the same thing from the command line.</p>
<p>The partition numbers you jotted down above should now correspond to new objects in the /dev directory, each with the prefix &#8216;sda&#8217;.  So, for example, partition one can now be manipulated from the command line using the handle &#8216;/dev/sda1&#8242;.  Partition 2 is &#8216;/dev/sda2&#8242; and so on.</p>
<p>We&#8217;re first going to format the partitions for which we anticipated using a Linux filesystem (which, if the instructions above were followed, are sda1, sda3, and sda4).  There are actually multiple types of &#8216;Linux filesystem&#8217; that can be used in formatting your drive.  You can <a href="https://help.ubuntu.com/community/LinuxFilesystemsExplained">read about all the choices here</a>, but note that the filesystem type <a href="https://wiki.archlinux.org/index.php/Ext4">&#8216;ext4&#8242; is the one recommended by Arch</a>, so this is what we&#8217;ll use.</p>
<p>Again, in the partition scheme I&#8217;m using, partitions 1, 3, and 4 each need to be formatted with a Linux filesystem (&#8216;ext4&#8242;).  To format them, I&#8217;ll run the following commands from the command line:</p>
<blockquote><p># mkfs -t ext4 /dev/sda1<br />
# mkfs -t ext4 /dev/sda3<br />
# mkfs -t ext4 /dev/sda4</p></blockquote>
<p>To briefly break down what&#8217;s going on here, the command &#8216;mkfs&#8217; is short for &#8220;make file system&#8221;, the flag &#8216;-t&#8217; means &#8220;of type&#8221;, I then specify &#8220;ext4&#8243; and finally, I give it the location of the particular partition I want to format (e.g., /dev/sda<em>x</em>).  In summary, each command translates to &#8220;make file system of type ext4 on partition /dev/sda<em>x</em>&#8220;.</p>
<p>We&#8217;ve now formatted all the partitions using a Linux filesystem, but we still have to format the swap partition (in the above scheme, &#8216;/dev/sda2&#8242;).  To do this, we now run the command:</p>
<blockquote><p># mkswap /dev/sda2</p></blockquote>
<p>We&#8217;ve now formatted all the partitions on our virtual hard drive.</p>
<h3>Step Seven: Mounting the New Hard Drive Partitions</h3>
<p>Even after formatting the hard drive partitions, though, we&#8217;re presently still running Linux off a CD.  We still need to install Linux to the drive we&#8217;ve just formatted.  And the final step before putting Linux on our new virtual machine is to mount our new hard drive partitions—i.e., load them up—so that we can access them and write files to them.  Once we have access to our new hard drive partitions, we can finally put Linux on the hard drive.</p>
<p>First, we&#8217;ll load up our swap partition—since it serves as virtual memory, it&#8217;s a bit of a funny partition, and the command for loading it is unique.  Rather than &#8220;mounting&#8221; a swap partition, we &#8220;turn it on.&#8221;  One thing to know is that, since the swap partition serves as memory, not as file storage we won&#8217;t actually be loading files onto it.  However, we still need it turned on at this point because we&#8217;ll soon be generating a file called &#8216;fstab&#8217; that will—in the future—automatically mount all our computer&#8217;s partitions when our Linux system boots.  To generate the fstab file, the system is going to take a census of all the mounted partitions so it knows what they are and can include instructions in the fstab file for loading them up.  The swap partition needs to be turned on beforehand, so that it will be counted in this census.</p>
<p>To do so, run this command (if you&#8217;ve partitioned your drive differently than I&#8217;ve done in this tutorial, you can replace &#8216;/dev/sda2&#8242; with the location of your own swap partition):</p>
<blockquote><p># swapon /dev/sda2</p></blockquote>
<p>Next, we&#8217;ll mount our root filesystem and make it accessible under the directory /mnt. Doing this means that—at least temporarily—when we browse to the /mnt directory on the CD, we&#8217;ll be able to view and add files to the root partition of our system&#8217;s hard drive.  In unix lingo, we&#8217;re using /mnt as the &#8220;mount point&#8221; for the root partition.</p>
<p>To mount the new root partition on /mnt, run this command:</p>
<blockquote><p># mount /dev/sda3 /mnt</p></blockquote>
<p>Now, the root partition is accessible to us.  Let&#8217;s navigate to it on the command line by cd&#8217;ing over to /mnt:</p>
<blockquote><p># cd /mnt</p></blockquote>
<p>We&#8217;d also like to be able access our boot partition and our home partition. So within /mnt we&#8217;ll create two new directories to use as mount points for these additional partions (i.e., the &#8216;boot&#8217; partition and the &#8216;home&#8217; partition).  Note that in making these directories inside /mnt, we&#8217;re actually creating them on the hard drive itself.  As such, they&#8217;ll be able to be used as the mount points for these partitions in the future, when we&#8217;re running Linux from the hard drive instead of from a CD.  Make the &#8216;boot&#8217; and &#8216;home&#8217; directories now using this command (note that if you&#8217;re using a partitioning scheme that doesn&#8217;t include &#8216;home&#8217; or is arranged differently from my example, you&#8217;ll need to change this command accordingly and make folders that correspond to your own partitioning scheme):</p>
<blockquote><p># mkdir boot home</p></blockquote>
<p>Next, while still in the /mnt directory, run the following commands to mount the remaining partitions to the directories we just created.  In this example, /dev/sda1 is the boot partition we created and formatted earlier, so it gets mounted on the &#8216;boot&#8217; directory, while /dev/sda4 was the home partition we created and it gets mounted on the &#8216;home&#8217; directory.  Again, if your partition scheme is different than what I&#8217;ve been using in the example, change, add, or omit the commands accordingly:</p>
<blockquote><p># mount /dev/sda1 boot<br />
# mount /dev/sda4 home</p></blockquote>
<p>Since sda1, sda3, and sda4 have now been mounted and swap is on, all four partitions I created in this example are now accessible.  You should similarly have loaded all of your own partitions.  It&#8217;s time to install Arch.</p>
<h3>Step Eight: Installing Arch Linux</h3>
<p>While it&#8217;s not strictly necessary, I tend to navigate back to the root level on the command line at this point:</p>
<blockquote><p># cd /</p></blockquote>
<p>Now that we have access to all the partitions on our virtual machine&#8217;s drive, we can go about installing Arch Linux.  The good folks behind Arch provide a number of installer scripts that are already available to us as shell commands on the CD we&#8217;re running (in English this means they&#8217;ve automated a lot of the setup for us).  These scripts will do a lot of the work for us of installing the operating system to our virtual machine.  The first installer script we&#8217;ll use is called &#8216;pacstrap&#8217;.  We&#8217;ll run this command to download and install the &#8216;base&#8217; and &#8216;base developer&#8217; packages to our hard drive.  The &#8216;base&#8217; package contains the bare essentials of Linux, while the base developer, or &#8216;base-devel&#8217;,  package contains tools that are ostensibly for developers, but which tend to come in handy in a lot of contexts.  These tools occasionally get used indirectly by other software as well, and as such may be useful even when you&#8217;re not aware you&#8217;re using them.</p>
<p>We want to put Arch Linux on our root partition, which remember is currently available to us as /mnt.  To install the &#8216;base&#8217; and &#8216;base-devel&#8217; packages to the root partition, run the following command:</p>
<blockquote><p># pacstrap /mnt base base-devel</p></blockquote>
<p>Since we&#8217;re currently installing the whole operating system, this command may take a few minutes to execute.  You can stick around and watch the progress bars if this sort of thing fascinates you, or you can go get a cup of coffee and come back when it&#8217;s finished.</p>
<h3>Step Nine: Generating the &#8216;fstab&#8217; File</h3>
<p>Arch Linux is now technically installed!  But don&#8217;t go trying to reboot into it just yet or you&#8217;ll be in for a nasty surprise.  While most all the files necessary to run Arch are now in place on your virtual machine&#8217;s root partition, if you reboot your machine, it&#8217;s not going to know where to find that partition (or even how to start up, but we&#8217;ll take care of that, too, momentarily).</p>
<p>As mentioned previously, when Arch Linux boots, it will need to make use of a file called &#8216;fstab&#8217; that contains instructions on starting up all your Linux system&#8217;s various partitions.  We still need to create this fstab file.  Quite handily, this process can be automated as well by another Arch installer script called &#8216;genfstab&#8217;.</p>
<p>To generate your system&#8217;s fstab file, run the following command:</p>
<blockquote><p># genfstab -p /mnt &gt;&gt; /mnt/etc/fstab</p></blockquote>
<p>This will analyze your virtual machine&#8217;s hard disk partitions, currently loaded up under /mnt, and write out an &#8216;fstab&#8217; file.  This fstab file will, from now on, reside in the /etc folder on your virtual machine&#8217;s root partition, and the file&#8217;s job is to automate the process of mounting all your system&#8217;s hard drive partitions in the future when your virtual computer is booted up.  The script will also detect the swap partition you turned on earlier and include instructions in fstab for loading it up, too.</p>
<p>To check and see that the fstab file was generated correctly, you can display the contents of the file using the &#8216;more&#8217; command:</p>
<blockquote><p># more /mnt/etc/fstab</p></blockquote>
<p>This will display the contents of &#8216;fstab&#8217; on the screen and return you to the command prompt (occasionally you may have to hit the space bar a time or two to see the whole file before being returned to the command prompt).  Even if you&#8217;re not quite sure what a proper &#8216;fstab&#8217; file looks like, you should be able to tell if the process worked, (a) because when you execute the &#8216;more&#8217; command a file turns up with stuff in it (which means that the genfstab command did <em>something</em>), and (b) the file contains mentions of all the hard disk partitions you created earlier (in my case, &#8216;/dev/sda1&#8242;, &#8216;/dev/sda2&#8242;, &#8216;/dev/sda3&#8242;, and &#8216;/dev/sda4&#8242;).</p>
<p>The fstab file spit out by &#8216;genfstab&#8217; on my system looks like this:</p>
<p><img class="alignnone size-full wp-image-3905" alt="fstab" src="http://wideaperture.net/blog/wp-content/uploads/2012/12/fstab.jpg" width="650" height="268" /></p>
<p>Note that even if you&#8217;re following along with this tutorial in lockstep, the UUID numbers included in your fstab file may be different than the ones in this screenshot.  These are unique to every machine and partition.</p>
<h3>Step Ten: Initial Installation of the Boot Loader</h3>
<p>Now we&#8217;ve installed Arch Linux and told it how to load up the various partitions we created.  Aside from a bit of configuration, which we&#8217;ll get to momentarily, there&#8217;s one really important component that&#8217;s still missing before our virtual machine will run correctly, and that&#8217;s the &#8220;boot loader.&#8221;  What, you might wonder, is that?</p>
<p>When a computer boots up and the hardware first kicks into action, it&#8217;s momentarily a body without a brain.  Until it can load up the software installed on the hard drive, it has no idea what it&#8217;s supposed to be doing.  But how does a brainless machine go about finding its brain?</p>
<p>The process is akin to how those of us with poor eyesight go about finding our glasses in the morning—by putting them on the nightstand, or some other place we can quickly and reliably find them without thinking about the problem.  For the computer, this means having some special software placed at the very beginning of the system&#8217;s hard drive (i.e. the first place the computer looks when the hardware kicks into action) whose only job is to help the computer load up the rest of the operating system.  In other words, if the hardware can find the boot loader in the expected place, it can load up the rest of its brain.</p>
<p>So, what that means for us is that before trying to boot into our system for the first time, we need to install a boot loader and put it in the place the computer expects to find it.  The fact that our &#8220;computer,&#8221; in this case, is a virtual rather than an actual machine makes little difference in how it operates in principle.</p>
<p>There are several commonly used boot loaders out there.  <a href="https://wiki.archlinux.org/index.php/Beginners%27_Guide#For_BIOS_motherboards">Most people use either GRUB2 or Syslinux.</a>  You can read up on the selection, but for a relatively basic setup like the one I&#8217;ve been describing here, it matters relatively little which you choose.  Here I&#8217;m going to describe setup using Syslinux.</p>
<p><strong>Author&#8217;s Note [3/21/2013]: As Christoph Schniedermeier pointed out in the comments, and as I discovered myself since writing this guide, there&#8217;s a simpler way of installing Syslinux.  Read on, but check out the Beginner&#8217;s Guide for <a href="https://wiki.archlinux.org/index.php/Beginners%27_Guide#Syslinux">a look at the syslinux-install_update script</a> and, if you choose the Beginner&#8217;s guide method, skip from here to Step Eleven at this point.</strong></p>
<p>To begin installing Syslinux, we&#8217;re going to use another handy installer script, which can be executed as follows:</p>
<blockquote><p># pacstrap /mnt syslinux</p></blockquote>
<p>Note that we&#8217;ve still got some work left to do before we&#8217;ve finished installing the boot loader, but we&#8217;ve now completed the first step.</p>
<h3>Step Eleven: Configuring the New Linux Installation on Your Hard Drive</h3>
<p>Again, we&#8217;re not quite done installing the boot loader.  To finish up, we&#8217;re going to log into our new system for the first time, and while we&#8217;re there we&#8217;re going to take care of some other important configuration as well.</p>
<p>Luckily (since our boot loader&#8217;s not configured yet), it&#8217;s possible to log into our new Arch Linux install without rebooting the machine, but by instead using the command &#8216;arch-chroot&#8217;.  This command will transport you, at least temporarily, from the version of Arch Linux that you&#8217;re currently running off the CD into the new Arch Linux installation that you&#8217;ve just placed on your hard drive.  To be thusly air-dropped into the root partition of your new installation, run the command as follows:</p>
<blockquote><p># arch-chroot /mnt</p></blockquote>
<p>You&#8217;ll get a new command prompt, different from the one you&#8217;ve been using up &#8217;til now, which signifies that you&#8217;re now logged into, and using, the Linux installation on your hard drive.  Depending on your installation media, it&#8217;s possible that the command prompt will look something like this:</p>
<blockquote><p>sh-4.2#</p></blockquote>
<p>If that&#8217;s the case, it means that you&#8217;re currently using the most basic shell (command line interface) Linux has to offer.  You&#8217;d probably rather use the BASH shell, which is a command line interface that is a bit more fully featured [<a href="http://www.reddit.com/r/archlinux/comments/15c3kt/my_attempt_at_an_arch_linux_installation_guide/c7lddkn">H/T Railmaniac</a>].  To use BASH, run the following command:</p>
<blockquote><p># bash</p></blockquote>
<p>This will give you a version of the command prompt that looks like this instead, and which gives you the greater functionality of the BASH shell:</p>
<blockquote><p>[root@archiso /]#</p></blockquote>
<p>Now that we&#8217;re logged into the new Arch Linux installation on our hard drive for the first time, it&#8217;s time to configure it.  We&#8217;ll get back to completing the installation of the Syslinux boot loader momentarily, but first we&#8217;ll set up a few other things that are also important.</p>
<p>First, your Arch Linux install wants to know where you live.  Not in a creepy stalker kind of way, but rather so it can present text to you in your own language and so forth.  So let&#8217;s set up our locale preferences.  To do this, we first need to create and/or edit a couple files—&#8217;/etc/locale.conf&#8217; and &#8216;/etc/locale.gen&#8217;—that contain this information.  Like most configuration files on Linux, both of these are plain text files, and to edit them we&#8217;ll use the command line text editing program, &#8220;nano&#8221;.</p>
<p>First, we&#8217;ll create the file &#8216;/etc/locale.conf&#8217; in nano.  To do so, enter the following on the command line:</p>
<blockquote><p># nano /etc/locale.conf</p></blockquote>
<p>This will open a blank text file in nano that, when saved, will become &#8216;/etc/locale.conf&#8217;.  Assuming you are a U.S. user with American English as your preferred language and dialect, type the following in this blank document (If you&#8217;re working in a different language, search the Arch Wiki <a href="https://wiki.archlinux.org/index.php/Special:Categories">in your language</a> for instructions on what to put instead.):</p>
<blockquote><p><code>LANG="en_US.UTF-8"</code></p></blockquote>
<p>To save your changes and exit back to the command line, type Control-X to quit nano, and when asked if you want to save your changes, type &#8216;Y&#8217; for &#8216;yes&#8217;.  Finally, hit &#8216;Return&#8217; to confirm that you want to save the file with the pre-filled filename.  The file will be saved and you&#8217;ll be dropped back to the command prompt.</p>
<p>Next, we&#8217;ll edit &#8217;/etc/locale.gen&#8217;, again using nano.  To do so, enter the following command:</p>
<blockquote><p># nano /etc/locale.gen</p></blockquote>
<p>This file already exists, so you&#8217;ll see a long text file open in nano and fill up your screen.  You can move your cursor and scroll throughout the file using the arrow keys on your keyboard.  Find the two lines that correspond to your language and dialect.  For English-speaking Americans, these would be:</p>
<blockquote><p>#en_US.UTF-8 UTF-8<br />
#en_US ISO-8859-1</p></blockquote>
<p>Delete the &#8216;#&#8217; preceding each of these lines (i.e., &#8220;uncomment&#8221; them).  This will cause the system to pay attention to these two lines specifying your language of choice, while continuing to ignore the rest.  At this point, save the file and exit back to the command line.  Again, in nano this is done by typing Control-X to quit nano, then &#8216;Y&#8217; for &#8216;yes&#8217; when asked if you want to save your changes, and finally &#8216;Return&#8217; to accept the suggested filename.</p>
<p>Now that you&#8217;ve gone through and arranged Arch Linux&#8217;s configuration files to use your language of choice, you lastly need to implement these changes.  This can be done by running this command, back at the command line:</p>
<blockquote><p># locale-gen</p></blockquote>
<p>Next, we&#8217;re going to tell Linux what time zone we&#8217;re in.  To do this, we&#8217;ll be typing some version of the following command (which, if run as-is would set your time zone to correspond to the time in New York City/US Eastern):</p>
<blockquote><p># ln -s /usr/share/zoneinfo/America/New_York /etc/localtime</p></blockquote>
<p>Chances are, though, that you don&#8217;t live in the Eastern time zone.  Luckily, there&#8217;s still help for you.  To find your time zone, begin typing the above command, but don&#8217;t run it yet.  Instead, assuming you&#8217;re in North or South America, type the command only up to the this point&#8230;</p>
<blockquote><p># ln -s /usr/share/zoneinfo/America/</p></blockquote>
<p>&#8230;and then hit the &#8216;Tab&#8217; key a couple times.  The BASH interface will ask you if you want to display all the available possibilities.  Type &#8216;y&#8217; for &#8220;yes&#8221; and it will display a list of cities you can use to identify your timezone.  Make a note of the city you want to use.  This list is long enough that it&#8217;s paginated and you may have to hit the spacebar once to see the whole list.</p>
<p>Once the whole list has been displayed, you&#8217;ll be dropped back at the command line, where you can finish typing the rest of your command, which again should look like my example above, but with your own city of choice inserted.  For example, if you chose the city of Anchorage, your command would look like this:</p>
<blockquote><p># ln -s /usr/share/zoneinfo/America/Anchorage /etc/localtime</p></blockquote>
<p>If you live outside the Americas altogether, you can similarly find your time zone by hitting tab repeatedly after &#8216;zoneinfo&#8217; to find your continent, then filling this in and doing the same thing to find your nearest city.</p>
<p>However you get there, once you&#8217;ve found your reference city of choice, run the command to set your timezone.  What&#8217;s actually happening here, is that you&#8217;re creating a &#8220;symbolic link&#8221;—akin to a desktop shortcut or alias if you&#8217;re used to Windows or OS X—that refers Linux to the the specific timezone configuration file you&#8217;ve identified whenever it looks for the file &#8216;/etc/localtime&#8217;.</p>
<p>Now we&#8217;ll set up one last aspect of our system before we finish configuring our boot loader and boot into our new Arch Linux machine for the first time.  The thing we&#8217;re configuring next is our machine&#8217;s &#8220;hostname,&#8221; which is the name that traditionally identifies your system to your local computer network.  This can be pretty much anything, but it&#8217;s generally something descriptive, like &#8220;archlinux&#8221; or &#8220;joshscomputer&#8221;.  Think up whatever you&#8217;d like.  Generally speaking, it should have no spaces in it and be something simple and straightforward.</p>
<p>To set the the hostname, create the file &#8216;/etc/hostname&#8217; in nano with the following command:</p>
<blockquote><p># nano /etc/hostname</p></blockquote>
<p>This will bring up a blank file in nano.  Type your hostname as the only line in the file.  Then quit to the command line in the usual way, saving your changes as you go.</p>
<h3>Step Twelve: Finishing the Boot Loader Installation</h3>
<p><strong>Author&#8217;s Note [3/21/2013]: If you&#8217;re using the &#8216;syslinux-install_update&#8217; method from the Beginner&#8217;s Guide to install Syslinux, you can skip from here to the paragraph on &#8216;mkinitcpio&#8217; below.</strong></p>
<p><strong> </strong>Now, while we&#8217;re still logged into our hard drive&#8217;s Arch Linux installation, let&#8217;s configure the boot loader. On the command line, navigate to the /syslinux directory, which resides in your /boot partition:</p>
<blockquote><p># cd //boot/syslinux/</p></blockquote>
<p>Inside this directory, there&#8217;s a file called &#8216;syslinux.cfg&#8217;.  This file contains a list of other support files that must be copied over to the /boot/syslinux directory from another directory on your system called /usr/lib/syslinux/ in order for the boot loader to work correctly. To see this list, we&#8217;ll take a look at the contents of &#8217;syslinux.cfg&#8217; by  using the &#8216;more&#8217; command:</p>
<blockquote><p># more syslinux.cfg</p></blockquote>
<p>Near the top of the file, you should see a list of &#8220;comboot modules&#8221;, similar to that pictured below.  This is the list files we&#8217;re going to need to copy over to the present directory.</p>
<p><img class="alignnone size-full wp-image-3908" alt="comboot" src="http://wideaperture.net/blog/wp-content/uploads/2012/12/comboot.png" width="650" height="107" /></p>
<p>Make a note of the filenames in this list, and then type Control-C to quit to the command line (or press the spacebar continuously to page through the file, which will drop you back at the command line once it&#8217;s finished displaying).</p>
<p>Next, we copy the specified files into the /boot/syslinux from the /usr/lib/syslinux directory by running the following commands:</p>
<blockquote><p># cp /usr/lib/syslinux/menu.c32 .<br />
# cp /usr/lib/syslinux/vesamenu.c32 .<br />
# cp /usr/lib/syslinux/chain.c32 .<br />
# cp /usr/lib/syslinux/hdt.c32 .<br />
# cp /usr/lib/syslinux/reboot.c32 .<br />
# cp /usr/lib/syslinux/poweroff.com .</p></blockquote>
<p>Once this has been done, we run the following command to install Syslinux to the /boot partition, which you&#8217;ll recall is at the beginning of the hard drive, where the hardware looks when it wakes up:</p>
<blockquote><p><code># extlinux --install /boot/syslinux</code></p></blockquote>
<p>A few notes on the above command.  First, why is the command titled &#8216;extlinux&#8217;, rather than &#8216;syslinux&#8217;, since it&#8217;s Syslinux that we&#8217;re installing?  The answer is that, while Extlinux was at one time a spinoff of Syslinux, <a href="http://en.wikipedia.org/wiki/SYSLINUX#EXTLINUX">the two versions of the boot loader software</a> have since been merged.  So in fact, they&#8217;re the same thing.  The &#8216;extlinux&#8217; command thus installs the files required for &#8216;syslinux&#8217;.</p>
<p>Second, didn&#8217;t we install Syslinux previously with the &#8216;pacstrap&#8217; command in step ten?  And if so, why are we installing it again here?  This is a subject I&#8217;m a bit less clear on, and which I haven&#8217;t been able to find a terrific answer to yet (please provide one in the comments if you know!).  The best answer I have is that (a) with the pacstrap command we previously installed Syslinux files to our hard disk&#8217;s root partition (though syslinux.cfg did end up here), whereas now we&#8217;re installing them to the /boot partition, and (b) since we&#8217;ve already been copying files over to /boot from the root partition, the files on the root partition must serve as a resource for installing the boot loader to the boot partition, which I take it also means (c) that the &#8216;extlinux&#8217; command was probably made available to us by the &#8216;pacstrap&#8217; installation we did earlier.</p>
<p>Still, when I list the files in the /boot/syslinux directory after running this command, I don&#8217;t see anything we didn&#8217;t put there ourselves, so I confess I&#8217;m not sure what&#8217;s going on with the &#8216;extlinux&#8217; command, beyond the fact that running it was a necessary part of the other, more terse installation guides I read through.  Suffice it to say that (a) this works, and (b) I have a good deal more to learn about Syslinux.</p>
<p>In either case, now that we&#8217;ve finished configuring the boot loader, we&#8217;ve still got a few steps left to go to get our new virtual PC ready to boot.  In order to tell the computer what&#8217;s what, Syslinux is going to need to have something called the &#8220;booting protocol&#8221;—instructions to run in order to boot the system—ready to hand.  The sort of boot protocol Syslinux requires depends on the method you&#8217;ve used to partition your hard drive.  Since we&#8217;ve partitioned using GPT, Syslinux is going to need a boot protocol that works with GPT partitioning.</p>
<p>There is such a file available, called &#8216;gptmbr.bin&#8217;, and at this point we&#8217;re going to write a copy of it to the very beginning of our hard disk, so it&#8217;s the first thing that the machine&#8217;s hardware sees when it boots.  To do this, use the following command—be very careful to enter this one correctly, as a mistake could screw up your virtual PC for reasons that will become apparent in the subsequent explanation:</p>
<blockquote><p># dd conv=notrunc bs=440 count=1 if=/usr/lib/syslinux/gptmbr.bin of=/dev/sda</p></blockquote>
<p>The &#8216;dd&#8217; command above is a special unix command capable of reading and writing data to and from hardware devices.  In the above command, it&#8217;s taking data from the input file (if) &#8216;/usr/lib/syslinux/gptmbr.bin&#8217; and writing it to the hard drive, which you may recall is represented in the file system as the object &#8216;/dev/sda&#8217; (the &#8216;output file&#8217;, or of).  As the other portions of the command get a bit esoteric, I&#8217;m not going to bother to explain their intricacies, but if you want to know more, you can read up on the &#8216;dd&#8217; command <a href="http://en.wikipedia.org/wiki/Dd_(Unix)">on Wikipedia</a> and on this specific use of the command <a href="http://www.syslinux.org/wiki/index.php/Mbr">on the Syslinux wiki</a>.</p>
<p>Next, we&#8217;ll run another handy script called &#8216;mkinitcpio&#8217;, which is going to set up the initial ramdisk (memory) environment for our virtual PC.  This serves as the computer&#8217;s memory when it first boots up, before it finds the rest of its brain.  If you want to customize this environment, you <a href="https://wiki.archlinux.org/index.php/Mkinitcpio">can read up on mkinitcpio and modify &#8216;/etc/mkinitcpio.conf&#8217;</a>.  But if you&#8217;re not doing anything fancy, you can skip making any modifications and simply run the command:</p>
<blockquote><p># mkinitcpio -p linux</p></blockquote>
<p>In English, this translates to &#8220;Make an initial ramdisk environment (mkinitcpio) using presets (-p) suitable for Linux&#8221;.</p>
<p>We&#8217;re now very nearly finished installing Arch Linux.  There are still a couple loose ends to be tied up, which will be covered in the next step.</p>
<h3>Step Thirteen:  Finishing Up the Installation</h3>
<p>We&#8217;ve got a couple loose ends to tie up as we back out of the system we&#8217;ve just installed and prepare to reboot our virtual PC.  First, now that we&#8217;re preparing to boot into a fully functional system for the first time, we&#8217;d like a bit of security.  It&#8217;d be best if, in the future, no one could log in and make the sorts of changes we&#8217;ve just made without first entering a password.  To set a password for your system&#8217;s &#8220;root&#8221; user—the all powerful super user—enter the following command:</p>
<blockquote><p># passwd</p></blockquote>
<p>You&#8217;ll be prompted to enter and re-enter a password.  Make sure to remember it, as you&#8217;ll need it in both the near and foreseeable future.</p>
<p>We&#8217;re now done making changes from within our virtual PC&#8217;s Arch Linux installation. The next step will be to transport back to working from the Arch Linux Install CD.  To do so, type the command:</p>
<blockquote><p># exit</p></blockquote>
<p>If you entered the &#8216;bash&#8217; command earlier to work with the BASH command line, this may only drop you back to the standard command prompt.  If you still see this&#8230;</p>
<blockquote><p>sh-4.2#</p></blockquote>
<p>&#8230;then enter the &#8216;exit&#8217; command one more time to get back to the CD environment.  What you want is to see the original colorful command prompt beginning with &#8216;root@archiso&#8217; that you first saw when you booted Arch from the CD, and absent the square brackets we&#8217;ve been seeing as part of the prompt since we first entered the &#8216;arch-chroot&#8217; command.   When you&#8217;re back to this prompt, it will indicate that you&#8217;re once again working from the Arch Linux installation CD, rather the copy of Arch on your hard disk.</p>
<p>Once you&#8217;ve returned to the CD&#8217;s command prompt, it&#8217;s time to unmount all the partitions we mounted earlier.  If you&#8217;re using the partitioning scheme I&#8217;ve been demonstrating, the commands will be as follows (you can alter these as needed for your own partition scheme).  Note that you should unmount the root directory, mounted at /mnt, last since other partitions are mounted within it:</p>
<blockquote><p># umount /mnt/boot<br />
# umount /mnt/home<br />
# swapoff /dev/sda2<br />
# umount /mnt</p></blockquote>
<p>Once this has been done, we&#8217;ve only one last command to run before rebooting into our new system.  Before rebooting, run this command from the installer disk&#8217;s command prompt, which will set the /boot partition&#8217;s <a href="http://en.wikipedia.org/wiki/BIOS">BIOS</a> flag to &#8220;bootable&#8221;—basically, tell the computer&#8217;s lizard brain which partition to boot—and allow your new system to boot on restart:</p>
<blockquote><p><code># sgdisk /dev/sda --attributes=1:set:2</code></p></blockquote>
<p>For context, sgdisk is a disk utility program similar to gdisk, which we used earlier, but which can take instructions directly from the command line, rather than by entering into an interactive mode (i.e., engaging in a Q&amp;A with the user).  The command, in English reads &#8220;Using sgdisk, examine the device found at /dev/sda (which is our hard drive).  Give partition 1 the attribute of being bootable (<a href="http://www.rodsbooks.com/gdisk/sgdisk.html">&#8217;2&#8242; means &#8216;legacy BIOS bootable&#8217;</a>).&#8221;  The reason we didn&#8217;t simply do this earlier in gdisk is that gdisk doesn&#8217;t appear to offer this option—probably because under GPT, we&#8217;re not supposed to have to set a boot flag (one of its advantages).  Unfortunately, not all hardware is smart enough to realize this, so we have to set it anyhow.</p>
<h3>Step Fourteen: Rebooting Into Your New Arch Linux Machine</h3>
<p>And that&#8217;s it!  Your virtual PC is now completely set up and Arch Linux has been installed and configured.  It&#8217;s time to reboot into your new system!  To do so, just enter the command:</p>
<blockquote><p># reboot</p></blockquote>
<p>When the virtual machine reboots, it will boot from the CD again, which isn&#8217;t what you want from now on.  So, when the CD&#8217;s boot screen comes up, go to the VirtualBox menu bar and select:</p>
<blockquote><p>Devices &gt; CD/DVD Devices &gt; Remove disk from virtual drive</p></blockquote>
<p>Now, attempt to close the application window in which your virtual machine is running.  A dialog panel will come up asking what you&#8217;d like to do.  Select &#8216;Power off the machine&#8217; and click &#8216;OK&#8217;.</p>
<p>Now that the virtual installation CD has been &#8220;ejected&#8221; from our virtual machine, we can boot it up directly from the hard drive, which is what we&#8217;ll be doing every time in the future.  To do this, just double-click on the virtual machine in VirtualBox to start it once more.</p>
<p>This time, when the system starts up, you&#8217;ll be presented with a boot menu, created by Syslinux, which asks you what you&#8217;d like to do:</p>
<p><img class="alignnone size-full wp-image-4014" style="margin-right: 100px;" alt="syslinux" src="http://wideaperture.net/blog/wp-content/uploads/2012/12/syslinux.png" width="540" height="244" /></p>
<p>Hit &#8216;Return&#8217; to select the first option, &#8216;Arch Linux&#8217;, which will continue booting you into Arch Linux.  Note that if you don&#8217;t make a selection, this option will be chosen automatically and the boot process will begin after five seconds.</p>
<p>Once your system has booted, you&#8217;ll be asked to log in.  Sometimes the login prompt will come up, only to be followed by a few more status messages from the boot process.  If this happens, just hit &#8216;Return&#8217; to see the login prompt again.</p>
<p>Since you&#8217;ve yet to create any user accounts, your login name should be &#8216;root&#8217; to log in as the root user.  The password will be the one you set at the beginning of step thirteen.  Once you&#8217;ve entered these credentials, you&#8217;ll be given a command prompt.  Your new Arch Linux system is ready and awaiting your instructions.</p>
<h3>Step Fifteen: Some Housecleaning that Will Make the System More Usable</h3>
<p>First, when we booted from the CD, Arch automatically connected to the internet for us in anticipation of our needing it to install the system.  But this time around, we have to <em>tell</em> the system to connect to the internet.  We&#8217;ll automate this momentarily, but for now, to connect to the internet run the command:</p>
<blockquote><p># dhcpcd</p></blockquote>
<p>One beautiful thing about using virtualization software like VirtualBox is that it saves us having to configure wireless internet from the command line, which is never very fun.  Our virtual computer drafts off our real computer&#8217;s internet connection (wireless or otherwise), while thinking its connected to the &#8216;net via an ethernet cable.</p>
<p><strong>Update [3/21/2012]: As noted in the comments, a little while ago Arch got rid of the &#8216;adduser&#8217; script, which is basically just an interactive interface for the command &#8216;useradd&#8217;. So you&#8217;ll now need to use the &#8216;useradd&#8217; command to create a new non-root user.  There&#8217;s <a href="http://www.cyberciti.biz/faq/howto-linux-add-user-use-adduser-command/">a helpful guide to how to do this here</a>. When following the examples, though, remember to add the &#8216;-d&#8217; flag to the command or your new user account will have no home directory.</strong></p>
<p><del>Next, it&#8217;s more secure and more convenient to create yourself a user account, rather than continuing to use your Linux install as &#8216;root&#8217;.  To create a user account for yourself, run the command:</del></p>
<blockquote><p><del># adduser</del></p></blockquote>
<p><del>This will start an interactive program that will take you through the process of adding a user.  If your Linux install is for personal use, however, not all the questions it asks are going to be necessary or relevant.</del></p>
<p><del>You should definitely enter a username when prompted.  This will be the name you use to log in to your system in the future.</del></p>
<p><del>You can then just continue hitting &#8216;Return&#8217; to accept all the defaults, including when you&#8217;re asked whether you&#8217;re sure you want to create the account.  The next prompt you&#8217;ll want to pay attention to is the one reading&#8230;</del></p>
<blockquote><p><del>Name []:</del></p></blockquote>
<p><del>Your response to this prompt will determine how the system displays your name whenever it&#8217;s not using your login ID.  So I generally put my full name, &#8216;Josh Braun&#8217;.</del></p>
<p><del>After you&#8217;ve entered your name, you can start hitting &#8216;Return&#8217; again to accept defaults until the system asks for your password.  Here, you&#8217;ll enter—and then subsequently reenter—the password that you want to use to log in to the system in the future.  Once you&#8217;ve entered this information, you&#8217;ll be dropped back to the command line.  You&#8217;re finished creating a new user account for yourself.</del></p>
<p>Though you now have a new user account for yourself that&#8217;s separate from &#8216;root&#8217;, you&#8217;ll occasionally want to perform administrative tasks without having to log out of your personal account and log back in as the root user.  To do this, you can use the &#8216;sudo&#8217; command, which means &#8220;perform my command as the root user.&#8221;  However, before we can take advantage of the &#8216;sudo&#8217; command, we have to install the &#8216;sudo&#8217; on our system.</p>
<p>Arch Linux has a handy package manager, called &#8216;pacman&#8217; that automates the process of installing, uninstalling, and updating software on your computer.  You&#8217;ll be using it frequently in the future.  The command &#8216;pacman -S somesoftware&#8217; tells pacman to install &#8216;somesoftware&#8217; on your machine.  In this case, to install &#8216;sudo&#8217;, we use the following command:</p>
<blockquote><p># pacman -S sudo</p></blockquote>
<p>Follow any prompts provided by pacman to install the software.</p>
<p>Once &#8216;sudo&#8217; has been installed, we need to tell it that your new user account is one that should have access to administrative privileges.  To do this, we&#8217;ll need to edit a configuration file called &#8216;sudoers&#8217;, located in the /etc directory.  Again, since this configuration file is just a text file, we&#8217;ll use nano to edit it:</p>
<blockquote><p># nano /etc/sudoers</p></blockquote>
<p>Once the file opens, find the lines reading:</p>
<blockquote><p>##<br />
## User privilege specification<br />
##<br />
root ALL=(ALL) ALL</p></blockquote>
<p>Below the line beginning with &#8216;root&#8217; shown above, add an identical line, but this time replacing &#8216;root&#8217; with the new username you just created.  For example, if I created the login ID &#8216;josh&#8217; above, the new line I would add would look like this:</p>
<blockquote><p>josh ALL=(ALL) ALL</p></blockquote>
<p>Once this line has been added, exit to the command prompt by typing Control-X, answering &#8216;y&#8217; for &#8216;yes&#8217; when you&#8217;re asked whether you&#8217;d like to save your changes, and then hitting &#8216;Return&#8217; to confirm the suggested filename.</p>
<p>Once back on the command line, enter the command&#8230;</p>
<blockquote><p># exit</p></blockquote>
<p>&#8230;to log out of the root user account and log back in with your new user ID and password.</p>
<p><strong>Update [3/21/2012]: An update to systemd has changed how network interfaces are named.  Whereas your virtual machine&#8217;s ethernet card used to generally go by &#8216;eth0&#8242;, it will now have a custom name assigned by the system—a longer ID that looks like a serial number (e.g., &#8216;enp0s10&#8242; or some such). To find this new name, run the command &#8216;iwconfig&#8217;.  The output will show you your virtual machine&#8217;s various network devices and their names. There should be only one or two; copy down the six-character code from the first column and use this instead wherever I have written &#8216;eth0&#8242; below.  See also <a href="http://wideaperture.net/blog/?p=3851#comment-828084660">the helpful comment from Kirk Erickson below</a>.</strong></p>
<p>Next, from here on out, we&#8217;d also like Arch Linux to automatically start an internet connection on login, so we don&#8217;t have to keep typing &#8216;dhcpcd&#8217; or &#8216;sudo dhcpcd&#8217; to get online.  To have our system automatically connect to the internet, we&#8217;ll use this command (provide your password when prompted):</p>
<blockquote><p># sudo systemctl enable dhcpcd@eth0.service</p></blockquote>
<p>Some context for the above command: As mentioned previously, &#8216;sudo&#8217; is used to execute an administrative task without using the root account.  &#8217;Systemctl&#8217; is a command that works with Arch Linux&#8217;s default &#8220;service manager,&#8221; which is called &#8220;systemd.&#8221;  <a href="http://www.freedesktop.org/wiki/Software/systemd">Systemd</a> is the tool that&#8217;s behind the scenes with regard to much of our system&#8217;s configuration.  With the &#8216;systemctl&#8217; command, we&#8217;re telling systemd to enable an internet connection for us automatically using the &#8216;dhcpcd&#8217; command via our &#8216;eth0&#8242; device, which is the virtual PC&#8217;s wired ethernet card.</p>
<p>Now, in the future, whenever your virtual machine boots, it will automatically connect to the internet.</p>
<h3>Step Sixteen: Installing X and Guest Additions</h3>
<p>Arch Linux should be working wonderfully at this point.  But chances are, you don&#8217;t want to live your entire computing life on the command line.  You&#8217;d like a slick GUI desktop environment, with beautiful icons, where you can your favorite programs and—oh, I don&#8217;t know—use a mouse.  You&#8217;d probably also like it if you could use your new Arch Linux installation in full screen mode, such that it was more like working with your native OS.  All this is possible, of course, and we&#8217;ll get to it now.</p>
<p>To begin with, we need to install a software suite called &#8220;X&#8221;, which is a &#8220;window system&#8221;—software that supports draggable, droppable windows and the like—that serves as the underpinning of most of Linux&#8217;s GUI desktop environments. We&#8217;ll start by installing the basic X packages.  Once again, we can use &#8216;pacman -S&#8217; to install all the software we&#8217;re looking to add:</p>
<blockquote><p># sudo pacman -S xorg-server xorg-xinit xorg-server-utils</p></blockquote>
<p>Provide your password if asked, and follow the prompts pacman provides to install the software.</p>
<p>Next, since we&#8217;d like to be able to use a really slick GUI desktop, we also need to install another piece of software called &#8220;mesa,&#8221; which is required to support the 3D graphics common to many newer desktop environments:</p>
<blockquote><p># sudo pacman -S mesa</p></blockquote>
<p>Once again, provide a password if asked, and follow the prompts to complete the installation.</p>
<p>Normally at this stage, we&#8217;d install the hardware drivers for our computer&#8217;s graphics card, but since our PC is virtual we&#8217;re instead going to install VirtualBox&#8217;s &#8220;Guest Additions&#8221;—a collection of software packages that will enable our virtual machine to take advantage of full screen graphics and hardware acceleration.  The Guest Additions also more generally enable our Arch Linux guest OS to integrate more fully with the native host OS running VirtualBox.</p>
<p>To install guest additions, run the following command:</p>
<blockquote><p># sudo pacman -S virtualbox-guest-utils</p></blockquote>
<p>At this point you&#8217;re likely getting used to working with both sudo and pacman, so I&#8217;ll stop with the spiel about entering your password if asked and following the prompts.</p>
<p>Once Guest Additions are installed, we need to make sure that the various components of this software are loaded automatically each time the system boots. To do this, we&#8217;ll use nano to create a new configuration file called &#8216;virtualbox.conf&#8217;.  This file will go in the &#8216;/etc/modules-load.d&#8217; directory, which contains files that need to be loaded when Arch boots up.  Since adding a file to this directory requires administrative permissions, we&#8217;ll need to precede our command with &#8216;sudo&#8217; once again:</p>
<blockquote><p># sudo nano /etc/modules-load.d/virtualbox.conf</p></blockquote>
<p>When nano brings up the blank file, add these three lines to it:</p>
<blockquote><p>vboxguest<br />
vboxsf<br />
vboxvideo</p></blockquote>
<p>As usual, when you&#8217;re finished entering text in nano, type Control-X to exit to the command line, and answer &#8216;y&#8217; for yes when you&#8217;re asked whether you want to save your work, and then hit &#8216;Return&#8217; to accept the filename.</p>
<p>At this point, reboot your machine for the Guest Additions to take effect.</p>
<blockquote><p># sudo reboot</p></blockquote>
<p>Upon rebooting, your system should automatically connect to the internet, and Guest Additions should load up as part of the boot process.</p>
<p>By installing Guest Additions, we&#8217;re working toward better integration between our host and guest OSes.  One example is that we can sync our Arch Linux install&#8217;s clock with that of the host system by entering the following command. This will enable synching on the next boot:</p>
<blockquote><p># sudo systemctl enable vboxservice.service</p></blockquote>
<p>But enough with the clock.  At this point, we want to see if X is working, since we need it to be functional before we can install and use a GUI desktop.</p>
<p>To this end, we&#8217;ll install a few software packages that will help us test X:</p>
<blockquote><p># sudo pacman -S xorg-twm xorg-xclock xterm</p></blockquote>
<p>After these software packages have been installed, we can test that Xorg is installed correctly by running the command:</p>
<blockquote><p># startx</p></blockquote>
<p>This will launch a test environment that relies on X.  At this point, a few things should happen.  Your guest OS screen should resize, your mouse should work, and you should see some draggable windows.  This all means that both Guest Additions and X are working properly.</p>
<p>Note that the each of the draggable windows in the test environment should include a command prompt.  At one of these prompts, type &#8216;exit&#8217; to quit out of the test environment and back to the ordinary command line interface.</p>
<h3>Step Seventeen: Installing the GNOME3 Desktop Environment</h3>
<p>Now that we know X is working, we can install a GUI desktop environment. But that desktop is going to look pretty ugly unless we have some presentable fonts.  So before installing the desktop, let&#8217;s first quickly install the Deja-Vu font set, which is a good set of starter fonts:</p>
<blockquote><p># sudo pacman -S ttf-dejavu</p></blockquote>
<p>Now, we&#8217;ll install our desktop environment.  There are <a href="http://lifehacker.com/5762081/wtf-desktop-environments-gnome-kde-and-more-explained">numerous to choose from</a>, and which you go with is largely a matter of taste.  A few popular ones are KDE, GNOME, and XFCE.  I enjoy GNOME, so it&#8217;s the one I&#8217;m going to demonstrate here.  To begin with, we&#8217;ll install the main sets of software packages for the GNOME desktop, &#8216;gnome&#8217; and &#8216;gnome-extra&#8217;:</p>
<blockquote><p># sudo pacman -S gnome gnome-extra</p></blockquote>
<p>Note that there are several hundred individual software packages in &#8216;gnome&#8217; and &#8216;gnome-extra&#8217;, so they&#8217;re going to take a while to download and install.  Speaking from experience, the installation of these packages also hogs a bit of memory and can be temperamental if it&#8217;s competing for that memory with other activity on your computer.  So now would be a good time to step away from your computer and get a cup of coffee.</p>
<p>Occasionally, you may see a warning message crop up during the installation, reading something along the lines of:</p>
<blockquote><p>GConf-WARNING **: Client failed to connect to the D-BUS daemon</p></blockquote>
<p>According to what I&#8217;ve read on various support forums, these messages can safely be ignored.</p>
<p>Once the installation is complete, you can streamline your setup a bit.  Most likely, you&#8217;ll want your desktop environment to come up immediately when you boot your computer.  The following systemd configuration command will enable the &#8220;GNOME Desktop Manager (GDM)&#8221; (one of the numerous programs that you just installed along with GNOME), which in the future will send you directly to a GUI login screen and then on to your desktop when you boot your virtual machine:</p>
<blockquote><p># sudo systemctl enable gdm</p></blockquote>
<p>At this point, you should be done.  Rebooting your virtual machine&#8230;</p>
<blockquote><p># sudo reboot</p></blockquote>
<p>&#8230;should launch you into your new GUI login screen and GNOME desktop.  And thanks to Guest Additions, you should now be able to use this environment full screen by typing Host-F or selecting &#8220;View &gt; Switch to Fullscreen&#8221; from the VirtualBox menu.</p>
<h3>Step Eighteen: Fixing Some Guest Additions Weirdness</h3>
<p>If you find that your GNOME desktop works beautifully at this point, skip this step and go straight on to step nineteen.  Unfortunately, though, from what I&#8217;ve experienced, GNOME 3 sometimes starts behaving in a janky fashion when it first starts up.  Windows don&#8217;t refresh until the user clicks and drags them, at which point they&#8217;ll display any typing or changes in content you entered since the last time you clicked and dragged.  If you experience this or other strange behavior, you may choose to overwrite the Guest Additions packages you installed using pacman with the version provided with the VirtualBox software.  <em>Note that this is not recommended by the folks at Arch, who <a href="https://wiki.archlinux.org/index.php/VirtualBox#Arch_Linux_guests">clearly state that pacman should be used to install the VirtualBox Guest Additions software</a>.</em></p>
<p>Be that as it may, in my own Arch Linux installations the version of the Guest Additions software packaged with VirtualBox has sometimes worked better than that provided through the Arch Linux repositories.  So, with the understanding that I&#8217;m about to veer from the Arch Wiki&#8217;s best practices, I will provide a bit of instruction on how to overwrite the pacman-installed Guest Additions with the version provided with VirtualBox.</p>
<p>If you&#8217;ve been following the instructions up &#8217;til now, you currently have the Arch repository&#8217;s version of Guest Additions installed, and you&#8217;re presumably able to boot into your GNOME desktop environment, even if this environment isn&#8217;t working for you very well at the moment (again, if things are going smoothly, skip this step and go on to step nineteen).</p>
<p>Boot into the janky desktop environment anyhow.  Then, from the VirtualBox menu, select &#8220;Machine &gt; Install Guest Additions (Host+D)&#8221;.  This will insert a virtual install CD into your machine&#8217;s virtual CD drive containing an installer for Guest Additions.  The Guest Additions installer will launch automatically (click &#8216;Run&#8217; in the dialogue that pops up to allow it to start) and ask for the root password.  Enter the root password and when prompted allow the installer to overwrite your existing Guest Additions installation.  Follow any other installer prompts, and hit &#8216;Return&#8217; when asked to close the installer window.</p>
<p>When the installer has finished, eject the installer CD from your machine&#8217;s virtual drive by selecting &#8217;Devices &gt; CD/DVD Devices &gt; Remove disk from virtual drive&#8217; from the VirtualBox menu.  Allow VirtualBox to force-eject the disk if necessary.  Then shut down your virtual machine and restart it.</p>
<p>When the machine reboots into GNOME, you should find the performance of your desktop greatly improved.  Play with the desktop for a while and figure out how to open a Terminal window, because there&#8217;s still trouble on the horizon that needs to be resolved before it crops up.</p>
<p>The trouble now is that, because you installed Guest Additions earlier using pacman,  and pacman is responsible for keeping your system up to date, eventually pacman is going to want to &#8220;update&#8221; the version of Guest Additions you&#8217;ve installed with a later version from the Arch repository.  When that happens, your VirtualBox-provided version of Guest Additions will be overwritten again by the version from the Arch repository, and things will go back to behaving strangely again.</p>
<p>To prevent pacman from trying to update the version of Guest Additions you&#8217;ve installed via VirtualBox, we need to edit a configuration file called &#8216;/etc/pacman.conf&#8217;, through which we can tell pacman to stop looking for updates to the Guest Additions software.</p>
<p>First, open a Terminal window in GNOME and from the command line, use the following command to figure out what VirtualBox-related packages have been installed by pacman:</p>
<blockquote><p># sudo pacman -Ss virtualbox</p></blockquote>
<p>This command will search for all software related to VirtualBox (or, more specifically, containing the keyword &#8220;virtualbox&#8221; as metadata) that&#8217;s available from the Arch repositories.  It will list all these software packages, and more importantly, it will tell you which ones you already have installed.  Make a note of the already-installed packages (most likely they include &#8216;virtualbox-guest-modules&#8217; and &#8216;virtualbox-guest-utils&#8217;).</p>
<p>Next, edit &#8216;/etc/pacman.conf&#8217;&#8230;</p>
<blockquote><p># sudo nano /etc/pacman.conf</p></blockquote>
<p>&#8230;and uncomment (remove the &#8216;#&#8217; from) the line that reads:</p>
<blockquote><p>#IgnorePkg =</p></blockquote>
<p>As you may have guessed, pacman will ignore any packages named on this line in future system updates.  Next, after the equal sign on this line, add the names of the installed VirtualBox packages you made a note of just now, like so:</p>
<blockquote><p>IgnorePkg = virtualbox-guest-modules virtualbox-guest-utils</p></blockquote>
<p>Type Control-X to quit to the command line, and as usual type &#8216;y&#8217; for yes when you&#8217;re asked whether you want to save your changes, then hit &#8216;Return&#8217; to accept the filename.  Now pacman won&#8217;t futz with your preferred Guest Additions installation.</p>
<h3>Step Nineteen: Configuring the GNOME Desktop</h3>
<p>The GNOME3 desktop environment is highly customizable and you can fiddle with it to no end.  But when you first get it up and running in VirtualBox there are a few things you&#8217;ll likely want to do immediately.  One of these is to get the sound working. To do this, go to the GNOME menu bar and unmute the audio, which is muted by default. Then, if you still don&#8217;t hear the confirmatory &#8220;pop&#8221; sound, open your audio settings from the same menu and select different audio configurations until you hear the system&#8217;s test audio through your computer&#8217;s speakers.</p>
<p>Next, you may wish to install your favorite browser, like Chromium (the open source version of Google Chrome) or Firefox.  To install these, open a Terminal window and run the following commands:</p>
<blockquote><p># sudo pacman -S chromium<br />
# sudo pacman -S firefox</p></blockquote>
<p>You may also notice when browsing the web or attempting to play a YouTube video or Pandora station that the required Adobe Flash plugin isn&#8217;t yet installed.  Rather than installing it manually, which is what the Adobe plugin page will suggest, you can quickly install the Flash plugin using pacman:</p>
<blockquote><p># sudo pacman -S flashplugin</p></blockquote>
<p>Sometime down the road, I may also (far briefer) post tutorials on sharing files back and forth between Arch and the host operating system, and on customizing your desktop with the Gnome Tweak Tool.  But I think this tutorial has gotten long enough already, so I&#8217;ll refrain from offering yet more customization advice here.</p>
<h3>Step Twenty: Installing Software and Maintaining Your System in the Future</h3>
<p>Finally, Arch Linux&#8217;s handy package manager, pacman, will largely automate the process of updating your system software in the future.  To run a full system update (which you should do somewhat regularly), run the following command from the command line:</p>
<blockquote><p># pacman -Syu</p></blockquote>
<p>&#8230;and follow the prompts it presents you with.  Note, however, that you shouldn&#8217;t do this blindly.  Check the homepage of <a href="http://archlinux.org">archlinux.org</a> first, prior to any system-wide update, to see if there are any disclaimers or instructions for manual intervention in updating your system.</p>
<p>On a more day to day basis, you&#8217;ll likely want to install or remove particular pieces of software.  While there are GUI interfaces for doing so, the simplest method (in my view, anyhow) is still to use pacman from the command line.  Typing the command&#8230;</p>
<blockquote><p># sudo pacman -Ss yourkeyword</p></blockquote>
<p>&#8230;will search <a href="https://wiki.archlinux.org/index.php/Official_Repositories">Arch&#8217;s software repositories</a> for software matching your search term. By default, you have access to the &#8216;core&#8217; repository, which contains the essential components of your OS; the &#8216;extra&#8217; repository, which contains other arguable essentials like X and GNOME that aren&#8217;t technically required by the operating system, but are important nonetheless; and the &#8216;community&#8217; repository, which contains other popular, but optional, software packages.  It&#8217;s also possible to add additional repositories, but that&#8217;s a topic for another day.  In the meantime, when you search the repositories by keyword, make a note of the names of programs, font sets, etc. that you&#8217;d like to install.  You can then install any piece of software that you want with the command&#8230;</p>
<blockquote><p># sudo pacman -S packagename</p></blockquote>
<p>&#8230;where &#8216;packagename&#8217; is simply the name of the thing you want installed.  Incidentally, when using this command, you can leave off version numbers and simply use the one-word name of the software in question.  If you decide later that you want to remove a piece of software, you can do so by using the command&#8230;</p>
<blockquote><p># sudo pacman -Rs packagename</p></blockquote>
<p>There is, of course, more to know (I recommend looking at <a href="https://wiki.archlinux.org/index.php/Pacman">the Arch Wiki documentation on pacman</a>).  But this should get you started.  Until next time, enjoy Arch and feel free to ask and answer questions, as well as to improve upon this guide, in the comments!</p>
<p><strong>P.S. [3/21/2013] Some time ago I added a post on how to get shared folders working to easily transfer files between your host operating system and your Arch guest OS.  At least one user in the comments was asking about this, so <a href="http://wideaperture.net/blog/?p=4034">here&#8217;s a link</a>.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://wideaperture.net/blog/?feed=rss2&#038;p=3851</wfw:commentRss>
		<slash:comments>46</slash:comments>
		</item>
		<item>
		<title>Library Proxy Chrome Extension Updated</title>
		<link>http://wideaperture.net/blog/?p=3842</link>
		<comments>http://wideaperture.net/blog/?p=3842#comments</comments>
		<pubDate>Mon, 26 Nov 2012 20:29:14 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Surviving (in) Academia]]></category>
		<category><![CDATA[chrome extensions]]></category>
		<category><![CDATA[google chrome]]></category>
		<category><![CDATA[hacks]]></category>

		<guid isPermaLink="false">http://wideaperture.net/blog/?p=3842</guid>
		<description><![CDATA[For users of my Library Proxy extension for Google Chrome, please note that I’ve updated the plugin to conform to Google Chrome’s new developer specifications.  You can download the latest version of the extension by visiting the original download page/blog post. &#8230; <a href="http://wideaperture.net/blog/?p=3842">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-3404" title="books" src="http://wideaperture.net/blog/wp-content/uploads/2011/09/books.png" alt="" width="270" height="270" />For users of my Library Proxy extension for Google Chrome, please note that I’ve updated the plugin to conform to Google Chrome’s new developer specifications.  You can <a href="http://wideaperture.net/blog/?p=3403">download the latest version of the extension by visiting the original download page/blog post</a>.</p>
<p>For end users, the extension will function the same as always, however the new version will now be safely compatible with future versions of Chrome.  Also, since Chrome no longer auto-installs extensions offered outside the Google Chrome store, please refer to<a href="http://www.howtogeek.com/120743/how-to-install-extensions-from-outside-the-chrome-web-store/"> this guide</a> when installing new versions of the plugin.  I think you’ll find the installation process is still quite simple, even if it’s no longer automated.</p>
<p>Lastly, since there was some interest, I&#8217;ve released the source of the extension [<a href="http://wideaperture.net/libraryproxyextensions/proxyextension_source.tar.gz">tar.gz</a>] under an open source <a href="http://opensource.org/licenses/MIT">MIT license</a>.  Enjoy!</p>
<p>[ Image Credit: <a href="http://flic.kr/p/8n7H7P">Books Icon</a> <a href="http://creativecommons.org/licenses/by/2.0/">cc-by 2.0</a> Nishad Muhammad]</p>
]]></content:encoded>
			<wfw:commentRss>http://wideaperture.net/blog/?feed=rss2&#038;p=3842</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Paper in Communication, Culture &amp; Critique</title>
		<link>http://wideaperture.net/blog/?p=3809</link>
		<comments>http://wideaperture.net/blog/?p=3809#comments</comments>
		<pubDate>Mon, 22 Oct 2012 21:42:24 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Academic Presentations & Publications]]></category>
		<category><![CDATA[Surviving (in) Academia]]></category>
		<category><![CDATA[boxee]]></category>
		<category><![CDATA[hulu]]></category>
		<category><![CDATA[paper]]></category>

		<guid isPermaLink="false">http://wideaperture.net/blog/?p=3809</guid>
		<description><![CDATA[Good news!  My article, &#8220;Going Over the Top: Online Television Distribution as Socio-Technical System&#8221; was recently accepted to the ICA journal, Communication, Culture &#38; Critique.  The piece uses some analytical tools from science and technology studies to examine an early controversy surrounding &#8230; <a href="http://wideaperture.net/blog/?p=3809">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-3810" title="cccr" src="http://wideaperture.net/blog/wp-content/uploads/2012/10/cccr.jpg" alt="" width="650" height="64" /></p>
<p>Good news!  My article<em>, </em>&#8220;Going Over the Top: Online Television Distribution as Socio-Technical System&#8221; was recently accepted to the ICA journal, <em>Communication, Culture &amp; Critique</em>.  The piece uses some analytical tools from science and technology studies to examine an early controversy surrounding streaming television distribution, specifically a tussle between Hulu and Boxee that presaged many of the dust-ups and heated arguments surrounding TV Everywhere and television distribution to interntet-connected set-top boxes like Google TV.</p>
<p>It also examines the agency of users in the online distribution chain—how user modifications to Boxee&#8217;s software impacted the flow of content and the discourse surrounding the technologies and relationships behind online television distribution.  I&#8217;m particularly fond of this article in a paternal sort of way, as it&#8217;s one of the first in which I really begin to lay out my research perspective in earnest, which I hope will be well received.</p>
<p>No word on a publication date yet, but I&#8217;m happy to share a draft of the article with those who are interested.</p>
]]></content:encoded>
			<wfw:commentRss>http://wideaperture.net/blog/?feed=rss2&#038;p=3809</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
