<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Brock's Blog</title>
	
	<link>http://blog.brocktice.com</link>
	<description>Formerly Virtually Shocking</description>
	<lastBuildDate>Mon, 06 May 2013 01:59:52 +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>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/virtuallyshocking" /><feedburner:info uri="virtuallyshocking" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2Fvirtuallyshocking" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fvirtuallyshocking" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2Fvirtuallyshocking" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/virtuallyshocking" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fvirtuallyshocking" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fvirtuallyshocking" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fvirtuallyshocking" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare href="http://www.plusmo.com/add?url=http%3A%2F%2Ffeeds.feedburner.com%2Fvirtuallyshocking" src="http://plusmo.com/res/graphics/fbplusmo.gif">Subscribe with Plusmo</feedburner:feedFlare><feedburner:feedFlare href="http://my.feedlounge.com/external/subscribe?url=http%3A%2F%2Ffeeds.feedburner.com%2Fvirtuallyshocking" src="http://static.feedlounge.com/buttons/subscribe_0.gif">Subscribe with FeedLounge</feedburner:feedFlare><feedburner:feedFlare href="http://www.thefreedictionary.com/_/hp/AddRSS.aspx?http%3A%2F%2Ffeeds.feedburner.com%2Fvirtuallyshocking" src="http://img.tfd.com/hp/addToTheFreeDictionary.gif">Subscribe with The Free Dictionary</feedburner:feedFlare><feedburner:feedFlare href="http://www.bitty.com/manual/?contenttype=rssfeed&amp;contentvalue=http%3A%2F%2Ffeeds.feedburner.com%2Fvirtuallyshocking" src="http://www.bitty.com/img/bittychicklet_91x17.gif">Subscribe with Bitty Browser</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsalloy.com/?rss=http%3A%2F%2Ffeeds.feedburner.com%2Fvirtuallyshocking" src="http://www.newsalloy.com/subrss3.gif">Subscribe with NewsAlloy</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2Fvirtuallyshocking" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:feedFlare href="http://mix.excite.eu/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fvirtuallyshocking" src="http://image.excite.co.uk/mix/addtomix.gif">Subscribe with Excite MIX</feedburner:feedFlare><feedburner:feedFlare href="http://www.yourminis.com/subscribe.aspx?u=http%3A%2F%2Ffeeds.feedburner.com%2Fvirtuallyshocking" src="http://www.yourminis.com/images/addtoyourminisbadge.gif">Subscribe with Yourminis.com</feedburner:feedFlare><feedburner:feedFlare href="http://download.attensa.com/app/get_attensa.html?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fvirtuallyshocking" src="http://www.attensa.com/blogs/attensa/WindowsLiveWriter/BadgeredintoBadges_10C02/attensa_feed_button5.gif">Subscribe with Attensa for Outlook</feedburner:feedFlare><feedburner:feedFlare href="http://www.webwag.com/wwgthis.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fvirtuallyshocking" src="http://www.webwag.com/images/wwgthis.gif">Subscribe with Webwag</feedburner:feedFlare><feedburner:feedFlare href="http://hub.netomat.net/account/account.autoSubscribe.jspa?urls=http%3A%2F%2Ffeeds.feedburner.com%2Fvirtuallyshocking" src="http://www.netomat.net/blogger/images/icon_netomat_feedbutton.gif">Subscribe with netomat Hub</feedburner:feedFlare><feedburner:feedFlare href="http://www.dailyrotation.com/index.php?feed=http%3A%2F%2Ffeeds.feedburner.com%2Fvirtuallyshocking" src="http://www.dailyrotation.com/rss-dr2.gif">Subscribe with Daily Rotation</feedburner:feedFlare><feedburner:feedFlare href="http://www.podcastready.com/oneclick_bookmark.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fvirtuallyshocking" src="http://www.podcastready.com/images/podcastready_button.gif">Subscribe with Podcast Ready</feedburner:feedFlare><feedburner:feedFlare href="http://www.flurry.com/pushRssFeed.do?r=fb&amp;url=http%3A%2F%2Ffeeds.feedburner.com%2Fvirtuallyshocking" src="http://www.flurry.com/images/flurry_rss_logo2.gif">Subscribe with Flurry</feedburner:feedFlare><feedburner:browserFriendly>This is an XML content feed. It is intended to be viewed in a newsreader or syndicated to another site, subject to copyright and fair use.</feedburner:browserFriendly><item>
		<title>Sywtbals? – Assignment 2</title>
		<link>http://feedproxy.google.com/~r/virtuallyshocking/~3/wVffDJhW2Fc/</link>
		<comments>http://blog.brocktice.com/2013/05/05/sywtbals-assignment-2/#comments</comments>
		<pubDate>Mon, 06 May 2013 01:44:51 +0000</pubDate>
		<dc:creator>Brock Tice</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[So you want to be a Linux sysadmin?]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://blog.brocktice.com/?p=1782</guid>
		<description><![CDATA[This is the second in my &#8220;So you want to be a Linux sysadmin?&#8221; series. See the first post here and the category here. Now that you have completed Assignment 1 and have a working sandbox Linux system installed, it&#8217;s time to cover the basics. First, when I started using Linux, I got a boxed [...]]]></description>
				<content:encoded><![CDATA[<p>This is the second in my &#8220;So you want to be a Linux sysadmin?&#8221; series. See the <a href="http://blog.brocktice.com/2013/05/04/so-you-want-to-be-a-linux-sysadmin/">first post here</a> and the <a href="http://blog.brocktice.com/category/tech/linux/so-you-want-to-be-a-linux-sysadmin/">category here</a>.</p>
<p>Now that you have completed <a href="http://blog.brocktice.com/2013/05/04/so-you-want-to-be-a-linux-sysadmin/">Assignment 1</a> and have a working sandbox Linux system installed, it&#8217;s time to cover the basics.</p>
<p>First, when I started using Linux, I got a boxed set of RedHat that included a nice cheat sheet sticker to go on a keyboard wrist rest. In lieu of that, I just saw this posted today. I recommend you keep it bookmarked and perhaps printed out for reference: <a href="http://www.expertslogin.com/guide/linux-command-shelf.html">Linux Command Shelf Cheat-Sheet</a>. There&#8217;s a PDF for download on that site. I also recommend you somehow (RSS or Facebook) subscribe to <a href="http://www.cyberciti.biz/">NixCraft</a>. I still regularly learn useful things from that blog.</p>
<p>Now, when taking care of a Linux (or other *NIX) system, you&#8217;re often going to need to download and extract file archives. Typically these are either singly-zipped files (<code>.gz</code> or <code>.bz2</code> from gzip and bzip2, respectively), or so-called &#8220;tarballs&#8221; (<code>.tar</code>, <code>.tar.gz</code>, <code>.tgz</code>, <code>.tar.bz2</code>, etc). Tarballs are created with the <code>tar</code> program, whose name comes from <b>T</b>ape <b>AR</b>chive. The additional suffixes indicate that the tarball has been compressed in some way. In other words, a simple <code>.tar</code> file contains a bunch of files all rolled up into a single archive, but not compressed, while <code>.tar.gz</code> (<code>.tgz</code> for short) files have additionally been zipped up in some fashion. Incidentally, <code>tar</code> is also still used to write files to tape, if that&#8217;s your thing.</p>
<p>The best way to get a file for download from the command-line (which I will focus on almost entirely in this series) is <code>wget</code>. So, open up a terminal window. You should have a simple prompt waiting for your input. Check to see whether you have <code>wget</code> by typing</p>
<pre>
<code>
which wget
</code>
</pre>
<p>The <code>which</code> command searches through all of the directories on your <code>PATH</code>, an environment variable that tells the shell where to find programs, for the command you list, in this case <code>wget</code>. It&#8217;s a good way to check for the presence of a program on a system. If that doesn&#8217;t work, but you think it&#8217;s around somewhere, you can sometimes use <code>locate</code>, but we&#8217;ll not cover that today.</p>
<p>Now, if you have <code>wget</code>, you should get in return the full path to the program, something, like <code>/usr/bin/wget</code>. If so, you can proceed to the next step where it says &#8216;Downloading a file with wget&#8217;.</p>
<p>If not, the utility will print nothing. I tried a made-up program called &#8216;snarfblat&#8217;:</p>
<pre>
<code>
brock@gamont:~$ which snarfblat
brock@gamont:~$
</code>
</pre>
<p>Here&#8217;s a successful <code>which</code> call for <code>wget</code>:</p>
<pre>
<code>
brock@gamont:~$ which wget
/usr/bin/wget
brock@gamont:~$
</code>
</pre>
<p>If you don&#8217;t have it, try <code>sudo apt-get install wget</code> on a Debian-based distribution or <code>sudo yum install wget</code> on a RedHat-based distribution. If you&#8217;re not set up with <code>sudo</code>, we will cover that later. For now become root with <code>su -</code> followed by the root password, and then run the above commands without the <code>sudo</code> at the beginning. Type <code>exit</code> or press Ctrl-D to exit the root shell once you have installed it. Double-check that it&#8217;s now installed by calling <code>which wget</code> again. If you get stuck, please email me or comment here so we can take care of it and you can continue.</p>
<h2>Downloading a file with wget</h2>
<p>For this tutorial, I&#8217;m going to have you download a sample tarball that I have created. It contains a bunch of directories and files with various names and contents. We will use it in this assignment and later assignments to practice command-line basics.</p>
<p>For now, go to a terminal (I recommend you make a directory for this like <code>mkdir ~/sywtbals</code>, where <code>~/</code> is a shortcut for specifying your home directory. In my case that is <code>/home/brock</code>. Then change to that directory: <code>cd ~/sywtbals</code>.</p>
<p>Now, run <code>wget</code> to pull down the file.</p>
<pre>
<code>
wget http://blog.brocktice.com/sywtbals/1.tgz
</code>
</pre>
<p>It should look like this:</p>
<pre>
<code>
brock@water:~/sywtbals$ wget http://blog.brocktice.com/sywtbals/1.tgz
--2013-05-05 17:30:33--  http://blog.brocktice.com/sywtbals/1.tgz
Resolving blog.brocktice.com... 209.188.113.105
Connecting to blog.brocktice.com|209.188.113.105|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 215040 (210K) [application/x-gzip]
Saving to: “1.tgz”

100%[======================================>] 215,040      259K/s   in 0.8s    

2013-05-05 17:30:34 (259 KB/s) - “1.tgz” saved [215040/215040]

brock@water:~/sywtbals$
</code>
</pre>
<p>Give yourself a self-high-five if you noticed I changed machines in the middle of this post from gamont to water.</p>
<p>Now that you&#8217;ve got the file, let&#8217;s take a look at it with <code>ls</code>, the file-listing tool:</p>
<pre>
<code>
brock@water:~/sywtbals$ ls -l 
total 212
-rw-r--r-- 1 brock brock 215040 May  5 13:40 1.tgz
brock@water:~/sywtbals
</code>
</pre>
<p>I used the <code>-l</code> for the &#8216;long&#8217; listing that shows details about each file. This shows us a few interesting things. One is the permissions:</p>
<pre>
<code>
<b>-rw-r--r-- brock brock</b>
</code>
</pre>
<p>This tells us the permissions for the user, group, and everyone else. A file may only have one group and one user assigned to it. There&#8217;s SELinux (Security-Enhanced Linux), the NSA&#8217;s enhancements to make Linux permissions more fine-grained, but honestly I don&#8217;t understand SELinux well enough to do more than turn it off, so I&#8217;m not going to discuss it here.</p>
<p>So, in this case the user has <b>r</b>ead and <b>w</b>rite permissions, the group has <b>r</b>ead permissions, and everyone else also has <b>r</b>ead permissions. The user is <b>brock</b> and the group is <b>brock</b>. Note that even though the user and group names are the same they are totally separate. One represents a userid, and the other represents a groupid. Observe the use of the <code>id</code> command to elaborate:</p>
<p><code></p>
<pre>
brock@water:~/sywtbals$ id
uid=1000(brock) gid=1000(brock) groups=1000(brock),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),100(users),108(netdev),109(bluetooth),112(fuse),115(scanner),120(libvirt),1001(family)
brock@water:~/sywtbals$
</pre>
<p></code></p>
<p>Here you can see that (and again, this is just a coincidence because I was the first user added to the system), the user id <code>brock</code> is 1000, and the group id <code>brock</code> is also 1000. However, the group id <code>brock</code> could just as easily be 2005 or something.</p>
<p>Let&#8217;s say this file is somewhat secret and I don&#8217;t want anyone else (except <code>root</code> of course) on the system to be able to read it. We&#8217;ll change it like this:</p>
<p><code></p>
<pre>
brock@water:~/sywtbals$ chmod go= 1.tgz
brock@water:~/sywtbals$ ls -l
total 212
-rw------- 1 brock brock 215040 May  5 13:40 1.tgz
</pre>
<p></code></p>
<p>What I did is to tell <code>chmod</code> to set the <b>g</b>roup and <b>o</b>ther permissions to be equal to nothing. As a result, only the <b>u</b>ser has any permissions at all.</p>
<p>On the other hand, what if we want to allow anyone on the system to read and write the file?</p>
<pre>
<code>
brock@water:~/sywtbals$ chmod go+rw 1.tgz 
brock@water:~/sywtbals$ ls -l
total 212
-rw-rw-rw- 1 brock brock 215040 May  5 13:40 1.tgz
brock@water:~/sywtbals$
</code>
</pre>
<p>You can also use numerical codes to set permissions. All I ever remember about that offhand is that 0 means nothing and 7 is everything. I prefer the other notation, but you can look it up. A common 4-letter admonition you&#8217;ll see as a Linux sysadmin is RTFM &#8212; read the fucking manual.</p>
<p>Usually you can find the so-called <code>manfile</code> for a program or configuration file like this:</p>
<pre>
<code>
man chmod
</code>
</pre>
<p>This will show the output in the system <b>pager</b>, a program that pages through a text file. Historically this was normally a program called, sensibly, <code>more</code>. Later, an improved program called <code>less</code> replaced it. UNIX humor &#8212; less is more. Anyway, there are only four things you need to know to get around <code>less</code> reasonably well. The <b>q</b> key quits. The spacebar moves to the next page. And the <b>/</b> key starts a search. The <b>Esc</b> key gets you back to the main mode. There&#8217;s a lot more you can do with less, but those four things will make up 99% of your <code>less</code> usage.</p>
<p>The most important thing you can do with the <b>/</b> search in many manpages as a beginner is to find the <b>Examples</b> section, if there is one. It will usually contain examples of what you&#8217;re trying to do. Of course you can also RTFM. Here&#8217;s me searching for the examples in the <code>chmod</code> manpage. Note the <code>/examples</code> at the end.</p>
<pre>
<code>
CHMOD(1)                         User Commands                        CHMOD(1)

NAME
       chmod - change file mode bits

SYNOPSIS
       chmod [OPTION]... MODE[,MODE]... FILE...
       chmod [OPTION]... OCTAL-MODE FILE...
       chmod [OPTION]... --reference=RFILE FILE...

DESCRIPTION
       This manual page documents the GNU version of chmod.  chmod changes the
       file mode bits of each given file  according  to  mode,  which  can  be
       either a symbolic representation of changes to make, or an octal number
       representing the bit pattern for the new mode bits.

       The format of a symbolic mode is  [ugoa...][[+-=][perms...]...],  where
       perms  is  either zero or more letters from the set rwxXst, or a single
       letter from the set ugo.  Multiple symbolic modes can be  given,  sepa‐
       rated by commas.

       A  combination  of the letters ugoa controls which users' access to the
       file will be changed: the user who owns it  (u),  other  users  in  the
/examples
</code>
</pre>
<p>Unfortunately, when I hit the <b>Enter</b> key after typing <code>/examples</code> I was greeted with <code>Pattern not found  (press RETURN)</code>. So I&#8217;ll have to properly RTFM. I press the spacebar to scroll down. (Arrow keys and page up/down can also be used to navigate.) Eventually I find this documentation on the octal numerical codes:</p>
<pre>
<code>
       granted  to  users  that are in neither of the two preceding categories
       (o).

       A numeric mode is from one to  four  octal  digits  (0-7),  derived  by
       adding up the bits with values 4, 2, and 1.  Omitted digits are assumed
       to be leading zeros.  The first digit selects the set user ID  (4)  and
       set group ID (2) and restricted deletion or sticky (1) attributes.  The
       second digit selects permissions for the user who owns the  file:  read
       (4),  write  (2),  and  execute  (1); the third selects permissions for
       other users in the file's group, with the same values; and  the  fourth
       for other users not in the file's group, with the same values.

       chmod never changes the permissions of symbolic links; the chmod system
       call cannot change their permissions.  This is not a problem since  the
       permissions  of  symbolic links are never used.  However, for each sym‐
       bolic link listed on the command line, chmod changes the permissions of
       the pointed-to file.  In contrast, chmod ignores symbolic links encoun‐
       tered during recursive directory traversals.

SETUID AND SETGID BITS
       chmod clears the set-group-ID bit of a regular file if the file's group
       ID  does  not  match the user's effective group ID or one of the user's
       supplementary group IDs, unless the user  has  appropriate  privileges.
 Manual page chmod(1) line 44
</pre>
<p></code></p>
<p>There you go, the numerical codes are read = 4, write = 2, and execute = 1. Execute means that if it's a script or a program, it can be run, or if it's a directory, you can navigate (change directory or <code>cd</code>) into it. Anyway, to set read/write for user and group, and nothing for everyone else, you'd use (4+2=6)(4+2=6)(0) or <code>chmod 660</code>.</p>
<p>So, now that we've beaten the permissions thing to death. Just a few other notes. In this output:</p>
<p><code>-rw------- 1 brock brock 215040 May  5 13:40 1.tgz</code></p>
<p>The last few bits are the file size (215040 bytes) and file modification time, ending with the filename. You can get a handy "human-readable" size using the <code>-h</code> for human flag like so:</p>
<pre>
<code>
brock@water:~/sywtbals$ ls -lh 1.tgz 
-rw-rw-rw- 1 brock brock 210K May  5 13:40 1.tgz
brock@water:~/sywtbals$
</code>
</pre>
<p>I usually use the <code>-h</code> when doing a detailed listing. Because it rounds, however, sometimes you may want to omit the <code>-h</code> to see if a file size matches, has changed, etc.</p>
<p>OK! Let's extract this sucker. We'll use a <code>tar</code> command to extract. First, let's get a preview of the file contents. Nice people generally put everything to tar in a directory first, so that the directory extracts nicely and doesn't make a mess. Sometimes, (and occasionally even with good reason), people will put all the contents of the tar right at the top level, and extracting without knowing that will make a big mess. (I'll cover a quick tip to fix that when we get to pipes. Don't let me forget.).</p>
<p>To get a preview of the file contents, we use the <code>t</code> flag to <code>tar</code>:</p>
<pre>
<code>
brock@water:~/sywtbals$ tar tvf 1.tgz
drwxrwxr-x brock/brock       0 2013-05-05 13:31 1/
drwxrwxr-x brock/brock       0 2013-05-05 13:30 1/sequential/
-rw-rw-r-- brock/brock      13 2013-05-05 13:31 1/sequential/sequential_file_85
-rw-rw-r-- brock/brock      13 2013-05-05 13:31 1/sequential/sequential_file_34
-rw-rw-r-- brock/brock      13 2013-05-05 13:31 1/sequential/sequential_file_60
-rw-rw-r-- brock/brock      13 2013-05-05 13:31 1/sequential/sequential_file_43
-rw-rw-r-- brock/brock      13 2013-05-05 13:31 1/sequential/sequential_file_30
-rw-rw-r-- brock/brock      13 2013-05-05 13:31 1/sequential/sequential_file_64
-rw-rw-r-- brock/brock      13 2013-05-05 13:31 1/sequential/sequential_file_11
-rw-rw-r-- brock/brock      13 2013-05-05 13:31 1/sequential/sequential_file_77
...
-rw-rw-r-- brock/brock      13 2013-05-05 13:31 1/sequential_padded/sequential_file_00093
-rw-rw-r-- brock/brock      13 2013-05-05 13:31 1/sequential_padded/sequential_file_00049
-rw-rw-r-- brock/brock      13 2013-05-05 13:31 1/sequential_padded/sequential_file_00013
-rw-rw-r-- brock/brock      13 2013-05-05 13:31 1/sequential_padded/sequential_file_00068
-rw-rw-r-- brock/brock      13 2013-05-05 13:31 1/sequential_padded/sequential_file_00018
-rw-rw-r-- brock/brock      13 2013-05-05 13:31 1/sequential_padded/sequential_file_00055
-rw-rw-r-- brock/brock      12 2013-05-05 13:31 1/sequential_padded/sequential_file_00005
-rw-rw-r-- brock/brock      13 2013-05-05 13:31 1/sequential_padded/sequential_file_00098
-rw-rw-r-- brock/brock      12 2013-05-05 13:31 1/sequential_padded/sequential_file_00001
-rw-rw-r-- brock/brock      13 2013-05-05 13:31 1/sequential_padded/sequential_file_00026
brock@water:~/sywtbals$
</code>
</pre>
<p>The command <code>tar tfv 1.tgz</code> can be broken down as follows: <code>tar</code> is the program, <code>t</code> tells it to <b>t</b>est the file, <code>f</code> tells it it's getting a <b>f</b>ilename for input (<code>1.tgz</code> in this case), and <code>v</code> means <b>v</b>erbose, in that it prints out all the names of the files being extracted. You'll always need <b>f</b> to extract a file. The philosophies on <b>v</b> vary. Some people say using it causes errors to get lost in the shuffle and go unnoticed. Others like to see which files are being extracted. If you do a run like this with <b>t</b> first, then you can go ahead and do the actual extraction later without <b>v</b> and see any errors.</p>
<p>I'm a nice guy, so I put the contents in a directory called <code>1</code>. (I'm also an idiot, this is Assignment #2, but I digress). So let's go ahead and extract the file.</p>
<pre>
<code>
brock@water:~/sywtbals$ tar xf 1.tgz 
brock@water:~/sywtbals$
</code>
</pre>
<p>In this case I omitted the <b>v</b> option, and changed from <b>t</b>est mode to e<b>x</b>tract mode. <code>tar</code> followed the UNIX convention of outputting no message at all if everything worked correctly.</p>
<p>Do a quick listing on the created directory just to double-check:</p>
<pre>
<code>
brock@water:~/sywtbals$ ls -l 1
total 8
drwxr-xr-x 2 brock brock 4096 May  5 13:30 sequential
drwxr-xr-x 2 brock brock 4096 May  5 13:31 sequential_padded
brock@water:~/sywtbals$
</code>
</pre>
<p>Looks good! Questions?</p>
<p>I have a bonus question. <code>tar</code> figured out something about our <code>1.tgz</code> file and took care of it without us asking. Do you know what that is?</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=wVffDJhW2Fc:-rR-mRvtjeA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=wVffDJhW2Fc:-rR-mRvtjeA:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=wVffDJhW2Fc:-rR-mRvtjeA:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=wVffDJhW2Fc:-rR-mRvtjeA:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?i=wVffDJhW2Fc:-rR-mRvtjeA:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=wVffDJhW2Fc:-rR-mRvtjeA:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=YwkR-u9nhCs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/virtuallyshocking/~4/wVffDJhW2Fc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.brocktice.com/2013/05/05/sywtbals-assignment-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.brocktice.com/2013/05/05/sywtbals-assignment-2/</feedburner:origLink></item>
		<item>
		<title>So you want to be a Linux sysadmin?</title>
		<link>http://feedproxy.google.com/~r/virtuallyshocking/~3/7EtZAqudaSE/</link>
		<comments>http://blog.brocktice.com/2013/05/04/so-you-want-to-be-a-linux-sysadmin/#comments</comments>
		<pubDate>Sat, 04 May 2013 19:49:52 +0000</pubDate>
		<dc:creator>Brock Tice</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[So you want to be a Linux sysadmin?]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://blog.brocktice.com/?p=1774</guid>
		<description><![CDATA[Introduction There is a shortage of good Linux system administrators. Some friends of mine have an interest in helping to fill that shortage, so I have finally decided to embark upon a series of blog posts based on my experience. First, let&#8217;s get some things out of the way. Qualifications There are plenty of linux [...]]]></description>
				<content:encoded><![CDATA[<h1>Introduction</h1>
<p>There is a shortage of good Linux system administrators. Some friends of mine have an interest in helping to fill that shortage, so I have finally decided to embark upon a series of blog posts based on my experience. First, let&#8217;s get some things out of the way.</p>
<h2>Qualifications</h2>
<p>There are plenty of linux sysadmins out there, with varying degrees of experience, and varying methods and opinions. I do not claim to be the leading expert on the subject, I&#8217;m just trying to write up what I do know. Constructive comments and suggestions are welcome. People telling me what an idiot I am will have their comments deleted. That said, here are my qualifications regarding Linux system administration. I offer them both to show you I&#8217;m not just making this stuff up, and also to give you one example of how people learn Linux sysadmin skills without a formal education or certificate program.</p>
<ul>
<li>I started using Linux in 1998 with a Linux for Dummies book and the included copy of Red Hat 4.something.</li>
<li>I&#8217;ve run Linux servers in some form and with varying degrees of success since college in 2000.</li>
<li>I took about half of a computer science major in college as a double-major until I dropped that to focus on research, next point.</li>
<li>When I joined a computational science research lab as an undergrad in fall of 2002, I took over the Linux/Irix system administration for the lab, and started porting old Irix applications to run on Linux.</li>
<li>When our lab moved to Johns Hopkins University after Hurricane Katrina, I set up our compute nodes (formerly run by a Tulane sysadmin) as a high-performance computing (HPC) cluster. This was the real beginning of my HPC experience.</li>
<li>Shortly thereafter, we ordered a new cluster for the lab. I handled the process of deciding specifications, working with vendors to get quotes and negotiate the deal, and then running the cluster (from Penugin Computing) <a href="http://www.youtube.com/watch?v=a7Ya7jXlKS4">once it was delivered</a>.</li>
<li>After graduating, I did some consulting work for Penguin Computing on a variety of HPC tasks. I think this went pretty well based on the feedback I got from Penguin and end customers.</li>
<li>At this point I&#8217;m running a high-performance cluster in my garage for my work at <a href="http://www.cardiosolv.com">CardioSolv Ablation Technologies</a>, and also running my own server hosting this blog and a bunch of other stuff.</li>
</ul>
<h2>Disclaimers</h2>
<ul>
<li>Just to reiterate: <b>I do not claim to be the leading expert on the subject, I&#8217;m just trying to write up what I do know.</b></li>
<li>With Linux, there are usually a minimum of three different ways to do a certain thing or solve a different problems. Every time I work next to another sysadmin I learn stuff from them, and at least a few times they&#8217;ve learned things from me. Nothing anyone writes about how to do stuff is gospel.</li>
<li>I will not be responsible if you destroy systems or data from following my instructions without understanding them.</li>
</ul>
<p>With that out of the way, let&#8217;s get started.</p>
<h1>Welcome to Linux</h2>
<p>There are many books you can buy and sites you can read that will give you a history of Linux and an overall philosophy for how it works, etc etc. I&#8217;m going to assume if you&#8217;re reading this that you already know all that stuff and jump right in. In my experience, the best way to learn how to be a Linux sysadmin is to try to make things work. You&#8217;ll learn a lot in the process, so I&#8217;m going to do this as a series of assignments. </p>
<h2>Assignment 1</h2>
<p>If you haven&#8217;t already, set up a Linux computer or a virtual machine (using VirtualBox, VMware, or the like), <b>strictly for practicing on</b>. I recommend you start with Debian or CentOS, or possibly Ubuntu Server. I prefer Debian, but most popular Linux distributions are based on either Debian or RedHat, so learning either of those will get you off to a good start. To be good at Linux system administration, you&#8217;ll eventually need to know your way around both. We&#8217;ll get to that (and some other interesting distributions like Gentoo) in later assignments.</p>
<p>Set up this machine with three partitions: <code>/</code>, <code>/boot</code>, and <code>/home</code>. Leave a minimum of 200MB for <code>/boot</code>, 20GB for <code>/</code>, and the rest assign to <code>/home</code>.</p>
<p>When done, you should be able to log in as your primary user (i.e. <code>brock</code>) as well as <code>root</code>, the god-like default system administration account.</p>
<p>Please reply or email me with any questions.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=7EtZAqudaSE:3SLk2V-CWmc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=7EtZAqudaSE:3SLk2V-CWmc:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=7EtZAqudaSE:3SLk2V-CWmc:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=7EtZAqudaSE:3SLk2V-CWmc:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?i=7EtZAqudaSE:3SLk2V-CWmc:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=7EtZAqudaSE:3SLk2V-CWmc:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=YwkR-u9nhCs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/virtuallyshocking/~4/7EtZAqudaSE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.brocktice.com/2013/05/04/so-you-want-to-be-a-linux-sysadmin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blog.brocktice.com/2013/05/04/so-you-want-to-be-a-linux-sysadmin/</feedburner:origLink></item>
		<item>
		<title>I have once again sighted Baldy Mountain at Philmont</title>
		<link>http://feedproxy.google.com/~r/virtuallyshocking/~3/7oyszotubMQ/</link>
		<comments>http://blog.brocktice.com/2013/05/01/i-have-once-again-sighted-baldy-mountain-at-philmont/#comments</comments>
		<pubDate>Wed, 01 May 2013 14:16:35 +0000</pubDate>
		<dc:creator>Brock Tice</dc:creator>
				<category><![CDATA[New Mexico]]></category>

		<guid isPermaLink="false">http://blog.brocktice.com/?p=1769</guid>
		<description><![CDATA[Back when I was, I think, 15, I had the opportunity as a Boy Scout to do a two-week backpacking trek at Philmont Scout Reservation in Northern New Mexico. It was a fantastic two weeks. I learned a lot, lost a ton of weight, and climbed to the top of a mountain called Baldy Mountain, [...]]]></description>
				<content:encoded><![CDATA[<p>Back when I was, I think, 15, I had the opportunity as a Boy Scout to do a two-week backpacking trek at Philmont Scout Reservation in Northern New Mexico. It was a fantastic two weeks. I learned a lot, lost a ton of weight, and climbed to the top of a mountain called Baldy Mountain, which peaks at about 12,500 feet. To this day I remember how hard I had to breathe, 3 breaths per step, to make it to the very top. I don&#8217;t think I ever expected to return to Northern New Mexico.</p>
<p>Since moving to Northern New Mexico, living only a 2-hour drive from Philmont (and make no mistake, my memories of Philmont made me receptive to moving here), I&#8217;ve kept meaning to drive out there and see it again, but have never made the time.</p>
<p>This spring, while skiing in Taos, I got a breathtaking view of the mountains to the East from near Kachina Peak, and I could swear that one looked like that same Baldy Mountain I climbed, albeit covered with snow. Just this morning I finally pulled up Google Maps and confirmed that it was, indeed, the same peak. Philmont resides just over the mountains from Taos. I may not have made it back there to visit yet, but at least I&#8217;ve now laid eyes on Baldy Mountain and Philmont once again.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=7oyszotubMQ:ESSBdYY2fIY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=7oyszotubMQ:ESSBdYY2fIY:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=7oyszotubMQ:ESSBdYY2fIY:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=7oyszotubMQ:ESSBdYY2fIY:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?i=7oyszotubMQ:ESSBdYY2fIY:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=7oyszotubMQ:ESSBdYY2fIY:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=YwkR-u9nhCs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/virtuallyshocking/~4/7oyszotubMQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.brocktice.com/2013/05/01/i-have-once-again-sighted-baldy-mountain-at-philmont/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.brocktice.com/2013/05/01/i-have-once-again-sighted-baldy-mountain-at-philmont/</feedburner:origLink></item>
		<item>
		<title>Adding Infiniband to my Bitcoin Mining Cluster for HPC Tasks (Part 1 – Overview)</title>
		<link>http://feedproxy.google.com/~r/virtuallyshocking/~3/UieknpPSEIE/</link>
		<comments>http://blog.brocktice.com/2013/04/06/adding-infiniband-to-my-bitcoin-mining-cluster-for-hpc-tasks-part-1-overview/#comments</comments>
		<pubDate>Sat, 06 Apr 2013 14:44:29 +0000</pubDate>
		<dc:creator>Brock Tice</dc:creator>
				<category><![CDATA[Bitcoin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://blog.brocktice.com/?p=1764</guid>
		<description><![CDATA[I now have a cluster with InfiniBand network hardware in my garage. This is my bitcoin mining cluster that I&#8217;ve had running for a few years. Last summer I upgraded the CPUs from the cheapest available (Sempron 140s) to something faster but compatible with the same motherboards (Phenom II X4 975 BEs) so that I [...]]]></description>
				<content:encoded><![CDATA[<p>I now have a cluster with InfiniBand network hardware in my garage. This is my bitcoin mining cluster that I&#8217;ve had running for a few years. Last summer I upgraded the CPUs from the cheapest available (Sempron 140s) to something faster but compatible with the same motherboards (Phenom II X4 975 BEs) so that I could run simulations for <a href="http://research.cardiosolv.com">work</a>, but I ran into scaling issues using 100 Mb/s Ethernet. At that point I got a cheap TrendNet gigabit switch and switched the cluster over to that, and I was able to scale across 2-3 machines (8-12 cores), but after that things really started to slow down. </p>
<p>I&#8217;m happy to report that with the InfiniBand hooked up as of yesterday I can now scale across all 6 IB-equipped compute nodes with approximately linear scaling. Unfortunately the older single-data-rate (SDR) hardware I got for &#8216;cheap&#8217; from eBay didn&#8217;t produce the kind of dramatic reductions in latency I expected compared to gigabit Ethernet. I expect for that I&#8217;ll really need to upgrade to QDR IB at some point, but I&#8217;ll also probably want faster machines at that point. Total cost for the IB upgrade (24-port Cisco Topspin switch $350, 7 Mellanox HCAs for $39.90/ea &#8211; $279.30, 7 CX4 cables with latch connectors at $16.00/ea &#8211; $112.00) was $741.30. I intend to add some posts later with more details of the setup, as I know there some interest out there in setting up cheap IB hardware at home.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=UieknpPSEIE:PX0LtCOFp6U:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=UieknpPSEIE:PX0LtCOFp6U:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=UieknpPSEIE:PX0LtCOFp6U:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=UieknpPSEIE:PX0LtCOFp6U:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?i=UieknpPSEIE:PX0LtCOFp6U:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=UieknpPSEIE:PX0LtCOFp6U:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=YwkR-u9nhCs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/virtuallyshocking/~4/UieknpPSEIE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.brocktice.com/2013/04/06/adding-infiniband-to-my-bitcoin-mining-cluster-for-hpc-tasks-part-1-overview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.brocktice.com/2013/04/06/adding-infiniband-to-my-bitcoin-mining-cluster-for-hpc-tasks-part-1-overview/</feedburner:origLink></item>
		<item>
		<title>AR-15 Magazine Block on Defcad</title>
		<link>http://feedproxy.google.com/~r/virtuallyshocking/~3/SwKlSjMpimo/</link>
		<comments>http://blog.brocktice.com/2013/03/25/ar-15-magazine-block-on-defcad/#comments</comments>
		<pubDate>Mon, 25 Mar 2013 16:57:02 +0000</pubDate>
		<dc:creator>Brock Tice</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://blog.brocktice.com/?p=1758</guid>
		<description><![CDATA[I am building an AR-15 from a stripped lower receiver, and had read that it is good to have a vise block to hold the lower in place while installing parts. Rather than buy one, I was going to 3D print a magazine to use for this purpose. However, I was happy to see that [...]]]></description>
				<content:encoded><![CDATA[<p>I am building an AR-15 from a stripped lower receiver, and had read that it is good to have a vise block to hold the lower in place while installing parts. Rather than buy one, I was going to 3D print a magazine to use for this purpose. However, I was happy to see that defcad.org as a <a href="http://defcad.org/ar-15-vise-block/">vise block</a> ready to print. I&#8217;m warming up the printer now.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=SwKlSjMpimo:9LC88Hn3XaM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=SwKlSjMpimo:9LC88Hn3XaM:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=SwKlSjMpimo:9LC88Hn3XaM:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=SwKlSjMpimo:9LC88Hn3XaM:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?i=SwKlSjMpimo:9LC88Hn3XaM:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=SwKlSjMpimo:9LC88Hn3XaM:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=YwkR-u9nhCs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/virtuallyshocking/~4/SwKlSjMpimo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.brocktice.com/2013/03/25/ar-15-magazine-block-on-defcad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.brocktice.com/2013/03/25/ar-15-magazine-block-on-defcad/</feedburner:origLink></item>
		<item>
		<title>Installing Debian Wheezy (7.0) Linux on the Chromebook Pixel</title>
		<link>http://feedproxy.google.com/~r/virtuallyshocking/~3/U0PPwMBseqA/</link>
		<comments>http://blog.brocktice.com/2013/03/09/running-debian-wheezy-7-0-on-the-chromebook-pixel/#comments</comments>
		<pubDate>Sat, 09 Mar 2013 21:58:30 +0000</pubDate>
		<dc:creator>Brock Tice</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Tools of the Trade]]></category>

		<guid isPermaLink="false">http://blog.brocktice.com/?p=1731</guid>
		<description><![CDATA[UPDATE 2013-04-29 I have created a github for this here. If you have patches please submit pull requests! UPDATE: I continue to update the kernel as more fixes make it into git. You can check all of the Pixel-related files I&#8217;m posting in this Drive folder. UPDATE 2013-03-27: New kernel with fix for the audio [...]]]></description>
				<content:encoded><![CDATA[<h1>UPDATE 2013-04-29</h1>
<p>I have created a github for this <a href="https://github.com/brocktice/pixel_linux">here</a>. If you have patches please submit pull requests!</p>
<h1>UPDATE: I continue to update the kernel as more fixes make it into git. You can check all of the Pixel-related files I&#8217;m posting in <a href="https://docs.google.com/folder/d/0B-HqdeY6UX2FREEtR0t6dnFoSEE/edit?usp=sharing">this Drive folder</a>.</h1>
<h1>UPDATE 2013-03-27: New kernel with fix for the audio pops, see <a href="https://plus.google.com/117057264318218846563/posts/R24kxfnKq6C">my G+ post from today</a>.</h1>
<p>The Chromebook Pixel is a very nice (if expensive) piece of hardware, designed to run Chrome OS, which is a variant of Linux. Since being noted as favored by Linus Torvalds, inventor and lead maintainer of Linux, support for the various Pixel hardware components has rapidly been added to the kernel git repository.</p>
<p>Not everything is working great just yet, but all of the essential features are working. Here&#8217;s a walkthrough that I hope will be sufficient, based almost entirely on other people&#8217;s work and howtos. I&#8217;ll link to those where I can. Several Google software engineers have been helpful on Google+, and a bunch of work has been done by Linux kernel maintainers.</p>
<p>This was my starting point: <a href="https://git.kernel.org/cgit/linux/kernel/git/davem/chromebook_pixel.git/commit/?id=ef96cdc82a71931ce7af14514ea802fef3749127">DaveM&#8217;s howto in his Linux git repo</a></p>
<ol>
<li><a href="http://www.google.com/intl/en/chrome/devices/chromebook-pixel/">Get a chromebook pixel</a></li>
<li><a href="http://www.chromium.org/chromium-os/developer-information-for-chrome-os-devices/chromebook-pixel#TOC-Entering-Developer-Mode1">Enable developer mode</a></li>
<li>Download the Debian Wheezy netinstall image (yes, it supports the wifi in the installer) (<a href="http://cdimage.debian.org/cdimage/wheezy_di_rc1/amd64/iso-cd/debian-wheezy-DI-rc1-amd64-netinst.iso">here</a>)</li>
<li>Boot from the installer (Ctrl-L at boot screen, escape when it says to press escape to choose a boot device, choose your USB drive with the Debian installer)</li>
<li>Install as normal to the internal SSD. I used LVM/encryption and it worked just fine. When you reboot, pull the USB drive and it should boot from the internal SSD.</li>
<li>Once booted, the trackpad will not work. A USB mouse will work just great. Download and install my build of the 3.9-rc1 kernel (<a href="https://docs.google.com/file/d/0B-HqdeY6UX2Fcko3U1otMW44SEU/edit?usp=sharing">.deb files and config</a>, <a href="https://docs.google.com/file/d/0B-HqdeY6UX2FUU1QeE9tX3pZM3M/edit?usp=sharing">full source</a>) built from Linus&#8217; merging of patches and configured with help from <a href="https://plus.google.com/102617628172847077584/posts">Benson Leung</a></li>
<li>To your <code>/etc/modules</code> add:
<pre>
ath9k
atmel_mxt_ts
chromeos_laptop
tpm_tis force=1 interrupts=0
</pre>
<p>Those are the modules for the wifi, the touchpad (both the atmel and chromeos_laptop), and the tpm chip, that to keep it from rebooting when you try to suspend (thanks <a href="https://plus.google.com/109560881064626882142/posts">Duncan Laurie</a>!).
</li>
<li>This is no longer necessary with the updated downloads. <strike>To your <code>/etc/rc.local</code>, above <code>exit 0</code>, add <code>echo TSCR > /proc/acpi/wakeup</code>. This is a hack to keep it from waking right up after going to sleep (thanks, Benson Leung!)</strike></li>
<li>This appears not to be necessary, actually <strike>Create a file called <code>01i8042</code> in <code>/etc/pm/sleep.d</code> to properly sleep and wake the keyboard on suspend. It should have this as its contents.
<pre>
#!/bin/sh

###############################################################################
# Pm-utils script to unbind i8042 on hibernate/suspend and
# bind it on thaw/resume.
#
# Copyright: Copyright (c) 2009 Nicolay Doytchev
# License:   GPL-3
###############################################################################

###############################################################################
# INSTALL:
#   1. Copy this script to /etc/pm/sleep.d/
#   2. Make it executable:
#       sudo chmod +x /etc/pm/sleep.d/01i8042
#
# UNINSTALL:
#   1. Delete the script from /etc/pm/sleep.d/
#       sudo rm /etc/pm/sleep.d/01i8042
###############################################################################

case "$1" in
    hibernate|suspend)
        echo -n "i8042" > /sys/bus/platform/drivers/i8042/unbind
    ;;
    thaw|resume)
        echo -n "i8042" > /sys/bus/platform/drivers/i8042/bind
    ;;
esac
</pre>
<p>Make it executable. Found this <a href="http://ubuntuforums.org/showthread.php?t=1321032&#038;page=5&#038;p=12493784#post12493784">here</a></strike></li>
<li>You may need to install the <code>firmware-atheros</code> package for the bluetooth to work, which may require adding <code>non-free</code> to the end of the <code>deb</code> lines in <code>/etc/apt/sources.list</code></li>
</ol>
<p>I think that&#8217;s it, but it&#8217;s always hard to correctly recreate these things after the fact without redoing it (and I&#8217;ve spent enough time on this already). Let me know if you have any problems or improvements, or go comment on <a href="https://plus.google.com/102150693225130002912/posts/1iFsBWBqoYY">Linus&#8217; G+ post about it.</a></p>
<p>I want to add a special thank-you to Linus Torvalds for posting about his updates on Google+.</p>
<p><b>EDIT: More stuff</b><br />
First, if you hate tap-to-click like me, <a href="https://docs.google.com/file/d/0B-HqdeY6UX2FS1p1NXZJamNVZjA/edit?usp=sharing">here&#8217;s an xorg.conf</a> with the correct dpi setup and multi-finger click.</p>
<p><a href="https://docs.google.com/folder/d/0B-HqdeY6UX2FREEtR0t6dnFoSEE/edit?usp=sharing">Here is a folder</a> containing all the relevant files and info (plus my other configs I decide to upload) discussed in this post and the comments.</p>
<p>Also, FYI the keyboard backlight does not come on after suspend right now.</p>
<p><b>EDIT 2013-03-11 20:33 MDT:</b> By the way, if you run i3 or some other nerdy window manager like me, and you forgot how to make Debian sleep when the lid is closed, you just need to uncomment the appropriate line in <code>/etc/default/acpi-support</code>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=U0PPwMBseqA:eGrkXEHCMt8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=U0PPwMBseqA:eGrkXEHCMt8:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=U0PPwMBseqA:eGrkXEHCMt8:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=U0PPwMBseqA:eGrkXEHCMt8:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?i=U0PPwMBseqA:eGrkXEHCMt8:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=U0PPwMBseqA:eGrkXEHCMt8:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=YwkR-u9nhCs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/virtuallyshocking/~4/U0PPwMBseqA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.brocktice.com/2013/03/09/running-debian-wheezy-7-0-on-the-chromebook-pixel/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		<feedburner:origLink>http://blog.brocktice.com/2013/03/09/running-debian-wheezy-7-0-on-the-chromebook-pixel/</feedburner:origLink></item>
		<item>
		<title>Motivation, Aptitude, and Skill – The Three Facets of Success and Excellence</title>
		<link>http://feedproxy.google.com/~r/virtuallyshocking/~3/44OofGWBcW4/</link>
		<comments>http://blog.brocktice.com/2013/01/11/motivation-aptitude-and-skill-the-three-facets-of-success-and-excellence/#comments</comments>
		<pubDate>Sat, 12 Jan 2013 04:27:39 +0000</pubDate>
		<dc:creator>Brock Tice</dc:creator>
				<category><![CDATA[Entrepreneurship]]></category>
		<category><![CDATA[Lifehacks]]></category>

		<guid isPermaLink="false">http://blog.brocktice.com/?p=1726</guid>
		<description><![CDATA[The title sounds really cheesy, I know, but this is a subject near and dear to my heart. This post has been on my to-do list since at least October of 2011, possibly earlier. I also want to preface this by saying that I don&#8217;t know that this is an original idea &#8212; I don&#8217;t [...]]]></description>
				<content:encoded><![CDATA[<p>The title sounds really cheesy, I know, but this is a subject near and dear to my heart. This post has been on my to-do list since at least October of 2011, possibly earlier. I also want to preface this by saying that I don&#8217;t know that this is an original idea &#8212; I don&#8217;t claim it to be, but last time I looked I couldn&#8217;t find anything tying these three concepts together in this way. I welcome comments pointing me to other, better work.</p>
<p>Disclaimers made, here we go. I think that to succeed in any endeavor, you need three things: motivation, aptitude, and skill. Briefly, I will define these as I think of them.</p>
<ul>
<li><b>Motivation:</b> The inherent drive to do something. This could be for any reason.</li>
<li><b>Aptitude:</b> The inherent or natural ability to do something.</li>
<li><b>Skill:</b> The learned ability to do something.</li>
</ul>
<p>I have the urge to make a triangle diagram, but I&#8217;m going to fight it for now. Basically, you won&#8217;t want to do something unless you are so motivated, which is something of a tautology. You may not be able to unless you have the aptitude. A good example of aptitude is the proverbial one-legged man in the ass-kicking contest. No matter how much he practices, he&#8217;s still going to have a very hard time. Finally, skill is the development that occurs on top of aptitude. There&#8217;s a common misconception that Mozart was simply able to play the piano and compose because he was a whiz. He may have had a ton of aptitude, but he also had a skilled composer and musician for a father, who drilled him from an early age on the skills required to realize that aptitude.</p>
<p>That last point is what really got me thinking about this in the first place. I was a smart kid. I had a lot of aptitude at certain things. I didn&#8217;t learn until I got to college that I&#8217;d never really learned to properly develop a skill to realize that aptitude. I think there&#8217;s a common cultural perception in America, or maybe even the West in general, that some people are just naturally really good at something, and therefore they end up excelling at it. This is a really poisonous notion, because then when people try to realize an idea they become frustrated, decide that they&#8217;re just &#8220;not any good at it&#8221; and quit. Culturally I wish we could shift to really recognize that a skill must be developed in order to realize aptitude. </p>
<p>Let me give you an example that I hope applies to you and will illustrate what you want. It could really apply to any artistic endeavor &#8212; this problem seems to be most manifest with regard to art. If, as a kid or even as an adult, you had a vision of something you wanted to draw, and then you sat down to try to draw it, you probably found that you could not make what was in your head appear on the paper. To me that artistic vision was part of the aptitude, but the skill was missing. Obviously if you were trying, you had the motivation. If you were like me (at least at one point), you may have become frustrated and given up. This is because your motivation was being channeled into merely <i>trying</i>, not developing the necessary skill, perhaps because you believed that you just weren&#8217;t naturally good enough at it. If drawing doesn&#8217;t apply to you, maybe it was playing guitar, or playing basketball, or learning to program.</p>
<p>Before I close this initial essay on this topic, let&#8217;s examine what happens when you only have two of the three components of this triangle-I-will-not-draw:</p>
<ul>
<li><b>Motivation and Aptitude</b>: Skill is lacking, and so as in the example above, this often results in frustration. If you recognize that skill must be developed, then that frustration can be channeled productively.</li>
<li><b>Aptitude and Skill</b>: No motivation, so you never get it done. Could be considered &#8220;wasted talent&#8221;, but there are many good reasons to not be motivated to do something.</li>
<li><b>Motivation and Skill</b>: This is tough. This is the one-legged man in the ass-kicking contest. Like the first situation, it&#8217;s going to lead to frustration. In this case probably the only reasonable response is acceptance.</li>
</ul>
<p>So there you have it, motivation, aptitude and skill. The next post on this topic will probably relate these three concepts to the concept of a &#8220;challenge&#8221;. I welcome additional thoughts as well as criticism.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=44OofGWBcW4:mOjTwNHYkTc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=44OofGWBcW4:mOjTwNHYkTc:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=44OofGWBcW4:mOjTwNHYkTc:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=44OofGWBcW4:mOjTwNHYkTc:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?i=44OofGWBcW4:mOjTwNHYkTc:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=44OofGWBcW4:mOjTwNHYkTc:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=YwkR-u9nhCs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/virtuallyshocking/~4/44OofGWBcW4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.brocktice.com/2013/01/11/motivation-aptitude-and-skill-the-three-facets-of-success-and-excellence/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blog.brocktice.com/2013/01/11/motivation-aptitude-and-skill-the-three-facets-of-success-and-excellence/</feedburner:origLink></item>
		<item>
		<title>Password-protected VNC access to Macs from Linux with more than 8 character passwords</title>
		<link>http://feedproxy.google.com/~r/virtuallyshocking/~3/633jvDIa-Yw/</link>
		<comments>http://blog.brocktice.com/2012/12/13/password-protected-vnc-access-to-macs-from-linux-with-more-than-8-character-passwords/#comments</comments>
		<pubDate>Fri, 14 Dec 2012 00:47:58 +0000</pubDate>
		<dc:creator>Brock Tice</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://blog.brocktice.com/?p=1721</guid>
		<description><![CDATA[The Vinagre VNC viewer included in GNOME on Linux does not currently allow more than 8 characters in a password due to historical limitations of the VNC protocol. Apple has somehow (and I don&#8217;t pretend to understand this) extended the protocol to use both a username and a password, including passwords longer than 8 characters. [...]]]></description>
				<content:encoded><![CDATA[<p>The Vinagre VNC viewer included in GNOME on Linux does not currently allow more than 8 characters in a password due to historical limitations of the VNC protocol.</p>
<p>Apple has somehow (and I don&#8217;t pretend to understand this) extended the protocol to use both a username and a password, including passwords longer than 8 characters. </p>
<p>Someone provided a patch to the Vinagre project to fix this over six months ago, but they blew it off. I went ahead and patched the source and rebuilt the package on my x86_64 Debian Wheezy/Sid system. You can download it from <a href="http://brocktice.com/Files/vinagre_3.4.2-1_amd64.deb">here</a>, and <a href="https://bugzilla.gnome.org/show_bug.cgi?id=652334">go pester the developers</a> to accept the patch in mainline.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=633jvDIa-Yw:vmP0isyja3Q:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=633jvDIa-Yw:vmP0isyja3Q:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=633jvDIa-Yw:vmP0isyja3Q:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=633jvDIa-Yw:vmP0isyja3Q:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?i=633jvDIa-Yw:vmP0isyja3Q:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=633jvDIa-Yw:vmP0isyja3Q:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=YwkR-u9nhCs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/virtuallyshocking/~4/633jvDIa-Yw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.brocktice.com/2012/12/13/password-protected-vnc-access-to-macs-from-linux-with-more-than-8-character-passwords/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.brocktice.com/2012/12/13/password-protected-vnc-access-to-macs-from-linux-with-more-than-8-character-passwords/</feedburner:origLink></item>
		<item>
		<title>Finally I can use my ScanSnap S1500 in Linux!</title>
		<link>http://feedproxy.google.com/~r/virtuallyshocking/~3/IRVOFqUWw7E/</link>
		<comments>http://blog.brocktice.com/2012/10/27/finally-i-can-use-my-scansnap-s1500-in-linux/#comments</comments>
		<pubDate>Sat, 27 Oct 2012 17:41:42 +0000</pubDate>
		<dc:creator>Brock Tice</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Tools of the Trade]]></category>

		<guid isPermaLink="false">http://blog.brocktice.com/?p=1709</guid>
		<description><![CDATA[I have been using Fujitsu ScanSnap double-sided auto-feeding scanner for years. I started with a Mac model (S300M I think? no Windows drivers?) and then moved to a Windows model, the S1500. For the last couple of years I&#8217;ve been running a Windows virtual machine in VMWare Workstation primarily so that I can use my [...]]]></description>
				<content:encoded><![CDATA[<p>I have been using Fujitsu ScanSnap double-sided auto-feeding scanner for years. I started with a Mac model (S300M I think? no Windows drivers?) and then moved to a Windows model, the S1500.</p>
<p>For the last couple of years I&#8217;ve been running a Windows virtual machine in VMWare Workstation primarily so that I can use my scanner and the included OCR features (turn scans into text).</p>
<p>Recently, I&#8217;ve been having a lot of trouble with VMWare Workstation, and I run libvirt/qemu-kvm on my web server, so I decided to try it on my workstation as well. It works pretty well for Windows 7, not a fast as VMWare when it worked properly, but the scanner will not function correctly using it.</p>
<p>Last time I looked into using the S1500 on Linux I found almost nothing. I could scan stuff but it wasn&#8217;t very useful for a paperless office workflow, the whole reason I have such a scanner.   </p>
<p>I am happy to say that, on Debian Wheezy/Sid, gscan2pdf with the libsane-perl backend and tesseract for OCR seem to work nicely. Some caveats:</p>
<ul>
<li>I downloaded the newest version of gscan2pdf and installed it. At the moment that is 1.0.6.</li>
<li>The &#8216;Page Options&#8217; tab of the &#8216;Scan Document&#8217; window only works properly when I choose options that don&#8217;t make much sense. I selected &#8216;ADF Duplex&#8217; in the &#8216;Standard&#8217; tab, and then in the &#8216;Source document&#8217; section of the &#8216;Page Options&#8217; tab, I have selected &#8216;Single-sided&#8217; and &#8216;Side to scan: Facing&#8217;. Otherwise, the page numbers come out strange. I do still get double-sided scanning, though.</li>
</ul>
<p>I couldn&#8217;t find a lot about this on the web, so I hope it helps someone else in my position. Happy scanning!</p>
<p><b>EDIT 2012-10-28</b> Strangely enough, I was able to get the scanner working just fine in my Windows VM using Spice USB redirection. It&#8217;s good to have the fallback, but I&#8217;ll try to stick with Linux, it&#8217;s much more convenient and removes a dependency.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=IRVOFqUWw7E:LvjQKFSW1o4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=IRVOFqUWw7E:LvjQKFSW1o4:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=IRVOFqUWw7E:LvjQKFSW1o4:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=IRVOFqUWw7E:LvjQKFSW1o4:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?i=IRVOFqUWw7E:LvjQKFSW1o4:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=IRVOFqUWw7E:LvjQKFSW1o4:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=YwkR-u9nhCs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/virtuallyshocking/~4/IRVOFqUWw7E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.brocktice.com/2012/10/27/finally-i-can-use-my-scansnap-s1500-in-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://blog.brocktice.com/2012/10/27/finally-i-can-use-my-scansnap-s1500-in-linux/</feedburner:origLink></item>
		<item>
		<title>Melatonin for Jet Lag: The short and simple answer.</title>
		<link>http://feedproxy.google.com/~r/virtuallyshocking/~3/easfSjCoM6k/</link>
		<comments>http://blog.brocktice.com/2012/10/09/melatonin-for-jet-lag-the-short-and-simple-answer/#comments</comments>
		<pubDate>Tue, 09 Oct 2012 23:29:08 +0000</pubDate>
		<dc:creator>Brock Tice</dc:creator>
				<category><![CDATA[Lifehacks]]></category>
		<category><![CDATA[Medicine]]></category>
		<category><![CDATA[Science]]></category>
		<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://blog.brocktice.com/?p=1707</guid>
		<description><![CDATA[I am going to be doing a few red-eye flights in the near future, to time zones far from my own. I decided to review the scientific recommendations around melatonin for jet lag. Unfortunately, most of the articles that have the needed information are behind paywalls, so I bit the bullet and bought a review [...]]]></description>
				<content:encoded><![CDATA[<p>I am going to be doing a few red-eye flights in the near future, to time zones far from my own. I decided to review the scientific recommendations around melatonin for jet lag. Unfortunately, most of the articles that have the needed information are behind paywalls, so I bit the bullet and bought a review article. Now I can share the important information with you, dear readers. Here it is:</p>
<ul>
<li>Take 2-5 mg of fast-dissolving or liquid melatonin about 30 minutes before sleep.</li>
<li>Do this when you&#8217;re ready to sleep on the red-eye flight</li>
<li>Do this every day at your destination for the first 3-4 days</li>
<li>Maybe avoid caffeine and alcohol</li>
<li>Do NOT take melatonin earlier in the day, or at any other day or time beside what is listed above. This includes not taking any in the days before your flight.</li>
<li>Try to get dark when you should be sleeping and light when you should be awake (by the time zone you&#8217;re adjusting to).</li>
</ul>
<p>That&#8217;s it. Lots of long-winded discussion exists on the internet. Many abstracts tease at this information but don&#8217;t give it. But now you have it. Happy travels.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=easfSjCoM6k:_7zM44wYDKg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=easfSjCoM6k:_7zM44wYDKg:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=easfSjCoM6k:_7zM44wYDKg:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=easfSjCoM6k:_7zM44wYDKg:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?i=easfSjCoM6k:_7zM44wYDKg:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/virtuallyshocking?a=easfSjCoM6k:_7zM44wYDKg:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/virtuallyshocking?d=YwkR-u9nhCs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/virtuallyshocking/~4/easfSjCoM6k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.brocktice.com/2012/10/09/melatonin-for-jet-lag-the-short-and-simple-answer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.brocktice.com/2012/10/09/melatonin-for-jet-lag-the-short-and-simple-answer/</feedburner:origLink></item>
	</channel>
</rss>
