<?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>Gordaen&#039;s Blog &#187; Linux</title>
	<atom:link href="http://blog.gordaen.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.gordaen.com</link>
	<description>Ramblings about art, education, culture and a lot more</description>
	<lastBuildDate>Sun, 31 Jul 2011 20:00:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Dual-Screen Ubuntu Linux ATI Radeon 9800 Pro FGLRX</title>
		<link>http://blog.gordaen.com/2009/03/17/dual-screen-ubuntu-linux-ati-radeon-9800-pro-fglrx/</link>
		<comments>http://blog.gordaen.com/2009/03/17/dual-screen-ubuntu-linux-ati-radeon-9800-pro-fglrx/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 08:20:26 +0000</pubDate>
		<dc:creator>Ian Clifton</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.gordaen.com/?p=777</guid>
		<description><![CDATA[I&#8217;ve been using the community &#8220;radeon&#8221; drivers for a while, and I found them to do everything I needed&#8230; until I need solid OpenGL support. I didn&#8217;t realize the problem when Scorched3D didn&#8217;t work. However, I tried Blender and K-3D and was not having success. I also noticed that glxgears failed. The errors were all [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using the community &#8220;radeon&#8221; drivers for a while, and I found them to do everything I needed&#8230; until I need solid OpenGL support.  I didn&#8217;t realize the problem when <a href="http://www.scorched3d.co.uk/" title="Free artillery fire game like Gorilla Wars, Tanks, Scorched Earth, Worms, etc.">Scorched3D</a> didn&#8217;t work.  However, I tried <a href="http://www.blender.org/" title="a free open source 3D content creation suite, available for all major operating systems under the GNU General Public License">Blender</a> and <a href="http://www.k-3d.org/wiki/Main_Page" title="free 3D modeling and animation software">K-3D</a> and was not having success.  I also noticed that glxgears failed.  The errors were all similar:<span id="more-777"></span></p>
<p><code>name of display: :0.0<br />
X Error of failed request:  BadRequest (invalid request code or no such operation)<br />
  Major opcode of failed request:  156 (GLX)<br />
  Minor opcode of failed request:  19 (X_GLXQueryServerString)<br />
  Serial number of failed request:  10<br />
  Current serial number in output stream:  10</code></p>
<p>The exact numbers varied depending on the application, but the results were all the same: failure.  A Google search or two later, and I discovered that the best solution was to switch to the proprietary FGLRX drivers.  I wasn&#8217;t eager to do that both out of philosophy and the time it took to get dual monitors to properly work with the radeon drivers, but I gritted my teeth and made the switch.  Ubuntu loaded in cloned mode just fine and Blender worked, so the next step was getting the dual-screen setup to work properly (extend across both screens, called &#8220;Big Desktop&#8221; by ATI in some cases).</p>
<p>After a few attempts, I was able to get the login screen to show up as I wanted it, but the display would revert to cloned mode after logging in.  I tried a bunch of xorg.conf tweaks that ended up being unnecessary because I found that I had to again use a virtual resolution.  This time I set it via System > Preferences > Screen Resolution, changing from 1680&#215;1050 to 3360&#215;1050.  It seems to be working, but I may need to do a bit more tweaking since the 2D draw rate seems a tad slow.  Then again, it&#8217;s late, and I&#8217;m tired, so I may be imagining it.  We&#8217;ll see tomorrow.  My new xorg.conf file looks like this:</p>
<pre>#ATI Radeon 9800 Pro dual-head (extended) using fglrx drivers

Section "ServerLayout"
	Identifier     "default"
	Screen      0  "screen0" 0 0
	Option		"Dualhead" "true"
EndSection

Section "Device"
	Identifier  "radeon0"
	Driver      "fglrx"
	Option	    "DesktopSetup" "horizontal"
	BusID       "PCI:3:0:0"
EndSection

Section "Device"
	Identifier	"radeon1"
	Driver		"fglrx"
	BusID		"PCI:3:0:0"
	Screen		1
EndSection

Section "Monitor"
	Identifier  "monitor0"
	Option      "DPMS"
	HorizSync   24-82
	VertRefresh 50-75
EndSection

Section "Monitor"
	Identifier  "monitor1"
	Option      "DPMS"
	HorizSync   24-82
	VertRefresh 50-75
EndSection

Section "Screen"
	Identifier	"screen0"
	Device		"radeon0"
	Monitor		"monitor0"
	DefaultDepth	24
	SubSection "Display"
		Viewport 0 0
		Modes	"1680x1050"
		Depth	24
	EndSubSection
EndSection

Section "Screen"
	Identifier	"screen1"
	Device		"radeon1"
	Monitor		"monitor1"
	DefaultDepth	24
	SubSection "Display"
		Modes	"1680x1050"
		Depth	24
	EndSubSection
EndSection

Section "DRI"
	Mode 0666
EndSection</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.gordaen.com/2009/03/17/dual-screen-ubuntu-linux-ati-radeon-9800-pro-fglrx/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linux The Stick Shift</title>
		<link>http://blog.gordaen.com/2009/01/27/linux-the-stick-shift/</link>
		<comments>http://blog.gordaen.com/2009/01/27/linux-the-stick-shift/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 04:31:26 +0000</pubDate>
		<dc:creator>Ian Clifton</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.gordaen.com/?p=665</guid>
		<description><![CDATA[Throughout my life, I have found that relating ideas and concepts to people through analogies works much better than trying to explain details. A common example is showing how (in a simplistic sense) the flow of electricity in a circuit can be compared to water in pipes. Clearly, most analogies are limited and can be [...]]]></description>
			<content:encoded><![CDATA[<p>Throughout my life, I have found that relating ideas and concepts to people through analogies works much better than trying to explain details.  A common example is showing how (in a simplistic sense) the flow of electricity in a circuit can be compared to water in pipes.  Clearly, most analogies are limited and can be picked apart, but they often help get people on the right track.<span id="more-665"></span></p>
<p>One of the things that I have found hardest to explain is Linux.  Assuming you can even get the concept of an operating system across, you still have to deal with explaining how it is different from Windows (if you&#8217;re lucky, the person will have had some exposure to OS X or another operating system but don&#8217;t count on it).</p>
<p>Randomly, I came up with the thought of comparing it to the difference between driving a car with a manual transmission and driving an automatic, the manual being Linux and the automatic being Windows.  It&#8217;s a little harder to learn to drive a stick shift, but the benefit pays off in most cases.  You have more control and power, better fuel economy (perhaps comparable to RAM use), and a stick shift is even cheaper.  So, you could pay the extra for an automatic, hope that everything works out for you, and accept the limitations, or you can save some money but spend more time learning upfront for all the benefits.</p>
<p>Then the only challenge left is getting rid of the &#8220;that&#8217;s for computer geeks only&#8221; preconception.  But manual transmissions aren&#8217;t just for racecar drivers&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gordaen.com/2009/01/27/linux-the-stick-shift/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ubuntu 8.04 And My Tablet</title>
		<link>http://blog.gordaen.com/2008/05/11/ubuntu-804-and-my-tablet/</link>
		<comments>http://blog.gordaen.com/2008/05/11/ubuntu-804-and-my-tablet/#comments</comments>
		<pubDate>Sun, 11 May 2008 20:00:17 +0000</pubDate>
		<dc:creator>Ian Clifton</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.gordaen.com/?p=425</guid>
		<description><![CDATA[I had a few quirky things happen when I upgraded from Ubuntu 7.10 (Gutsy Gibbon) to 8.04 (Hardy Heron). One was sudo not working. It complained about my hosts file, which was weird but I fixed it by used &#8220;gksudo gedit,&#8221; since I couldn&#8217;t use &#8220;regular&#8221; sudo to get to it. The other major problem [...]]]></description>
			<content:encoded><![CDATA[<p>I had a few quirky things happen when I upgraded from Ubuntu 7.10 (Gutsy Gibbon) to 8.04 (Hardy Heron).  One was sudo not working.  It complained about my hosts file, which was weird but I fixed it by used &#8220;gksudo gedit,&#8221; since I couldn&#8217;t use &#8220;regular&#8221; sudo to get to it.  The other major problem was my that my Genius MousePen 8&#215;6 Graphics Tablet quit working.</p>
<p><span id="more-425"></span></p>
<p>I had previously followed a <a href="https://help.ubuntu.com/community/TabletSetupWizardpen">great tablet tutorial</a> and everything worked perfectly.  After the upgrade, the tablet essentially quit working.  Apparently, the problem was related to changes in XOrg 7.3.  I won&#8217;t bore you with the details, but I&#8217;ll sum up what I learned by reading through <a href="http://www.stud.fit.vutbr.cz/~xhorak28/unb/forum.php.windows-1251?req=thread&#038;id=71&#038;nocount=1">this huge thread</a> about it.  This assumes you followed the original tutorial.</p>
<p>Replace the old driver with the new one (<a href="http://specificcrap.arbitrarycrap.com/wizardpen_drv.so">precompiled for Hardy i386</a> or by compiling your own from <a href="http://specificcrap.arbitrarycrap.com/wizardpen-0.6.0.2.tar.gz">source</a>).  Make sure that you remove both copies of the old one if you put it in two locations (e.g., &#8220;/usr/lib/xorg/modules/&#8221; and the &#8220;input&#8221; directory there); just put a copy of the new one in the input directory.</p>
<p><code>sudo rm /usr/lib/xorg/modules/input/wizardpen_drv.so<br />
sudo rm /usr/lib/xorg/modules/wizardpen_drv.so<br />
wget http://specificcrap.arbitrarycrap.com/wizardpen_drv.so<br />
sudo mv wizardpen_drv.so /usr/lib/xorg/modules/input/</code></p>
<p>Make a backup of your current xorg.conf:</p>
<p><code>sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak</code></p>
<p>Open the xorg.conf for editing in your favorite editor (use gedit if you don&#8217;t know vim):</p>
<p><code>sudo vim /etc/X11/xorg.conf<br />
#or<br />
gksudo gedit /etc/X11/xorg.conf</code></p>
<p>Make sure that the input device for your tablet has the mode set to &#8220;absolute&#8221; and comment out (by adding &#8220;#&#8221; to the front of the line) any of the CorePointer or SendCoreEvents options.  Your ServerLayout section should enable the tablet using the identifier from the tablet&#8217;s InputDevice section and set &#8220;SendCoreEvents,&#8221; e.g.:</p>
<p><code>InputDevice "WizardPen Tablet" "SendCoreEvents"</code></p>
<p>Save the changes and close the file.  Now you can restart X (ctrl+alt+backspace).  It works&#8230; hopefully.  Be sure to configure GIMP and any other apps that you&#8217;ll need the tablet for.  You may encounter some problems&#8230;.</p>
<p><strong>If tablet tip causes &#8220;middle&#8221; clicking</strong>: Make sure you do not have the &#8220;Emulate3Buttons&#8221; option enabled anywhere in your xorg.conf.</p>
<p><strong>If you can&#8217;t &#8220;drag&#8221; in GIMP</strong>: Make sure your mouse&#8217;s InputDevice section sets the device to a specific mouse and not the generic mice input (e.g., it could be &#8220;/dev/input/mouse2&#8243; rather than &#8220;/dev/input/mice&#8221;).  If you&#8217;re unsure which mouse it should be, you can start with mouse0 and work your way up.  Restart X after each change.  For me, 0 disabled the mouse and 1 prevented me from logging in.  Use ctrl+alt+f1 to switch to a terminal and change the device if you run into trouble and ctrl+alt+f9 to switch back to X (be sure to restart it after making changes).</p>
<p><strong>Other problem</strong>: Try running <code>cat /var/log/Xorg.0.log | grep Tablet</code> to see if you have any errors.</p>
<p>Here are the relevant chunks of my xorg.conf:</p>
<pre><code>Section "InputDevice"
    Identifier    "Configured Mouse"
    Driver        "mouse"
    Option        "CorePointer"
    Option        "Device"        "/dev/input/mouse2"
    Option        "Protocol"      "ImPS/2"
    Option        "ZAxisMapping"  "4 5"
EndSection

Section "InputDevice"
    Identifier    "WizardPen Tablet"
    Driver        "wizardpen"
    Option        "Mode"        "absolute"
    Option        "Device"      "/dev/tablet-event"
    Option        "TopX"        "826"
    Option        "TopY"        "2626"
    Option        "BottomX"     "32747"
    Option        "BottomY"     "32762"
    Option        "MaxX"        "32747"
    Option        "MaxY"        "32762"
    Option        "TopZ"        "35"
    Option        "BottomZ"     "511"
EndSection

Section "ServerLayout"
    Identifier    "Default Layout"
    Screen        "screen0"
    InputDevice   "Generic Keyboard"
    InputDevice   "Configured Mouse"
    InputDevice   "WizardPen Tablet" "SendCoreEvents"
EndSection</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.gordaen.com/2008/05/11/ubuntu-804-and-my-tablet/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Linux Dual Screen ATI Issue</title>
		<link>http://blog.gordaen.com/2008/02/26/linux-dual-screen-ati-issue/</link>
		<comments>http://blog.gordaen.com/2008/02/26/linux-dual-screen-ati-issue/#comments</comments>
		<pubDate>Wed, 27 Feb 2008 04:37:15 +0000</pubDate>
		<dc:creator>Ian Clifton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech-Rambling]]></category>

		<guid isPermaLink="false">http://blog.gordaen.com/2008/02/26/linux-dual-screen-ati-issue/</guid>
		<description><![CDATA[I recently bought two new 19&#8243; monitors (with a nice 1680&#215;1050 resolution each). I was surprised that I simply plugged them both in and started the computer and Gnome was correctly displaying a cloned image (i.e., the same thing on both screens) at the correct resolution on both monitors. Unfortunately, getting them to work as [...]]]></description>
			<content:encoded><![CDATA[<p><a href="/wp-content/uploads/2008/02/two_screens.jpg" rel="standard"><img src="/wp-content/uploads/2008/02/.thumbs/.two_screens.jpg" alt="Two 19inch Monitors" title="Isn't it beautiful?  Sorry the picture is not very good..." width="200" border="0" /></a><br />
I recently bought two new 19&#8243; monitors (with a nice 1680&#215;1050 resolution each).  I was surprised that I simply plugged them both in and started the computer and Gnome was correctly displaying a cloned image (i.e., the same thing on both screens) at the correct resolution on both monitors.  Unfortunately, getting them to work as one (a virtual 3360&#215;1050 resolution) was quite a bit trickier.<span id="more-400"></span></p>
<p>I tried the easy method of &#8220;BigDesktop&#8221; and came up with a core dump.  Google revealed nothing so I moved onto the &#8220;MergedFB&#8221; method.  Long story short, I had no success after 2-3 hours.  Essentially, it took that amount of time before I stopped trusting online sources and started looking at the logs.  MergedFB is no longer supported&#8230; I moved on to &#8220;<a href="http://wiki.debian.org/XStrikeForce/HowToRandR12">XRandR</a>.&#8221;  And had immediate success&#8230; sort of.</p>
<p>Within five minutes, I had dual screens working as I wanted, like one large, virtual desktop. making it easy to move windows back and forth across the two screens.  Just one problem: It was <strong>slow</strong>!  It was <em>painfully</em> slow!  486 slow!  If I switched workspaces, it could take 15-30 seconds to repaint the desktop.  When I really got going, the computer would not keep up with my typing and when the letters eventually came out, they were scrambled.</p>
<p>Fortunately, this is another case of the right solution being fairly simple.  In the xorg.conf file, I had to change &#8220;AccelMethod&#8221; from &#8220;EXA&#8221; to &#8220;XAA&#8221; (learned from <a href="http://wiki.debian.org/XStrikeForce/ReleaseNotes">this link</a>).  I restarted X and everything is fast again.  Ah, wonderful high resolution&#8230; *drools*</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gordaen.com/2008/02/26/linux-dual-screen-ati-issue/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ATI Color Problems In Totem</title>
		<link>http://blog.gordaen.com/2008/01/11/ati-color-problems-in-totem/</link>
		<comments>http://blog.gordaen.com/2008/01/11/ati-color-problems-in-totem/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 20:32:32 +0000</pubDate>
		<dc:creator>Ian Clifton</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.gordaen.com/2008/01/11/ati-color-problems-in-totem/</guid>
		<description><![CDATA[I did a post on this previously, but that solution was not ideal. Essentially, there are two versions of Totem, one using xine and one using gstreamer. The gstreamer one is the default and it is the one that has color problems when paired with an ATI card and (I believe) the FGLRX drivers, so [...]]]></description>
			<content:encoded><![CDATA[<p>I did a <a href="http://blog.gordaen.com/2007/06/22/fixing-color-of-video-playback-in-ubuntu/">post</a> on this previously, but that solution was not ideal.  Essentially, there are two versions of Totem, one using xine and one using gstreamer.  The gstreamer one is the default and it is the one that has color problems when paired with an ATI card and (I believe) the FGLRX drivers, so the easy solution seemed to be to switch to the xine version.  I&#8217;ve since discovered a <a href="https://answers.launchpad.net/ubuntu/+source/totem/+question/7373">better answer</a>.<span id="more-387"></span></p>
<p>Simply run <code>gstreamer-properties</code> from a terminal and switch to the video tab.  Change the top option (the video output plugin) to custom.  Change the pipeline to:</p>
<p style="font-family: monospace">ffmpegcolorspace ! video/x-raw-yuv,format=(fourcc)YV12 ! xvimagesink</p>
<p>and test it out.  That solved the problem for me (after adjusting the hue back to normal).  Blues are blue.  Reds are red.  Greens are green.  What a concept!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gordaen.com/2008/01/11/ati-color-problems-in-totem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Good QuickSilver For Linux (Gnome)</title>
		<link>http://blog.gordaen.com/2007/12/21/a-good-quicksilver-for-linux-gnome/</link>
		<comments>http://blog.gordaen.com/2007/12/21/a-good-quicksilver-for-linux-gnome/#comments</comments>
		<pubDate>Fri, 21 Dec 2007 20:38:00 +0000</pubDate>
		<dc:creator>Ian Clifton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://blog.gordaen.com/2007/12/21/a-good-quicksilver-for-linux-gnome/</guid>
		<description><![CDATA[When I first started using OSX at work, it was a slightly rough transition. Some things work really well and other things are just not intuitive at all (like the key combination for taking screenshots). The one thing that I instantly loved was QuickSilver. It&#8217;s an application launcher and a lot more. The most basic [...]]]></description>
			<content:encoded><![CDATA[<p>When I first started using OSX at work, it was a slightly rough transition.  Some things work really well and other things are just not intuitive at all (like the key combination for taking screenshots).  The one thing that I instantly loved was <a href="http://www.blacktree.com/">QuickSilver</a>.  It&#8217;s an application launcher and a <em>lot</em> more.  The most basic use is to hit the key combo you have set up to bring up a dialog box and then type in a few letters from the application you want to open.  You could do &#8220;FF&#8221; for Firefox or &#8220;Fire&#8221; or just &#8220;F.&#8221;  QS is pretty intelligent about learning what key combo you like to use for which application, so I generally just type a single letter and press enter and there I go.  QS can do a lot more than this and it integrates extremely well with applications, but I wanted at least this basic functionality in Linux.  Even in Windows, there is a program called <a href="http://www.launchy.net/">Launchy</a> that is similar and worth checking out if you&#8217;re a Windows user.<span id="more-378"></span></p>
<p>After making the complete jump to Linux a year and some-odd months ago, I looked for a QuickSilver application for Gnome (the <acronym title="Graphical User Interface">GUI</acronym> I use in Linux).  <a href="http://katapult.kde.org/">Katapult</a> is a pretty good version for KDE (another GUI choice in Linux), but I kept looking.  Eventually, I tried several and gave up.  ALT+F2 could bring up the Run Application box that was like the ugly step-brother of an application launcher, so I stuck with that.  Recently, I was looking for something else and came across a fairly new (I believe it was first released in September of this year) development called <a href="http://do.davebsd.com/">Gnome Do</a>.</p>
<p>I tried to find more information out about this (why didn&#8217;t I hear about it sooner?) and I came across <a href="http://abhay-techzone.blogspot.com/2007/12/quicksilver-for-ubuntu.html">this</a> blog post that is a nice intro to the program.  That post is probably better than what I would create, so check it out.  Also keep in mind that Gnome Do is new, so it doesn&#8217;t have the ridiculous (in an awesome way) feature-set that QuickSilver does, but, if we start spreading the word about Gnome Do, I&#8217;m sure the features will start rolling in.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gordaen.com/2007/12/21/a-good-quicksilver-for-linux-gnome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Command Line Tips</title>
		<link>http://blog.gordaen.com/2007/06/25/linux-command-line-tips/</link>
		<comments>http://blog.gordaen.com/2007/06/25/linux-command-line-tips/#comments</comments>
		<pubDate>Tue, 26 Jun 2007 04:41:09 +0000</pubDate>
		<dc:creator>Ian Clifton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://blog.gordaen.com/2007/06/25/linux-command-line-tips/</guid>
		<description><![CDATA[Most Linux users spend quite a bit of time using the command line. It&#8217;s fast, efficient, and gives you bonus &#8220;cool points&#8221; with every command. If you&#8217;re anything like me, you&#8217;ve thought from time to time, &#8220;It sure would be nice to be able to do X&#8221; and then later stumbled across that exact feature. [...]]]></description>
			<content:encoded><![CDATA[<p>Most Linux users spend quite a bit of time using the command line.  It&#8217;s fast, efficient, and gives you bonus &#8220;cool points&#8221; with every command.  If you&#8217;re anything like me, you&#8217;ve thought from time to time, &#8220;It sure would be nice to be able to do X&#8221; and then later stumbled across that exact feature.  Here&#8217;s a short list of some useful tips and commands for Linux.<span id="more-310"></span></p>
<p><strong>Previous commands</strong><br />
The majority of you probably know about pressing up to go to previous commands or pressing tab to auto-complete filenames and the like.  You probably even know about (but perhaps rarely use) the <strong>history</strong> command.  One additional feature you might not know about is the ability to quickly and easily search for a previous command.  Try <strong>CTRL+R</strong> and then start typing the first few letters of a command you previously ran.</p>
<p><strong>Moving around</strong><br />
Obviously, you can use the arrow keys to move around on the command line, but there are several other shortcuts:</p>
<ul>
<li>CTRL+A = move cursor to beginning of line</li>
<li>CTRL+E = move cursor to end of line</li>
<li>CTRL+U = deletes everything before the cursor</li>
<li>CTRL+K = deletes everything after the cursor</li>
<li>CTRL+W = deletes the &#8220;word&#8221; before the cursor (all text up to the previous space)</li>
<li>CTRL+Y = paste previously deleted text (similar to undo and can be repeated)</li>
<li>CTRL+I = similar to tab but for whatever text your cursor is on</li>
<li>CTRL+L = similar to the &#8220;clear&#8221; command</li>
</ul>
<p><strong>Background/Foreground processes</strong><br />
You can press CTRL+Z to put the current process into the background and enter <strong>fg</strong> to return that process to the foreground.  You can also start a process in the background by appending an ampersand (&#8216;&#038;&#8217;) to your command (e.g., &#8220;cp backup/bigfile.gz . &#038;&#8221;).  You can view the current processes with the <strong>jobs</strong> command, and you can selectively bring them to the foreground by using <strong>fg X</strong> where &#8216;X&#8217; is equal to the job number (e.g., &#8220;fg 3&#8243;).</p>
<p><strong>Miscellaneous</strong><br />
If you haven&#8217;t started using <a href="http://www.vim.org/">Vim</a>, you&#8217;re missing out.  The learning curve is a little steep, but <a href="http://www.vim.org/htmldoc/usr_01.html#tutor">vimtutor</a> can help.  You may need to install the tutor (&#8220;sudo apt-get install vim-runtime&#8221; sets it up in Ubuntu), but it is well worth the little effort.  What some users don&#8217;t realize is that you can very effectively use the shell through Vim.  For instance, you can highlight text in Visual Mode, then run :!sort (&#8220;:!&#8221; is how you start any single shell command).  That passes the highlight text to the Linux program, &#8220;sort,&#8221; and inserts the results.  You can also go entirely into a shell with <strong>:sh</strong> so that you can accomplish more complex tasks (of course you can always CTRL+Z as well).  Obviously, there is a <em>lot</em> more that Vim can do, but I thought this little bit was most appropriate for a post about the Linux command line.</p>
<p>I commonly search for strings in multiple files (particularly when editing PHP).  I learned to do that using <strong>find . -name &#8220;*.php&#8221; -exec grep -il &#8220;string&#8221; {} \;</strong>, where &#8220;string&#8221; is the string you wish to search for.  The &#8220;-il&#8221; keeps it case insensitive and simply lists the files the string occurs in.  With Linux there are many different ways to do anything, so find what works best for you.</p>
<p>Sometimes you need to have a command run even if you log out of the server.  For this, you use &#8220;nohup&#8221; plus the normal command.  For example, you might type <strong>nohup ./autorun &#038;</strong> to start a program in the background and allow it to continue running when you disconnect.</p>
<p>There are countless other tips out there.  I suggest that any time you think, &#8220;It would be really helpful if I could do X,&#8221; stop what you are doing and find out how to do it.  Sure, you can press the left arrow repeatedly to get to the start of a command line, but learning CTRL+A will save you time.  Just like when learning Vim, if you force yourself to do things &#8220;the Vim way,&#8221; you will be much better off than if you try to use the arrow keys like in another program, so force yourself to do things &#8220;the Linux way,&#8221; and double your productivity (or at least impress a few friends).</p>
<p>If you have any additional tips, feel free to post them.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gordaen.com/2007/06/25/linux-command-line-tips/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ubuntu: Make Firefox Backspace Browse Back In History</title>
		<link>http://blog.gordaen.com/2007/06/24/ubuntu-make-firefox-backspace-browse-back-in-history/</link>
		<comments>http://blog.gordaen.com/2007/06/24/ubuntu-make-firefox-backspace-browse-back-in-history/#comments</comments>
		<pubDate>Sun, 24 Jun 2007 21:28:07 +0000</pubDate>
		<dc:creator>Ian Clifton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://blog.gordaen.com/2007/06/24/ubuntu-make-firefox-backspace-browse-back-in-history/</guid>
		<description><![CDATA[I seem to be stumbling across all kinds of little tips lately. Looking about the about:config part of Firefox, I saw browser.backspace_action was set to 1. I changed it to 0 and now backspace actually goes back rather than jumping around on the current page. If you are using Linux (or any other operating system) [...]]]></description>
			<content:encoded><![CDATA[<p>I seem to be stumbling across all kinds of little tips lately.  Looking about the about:config part of Firefox, I saw browser.backspace_action was set to 1.  I changed it to 0 and now backspace actually goes back rather than jumping around on the current page.  If you are using Linux (or any other operating system) and your backspace key does not go back to the previous page, just type <strong>about:config</strong> where you would normally type a web address.  You can then either scroll down or start typing a filter (&#8220;backs&#8221; is sufficient).  Find a Preference Name of <strong>browser.backspace_action</strong>, double-click on the &#8220;1&#8243; in the value column, and change it to a &#8220;0&#8243; and you&#8217;re set!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gordaen.com/2007/06/24/ubuntu-make-firefox-backspace-browse-back-in-history/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Fixing Color Of Video Playback In Ubuntu</title>
		<link>http://blog.gordaen.com/2007/06/22/fixing-color-of-video-playback-in-ubuntu/</link>
		<comments>http://blog.gordaen.com/2007/06/22/fixing-color-of-video-playback-in-ubuntu/#comments</comments>
		<pubDate>Sat, 23 Jun 2007 05:49:21 +0000</pubDate>
		<dc:creator>Ian Clifton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://blog.gordaen.com/2007/06/22/fixing-color-of-video-playback-in-ubuntu/</guid>
		<description><![CDATA[My desktop never had any problems with video playback in Ubuntu, but my laptop has. I was too lazy to really look into it, but basically several types of videos would be a weird blue hue. Adjusting the hue by 50% made the colors close to normal, but reds generally appeared too green so that [...]]]></description>
			<content:encoded><![CDATA[<p>My desktop never had any problems with video playback in Ubuntu, but my laptop has.  I was too lazy to really look into it, but basically several types of videos would be a weird blue hue.  Adjusting the hue by 50% made the colors close to normal, but reds generally appeared too green so that wasn't a permanent answer.  I believe the issue may be due to the FGLRX drivers needed for the laptop's ATI Radeon Mobility X1300, because that was the only obvious difference between my desktop and laptop.  Fortunately, I happened to stumble across <a href="http://ubuntuforums.org/archive/index.php/t-376733.html">a page with the fix</a> before doing too much looking around, so I can't say for sure what the issue was exactly.  Here is the command to run if you're having the same issue:</p>
<div class="igBar"><span id="lcode-2"><a href="#" onclick="javascript:showPlainTxt('code-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-2">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo aptitude install libdvdcss2 libdvdnav4 libdvdplay0 libdvdread3 totem-xine </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Every so often, one quickly finds the one-line Linux answer after just a few minutes of searching!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gordaen.com/2007/06/22/fixing-color-of-video-playback-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>First Peek: Genius MousePen 8&#215;6 Graphics Tablet</title>
		<link>http://blog.gordaen.com/2007/06/19/first-peek-genius-mousepen-8x6-graphics-tablet/</link>
		<comments>http://blog.gordaen.com/2007/06/19/first-peek-genius-mousepen-8x6-graphics-tablet/#comments</comments>
		<pubDate>Wed, 20 Jun 2007 06:12:02 +0000</pubDate>
		<dc:creator>Ian Clifton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Small Talk]]></category>

		<guid isPermaLink="false">http://blog.gordaen.com/2007/06/19/first-peek-genius-mousepen-8x6-graphics-tablet/</guid>
		<description><![CDATA[Even though Wacom is the name in graphics tablets, I decided to go with a brand I hadn't heard of. My primary reason was because the Wacom tablet I wanted was a couple hundred dollars more than I wanted to spend. I possibly would have bought that one if I could have tested it in [...]]]></description>
			<content:encoded><![CDATA[<p>Even though <a href="http://www.wacom.com/">Wacom</a> is <em>the</em> name in graphics tablets, I decided to go with a brand I hadn't heard of.  My primary reason was because the <a href="http://www.wacom.com/intuos/6x8.cfm">Wacom tablet I wanted</a> was a couple hundred dollars more than I wanted to spend.  I possibly would have bought that one if I could have tested it in a store and been sure I would be able to effectively use it.  I ended up buying the <a href="http://www.geniusnetusa.com/detaprodtw.php?idsubcate=341161&#038;idcate=278311&#038;idprod=341204">Genius MousePen 8x6 tablet</a> from <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16883101103">NewEgg</a> for just $44.99.<span id="more-305"></span></p>
<p><strong>Windows</strong><br />
<a href="/wp-content/uploads/2007/06/quick_image.jpg" rel="lightbox"><img style='float: left;' src="/wp-content/uploads/2007/06/.thumbs/.quick_image.jpg" alt="Quick image done in Corel Painter 8" /></a> First, I'll cover the Windows experience.  I plugged in the device and installed all of the software that came on the CD (I don't really care if my Windows install becomes more bloated, it's the first time I've booted into it in about a month), so I could have the "full experience."  The tablet comes with a trial of Corel Painter 8 (which is apparently old, because their site has the <a href="http://www.corel.com/servlet/Satellite/us/en/Product/1166553885783">X version</a>), so I was curious how well this software worked.  The kindergarten-style painting I did was a 15-minute job without knowing how to do anything in the program.  I am rather impressed.  The pressure sensitivity controls the opacity of most of the tools (you can use brushes with different types of paints, pencils, felt-tip pens, etc.), which is more fun than you would think.  It's better than most video games I've played lately...  Comparatively, Photoshop adjusts the size of the brush based on pressure, which is decidedly less useful.  It wouldn't surprise me if there was an option to change this, but I am getting away from commercial software and this was just a quick test.</p>
<p><strong>Ubuntu Feisty</strong> (Linux)<br />
I actually tested the tablet in Ubuntu first, but had some issues.  It "worked" just by being plugged in, but it didn't work well.  The tablet is supposed to be a representation of your screen, so pressing on the center of the tablet would be like clicking on the center of the screen.  Unfortunately the tablet and screen did not agree on any positions and continually changed (one minute the right edge would be the right edge, the next minute it would be the center).  I looked around and found a <a href="http://www.stud.fit.vutbr.cz/~xhorak28/index.php?page=WizardPen_Driver">Linux driver</a> that sounded promising.  I tried to follow the install instructions and it broke X.  After a lot of fussing around, I was able to fix my mistakes and I came across a more <a href="https://help.ubuntu.com/community/TabletSetupWizardpen">accurate guide</a>.  After some more work, I finally had some success: the tablet was properly working!  It correctly mapped the tablet to the screen (there is even a calibration tool for this).</p>
<p>After some quick tests, it is working well in both <a href="http://www.inkscape.org/">Inkscape</a> and <a href="http://www.xaraxtreme.org/">Xara Xtreme</a>, but pressure sensitivity does not appear to function.  I'll have to play around with it some more, because that's a very important feature when creating detailed work, but the lack of pressure sensitivity shouldn't affect my work on comics too much.  We'll see...</p>
<p><strong>Other Notes</strong><br />
I'm sure I'll post more about this later, but my initial impression is good.  One thing to consider is that some reviews said there were problems with this tablet (and many others) on dual monitors.  I haven't tested it out with the other monitor attached, so I can't confirm that, but it wouldn't surprise me.  I haven't been affected by using the "normal ratio" tablet with my widescreen laptop, but dual monitors poses a bigger problem with that and other issues.  With the Linux driver, you could adjust the calibration (this may be possible in the Windows driver too, I didn't try), but it would probably still be a bit awkward.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gordaen.com/2007/06/19/first-peek-genius-mousepen-8x6-graphics-tablet/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

