<?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>The Captain's (B)log &#187; ubuntu</title>
	<atom:link href="http://www.threshold-zero.com/cblog/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.threshold-zero.com/cblog</link>
	<description>Noos you can uoos</description>
	<lastBuildDate>Sun, 22 Jan 2012 14:25:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Installing the Brother HL-2270DW Printer on Ubuntu 10.04</title>
		<link>http://www.threshold-zero.com/cblog/2010/12/01/installing-the-brother-hl-2270dw-printer-on-ubuntu-10-04/</link>
		<comments>http://www.threshold-zero.com/cblog/2010/12/01/installing-the-brother-hl-2270dw-printer-on-ubuntu-10-04/#comments</comments>
		<pubDate>Thu, 02 Dec 2010 02:52:14 +0000</pubDate>
		<dc:creator>el capitan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Science and Technology]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[brother]]></category>
		<category><![CDATA[laser printer]]></category>
		<category><![CDATA[printer]]></category>

		<guid isPermaLink="false">http://www.threshold-zero.com/cblog/?p=961</guid>
		<description><![CDATA[Brother, I appreciate that you at least made an attempt at providing Linux installation files, even going so far as to provide .DEB and .RPM files. However, none of the solutions works, and even on my version of Linux, Ubuntu 10.04, probably the most common one around, the .DEB files did next to nothing.  They [...]]]></description>
			<content:encoded><![CDATA[<p>Brother, I appreciate that you at least made<a href="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html"> an attempt at providing Linux installation files</a>, even going so far as to provide .DEB and .RPM files.</p>
<p>However, none of the solutions works, and even on my version of Linux, Ubuntu 10.04, probably the most common one around, the .DEB files did next to nothing.  They didn&#8217;t setup Ubuntu&#8217;s printer configuration so that the printer showed, nor did they enable the drivers to be found when I tried to install the printer manually. (The Brother HL-2270DW is apparently so new that Ubuntu doesn&#8217;t have any default drivers in its repositories.)</p>
<p>What did work?  Selecting HL-2170W from the default drivers list in Ubuntu.  Seems to work fine! <img src='http://www.threshold-zero.com/cblog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.threshold-zero.com/cblog/2010/12/01/installing-the-brother-hl-2270dw-printer-on-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An Abundance of GIMP Synergy</title>
		<link>http://www.threshold-zero.com/cblog/2009/03/22/an-abundance-of-gimp-synergy/</link>
		<comments>http://www.threshold-zero.com/cblog/2009/03/22/an-abundance-of-gimp-synergy/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 02:52:01 +0000</pubDate>
		<dc:creator>el capitan</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Science and Technology]]></category>
		<category><![CDATA[GIMP]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[synergy]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.threshold-zero.com/cblog/?p=304</guid>
		<description><![CDATA[Installing GIMP 2.6 on Ubuntu 8.04 Well, I got tired of being stuck with the version 2.4 of the GIMP (GNU Image Manipulation Program) that ships with Ubuntu 8.04.  It&#8217;s old, it uses the old window system that I can&#8217;t stand anymore, and version 2.6 (the current version) fixes tons of more issues that it [...]]]></description>
			<content:encoded><![CDATA[<h3>Installing GIMP 2.6 on Ubuntu 8.04</h3>
<p><img class="alignleft size-full wp-image-307" style="margin-left: 4px; margin-right: 4px;" title="wilber" src="http://www.threshold-zero.com/cblog/wp-content/uploads/2009/03/wilber.png" alt="wilber" width="64" height="64" />Well, I got tired of being stuck with the version 2.4 of the GIMP (GNU Image Manipulation Program) that ships with Ubuntu 8.04.  It&#8217;s old, it uses the old window system that I can&#8217;t stand anymore, and version 2.6 (the current version) fixes tons of more issues that it has.</p>
<p>However, you can&#8217;t just go to your package manager and add it &#8212; Ubuntu locks program versions when it ships (for example, the latest version of GIMP available to Ubuntu 8.04 users is 2.4).  This is done for compatibility reasons &#8212; if version 2.4 of the GIMP works fine when Ubuntu 8.04 ships, then they lock those versions together.  That way, it&#8217;s always guaranteed to work, no matter when Ubuntu is  installed in the future.</p>
<p>However, there&#8217;re sites likes <a href="http://getdeb.net">GetDeb.net</a> which lets developers upload installer files of popular programs for Ubuntu, so that users of older versions of Ubuntu can install new programs.</p>
<p>So, I went to the <a href="http://www.getdeb.net/release/4054">GetDeb page for GIMP 2.6</a> and downloaded all the files you need to install GIMP 2.6 on Ubuntu 8.04:</p>
<ul>
<li><span style="font-family: Arial;"> <a class="app_download" href="http://www.getdeb.net/download/4054/4"> libgegl-0.0-0</a></span></li>
<li><span style="font-family: Arial;"> <a class="app_download" href="http://www.getdeb.net/download/4054/3"> libbabl-0.0-0</a></span></li>
<li><span style="font-family: Arial;"><a class="app_download" href="http://www.getdeb.net/download/4054/2">gimp-data</a></span></li>
<li><span style="font-family: Arial;"><a class="app_download" href="http://www.getdeb.net/download/4054/1">libgimp2.0</a></span></li>
<li><span style="font-family: Arial;"> <a class="app_download" href="http://www.getdeb.net/download/4054/0"> gimp</a></span></li>
</ul>
<p>Usually, in 99% of situations, you just download these files and install them, even on Ubuntu.  However, on Ubuntu 8.04 with GIMP 2.6, there&#8217;s a bit of a problem &#8212; you have to force these files to install.</p>
<p>Now, you can do fancy command-line kung-fu if you want to, but you shouldn&#8217;t <em>have</em> to on Ubuntu, so I&#8217;ve included a file here for you:</p>
<ul>
<li><a href="http://www.threshold-zero.com/cblog/wp-content/uploads/2009/03/install">gimp-2.6-install-ubuntu-8.04</a></li>
</ul>
<p>Just save that file, put it along with the 5 files you downloaded from GetDeb.net into their own folder, and then run that file.  (Make it executable in its properties, and then double-click on it).</p>
<p>And that&#8217;s it!</p>
<p>(I got the inspiration for that install file from <a href="http://my.opera.com/area42/blog/gimp-2-6-3-update#comment7219365">this blog post here</a>!)</p>
<h3>The Synergy of Mac, Linux, and Windows<img class="alignleft size-full wp-image-308" title="logo" src="http://www.threshold-zero.com/cblog/wp-content/uploads/2009/03/logo.gif" alt="logo" width="216" height="77" /></h3>
<p>I&#8217;ve always heard about the program called <a href="http://synergy2.sourceforge.net/">Synergy</a>, but I&#8217;ve never used it, and that&#8217;s a damn shame.</p>
<p>Have a lot of computers side by side that you manage all at once?  Tired of going from one keyboard and mouse, to another, even though the computers you&#8217;re working with are side by side?</p>
<p>Then download <a href="http://synergy2.sourceforge.net/">Synergy</a>, configure it, and run it on all of your computers (Mac, Linux, <em>and</em> Windows).</p>
<p>And that&#8217;s it.  Honestly.  It&#8217;ll take you about 20 minutes and you&#8217;ll spend the next few hours wondering how you ever lived without it.</p>
<p>It treats all of your computers like one giant desktop &#8212; just move your mouse &#8220;off&#8221; of the side of your monitor towards your other computer, and your mouse will instantly reappear on <em>that</em> computer&#8217;s monitor.  If you need to type something, you type it with the first computer&#8217;s monitor.  Seriously.</p>
<p>Ah, a caveat &#8212; on Mac and Linux, the setup isn&#8217;t as streamlined and easy as it is on Linux, so there&#8217;s a program called <a href="http://quicksynergy.sourceforge.net/">QuickSynergy</a> that can do it for you.  If you&#8217;re using Ubuntu, it&#8217;s already in the repositories &#8212; just go to your &#8220;Add/Remove Applications&#8221; menu item, and install QuickSynergy from there.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.threshold-zero.com/cblog/2009/03/22/an-abundance-of-gimp-synergy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Conky, Dell i8k Modules, and My First Ubuntu Bash Script</title>
		<link>http://www.threshold-zero.com/cblog/2009/02/15/conky-dell-i8k-modules-and-my-first-ubuntu-bash-script/</link>
		<comments>http://www.threshold-zero.com/cblog/2009/02/15/conky-dell-i8k-modules-and-my-first-ubuntu-bash-script/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 19:29:19 +0000</pubDate>
		<dc:creator>el capitan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Science and Technology]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[conky]]></category>
		<category><![CDATA[i8kutils]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.threshold-zero.com/cblog/?p=186</guid>
		<description><![CDATA[Well, I started playing around with Conky yesterday &#8212; if you haven&#8217;t heard of it before, just know that it&#8217;s a neat little Linux program that runs in your background and uses very little resources that displays a very neat desktop overlay.  (Like in the picture in the Lifehacker article.) Now, some of the stock [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-188 alignleft" title="Conky Screenshot" src="http://www.threshold-zero.com/cblog/wp-content/uploads/2009/02/screenshot.png" alt="Conky Screenshot" width="215" height="139" /></p>
<p>Well, I started playing around with <a href="http://lifehacker.com/5152819/to+dos-weather-and-twitter-on-a-linux-desktop">Conky</a> yesterday &#8212; if you haven&#8217;t heard of it before, just know that it&#8217;s a neat little Linux program that runs in your background and uses very little resources that displays a very neat desktop overlay.  (Like in the picture in the Lifehacker article.)</p>
<p>Now, some of the stock Conky scripts were more than adequate, but I had always wanted my laptop&#8217;s CPU temperature to be displayed as well, so I had to figure out a way to do that.</p>
<p>Now, if you&#8217;re somewhat familiar with tinkering in Linux, you&#8217;ve probably heard of the wonderful &#8220;lm_sensors&#8221; package &#8212; it&#8217;s a neat package for Linux that helps display lots of information about motherboard temps and whatnot.  Unfortunately, due to most laptops &#8220;prorietary-ness,&#8221; lm_sensors does very little for you if you&#8217;re trying to get it to work on a laptop.</p>
<p>Now, I had heard of the &#8220;i8kutils&#8221; package for Linux &#8212; this was a package designed for Dell laptops in particular, to display and control fan and temperature information.</p>
<p>So, with that, I was off to work!</p>
<p>(Note &#8212; these instructions are mostly for Ubuntu/Debian installations, because that&#8217;s what I use.)</p>
<p>First, install the package &#8220;i8kutils&#8221; using your Linux computer&#8217;s package manager (Synaptic, if you&#8217;re using Ubuntu).</p>
<p>Second, add the module &#8220;i8k&#8221; to your &#8220;/etc/modules&#8221; file.  (This will start the process at boottime.)  Restart your laptop.</p>
<p>Third, you&#8217;ll have to create some Conky script files.  I assume you&#8217;ve already had a bit of experience at least installing Conky and starting it up.  If not, play around with the instructions in that Lifehacker article and come back here afterwards.</p>
<p>Now, I noticed that one of my conky script files was a file called &#8220;hddmonit.sh&#8221; which contained the text:</p>
<blockquote><p>#!/bin/bash<br />
echo &#8220;$(nc localhost 7634 | cut -d&#8217;|&#8217; -f4)&#8221;</p></blockquote>
<p>Now, using a little bit of deduction, I figured that this file used a command called &#8220;nc localhost 7634&#8243; to display a little bit of information, and then used pipe commands (the little &#8220;|&#8221; symbol) to further splice the info, extracting just the temperature of my laptop&#8217;s hard drive.</p>
<p>So, while &#8220;nc localhost 7634&#8243; outputted this:</p>
<blockquote><p>|/dev/sda|ST980815A|43|C|</p></blockquote>
<p>Using the command &#8220;(nc localhost 7634 | cut -d&#8217;|&#8217; -f4&#8243; would output just &#8220;43&#8243;, which was the temperature of my hard drive.</p>
<p>(The &#8220;cut&#8221; command splices out specific text from a string it&#8217;s given, in this case the fourth (-f4) chunk of text seperated by a &#8220;|&#8221; chracter.)</p>
<p>Now, I learned that the &#8220;i8k&#8221; module, once loaded, could be accessed with the file at  &#8220;/proc/i8k&#8221;, which just contains a string like:</p>
<blockquote><p>1.0 A32 7GGGGGG 53 -22 1 -22 90300 -1 2</p></blockquote>
<p>From this you can see various Dell-specific information, the important part being &#8220;53&#8243;, which was my current processor temp.  (The items in the string are separated by spaces.)</p>
<p>So, I quickly made myself a new script file called &#8220;i8ktemps.sh&#8221; copying the contents of &#8220;hddmonit.sh&#8221; and changing them to:</p>
<blockquote><p>#!/bin/bash<br />
echo &#8220;$(head /proc/i8k | cut -d&#8217; &#8216; -f4)&#8221;</p></blockquote>
<p>This file, when executed, will just output the fourth &#8220;chunk&#8221; in the file &#8220;/proc/i8k&#8221;, which as you remember is my current processor temp.</p>
<p>Now, I needed to edit my Conky configuration file, which is located in your home folder and is called &#8220;.conkyrc&#8221;.</p>
<p>Then I simply located the line:</p>
<blockquote><p>${font weather:size=28}x ${font}HDD ${execi 1 ~/scripts/hddmonit.sh}C</p></blockquote>
<p>Which displayed my hard drive temperature, and changed it to:</p>
<blockquote><p>${font weather:size=28}x ${font}CPU ${execi 1 ~/scripts/i8ktemps.sh}C HDD ${execi 1 ~/scripts/hddmonit.sh}C</p></blockquote>
<p>Which, when Conky was restarted, would display my hard drive temperature <em>and</em> my current processor temperature.</p>
<p>See?  It&#8217;s not that hard to program this stuff!  I did this all, both programming in the Linux &#8220;Bash&#8221; shell and coding in Conky&#8217;s personal configuration code, without any experience in either.  I just looked at what was there, and changed it.</p>
<p>Relevant Links:</p>
<p><a href="http://www.arachnoid.com/linux/shell_programming.html">http://www.arachnoid.com/linux/shell_programming.html</a></p>
<p><a href="http://ubuntuforums.org/showthread.php?t=411800">http://ubuntuforums.org/showthread.php?t=411800</a></p>
<p><a href="http://www.linuxcommand.org/wss0010.php">http://www.linuxcommand.org/wss0010.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.threshold-zero.com/cblog/2009/02/15/conky-dell-i8k-modules-and-my-first-ubuntu-bash-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

