<?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>REVERT TO CONSOLE &#187; Linux</title>
	<atom:link href="http://www.reverttoconsole.com/blog/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.reverttoconsole.com</link>
	<description>for f in *;do echo &#124; sed &#039;i\rtc&#039; &#62;&#62; $f;done; java programming et al</description>
	<lastBuildDate>Thu, 25 Aug 2011 15:02:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Twitter Mode for Emacs &#8211; With OAuth</title>
		<link>http://www.reverttoconsole.com/blog/linux/twitter-mode-for-emacs-with-oauth/</link>
		<comments>http://www.reverttoconsole.com/blog/linux/twitter-mode-for-emacs-with-oauth/#comments</comments>
		<pubDate>Wed, 22 Sep 2010 15:12:41 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[cygwin]]></category>

		<guid isPermaLink="false">http://www.reverttoconsole.com/?p=639</guid>
		<description><![CDATA[Twitter&#8217;s recent removal of basic authentication eliminated the ability to use quick and dirty methods of posting tweets and viewing timelines, such as via the command-line with cURL. There is one twitter mode, twitel.el, that I had already been using. Supposedly it can handle OAuth through the emacs-oauth package, with some minor custom tweaks to [...]]]></description>
			<content:encoded><![CDATA[<p>Twitter&#8217;s recent removal of basic authentication eliminated the ability to use quick and dirty methods of posting tweets and viewing timelines, such as via the command-line with cURL.  There is one twitter mode, <a href="http://www.busydoingnothing.co.uk/twitel/">twitel.el</a>, that I had already been using. Supposedly it can handle OAuth through the <a href="http://github.com/psanford/emacs-oauth/">emacs-oauth</a> package, with some minor custom tweaks to the oauth.el file.  Unfortunately, I was unable to get this to work.</p>
<p>Then I found <a href="http://www.emacswiki.org/emacs/TwitteringMode">twittering-mode.el</a>.</p>
<p>This is a cakewalk to install and use!</p>
<p>You simply need to follow the few basic instructions from the wiki here: <a href="http://www.emacswiki.org/emacs/TwitteringMode">http://www.emacswiki.org/emacs/TwitteringMode</a></p>
<p>When you run twittering-mode for the first time, you will be prompted to login to the twmode twitter app (via a browser).  Enter your credentials and you will receive a pin, which you will then enter into the next prompt from the mode.  The OAuth authentication requirements are satisfied by use of the twmode twitter app.</p>
<p>Easy peasy, as some of you would probably say.</p>
<p>UPDATE</p>
<p>To avoid repeatedly retrieving and entering a pin, you can store the encrypted tokens in a local file by enabling:<br />
(setq twittering-use-master-password t)</p>
<p>At this time, you need to download the latest .el file (from the HEAD branch) in order to get this to work:<br />
<a href="http://github.com/hayamiz/twittering-mode/raw/master/twittering-mode.el">http://github.com/hayamiz/twittering-mode/raw/master/twittering-mode.el</a></p>
<p>Enter the mode and follow the prompts to set the master password.</p>
<p>Then, instead of needing to get and enter pins from the twmode twitter app, you simply enter the master password.</p>
<p>For more info on this, see <a href="http://github.com/hayamiz/twittering-mode/blob/master/NEWS">http://github.com/hayamiz/twittering-mode/blob/master/NEWS</a>.</p>
<p>Cheers!</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Ftwitter-mode-for-emacs-with-oauth%2F&amp;title=Twitter+Mode+for+Emacs+%26%238211%3B+With+OAuth" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Ftwitter-mode-for-emacs-with-oauth%2F&amp;title=Twitter+Mode+for+Emacs+%26%238211%3B+With+OAuth" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Ftwitter-mode-for-emacs-with-oauth%2F&amp;title=Twitter+Mode+for+Emacs+%26%238211%3B+With+OAuth" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Ftwitter-mode-for-emacs-with-oauth%2F&amp;title=Twitter+Mode+for+Emacs+%26%238211%3B+With+OAuth" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Ftwitter-mode-for-emacs-with-oauth%2F&amp;title=Twitter+Mode+for+Emacs+%26%238211%3B+With+OAuth', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Ftwitter-mode-for-emacs-with-oauth%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Ftwitter-mode-for-emacs-with-oauth%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Ftwitter-mode-for-emacs-with-oauth%2F&amp;title=Twitter+Mode+for+Emacs+%26%238211%3B+With+OAuth" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Ftwitter-mode-for-emacs-with-oauth%2F&amp;title=Twitter+Mode+for+Emacs+%26%238211%3B+With+OAuth" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.reverttoconsole.com/blog/linux/twitter-mode-for-emacs-with-oauth/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Gnus, Emacs, and Gmail; Getting Started</title>
		<link>http://www.reverttoconsole.com/blog/linux/gnus-emacs-and-gmail-getting-started/</link>
		<comments>http://www.reverttoconsole.com/blog/linux/gnus-emacs-and-gmail-getting-started/#comments</comments>
		<pubDate>Mon, 20 Sep 2010 00:02:04 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.reverttoconsole.com/?p=622</guid>
		<description><![CDATA[I&#8217;ve wanted to set up gnus for email for quite a while, but each time I look at the documentation I find it irritating. The fact is there is a ton of documentation, but all of what I&#8217;ve found requires a lot of background knowledge that I don&#8217;t have. But I finally broke through, setting [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve wanted to set up <a href="http://www.gnus.org/">gnus</a> for <a href="http://www.emacswiki.org/emacs/GnusGmail">email</a> for quite a while, but each time I look at the documentation I find it irritating. The fact is there is a ton of documentation, but all of what I&#8217;ve found requires a lot of background knowledge that I don&#8217;t have.</p>
<p>But I finally broke through, setting up gnus in my work cygwin environment.</p>
<p>This is probably not going to be the best tutorial I&#8217;ve ever written. But it follows my preferred method for learning- start with a working setup, and then figure out how it works. This is different than much of what I see for gnus documentation- which provides some vague concepts and equally vague configuration details. So this will get you started, but you&#8217;re going to have to figure out why it works the way it does, and how to improve this setup, just as I am.</p>
<p>Here are the steps I&#8217;ve taken:</p>
<p>Via cygwin, I installed emacs 23.2-1 and gnutls-2.8.6-1</p>
<p>I added this to my <a href="http://github.com/ehemminger/emacs-">emacs config</a>. I saw some instructions that suggested you could put this in gnus.el, but when I did that gnus broke without a useful error message.</p>
<p><script src="http://gist.github.com/587249.js?file=emacs-gnus"></script></p>
<p>Open up emacs, start gnus with M-x gnus</p>
<p>It takes a while to start up. I get an &#8220;unable to open server nntp+news, go offline? I respond n</p>
<p>nntp (news) open error: &#8221;. Continue? I respond y</p>
<p>Gnus auto save file exists. Do you want to read it? I respond y</p>
<p>Next I should see some debug output when it goes to get your mail from gmail.</p>
<p>I can see it downloads some mail. </p>
<p>Next gnus displays a set of newsgroups, including some help messages I did not find helpful at all. </p>
<p>To find your mail, enter &#8220;B&#8221;, this will prompt you for &#8220;Which back end:&#8221; type nnml. It will prompt for &#8220;Address:&#8221; hit enter.</p>
<p>You will see a group &#8220;mail.misc&#8221;, this is your email. Hit enter to view the list of mail downloaded.</p>
<p>typing &#8216;m&#8217; will prompt you to create an email. Fill out the fields and when you&#8217;re finished, type C-c C-c to send. Sending will prompt you for your password.</p>
<p>That&#8217;s all for now.</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fgnus-emacs-and-gmail-getting-started%2F&amp;title=Gnus%2C+Emacs%2C+and+Gmail%3B+Getting+Started" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fgnus-emacs-and-gmail-getting-started%2F&amp;title=Gnus%2C+Emacs%2C+and+Gmail%3B+Getting+Started" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fgnus-emacs-and-gmail-getting-started%2F&amp;title=Gnus%2C+Emacs%2C+and+Gmail%3B+Getting+Started" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fgnus-emacs-and-gmail-getting-started%2F&amp;title=Gnus%2C+Emacs%2C+and+Gmail%3B+Getting+Started" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fgnus-emacs-and-gmail-getting-started%2F&amp;title=Gnus%2C+Emacs%2C+and+Gmail%3B+Getting+Started', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fgnus-emacs-and-gmail-getting-started%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fgnus-emacs-and-gmail-getting-started%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fgnus-emacs-and-gmail-getting-started%2F&amp;title=Gnus%2C+Emacs%2C+and+Gmail%3B+Getting+Started" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fgnus-emacs-and-gmail-getting-started%2F&amp;title=Gnus%2C+Emacs%2C+and+Gmail%3B+Getting+Started" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.reverttoconsole.com/blog/linux/gnus-emacs-and-gmail-getting-started/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Subversion, JavaHL, and Eclipse on Linux</title>
		<link>http://www.reverttoconsole.com/blog/linux/subversion-javahl-and-eclipse-on-linux/</link>
		<comments>http://www.reverttoconsole.com/blog/linux/subversion-javahl-and-eclipse-on-linux/#comments</comments>
		<pubDate>Sat, 10 Jul 2010 12:40:00 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.reverttoconsole.com/?p=589</guid>
		<description><![CDATA[I normally use emacs and command line svn when working at home on Linux. Eclipse to me, in principle, is a necessary evil of programming with larger groups. But a recent volunteer project I&#8217;ve been working on for the Philippine Scholars of Minnesota is forcing me out of this habit. And with this change, I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>I normally use emacs and command line svn when working at home on Linux. Eclipse to me, in principle, is a necessary evil of programming with larger groups. But a recent volunteer project I&#8217;ve been working on for the <a href="http://www.philippinescholars.org/">Philippine Scholars of Minnesota</a> is forcing me out of this habit.</p>
<p>And with this change, I&#8217;ve suddenly been introduced to the world of <a href="http://subclipse.tigris.org/wiki/JavaHL">JavaHL</a>. So what is JavaHL? Per the previous link, it&#8217;s the Java language binding for the Subversion API. On Windows the subclipse project is able to package JavaHL, but not on other operating systems. So that&#8217;s why I&#8217;ve never had to deal with it before.</p>
<p>Fortunately, after finding out what JavaHL actually is, it&#8217;s pretty easy to install on Ubuntu, as you might expect:</p>
<pre>
sudo apt-get install libsvn-java
</pre>
<p>This will install JavaHL to /usr/lib/jni as a standard install, and this is where eclipse will look for it by default. If you&#8217;ve installed it in a non-standard way, you might want to look at <a href="http://islandlinux.org/howto/installing-javahl-subclipseeclipse-ubuntu">this link</a> regarding overwriting the java.library.path with an eclipserc file.</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsubversion-javahl-and-eclipse-on-linux%2F&amp;title=Subversion%2C+JavaHL%2C+and+Eclipse+on+Linux" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsubversion-javahl-and-eclipse-on-linux%2F&amp;title=Subversion%2C+JavaHL%2C+and+Eclipse+on+Linux" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsubversion-javahl-and-eclipse-on-linux%2F&amp;title=Subversion%2C+JavaHL%2C+and+Eclipse+on+Linux" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsubversion-javahl-and-eclipse-on-linux%2F&amp;title=Subversion%2C+JavaHL%2C+and+Eclipse+on+Linux" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsubversion-javahl-and-eclipse-on-linux%2F&amp;title=Subversion%2C+JavaHL%2C+and+Eclipse+on+Linux', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsubversion-javahl-and-eclipse-on-linux%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsubversion-javahl-and-eclipse-on-linux%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsubversion-javahl-and-eclipse-on-linux%2F&amp;title=Subversion%2C+JavaHL%2C+and+Eclipse+on+Linux" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsubversion-javahl-and-eclipse-on-linux%2F&amp;title=Subversion%2C+JavaHL%2C+and+Eclipse+on+Linux" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.reverttoconsole.com/blog/linux/subversion-javahl-and-eclipse-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Syncing IPod in Linux</title>
		<link>http://www.reverttoconsole.com/blog/linux/syncing-ipod-in-linux/</link>
		<comments>http://www.reverttoconsole.com/blog/linux/syncing-ipod-in-linux/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 13:29:43 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.reverttoconsole.com/?p=583</guid>
		<description><![CDATA[A colleague recently pointed me to an article about syncing my ipod with a Linux box. The article is good but my experience getting this to work was sufficiently different enough to warrant another post. My first issue came with Step 1: sudo add-apt-repository ppa:pmcenery/ppa This issue I had was that the keyserver was down. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://colinharrington.net/blog/">A colleague</a> recently pointed me to <a href="http://www.taranfx.com/sync-iphone-linux">an article</a> about syncing my ipod with a Linux box. The article is good but my experience getting this to work was sufficiently different enough to warrant another post.</p>
<p>My first issue came with Step 1:</p>
<pre>
sudo add-apt-repository ppa:pmcenery/ppa
</pre>
<p>This issue I had was that the keyserver was down. This may not always be a problem, but based on a few google searches it&#8217;s hardly an uncommon problem.<br />
I found my solution with <a href="http://www.webupd8.org/2009/11/what-to-do-when-keyserverubuntucom-is.html">this article</a>:</p>
<pre>
sudo sh -c "echo 'deb http://ppa.launchpad.net/PPA_NAME/ppa/ubuntu UBUNTU_VERSION main' >> /etc/apt/sources.list"
sudo apt-key adv --keyserver keys.gnupg.net --recv-keys XXXXXXX
</pre>
<p>My next issue was with Step 2:</p>
<pre>
sudo apt-get install gvfs gvfs-backends gvfs-bin gvfs-fuse libgvfscommon0 ifuse libgpod-dev libgpod-common libiphone-utils libiphone0 python-iphone libplist++1 libplist-utils python-plist libusb-1.0-0 libusb-1.0-0-dev libusbmuxd1 usbmuxd
</pre>
<p>I replaced libiphone-utils with libimobiledevice-utils, and removed python-iphone from the list.</p>
<p>And lastly, Step 5:<br />
I created /mnt/ipod</p>
<pre>
mkdir -p /mnt/ipod
</pre>
<p>and made it sufficiently writable. I did not need to do anything else in this step!</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsyncing-ipod-in-linux%2F&amp;title=Syncing+IPod+in+Linux" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsyncing-ipod-in-linux%2F&amp;title=Syncing+IPod+in+Linux" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsyncing-ipod-in-linux%2F&amp;title=Syncing+IPod+in+Linux" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsyncing-ipod-in-linux%2F&amp;title=Syncing+IPod+in+Linux" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsyncing-ipod-in-linux%2F&amp;title=Syncing+IPod+in+Linux', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsyncing-ipod-in-linux%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsyncing-ipod-in-linux%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsyncing-ipod-in-linux%2F&amp;title=Syncing+IPod+in+Linux" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsyncing-ipod-in-linux%2F&amp;title=Syncing+IPod+in+Linux" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.reverttoconsole.com/blog/linux/syncing-ipod-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Sup on Ubuntu Server 8.04 LTS</title>
		<link>http://www.reverttoconsole.com/blog/linux/installing-sup-on-ubuntu-server-8-04-lts/</link>
		<comments>http://www.reverttoconsole.com/blog/linux/installing-sup-on-ubuntu-server-8-04-lts/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 12:37:48 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.reverttoconsole.com/?p=558</guid>
		<description><![CDATA[This is not a complete step-by-step set of instructions, but it should be pretty close. sudo apt-get install ruby-full build-essential wget http://rubyforge.org/frs/download.php/69365/rubygems-1.3.6.tgz tar -zxvf rubygems-1.3.6.tgz cd rubygems-1.3.6/ sudo ruby setup.rb sudo ln -s /usr/bin/gem1.8 /usr/bin/gem sudo gem update --system sudo gem install rake sudo apt-get install zlib1g-dev uuid-dev sudo gem install ncursesw # We need [...]]]></description>
			<content:encoded><![CDATA[<p>This is not a complete step-by-step set of instructions, but it should be pretty close.</p>
<pre>
sudo apt-get install ruby-full build-essential

wget http://rubyforge.org/frs/download.php/69365/rubygems-1.3.6.tgz
 tar -zxvf rubygems-1.3.6.tgz
 cd rubygems-1.3.6/
 sudo ruby setup.rb
 sudo ln -s /usr/bin/gem1.8 /usr/bin/gem
 sudo gem update --system
sudo gem install rake

sudo apt-get install zlib1g-dev uuid-dev

sudo gem install ncursesw

 # We need this extra package
 sudo apt-get install libncurses5-dev libncursesw5-dev
 sudo gem install sup
 sup
</pre>
<p><a href="http://rubyforge.org/pipermail/sup-talk/2010-March/003902.html">Also had to make one code change, described here</a></p>
<pre>
#optional
#installed offlineimap
sudo apt-get install offlineimap
</pre>
<p><strong>Links</strong><br />
<a href="http://sup.rubyforge.org/wiki/wiki.pl?Debian/Ubuntu_Hints">Sup RubyForge Wiki</a><br />
<a href="http://taint.org/2009/12/18/005520a.html">Use offlineimap with gmail &#8211; add some hooks</a><br />
<a href="http://www.enigmacurry.com/category/gmail/">Setting up offlineimap for gmail backup</a><br />
<a href="http://sup.rubyforge.org/wiki/wiki.pl?AddingSources">handy script examples to add sources</a></p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Finstalling-sup-on-ubuntu-server-8-04-lts%2F&amp;title=Installing+Sup+on+Ubuntu+Server+8.04+LTS" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Finstalling-sup-on-ubuntu-server-8-04-lts%2F&amp;title=Installing+Sup+on+Ubuntu+Server+8.04+LTS" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Finstalling-sup-on-ubuntu-server-8-04-lts%2F&amp;title=Installing+Sup+on+Ubuntu+Server+8.04+LTS" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Finstalling-sup-on-ubuntu-server-8-04-lts%2F&amp;title=Installing+Sup+on+Ubuntu+Server+8.04+LTS" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Finstalling-sup-on-ubuntu-server-8-04-lts%2F&amp;title=Installing+Sup+on+Ubuntu+Server+8.04+LTS', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Finstalling-sup-on-ubuntu-server-8-04-lts%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Finstalling-sup-on-ubuntu-server-8-04-lts%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Finstalling-sup-on-ubuntu-server-8-04-lts%2F&amp;title=Installing+Sup+on+Ubuntu+Server+8.04+LTS" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Finstalling-sup-on-ubuntu-server-8-04-lts%2F&amp;title=Installing+Sup+on+Ubuntu+Server+8.04+LTS" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.reverttoconsole.com/blog/linux/installing-sup-on-ubuntu-server-8-04-lts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Processes: Bash vs. Python &#8211; &#8220;A No-Brainer&#8221;</title>
		<link>http://www.reverttoconsole.com/blog/linux/simple-tasks-bash-vs-python-a-no-brainer/</link>
		<comments>http://www.reverttoconsole.com/blog/linux/simple-tasks-bash-vs-python-a-no-brainer/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 05:15:19 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[xmms2 scripts track length]]></category>

		<guid isPermaLink="false">http://www.reverttoconsole.com/?p=535</guid>
		<description><![CDATA[I haven&#8217;t posted in about 5 billion years. Well, it seems like that anyway. As I sit here partying with my laptop on a Friday night, I&#8217;ve been wondering how to display the track length of the current track that xmms2 is playing, without having to use the &#8220;xmms2 status&#8221; command. Yes, I listen to [...]]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t posted in about 5 billion years.  Well, it seems like that anyway.  As I sit here partying with my laptop on a Friday night, I&#8217;ve been wondering how to display the track length of the current track that xmms2 is playing, without having to use the &#8220;xmms2 status&#8221; command.  Yes, I listen to and control all my music via a full-featured music player/manager from the command line (xmms2).  The problem with using the &#8220;status&#8221; command, is that it just prints out a continuous status of what&#8217;s playing and it just keeps going, which is exactly what it&#8217;s supposed to do.  It&#8217;s just like &#8220;tail -f&#8221;, So you have to ctrl-c to get out of it.  Yes. That is my sole motivation for doing this, to avoid ctrl-c.  Well, and maybe to learn a thing or two, but mostly out of defiance of having to use ctrl-c.  </p>
<p>So I figured, hey I know enough bash to at least get something rolling in order to do this.  Of course I had to keep looking stuff up in reference guides and on websites, because there&#8217;s no way I can remember it all.  Basically, it came down to 4 key tools for going the bash route.</p>
<p>1. sed &#8211; to strip brackets, slashes, colons, spaces, and other undesired characters in order to make the strings easier to deal with<br />
2. awk &#8211;  to find the location of decimal points or other characters<br />
3. cut &#8211; to get characters to the left or right of decimal points<br />
4. bc &#8211; to calculate and convert the milliseconds to human readable form </p>
<p>I finally got it to work reliably tonight.<br />
It was a horrid process that took forever.  What a waste of time.  But hey, that&#8217;s all part of the RTC experience!<br />
So here it is, please excuse the bad variable names and sloppiness. I was too pissed to give a ****.<br />
Note: I renamed this to xmms2tracklensafe and cut out all the curse words and tried to put some sense into the comments.</p>
<pre>
#!/bin/bash
tmpfileinfo=xtemp14251.tmp
tmpfile=xtemp91839.tmp
#use xmms2 info here
xmms2 info > $tmpfileinfo
vargrep=$(grep "duration" $tmpfileinfo)
echo $vargrep > $tmpfileinfo
#chopping the brackets, slashes, and spaces out of the string
sed -i 's/\[//g' $tmpfileinfo
sed -i 's/\]//g' $tmpfileinfo
sed -i 's/\///g' $tmpfileinfo
sed -i 's/'\ '//g' $tmpfileinfo
#convert the = to an X, easy to find
sed -i 's/\=/X/g' $tmpfileinfo
#for an mp3 - pluginmaddurationX
sed -i 's/\pluginmaddurationX//g' $tmpfileinfo
#for a flac - pluginflacdurationX
sed -i 's/\pluginflacdurationX//g' $tmpfileinfo
#God knows what other codecs there might be
#prints the time in milliseconds
echo "$(cat $tmpfileinfo) ms"
vargrep2=$(cat $tmpfileinfo)
varx=$vargrep2
#convert the time to minutes
var2=$(echo "$varx/1000/60" | bc -l)
echo $var2 > $tmpfile
#we are left with a fraction of a minute, which occurs after the decimal, we need to find the decimal point
var3=$(awk 'BEGIN { print index('$var2', ".") }')
#get the characters after the decimal point, this is our fraction of a minute
var4=$(cut -c $var3- $tmpfile)
#convert that fraction of a minute into seconds
var5=$(echo "scale=1; $var4*60" | bc -l | xargs printf "%1.0f")
#simply subtracting a 1 from the index of the decimal point, to be used in order to retrieve the number left of the decimal
varcut=$(echo "$var3 - 1" | bc -l | xargs printf "%1.0f")
#gets the number to the left of the decimal
var6=$(cut -c -$varcut $tmpfile)
#now we need to deal with the decimal in the number that has been converted to seconds
var7=$(awk 'BEGIN { print index('$var5', ".") }')
varcut2=1
#I honestly don't remember why I did this.  I think I needed it before I started adding | xargs printf "%1.0f"
if [ "0" != $var7 ]
	then
		varcut2=$(echo "$var7 - 1" | bc -l | xargs printf "%1.0f")
fi

echo $var5 > $tmpfile
#now we get the seconds as a whole number, by getting the characters left of the decimal
var8=$(cut -c -$varcut2 $tmpfile)
var8=$(cat $tmpfile)

#need to prepend a 0 to the seconds if they are under 10
if [ $var8 -lt 10 ]
	then
		var8="0$var8"
fi

#print out the time in human readable form, minutes : seconds
echo "$var6:$var8"
#clean up the temp files
rm -f $tmpfile
rm -f $tmpfileinfo
</pre>
<p>Wow, what a pain in the pee-hole.  It took me several hours over two nights and I even lost some sleep over it.  So, I decided to try it Jeff&#8217;s way, using Python, since he brags about it so much.  I had never used it before, and now that I have, I think I&#8217;ll be using it a lot!  A lot of you are saying, &#8220;Well yeah, duh. Idiot.&#8221; or something more insulting, and I fully accept that.  In fact, I encourage it!</p>
<p>First, we have the simple bash script that is used to execute the entire process from the command line.</p>
<pre>
#!/bin/bash

tmpfile=assscrambler124524.tmp
xmms2 info > $tmpfile

python ~/scripts/xmms2len.py

rm -f $tmpfile
</pre>
<p>And now we have the giant, complex, and horrendous python script.</p>
<pre>
file = open('./assscrambler124524.tmp')
for line in file:
	if(line.find('duration',0) > -1) :
		#print(line)
		s = line
		searchstr = 'duration = ';
		x = s.rindex(searchstr, 0);
		if(x > -1):
			timeMillis = s[x+len(searchstr):len(s)].strip()
			#print(timeMillis)
			timeConverted = float(timeMillis)/1000/60
			#print(timeConverted);
			stime = str(timeConverted)
			decIndex = stime.rindex('.', 0)
			timeFraction = float(stime[decIndex:len(stime)])
			seconds = int(round(timeFraction*60,0))
			strseconds = str(seconds)
			minutes = stime[0:decIndex]
			strminutes = str(minutes)
			if(seconds < 10) :
				strseconds = '0' + str(seconds)
			print(timeMillis + ' ms\n' + str(minutes) + ':' + strseconds)
			break
</pre>
<p>Wait, that's it?  Just some simple searches, substrings, calculations, easy conversions between types, and that's all?  Not to mention the incredibly easy way to open a file and iterate through its lines.<br />
Now, I commented out some print statements here, and I could have compacted it more, but I wanted it to be reasonably clear.  The point of course, and 95% of you know probably know this already, is that python kicks bash's ass when it comes to things that should be, well, programs.  Of course bash scripts will always have their place, and they are necessary for so many things.  I still love bash and am very fond of it, but from a programming perspective, it just doesn't "cut the mustard", as Jeff would say.</p>
<p>Well, that's it for my exciting Friday night.  Someday I'll get my crap together and talk more about my xmms2 setup, the xmms2 python equalizer, the xmms2 scrobbler for last.fm, and the other scripts I've written for xmms2.</p>
<p>Cya!</p>
<p>My main reference for python: <a href="http://www.astro.ufl.edu/~warner/prog/python.html">http://www.astro.ufl.edu/~warner/prog/python.html</a></p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsimple-tasks-bash-vs-python-a-no-brainer%2F&amp;title=Simple+Processes%3A+Bash+vs.+Python+%26%238211%3B+%26%238220%3BA+No-Brainer%26%238221%3B" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsimple-tasks-bash-vs-python-a-no-brainer%2F&amp;title=Simple+Processes%3A+Bash+vs.+Python+%26%238211%3B+%26%238220%3BA+No-Brainer%26%238221%3B" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsimple-tasks-bash-vs-python-a-no-brainer%2F&amp;title=Simple+Processes%3A+Bash+vs.+Python+%26%238211%3B+%26%238220%3BA+No-Brainer%26%238221%3B" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsimple-tasks-bash-vs-python-a-no-brainer%2F&amp;title=Simple+Processes%3A+Bash+vs.+Python+%26%238211%3B+%26%238220%3BA+No-Brainer%26%238221%3B" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsimple-tasks-bash-vs-python-a-no-brainer%2F&amp;title=Simple+Processes%3A+Bash+vs.+Python+%26%238211%3B+%26%238220%3BA+No-Brainer%26%238221%3B', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsimple-tasks-bash-vs-python-a-no-brainer%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsimple-tasks-bash-vs-python-a-no-brainer%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsimple-tasks-bash-vs-python-a-no-brainer%2F&amp;title=Simple+Processes%3A+Bash+vs.+Python+%26%238211%3B+%26%238220%3BA+No-Brainer%26%238221%3B" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fsimple-tasks-bash-vs-python-a-no-brainer%2F&amp;title=Simple+Processes%3A+Bash+vs.+Python+%26%238211%3B+%26%238220%3BA+No-Brainer%26%238221%3B" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.reverttoconsole.com/blog/linux/simple-tasks-bash-vs-python-a-no-brainer/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Linux Banging</title>
		<link>http://www.reverttoconsole.com/blog/linux/linux-banging/</link>
		<comments>http://www.reverttoconsole.com/blog/linux/linux-banging/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 14:16:10 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.reverttoconsole.com/?p=431</guid>
		<description><![CDATA[This is a great list of bang command usage.]]></description>
			<content:encoded><![CDATA[<p><a href="http://codytaylor.org/2009/09/linux-bang-commands.html">This is a great</a> list of bang command usage.</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Flinux-banging%2F&amp;title=Linux+Banging" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Flinux-banging%2F&amp;title=Linux+Banging" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Flinux-banging%2F&amp;title=Linux+Banging" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Flinux-banging%2F&amp;title=Linux+Banging" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Flinux-banging%2F&amp;title=Linux+Banging', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Flinux-banging%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Flinux-banging%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Flinux-banging%2F&amp;title=Linux+Banging" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Flinux-banging%2F&amp;title=Linux+Banging" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.reverttoconsole.com/blog/linux/linux-banging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mcabber Install on Dreamhost</title>
		<link>http://www.reverttoconsole.com/blog/linux/mcabber-install-on-dreamhost/</link>
		<comments>http://www.reverttoconsole.com/blog/linux/mcabber-install-on-dreamhost/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 13:39:43 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.reverttoconsole.com/?p=427</guid>
		<description><![CDATA[I&#8217;m reposting this, it&#8217;s what I used to install mcabber on dreamhost: From your home directory: mkdir bin lib tmp chmod 777 tmp chmod 755 bin lib echo &#38;amp;quot;export PATH=$PATH:$HOME/bin&#38;amp;quot; &#38;amp;gt;&#38;amp;gt; ~/.bash_profile echo &#38;amp;quot;export PKG_CONFIG_PATH=$HOME/lib/pkgconfig&#38;amp;quot; &#38;amp;gt;&#38;amp;gt; ~/.bash_profile echo &#38;amp;quot;export LD_LIBRARY_PATH=$HOME/lib:/usr/local/lib:$LD_LIBRARY_PATH&#38;amp;quot; &#38;amp;gt;&#38;amp;gt; ~/.bash_profile source ~/.bash_profile cd ~/tmp wget ftp://ftp.gtk.org/pub/glib/2.19/glib-2.19.8.tar.gz tar -xvzf glib-2.19.8.tar.gz cd glib-2.19.8 ./configure --prefix=$HOME [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://kylefuller.co.uk/posts/2009/feb/24/how-install-irssi-dreamhost/">I&#8217;m reposting this</a>, it&#8217;s what I used to install <a href="http://mcabber.com/">mcabber</a> on <a href="http://dreamhost.com/">dreamhost</a>:</p>
<p>From your home directory:</p>
<pre>
mkdir bin lib tmp
chmod 777 tmp
chmod 755 bin lib
</pre>
<pre>
echo &amp;amp;quot;export PATH=$PATH:$HOME/bin&amp;amp;quot; &amp;amp;gt;&amp;amp;gt; ~/.bash_profile
echo &amp;amp;quot;export PKG_CONFIG_PATH=$HOME/lib/pkgconfig&amp;amp;quot; &amp;amp;gt;&amp;amp;gt; ~/.bash_profile
echo &amp;amp;quot;export LD_LIBRARY_PATH=$HOME/lib:/usr/local/lib:$LD_LIBRARY_PATH&amp;amp;quot; &amp;amp;gt;&amp;amp;gt; ~/.bash_profile
</pre>
<pre>
source ~/.bash_profile
</pre>
<pre>
cd ~/tmp
wget ftp://ftp.gtk.org/pub/glib/2.19/glib-2.19.8.tar.gz
tar -xvzf glib-2.19.8.tar.gz
cd glib-2.19.8
./configure --prefix=$HOME
make
make install
</pre>
<p>glib should now be installed. If you ran into any errors fix those before moving on.</p>
<pre>
cd ~/tmp
wget http://mcabber.com/files/mcabber-0.9.9.tar.bz2
bunzip2 mcabber-0.9.9.tar.bz2
cd mcabber-0.9.9
./configure --prefix=$HOME
make
make install
</pre>
<p>Then follow <a href="http://www.reverttoconsole.com/blog/nix/revert-to-console-for-im-gtalk-example-using-mcabber/">these directions</a> to set up.</p>
<p>Per the comments, remember to delete your tmp dir when you&#8217;re done. Or else don&#8217;t chmod 777 this directory.</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fmcabber-install-on-dreamhost%2F&amp;title=Mcabber+Install+on+Dreamhost" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fmcabber-install-on-dreamhost%2F&amp;title=Mcabber+Install+on+Dreamhost" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fmcabber-install-on-dreamhost%2F&amp;title=Mcabber+Install+on+Dreamhost" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fmcabber-install-on-dreamhost%2F&amp;title=Mcabber+Install+on+Dreamhost" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fmcabber-install-on-dreamhost%2F&amp;title=Mcabber+Install+on+Dreamhost', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fmcabber-install-on-dreamhost%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fmcabber-install-on-dreamhost%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fmcabber-install-on-dreamhost%2F&amp;title=Mcabber+Install+on+Dreamhost" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fmcabber-install-on-dreamhost%2F&amp;title=Mcabber+Install+on+Dreamhost" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.reverttoconsole.com/blog/linux/mcabber-install-on-dreamhost/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Bash Shortcuts</title>
		<link>http://www.reverttoconsole.com/blog/linux/bash-shortcuts/</link>
		<comments>http://www.reverttoconsole.com/blog/linux/bash-shortcuts/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 15:11:15 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.reverttoconsole.com/?p=416</guid>
		<description><![CDATA[A nice list of bash shortcuts]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.skorks.com/2009/09/bash-shortcuts-for-maximum-productivity/">A nice list of bash shortcuts</a></p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fbash-shortcuts%2F&amp;title=Bash+Shortcuts" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fbash-shortcuts%2F&amp;title=Bash+Shortcuts" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fbash-shortcuts%2F&amp;title=Bash+Shortcuts" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fbash-shortcuts%2F&amp;title=Bash+Shortcuts" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fbash-shortcuts%2F&amp;title=Bash+Shortcuts', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fbash-shortcuts%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fbash-shortcuts%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fbash-shortcuts%2F&amp;title=Bash+Shortcuts" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fbash-shortcuts%2F&amp;title=Bash+Shortcuts" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.reverttoconsole.com/blog/linux/bash-shortcuts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick command line spell check of a single word or sentence</title>
		<link>http://www.reverttoconsole.com/blog/linux/quick-command-line-spell-check-of-a-single-word-or-sentence/</link>
		<comments>http://www.reverttoconsole.com/blog/linux/quick-command-line-spell-check-of-a-single-word-or-sentence/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 16:43:53 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[cygwin]]></category>

		<guid isPermaLink="false">http://www.reverttoconsole.com/?p=413</guid>
		<description><![CDATA[Here&#8217;s a short bash script, using aspell, to spell check a word or several words from the command line. It&#8217;s simple but effective. If anyone else knows a cleaner or even simpler way, please let us know. #!/bin/bash WORD=$1 TEMPFILE=temp.spell echo $WORD > $TEMPFILE aspell -c $TEMPFILE cat $TEMPFILE rm -f $TEMPFILE rm -f $TEMPFILE.bak [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a short bash script, using aspell, to spell check a word or several words from the command line.  It&#8217;s simple but effective.  If anyone else knows a cleaner or even simpler way, please let us know.</p>
<p><code><br />
#!/bin/bash</p>
<p>WORD=$1<br />
TEMPFILE=temp.spell</p>
<p>echo $WORD > $TEMPFILE<br />
aspell -c $TEMPFILE<br />
cat $TEMPFILE<br />
rm -f $TEMPFILE<br />
rm -f $TEMPFILE.bak<br />
</code></p>
<p>I named this script &#8220;spell&#8221;.  Simply use it like so:<br />
<code><br />
$ spell reccomend<br />
</code></p>
<p>Aspell will run and you can make your changes.<br />
<code><br />
reccomend</p>
<p>1) recommends                           6) commend<br />
2) recommend                            7) recommenced<br />
3) reckoned                             <img src='http://www.reverttoconsole.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> recommended<br />
4) regiment                             9) Redmond<br />
5) recombined                           0) rejoined<br />
i) Ignore                               I) Ignore all<br />
r) Replace                              R) Replace all<br />
a) Add                                  l) Add Lower<br />
b) Abort                                x) Exit<br />
</code></p>
<p>In this case, if I type &#8220;2&#8243;, the correction will be made, aspell will exit and the spelling I chose gets printed out.</p>
<p>Here&#8217;s an example of how to use it with a sentence.<br />
<code><br />
$ spell "I go to the storede and buy beakh clotes"<br />
</code></p>
<p>Now aspell will take you through each misspelled word.  After you finish the corrections it will exit and print out the corrected sentence or series of words.<br />
<code><br />
I go to the store and buy beach clothes<br />
</code></p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fquick-command-line-spell-check-of-a-single-word-or-sentence%2F&amp;title=Quick+command+line+spell+check+of+a+single+word+or+sentence" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fquick-command-line-spell-check-of-a-single-word-or-sentence%2F&amp;title=Quick+command+line+spell+check+of+a+single+word+or+sentence" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fquick-command-line-spell-check-of-a-single-word-or-sentence%2F&amp;title=Quick+command+line+spell+check+of+a+single+word+or+sentence" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fquick-command-line-spell-check-of-a-single-word-or-sentence%2F&amp;title=Quick+command+line+spell+check+of+a+single+word+or+sentence" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fquick-command-line-spell-check-of-a-single-word-or-sentence%2F&amp;title=Quick+command+line+spell+check+of+a+single+word+or+sentence', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fquick-command-line-spell-check-of-a-single-word-or-sentence%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fquick-command-line-spell-check-of-a-single-word-or-sentence%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fquick-command-line-spell-check-of-a-single-word-or-sentence%2F&amp;title=Quick+command+line+spell+check+of+a+single+word+or+sentence" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Flinux%2Fquick-command-line-spell-check-of-a-single-word-or-sentence%2F&amp;title=Quick+command+line+spell+check+of+a+single+word+or+sentence" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.reverttoconsole.com/blog/linux/quick-command-line-spell-check-of-a-single-word-or-sentence/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

