<?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>Chris Pitzer &#187; linux</title>
	<atom:link href="http://blog.christopherpitzer.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.christopherpitzer.com</link>
	<description>web development, games, business, optimism</description>
	<lastBuildDate>Tue, 09 Feb 2010 22:50:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ssh-copy-id</title>
		<link>http://blog.christopherpitzer.com/2010/ssh-copy-id/</link>
		<comments>http://blog.christopherpitzer.com/2010/ssh-copy-id/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 22:44:53 +0000</pubDate>
		<dc:creator>Christopher Pitzer</dc:creator>
				<category><![CDATA[how-to]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.christopherpitzer.com/?p=91</guid>
		<description><![CDATA[ssh-copy-id is a great little bash script.  Basically, you run:

ssh-copy-id myuser@someserver.com

And ssh-copy-id will copy your public key into the authorized_keys  file of your user on that remote system.  From now on when you ssh to  that system, you won&#8217;t need to enter a password.
The only problem is, the site that used to host [...]]]></description>
			<content:encoded><![CDATA[<p>ssh-copy-id is a great little bash script.  Basically, you run:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ssh-copy-id myuser<span style="color: #000000; font-weight: bold;">@</span>someserver.com</pre></div></div>

<p>And ssh-copy-id will copy your public key into the authorized_keys  file of your user on that remote system.  From now on when you ssh to  that system, you won&#8217;t need to enter a password.</p>
<p>The only problem is, the site that used to host the ssh-copy-id script has gone down.  I can&#8217;t find it anywhere any more.  So&#8230; I&#8217;m  going to put it up here!  Enjoy!</p>
<p>To install ssh-copy-id on Linux or Mac:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>blog.christopherpitzer.com<span style="color: #000000; font-weight: bold;">/</span>wp-content<span style="color: #000000; font-weight: bold;">/</span>uploads<span style="color: #000000; font-weight: bold;">/</span>ssh-copy-id <span style="color: #660033;">-O</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ssh-copy-id
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> +x <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ssh-copy-id</pre></div></div>

<p>That&#8217;s it.  Have fun.  Here are <a href="http://man-wiki.net/index.php/1:ssh-copy-id">the docs</a> if you&#8217;d like some more reading.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.christopherpitzer.com/2010/ssh-copy-id/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Timebook &#8211; command line time tracking</title>
		<link>http://blog.christopherpitzer.com/2009/timebook-command-line-time-tracking/</link>
		<comments>http://blog.christopherpitzer.com/2009/timebook-command-line-time-tracking/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 00:10:53 +0000</pubDate>
		<dc:creator>Christopher Pitzer</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://blog.christopherpitzer.com/?p=62</guid>
		<description><![CDATA[What is Timebook?
Timebook is a command line utility that tracks your time without costing you any of it.
Preface
There are a few time tracking tools out there.  I&#8217;ve used SlimTimer in the past, but having an extra window open is a pain, especially a browser window.  As much as I love Firefox, I don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<h3>What is Timebook?</h3>
<p><a href="http://bitbucket.org/trevor/timebook/">Timebook</a> is a command line utility that tracks your time without costing you any of it.</p>
<h3>Preface</h3>
<p>There are a few time tracking tools out there.  I&#8217;ve used <a href="http://slimtimer.com/">SlimTimer</a> in the past, but having an extra window open is a pain, especially a browser window.  As much as I love <a href="http://getfirefox.com">Firefox</a>, I don&#8217;t want my paycheck to count on it not crashing.</p>
<p>So, I usually end up keeping a big Google Docs spreadsheet.  I have different pages for different clients and columns for date, task, clock in time, clock out time, etc.  It&#8217;s not a bad system, but it means clocking in takes me 30 seconds.  Too much overhead.</p>
<p>So I was talking to <a href="http://bitbucket.org/trevor/timebook/">Trevor</a> about two weeks ago, and mentioned my frustration.  &#8220;I wish there was a way I could track time by just entering &#8220;timer start &#8216;client&#8217; &#8216;task-description&#8217; on the command line.&#8221;  He shot me a link to a python script he&#8217;s been using for a few years that does just that (though the syntax is a little different)!  And ever since, we&#8217;ve been refining it and adding features.  I find it incredibly useful &#8211; take a look!</p>
<h3>Using Timebook</h3>
<p>First, let&#8217;s take a look at the Timebook commands.  Note that the base for timebook is &#8220;t&#8221; and you can use 1 letter shortcuts for every one of the timebook commands.  So in the examples below, I&#8217;m going to use &#8220;t s&#8221; instead of &#8220;t switch&#8221;, etc.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ t <span style="color: #660033;">--help</span>
Usage: t <span style="color: #7a0874; font-weight: bold;">&#91;</span>OPTIONS<span style="color: #7a0874; font-weight: bold;">&#93;</span> COMMAND <span style="color: #7a0874; font-weight: bold;">&#91;</span>ARGS...<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
where COMMAND is one of:
    alter - alter the description of the active period
    backend - open an the backend´s interactive shell
    display - display the current timesheet
    format - <span style="color: #7a0874; font-weight: bold;">export</span> a sheet to csv format
    <span style="color: #000000; font-weight: bold;">in</span> - start the timer <span style="color: #000000; font-weight: bold;">for</span> the current timesheet
    <span style="color: #c20cb9; font-weight: bold;">kill</span> - delete a timesheet
    list - show the available timesheets
    now - show the status of the current timesheet
    out - stop the timer <span style="color: #000000; font-weight: bold;">for</span> the current timesheet
    running - show all running timesheets
    switch - switch to a new timesheet</pre></div></div>

<p>Timebook will start you off on a timesheet called &#8220;default&#8221;.  You&#8217;ll probably want to have different timesheets for different groups of tasks; say, different clients.  Let&#8217;s say you have one for your client Acme.  Switch to the Acme timesheet like this (it will be created as you start using it).</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ t s Acme</pre></div></div>

<p>Now let&#8217;s say you&#8217;re going to spend an hour tightening widgets.  Punch in like this.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ t i tightening widgets</pre></div></div>

<p>Pretty easy!  Let&#8217;s say you&#8217;ve been working for a while and you wanted to be reminded what task you were on and how long you&#8217;d been on it.  Try this command.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ t
Acme: <span style="color: #000000;">0</span>:<span style="color: #000000;">40</span>:<span style="color: #000000;">48</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>tightening widgets<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>Clock out like this.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ t o</pre></div></div>

<p>Now let&#8217;s start a new task, and display our timesheet so far.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ t i running errands
$ t d
Timesheet Acme:
Day            Start      End        Duration   Notes
Mar <span style="color: #000000;">19</span>, <span style="color: #000000;">2009</span>   <span style="color: #000000;">14</span>:<span style="color: #000000;">47</span>:<span style="color: #000000;">59</span> - <span style="color: #000000;">16</span>:<span style="color: #000000;">30</span>:<span style="color: #000000;">28</span>   <span style="color: #000000;">1</span>:<span style="color: #000000;">42</span>:<span style="color: #000000;">29</span>    tightening widgets
               <span style="color: #000000;">16</span>:<span style="color: #000000;">30</span>:<span style="color: #000000;">33</span> -            <span style="color: #000000;">0</span>:00:03    running errands
                                     <span style="color: #000000;">1</span>:<span style="color: #000000;">42</span>:<span style="color: #000000;">32</span>    
Total                                <span style="color: #000000;">1</span>:<span style="color: #000000;">42</span>:<span style="color: #000000;">32</span></pre></div></div>

<p>Play around with some of the other commands.  You can list your timesheets, display which ones are active, export your timesheet (even given a particular date range) as a csv (hopefully soon an excel doc).</p>
<p>Lots of fun stuff to play with.  And it&#8217;s definitely the lightest weight timekeeping app I know of.</p>
<h3>Installing Timebook</h3>
<p><strong>Linux</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mercurial <span style="color: #666666; font-style: italic;"># if you don't already have mercurial</span>
$ hg clone http:<span style="color: #000000; font-weight: bold;">//</span>hg<span style="color: #000000; font-weight: bold;">@</span>bitbucket.org<span style="color: #000000; font-weight: bold;">/</span>trevor<span style="color: #000000; font-weight: bold;">/</span>timebook<span style="color: #000000; font-weight: bold;">/</span>
$ <span style="color: #7a0874; font-weight: bold;">cd</span> timebook 
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> python setup.py <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p><strong>Windows</strong><br />
coming soon<br />
<strong>OS X</strong><br />
First get mercurial.  Here&#8217;s one option: <a href="http://mercurial.berkwood.com/">http://mercurial.berkwood.com/</a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ hg clone http:<span style="color: #000000; font-weight: bold;">//</span>hg<span style="color: #000000; font-weight: bold;">@</span>bitbucket.org<span style="color: #000000; font-weight: bold;">/</span>trevor<span style="color: #000000; font-weight: bold;">/</span>timebook<span style="color: #000000; font-weight: bold;">/</span>
$ <span style="color: #7a0874; font-weight: bold;">cd</span> timebook 
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> python setup.py <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.christopherpitzer.com/2009/timebook-command-line-time-tracking/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>turn off trackpad taps while typing</title>
		<link>http://blog.christopherpitzer.com/2008/turn-off-trackpad-taps-while-typing/</link>
		<comments>http://blog.christopherpitzer.com/2008/turn-off-trackpad-taps-while-typing/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 20:35:33 +0000</pubDate>
		<dc:creator>Christopher Pitzer</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.christopherpitzer.com/?p=23</guid>
		<description><![CDATA[So I have this Macbook I&#8217;m running Ubuntu 8.10 on.  I have taps turned on as a way to click on things because that&#8217;s my general preference&#8230; but it can get me in trouble.  The thing about Macbooks is that they have huge trackpads.  It&#8217;s pretty easy to touch the trackpad while you&#8217;re typing, which [...]]]></description>
			<content:encoded><![CDATA[<p>So I have this Macbook I&#8217;m running Ubuntu 8.10 on.  I have taps turned on as a way to click on things because that&#8217;s my general preference&#8230; but it can get me in trouble.  The thing about Macbooks is that they have huge trackpads.  It&#8217;s pretty easy to touch the trackpad while you&#8217;re typing, which will cause you to jump around mid-sentence.  Annoying.</p>
<p>Wouldn&#8217;t it be nice if we could disable touchpad taps while typing?</p>
<p>Here we go&#8230; from the terminal, try out this command:</p>
<blockquote><p>syndaemon -dti 1</p></blockquote>
<p>That will turn off tapping on the keypad for 1 second each time you press a key on the keyboard. What do those flags mean?</p>
<blockquote><p>-d    Start the process as a daemon (in the background)</p>
<p>-t    Only disable tapping, not mouse movements.</p>
<p>-i #  how many seconds to disable tapping after the last keypress.</p></blockquote>
<p>So, play with it and figure out your preferred settings.  1 second?  2 seconds?  When you are happy with how you have it set up, go to <span style="color: black;"> <strong>System -&gt; Preferences -&gt; Sessions</strong> (in Ubuntu) and add the command so it will run every time you start your computer.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.christopherpitzer.com/2008/turn-off-trackpad-taps-while-typing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu&#8217;s crappie fonts</title>
		<link>http://blog.christopherpitzer.com/2008/ubuntus-crappie-fonts/</link>
		<comments>http://blog.christopherpitzer.com/2008/ubuntus-crappie-fonts/#comments</comments>
		<pubDate>Sun, 17 Aug 2008 20:41:02 +0000</pubDate>
		<dc:creator>Christopher Pitzer</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[web-development]]></category>

		<guid isPermaLink="false">http://blog.christopherpitzer.com/?p=19</guid>
		<description><![CDATA[If you develop websites on Ubuntu, you may have noticed the horrible fonts it uses.  You want Times New Roman?  It gives you some quasi Courier-New mutant.  Microsoft&#8217;s Truetype fonts, though free, are not open source, so Ubuntu cannot offer them as part of its default package.
You can, however, install them yourself.
sudo apt-get install msttcorefonts
That&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>If you develop websites on Ubuntu, you may have noticed the horrible fonts it uses.  You want Times New Roman?  It gives you some quasi Courier-New mutant.  Microsoft&#8217;s Truetype fonts, though free, are not open source, so Ubuntu cannot offer them as part of its default package.</p>
<p>You can, however, install them yourself.</p>
<blockquote><p>sudo apt-get install msttcorefonts</p></blockquote>
<p>That&#8217;s it!  Reboot your browser and you will now see fonts (at least the common ones) the way the rest of the world does.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.christopherpitzer.com/2008/ubuntus-crappie-fonts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
