<?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>Lâmôlabs</title>
	<atom:link href="http://www.lamolabs.org/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lamolabs.org/blog</link>
	<description>Lame Oh Labs .... Linux &#38; Tech! Is there anything else?</description>
	<lastBuildDate>Thu, 02 Sep 2010 21:00:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>[one-liner]: Firefox Already Running Dialog Box on Fedora/CentOS/RHEL</title>
		<link>http://www.lamolabs.org/blog/3800/one-liner-firefox-already-running-dialog-box-on-fedoracentosrhel/</link>
		<comments>http://www.lamolabs.org/blog/3800/one-liner-firefox-already-running-dialog-box-on-fedoracentosrhel/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 08:53:30 +0000</pubDate>
		<dc:creator>slmingol</dc:creator>
				<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[one-liner]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://www.lamolabs.org/blog/?p=3800</guid>
		<description><![CDATA[Problem

<p>Sometimes you&#8217;ll get a dialog box that pops up saying that firefox is already running when you know in fact that it isn&#8217;t.</p>

<p class="wp-caption-text">Firefox Already Running Dialog Box</p>

Solution

<p>This is typically caused by the existence of 2 files in your ~/.mozilla/firefox/&#60;profile&#62; directory. For example in my case:</p>


1
2
3
% ls -la ~/.mozilla/firefox/rhwevaqa.default/&#124;egrep &#34;lock &#124;lock$&#34;
lrwxrwxrwx  1 tstacct users [...]]]></description>
			<content:encoded><![CDATA[<h3>Problem</h3>

<p>Sometimes you&#8217;ll get a dialog box that pops up saying that firefox is already running when you know in fact that it isn&#8217;t.</p>

<div id="attachment_3801" class="wp-caption aligncenter" style="width: 627px"><a href="http://www.lamolabs.org/blog/wp-content/uploads/2010/06/firefoxalreadyrunning.png" rel="lightbox[3800]"><img src="http://www.lamolabs.org/blog/wp-content/uploads/2010/06/firefoxalreadyrunning.png" alt="Firefox Already Running Dialog Box" title="Firefox Already Running Dialog Box" width="617" height="138" class="size-full wp-image-3801" /></a><p class="wp-caption-text">Firefox Already Running Dialog Box</p></div>

<h3>Solution</h3>

<p>This is typically caused by the existence of <strong>2 files</strong> in your <strong>~/.mozilla/firefox/&lt;profile&gt;</strong> directory. For example in my case:</p>


<div class="wp_codebox"><table width="100%" ><tr id="p38002"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p3800code2"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-la</span> ~<span style="color: #000000; font-weight: bold;">/</span>.mozilla<span style="color: #000000; font-weight: bold;">/</span>firefox<span style="color: #000000; font-weight: bold;">/</span>rhwevaqa.default<span style="color: #000000; font-weight: bold;">/|</span><span style="color: #c20cb9; font-weight: bold;">egrep</span> <span style="color: #ff0000;">&quot;lock |lock$&quot;</span>
lrwxrwxrwx  1 tstacct <span style="color: #c20cb9; font-weight: bold;">users</span>       16 2010-06-22 18:49 lock -<span style="color: #000000; font-weight: bold;">&gt;</span> 127.0.1.1:+11131
<span style="color: #660033;">-rw-r--r--</span>  1 tstacct <span style="color: #c20cb9; font-weight: bold;">users</span>        <span style="color: #000000;">0</span> <span style="color: #000000;">2010</span>-06-<span style="color: #000000;">22</span> <span style="color: #000000;">18</span>:<span style="color: #000000;">49</span> .parentlock</pre></td></tr></table></div>




<p>Just delete these 2 files and firefox should start right up.</p>

<h3>References</h3>

<p>For more info about Firefox startup issues check out this <a href="http://support.mozilla.com/en-uS/kb/firefox+is+already+running+but+is+not+responding">mozilla <span class="caps">FAQ</span></a></p>

<p><strong><span class="caps">NOTE</span>:</strong> For further details regarding my <strong>one-liner</strong> blog posts, check out my <a href="http://www.lamolabs.org/blog/2147/intro-blogs-one-liner-code-block-style-guides/">one-liner style guide primer</a>.</p><div id="wherego_related"> </div>]]></content:encoded>
			<wfw:commentRss>http://www.lamolabs.org/blog/3800/one-liner-firefox-already-running-dialog-box-on-fedoracentosrhel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[one-liner]: Getting Rid of Google&#8217;s Left Sidebar (2nd Attempt)</title>
		<link>http://www.lamolabs.org/blog/3656/one-liner-getting-rid-of-googles-left-sidebar-2nd-attempt/</link>
		<comments>http://www.lamolabs.org/blog/3656/one-liner-getting-rid-of-googles-left-sidebar-2nd-attempt/#comments</comments>
		<pubDate>Fri, 07 May 2010 14:54:00 +0000</pubDate>
		<dc:creator>slmingol</dc:creator>
				<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[one-liner]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://www.lamolabs.org/blog/?p=3656</guid>
		<description><![CDATA[Problem

<p>In a previous [one-liner] post I mentioned a quick way to get rid of Google&#8217;s new Left Sidebar. Here&#8217;s a screenshot from that post of the Google sidebar.</p>

<p class="wp-caption-text">Google Left Sidebar</p>

<p>Well as of May 2010 it appears that the Google sidebar is back, and my hack of just deleting the google.com cookies no longer seems [...]]]></description>
			<content:encoded><![CDATA[<h3>Problem</h3>

<p>In a previous <strong>[one-liner]</strong> post I mentioned a quick way to <a href="http://www.lamolabs.org/blog/3547/one-liner-getting-rid-of-googles-left-sidebar/">get rid of Google&#8217;s new Left Sidebar</a>. Here&#8217;s a screenshot from that post of the Google sidebar.</p>

<div id="attachment_3584" class="wp-caption aligncenter" style="width: 710px"><a href="http://www.lamolabs.org/blog/wp-content/uploads/2010/04/googleleftsidebar.jpg" rel="lightbox[3656]"><img src="http://www.lamolabs.org/blog/wp-content/uploads/2010/04/googleleftsidebar.jpg" alt="" title="Google Left Sidebar" width="700" height="501" class="size-full wp-image-3584" /></a><p class="wp-caption-text">Google Left Sidebar</p></div>

<p>Well as of May 2010 it appears that the Google sidebar is back, and my hack of just deleting the google.com cookies no longer seems to permanently get rid of the sidebar. So now it&#8217;s time to bring out a bigger stick &#8230; <a href="http://www.greasespot.net/">greasemonkey</a>.</p>

<h3>Solution</h3>

<p>If you haven&#8217;t heard of <a href="http://www.greasespot.net/">greasemonkey</a>, it&#8217;s a plugin to Firefox that allows you to control elements of a page that you are viewing, essentially overriding the design of a given page. You can do things like get rid of sidebars, add your own buttons, etc. I&#8217;m not going to get into everything it can do, we&#8217;re only interested in getting rid of Google&#8217;s sidebar, and with greasemonkey installed it becomes a simple task.</p>

<p>First click this link: <a href="https://addons.mozilla.org/en-US/firefox/addon/748">greasemonkey plugin to Firefox</a>, and click on the <strong>&#8220;Add to Firefox&#8221;</strong> button on that page. Restart Firefox to activate the greasemonkey plugin. Next you&#8217;ll want to make use of a greasemonkey &#8220;script&#8221; that is freely available over on <a href="http://userscripts.org/">userscripts.org</a>. </p>

<p><strong><span class="caps">NOTE</span>:</strong> The <a href="http://userscripts.org/">userscripts.org</a> website allows users to share useful greasemonkey scripts.</p>

<p>The greasemonkey script you&#8217;re looking for is called <a href="http://userscripts.org/scripts/show/76065">Toggle Google SideBar</a>. Each &#8220;script&#8221; on the userscripts.org website has a big install button on their respective pages, so just click that button to install it. Once you&#8217;ve done that you&#8217;re done.</p>

<p>Now Google search results pages will look like this with the sidebar visible:</p>

<div id="attachment_3661" class="wp-caption aligncenter" style="width: 660px"><a href="http://www.lamolabs.org/blog/wp-content/uploads/2010/05/google_sidebar_open.png" rel="lightbox[3656]"><img src="http://www.lamolabs.org/blog/wp-content/uploads/2010/05/google_sidebar_open-650x196.png" alt="" title="google_sidebar_open" width="650" height="196" class="size-medium wp-image-3661" /></a><p class="wp-caption-text">Google sidebar open</p></div>

<p>&#8230;and like this when the sidebar is hidden:</p>

<div id="attachment_3662" class="wp-caption aligncenter" style="width: 660px"><a href="http://www.lamolabs.org/blog/wp-content/uploads/2010/05/google_sidebar_closed.png" rel="lightbox[3656]"><img src="http://www.lamolabs.org/blog/wp-content/uploads/2010/05/google_sidebar_closed-650x179.png" alt="" title="google_sidebar_closed" width="650" height="179" class="size-medium wp-image-3662" /></a><p class="wp-caption-text">Google sidebar closed</p></div>

<p>Notice the big [+]? This allows you to toggle the Google sidebar if you want to see it.</p>

<p><strong><span class="caps">NOTE</span>:</strong> For further details regarding my <strong>one-liner</strong> blog posts, check out my <a href="http://www.lamolabs.org/blog/2147/intro-blogs-one-liner-code-block-style-guides/">one-liner style guide primer</a>.</p><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.lamolabs.org/blog/2147/intro-blogs-one-liner-code-block-style-guides/" rel="bookmark" class="wherego_title">Intro to my Blog&#8217;s [one-liner] Code Block Style Guides</a></li><li><a href="http://www.lamolabs.org/blog/3547/one-liner-getting-rid-of-googles-left-sidebar/" rel="bookmark" class="wherego_title">[one-liner]: Getting Rid of Google&#8217;s Left Sidebar (1st Attempt)</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.lamolabs.org/blog/3656/one-liner-getting-rid-of-googles-left-sidebar-2nd-attempt/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[one-liner]: Getting Rid of Google&#8217;s Left Sidebar (1st Attempt)</title>
		<link>http://www.lamolabs.org/blog/3547/one-liner-getting-rid-of-googles-left-sidebar/</link>
		<comments>http://www.lamolabs.org/blog/3547/one-liner-getting-rid-of-googles-left-sidebar/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 07:57:10 +0000</pubDate>
		<dc:creator>slmingol</dc:creator>
				<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[one-liner]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://www.lamolabs.org/blog/?p=3547</guid>
		<description><![CDATA[<p>NOTE: Refer to this updated post regarding Google&#8217;s left sidebar</p>

Problem

<p>So around 12:30am (4/1/2010) I go to hit google and I&#8217;m presented with this left sidebar (see it in the screenshot below). Given it&#8217;s April 1st, my first thought went to &#8230; its an April fools joke. But after poking at it for a bit longer [...]]]></description>
			<content:encoded><![CDATA[<p><strong><span class="caps">NOTE</span>:</strong> <a href="http://www.lamolabs.org/blog/3656/one-liner-getting-rid-of-googles-left-sidebar-2nd-attempt/">Refer to this updated post regarding Google&#8217;s left sidebar</a></p>

<h3>Problem</h3>

<p>So around 12:30am (4/1/2010) I go to hit google and I&#8217;m presented with this left sidebar (see it in the screenshot below). Given it&#8217;s April 1st, my first thought went to &#8230; <em>its an April fools joke</em>. But after poking at it for a bit longer it seemed legit. So I tried it for like 30 seconds and it sucks. What can I say it&#8217;s a waste of space so it had to go.</p>

<div id="attachment_3584" class="wp-caption aligncenter" style="width: 710px"><a href="http://www.lamolabs.org/blog/wp-content/uploads/2010/04/googleleftsidebar.jpg" rel="lightbox[3547]"><img src="http://www.lamolabs.org/blog/wp-content/uploads/2010/04/googleleftsidebar.jpg" alt="" title="Google Left Sidebar" width="700" height="501" class="size-full wp-image-3584" /></a><p class="wp-caption-text">Google Left Sidebar</p></div>

<h3>Solution</h3>

<p>The fix is pretty easy. Basically go into Firefox&#8217;s Preferences <strong>(Edit -&gt; Preferences)</strong>, under Linux, and delete the <strong>google.com cookies</strong>. The cookies are located under the <strong>privacy tab</strong> of the <strong>Preferences dialog</strong>.</p>

<div id="attachment_3562" class="wp-caption aligncenter" style="width: 160px"><a href="http://www.lamolabs.org/blog/wp-content/uploads/2010/04/Firefox-Preferences_001.png" rel="lightbox[3547]"><img src="http://www.lamolabs.org/blog/wp-content/uploads/2010/04/Firefox-Preferences_001-150x150.png" alt="Firefox Preferences Dialog" title="Firefox Preferences Dialog" width="150" height="150" class="size-thumbnail wp-image-3562" /></a><p class="wp-caption-text">Firefox Preferences Dialog</p></div>

<p><strong><span class="caps">NOTE</span>:</strong> Make sure you delete just the google.com cookies.</p>

<div id="attachment_3563" class="wp-caption aligncenter" style="width: 160px"><a href="http://www.lamolabs.org/blog/wp-content/uploads/2010/04/Cookies_004.png" rel="lightbox[3547]"><img src="http://www.lamolabs.org/blog/wp-content/uploads/2010/04/Cookies_004-150x150.png" alt="Cookies Dialog" title="Cookies Dialog" width="150" height="150" class="size-thumbnail wp-image-3563" /></a><p class="wp-caption-text">Cookies Dialog</p></div>

<p>And with that, Google&#8217;s back to normal.</p>

<p><strong><span class="caps">NOTE</span>:</strong> For further details regarding my <strong>one-liner</strong> blog posts, check out my <a href="http://www.lamolabs.org/blog/2147/intro-blogs-one-liner-code-block-style-guides/">one-liner style guide primer</a>.</p><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.lamolabs.org/blog/3656/one-liner-getting-rid-of-googles-left-sidebar-2nd-attempt/" rel="bookmark" class="wherego_title">[one-liner]: Getting Rid of Google&#8217;s Left Sidebar (2nd Attempt)</a></li><li><a href="http://www.lamolabs.org/blog/2147/intro-blogs-one-liner-code-block-style-guides/" rel="bookmark" class="wherego_title">Intro to my Blog&#8217;s [one-liner] Code Block Style Guides</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.lamolabs.org/blog/3547/one-liner-getting-rid-of-googles-left-sidebar/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[one-liner]: Using Yum to Download RPMs under Fedora, CentOS, and RHEL</title>
		<link>http://www.lamolabs.org/blog/3520/one-liner-using-yum-to-download-rpms-under-fedora-centos-rhel/</link>
		<comments>http://www.lamolabs.org/blog/3520/one-liner-using-yum-to-download-rpms-under-fedora-centos-rhel/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 14:37:29 +0000</pubDate>
		<dc:creator>slmingol</dc:creator>
				<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[one-liner]]></category>
		<category><![CDATA[package management]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://www.lamolabs.org/blog/?p=3520</guid>
		<description><![CDATA[Background

<p>From time to time I&#8217;ve run into an RPM that won&#8217;t install via yum. These usually pop up because I&#8217;ve mixed packages in from a 3rd party repository, and the 3rd party package has some overlapping files with an already installed RPM.</p>

Problem

<p>Here&#8217;s an example that happened to me recently on a Fedora 10 system where [...]]]></description>
			<content:encoded><![CDATA[<h3>Background</h3>

<p>From time to time I&#8217;ve run into an <strong><span class="caps">RPM</span></strong> that <strong>won&#8217;t install</strong> via <strong>yum</strong>. These usually pop up because I&#8217;ve <strong>mixed</strong> packages in from a <strong>3rd party repository</strong>, and the 3rd party package has some overlapping files with an already installed <span class="caps">RPM.</span></p>

<h3>Problem</h3>

<p>Here&#8217;s an example that happened to me recently on a Fedora 10 system where I was trying to install some pulseaudio related packages.</p>


<div class="wp_codebox"><table width="100%" ><tr id="p35207"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="code" id="p3520code7"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> yum <span style="color: #c20cb9; font-weight: bold;">install</span> xmms-pulse xine-lib-pulseaudio
Package xmms-pulse-0.9.4-6.fc10.i386 already installed and latest version
Resolving Dependencies
--<span style="color: #000000; font-weight: bold;">&gt;</span> Running transaction check
---<span style="color: #000000; font-weight: bold;">&gt;</span> Package xine-lib-pulseaudio.i386 0:1.1.16.3-2.fc10 <span style="color: #000000; font-weight: bold;">set</span> to be updated
--<span style="color: #000000; font-weight: bold;">&gt;</span> Processing Dependency: xine-lib = 1.1.16.3-2.fc10 <span style="color: #000000; font-weight: bold;">for</span> package: xine-lib-pulseaudio-1.1.16.3-2.fc10.i386
--<span style="color: #000000; font-weight: bold;">&gt;</span> Finished Dependency Resolution
xine-lib-pulseaudio-1.1.16.3-2.fc10.i386 from updates has depsolving problems
  --<span style="color: #000000; font-weight: bold;">&gt;</span> Missing Dependency: xine-lib = 1.1.16.3-2.fc10 is needed by package xine-lib-pulseaudio-1.1.16.3-2.fc10.i386 <span style="color: #7a0874; font-weight: bold;">&#40;</span>updates<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Error: Missing Dependency: xine-lib = 1.1.16.3-2.fc10 is needed by package xine-lib-pulseaudio-1.1.16.3-2.fc10.i386 <span style="color: #7a0874; font-weight: bold;">&#40;</span>updates<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 You could try using <span style="color: #660033;">--skip-broken</span> to work around the problem
 You could try running: package-cleanup <span style="color: #660033;">--problems</span>
                        package-cleanup <span style="color: #660033;">--dupes</span>
                        rpm <span style="color: #660033;">-Va</span> <span style="color: #660033;">--nofiles</span> <span style="color: #660033;">--nodigest</span></pre></td></tr></table></div>




<h3>Solution</h3>

<p>If you&#8217;re confident that this is a <strong>&#8220;false positive&#8221;</strong> type of error you can force your way around it like so. First download the <span class="caps">RPM </span>using the never mentioned command <strong>yumdownloader</strong>. </p>

<p><strong><span class="caps">NOTE</span>:</strong> yumdownloader is part of the yum-utils package.</p>


<div class="wp_codebox"><table width="100%" ><tr id="p35208"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p3520code8"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> yumdownloader xine-lib-pulseaudio</pre></td></tr></table></div>




<p>Next try to install/upgrade the package.</p>


<div class="wp_codebox"><table width="100%" ><tr id="p35209"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p3520code9"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> rpm <span style="color: #660033;">-Uvh</span> <span style="color: #660033;">--nodeps</span> xine-lib-pulseaudio-1.1.16.3-2.fc10.i386.rpm 
Preparing...                <span style="color: #666666; font-style: italic;">########################################### [100%]</span>
	<span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>xine<span style="color: #000000; font-weight: bold;">/</span>plugins<span style="color: #000000; font-weight: bold;">/</span>1.26<span style="color: #000000; font-weight: bold;">/</span>xineplug_ao_out_pulseaudio.so from <span style="color: #c20cb9; font-weight: bold;">install</span> of xine-lib-pulseaudio-1.1.16.3-2.fc10.i386 conflicts with <span style="color: #c20cb9; font-weight: bold;">file</span> from package xine-lib-1.1.16.3-18.fc10.i386</pre></td></tr></table></div>




<p>This is what I would consider a bogus error. For whatever reason, both <span class="caps">RPM</span>s share the same file, so let&#8217;s just install it already by doing a forced installation of the <span class="caps">RPM.</span></p>


<div class="wp_codebox"><table width="100%" ><tr id="p352010"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p3520code10"><pre class="bash" style="font-family:monospace;"> <span style="color: #000000; font-weight: bold;">%</span> rpm <span style="color: #660033;">-Uvh</span> <span style="color: #660033;">--force</span> <span style="color: #660033;">--nodeps</span> xine-lib-pulseaudio-1.1.16.3-2.fc10.i386.rpm 
Preparing...                <span style="color: #666666; font-style: italic;">########################################### [100%]</span>
   <span style="color: #000000;">1</span>:xine-lib-pulseaudio    <span style="color: #666666; font-style: italic;">########################################### [100%]</span></pre></td></tr></table></div>




<p><strong><span class="caps">NOTE</span>:</strong> For further details regarding my <strong>one-liner</strong> blog posts, check out my <a href="http://www.lamolabs.org/blog/2147/intro-blogs-one-liner-code-block-style-guides/">one-liner style guide primer</a>.</p><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.lamolabs.org/blog/401/git-and-subversion-setup-on-centos-5/" rel="bookmark" class="wherego_title">Git and subversion setup on CentOS 5</a></li><li><a href="http://www.lamolabs.org/blog/2147/intro-blogs-one-liner-code-block-style-guides/" rel="bookmark" class="wherego_title">Intro to my Blog&#8217;s [one-liner] Code Block Style Guides</a></li><li><a href="http://www.lamolabs.org/blog/3479/syslog-message-levels/" rel="bookmark" class="wherego_title">Syslog Message Levels</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.lamolabs.org/blog/3520/one-liner-using-yum-to-download-rpms-under-fedora-centos-rhel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Syslog Message Levels</title>
		<link>http://www.lamolabs.org/blog/3479/syslog-message-levels/</link>
		<comments>http://www.lamolabs.org/blog/3479/syslog-message-levels/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 15:54:42 +0000</pubDate>
		<dc:creator>slmingol</dc:creator>
				<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://www.lamolabs.org/blog/?p=3479</guid>
		<description><![CDATA[<p>I can never find these clearly defined in any man page so I&#8217;m putting them here the next time I need them.</p>

The list of syslog severity Levels

<p>0 &#8211; Emergency &#8211; system is unusable
1 &#8211; Alert &#8211; action must be taken immediately
2 &#8211; Critical &#8211; critical conditions
3 &#8211; Error &#8211; error conditions
4 &#8211; Warning &#8211; warning [...]]]></description>
			<content:encoded><![CDATA[<p>I can never find these clearly defined in any man page so I&#8217;m putting them here the next time I need them.</p>

<h3>The list of syslog severity Levels</h3>

<p><strong>0</strong> &#8211; <em><strong>Emergency</strong></em> &#8211; system is unusable<br />
<strong>1</strong> &#8211; <em><strong>Alert</strong></em> &#8211; action must be taken immediately<br />
<strong>2</strong> &#8211; <em><strong>Critical</strong></em> &#8211; critical conditions<br />
<strong>3</strong> &#8211; <em><strong>Error</strong></em> &#8211; error conditions<br />
<strong>4</strong> &#8211; <em><strong>Warning</strong></em> &#8211; warning conditions<br />
<strong>5</strong> &#8211; <em><strong>Notice</strong></em> &#8211; normal but significant condition<br />
<strong>6</strong> &#8211; <em><strong>Informational</strong></em> &#8211; informational messages<br />
<strong>7</strong> &#8211; <em><strong>Debug</strong></em> &#8211; debug-level messages</p>

<p>Recommended practice is to use the Notice or Informational level for normal messages.</p>

<h3>A detailed explanation of the severity Levels</h3>

<p><em><span class="caps">DEBUG</span>:</em><br />
Info useful to developers for debugging the application, not useful during operations</p>

<p><em><span class="caps">INFORMATIONAL</span>:</em><br />
Normal operational messages &#8211; may be harvested for reporting, measuring throughput, etc &#8211; no action required</p>

<p><em><span class="caps">NOTICE</span>:</em><br />
Events that are unusual but not error conditions &#8211; might be summarized in an email to developers or admins to spot potential problems &#8211; no immediate action required</p>

<p><em><span class="caps">WARNING</span>:</em><br />
Warning messages &#8211; not an error, but indication that an error will occur if action is not taken, e.g. file system 85% full &#8211; each item must be resolved within a given time</p>

<p><em><span class="caps">ERROR</span>:</em><br />
Non-urgent failures &#8211; these should be relayed to developers or admins; each item must be resolved within a given time</p>

<p><em><span class="caps">ALERT</span>:</em><br />
Should be corrected immediately &#8211; notify staff who can fix the problem &#8211; example is loss of backup <span class="caps">ISP </span>connection</p>

<p><em><span class="caps">CRITICAL</span>:</em><br />
Should be corrected immediately, but indicates failure in a primary system &#8211; fix <span class="caps">CRITICAL </span>problems before <span class="caps">ALERT </span>- example is loss of primary <span class="caps">ISP </span>connection</p>

<p><em><span class="caps">EMERGENCY</span>:</em><br />
A &#8220;panic&#8221; condition &#8211; notify all tech staff on call? (earthquake? tornado?) &#8211; affects multiple apps/servers/sites&#8230;</p>

<h3>Useful Links</h3>


<ul>
<li><a href="http://www.kiwisyslog.com/kb/info:-syslog-message-levels/"><span class="caps">INFO</span>: Syslog message levels</a></li>
<li><a href="http://www.aboutdebian.com/syslog.htm">How To Set Up A Debian Linux Syslog Server</a></li>
</ul>

<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.lamolabs.org/blog/370/installing-python-25-on-centos-5/" rel="bookmark" class="wherego_title">Installing Python 2.5 on CentOS 5</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.lamolabs.org/blog/3479/syslog-message-levels/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[one-liner]: Analyzing a System&#8217;s BIOS from the Command Line under Fedora, CentOS, or RHEL</title>
		<link>http://www.lamolabs.org/blog/2616/one-liner-analyzing-a-systems-bios-from-the-command-line-under-fedora-centos-rhel/</link>
		<comments>http://www.lamolabs.org/blog/2616/one-liner-analyzing-a-systems-bios-from-the-command-line-under-fedora-centos-rhel/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 16:10:26 +0000</pubDate>
		<dc:creator>slmingol</dc:creator>
				<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[one-liner]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://www.lamolabs.org/blog/?p=2616</guid>
		<description><![CDATA[Background

<p>A system&#8217;s BIOS is a treasure trove of a lot of useful info about the capabilities of a computer. BIOS, which stands for Basic Input/Output System, contains information such as:</p>



motherboard manufacturer
system&#8217;s serial number
amount of RAM installed
the CPUs speed &#38; signature




<p>Normally the BIOS is accessible by pressing the delete key or the F1 key while your [...]]]></description>
			<content:encoded><![CDATA[<h3>Background</h3>

<p>A system&#8217;s <span class="caps">BIOS </span>is a treasure trove of a lot of useful info about the capabilities of a computer. <span class="caps">BIOS, </span>which stands for Basic Input/Output System, contains information such as:</p>


<ul>
<li>motherboard manufacturer</li>
<li>system&#8217;s serial number</li>
<li>amount of <span class="caps">RAM </span>installed</li>
<li>the <span class="caps">CPU</span>s speed &amp; signature</li>
</ul>



<p>Normally the <span class="caps">BIOS </span>is accessible by pressing the <strong>delete</strong> key or the <strong>F1</strong> key while your computer is booting up.</p>

<h3>Problem</h3>

<p>Occasionally I&#8217;ve wanted to check out the <span class="caps">BIOS </span>settings of a system without having to go through the hassle of rebooting. With the help of this nifty command line tool, <strong>dmidecode</strong>, <span class="caps">BIOS </span>info can be had, without having to reboot.</p>

<h3>Solution</h3>

<p>&#8230;from the <strong>dmidecode</strong> <em>man page</em>&#8230;</p>

<blockquote><p>dmidecode  is  a tool for dumping a computer&#8217;s <span class="caps">DMI </span>(some say <span class="caps">SMBIOS</span>) table contents in a human-readable format. This table contains a description of the system&#8217;s hardware components, as well as other useful pieces of information such as serial numbers and <span class="caps">BIOS </span>revision. Thanks to this table, you can retrieve this information without having to probe for the actual hardware.  While this is a good point in terms of report speed and safeness, this also makes the presented information possibly unreliable.</p>

<p>The  <span class="caps">DMI  </span>table  doesn&#8217;t  only describe what the system is currently made of, it also can report the possible evolutions (such as the fastest supported <span class="caps">CPU </span>or the maximal amount of memory supported).</p>

<p><span class="caps">SMBIOS </span>stands for System Management <span class="caps">BIOS, </span>while <span class="caps">DMI </span>stands for Desktop Management Interface. Both standards are tightly related and developed by the <span class="caps">DMTF </span>(Desktop Manage- ment Task Force).</p></blockquote>

<h4>Example output from a Thinkpad <span class="caps">T42 </span>laptop</h4>

<p>When you first run the <strong>dmidecode</strong> command it tells you a summary of how many structures are present within your system&#8217;s <span class="caps">BIOS.</span></p>


<div class="wp_codebox"><table width="100%" ><tr id="p261621"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p2616code21"><pre class="text" style="font-family:monospace;">% dmidecode 
# dmidecode 2.9
SMBIOS 2.33 present.
61 structures occupying 2126 bytes.
Table at 0x000E0010.</pre></td></tr></table></div>




<p>Each structure is represented by a <strong>handle ID</strong> which is a <strong>hex value</strong> of the form 0x001F, followed by it&#8217;s type and it&#8217;s size.</p>

<p><span id="more-2616"></span></p>

<h5>System Info</h5>


<div class="wp_codebox"><table width="100%" ><tr id="p261622"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
</pre></td><td class="code" id="p2616code22"><pre class="text" style="font-family:monospace;">...
&nbsp;
Handle 0x0000, DMI type 0, 20 bytes
BIOS Information
	Vendor: IBM
	Version: 1RETDPWW (3.21 )
	Release Date: 06/02/2006
	Address: 0xDC000
	Runtime Size: 144 kB
	ROM Size: 1024 kB
	Characteristics:
		PCI is supported
		PC Card (PCMCIA) is supported
		PNP is supported
		APM is supported
		BIOS is upgradeable
		BIOS shadowing is allowed
		ESCD support is available
		Boot from CD is supported
		Selectable boot is supported
		EDD is supported
		3.5&quot;/720 KB floppy services are supported (int 13h)
		Print screen service is supported (int 5h)
		8042 keyboard services are supported (int 9h)
		Serial services are supported (int 14h)
		Printer services are supported (int 17h)
		CGA/mono video services are supported (int 10h)
		ACPI is supported
		USB legacy is supported
		AGP is supported
		BIOS boot specification is supported
&nbsp;
Handle 0x0001, DMI type 1, 25 bytes
System Information
	Manufacturer: IBM
	Product Name: 2373B09
	Version: ThinkPad T42
	Serial Number: 99N4BVC
	UUID: 205A7001-46D4-22CB-B51D-FDE5F7FCD3CD
	Wake-up Type: Power Switch
&nbsp;
Handle 0x0002, DMI type 2, 8 bytes
Base Board Information
	Manufacturer: IBM
	Product Name: 2373B09
	Version: Not Available
	Serial Number: J1ZTY5031AP
&nbsp;
Handle 0x0003, DMI type 3, 17 bytes
Chassis Information
	Manufacturer: IBM
	Type: Notebook
	Lock: Not Present
	Version: Not Available
	Serial Number: Not Available
	Asset Tag: No Asset Information
	Boot-up State: Unknown
	Power Supply State: Unknown
	Thermal State: Unknown
	Security Status: Unknown
	OEM Information: 0x00000000</pre></td></tr></table></div>




<h5><span class="caps">CPU</span> Info</h5>


<div class="wp_codebox"><table width="100%" ><tr id="p261623"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
</pre></td><td class="code" id="p2616code23"><pre class="text" style="font-family:monospace;">...
&nbsp;
Handle 0x0006, DMI type 4, 35 bytes
Processor Information
	Socket Designation: None
	Type: Central Processor
	Family: Pentium M
	Manufacturer: GenuineIntel
	ID: D6 06 00 00 BF B3 A3 AF
	Signature: Type 0, Family 6, Model 13, Stepping 6
	Flags:
		FPU (Floating-point unit on-chip)
		VME (Virtual mode extension)
		DE (Debugging extension)
		PSE (Page size extension)
		TSC (Time stamp counter)
		MSR (Model specific registers)
		MCE (Machine check exception)
		CX8 (CMPXCHG8 instruction supported)
		SEP (Fast system call)
		MTRR (Memory type range registers)
		PGE (Page global enable)
		MCA (Machine check architecture)
		CMOV (Conditional move instruction supported)
		PAT (Page attribute table)
		CLFSH (CLFLUSH instruction supported)
		DS (Debug store)
		ACPI (ACPI supported)
		MMX (MMX technology supported)
		FXSR (Fast floating-point save and restore)
		SSE (Streaming SIMD extensions)
		SSE2 (Streaming SIMD extensions 2)
		SS (Self-snoop)
		TM (Thermal monitor supported)
		PBE (Pending break enabled)
	Version: Intel(R) Pentium(R) M processor
	Voltage: 1.3 V
	External Clock: 400 MHz
	Max Speed: 1600 MHz
	Current Speed: 1600 MHz
	Status: Populated, Enabled
	Upgrade: None
	L1 Cache Handle: 0x000A
	L2 Cache Handle: 0x000B
	L3 Cache Handle: Not Provided
	Serial Number: Not Specified
	Asset Tag: Not Specified
	Part Number: Not Specified
...</pre></td></tr></table></div>




<h5><span class="caps">RAM</span> Info</h5>


<div class="wp_codebox"><table width="100%" ><tr id="p261624"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
</pre></td><td class="code" id="p2616code24"><pre class="text" style="font-family:monospace;">...
Handle 0x0007, DMI type 5, 20 bytes
Memory Controller Information
	Error Detecting Method: None
	Error Correcting Capabilities:
		None
	Supported Interleave: One-way Interleave
	Current Interleave: One-way Interleave
	Maximum Memory Module Size: 1024 MB
	Maximum Total Memory Size: 2048 MB
	Supported Speeds:
		Other
	Supported Memory Types:
		DIMM
		SDRAM
	Memory Module Voltage: 2.9 V
	Associated Memory Slots: 2
		0x0008
		0x0009
	Enabled Error Correcting Capabilities:
		None
&nbsp;
Handle 0x0008, DMI type 6, 12 bytes
Memory Module Information
	Socket Designation: DIMM Slot 1
	Bank Connections: 0 1
	Current Speed: Unknown
	Type: DIMM SDRAM
	Installed Size: 1024 MB (Double-bank Connection)
	Enabled Size: 1024 MB (Double-bank Connection)
	Error Status: OK
&nbsp;
Handle 0x0009, DMI type 6, 12 bytes
Memory Module Information
	Socket Designation: DIMM Slot 2
	Bank Connections: 2 3
	Current Speed: Unknown
	Type: DIMM SDRAM
	Installed Size: 1024 MB (Double-bank Connection)
	Enabled Size: 1024 MB (Double-bank Connection)
	Error Status: OK
...</pre></td></tr></table></div>




<h5>Cache Info</h5>


<div class="wp_codebox"><table width="100%" ><tr id="p261625"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
</pre></td><td class="code" id="p2616code25"><pre class="text" style="font-family:monospace;">...
Handle 0x000A, DMI type 7, 19 bytes
Cache Information
	Socket Designation: Internal L1 Cache
	Configuration: Enabled, Socketed, Level 1
	Operational Mode: Write Back
	Location: Internal
	Installed Size: 32 KB
	Maximum Size: 32 KB
	Supported SRAM Types:
		Synchronous
	Installed SRAM Type: Synchronous
	Speed: Unknown
	Error Correction Type: Unknown
	System Type: Other
	Associativity: 8-way Set-associative
&nbsp;
Handle 0x000B, DMI type 7, 19 bytes
Cache Information
	Socket Designation: Internal L2 Cache
	Configuration: Enabled, Socketed, Level 2
	Operational Mode: Write Back
	Location: Internal
	Installed Size: 2048 KB
	Maximum Size: 2048 KB
	Supported SRAM Types:
		Burst
	Installed SRAM Type: Burst
	Speed: Unknown
	Error Correction Type: Multi-bit ECC
	System Type: Unified
	Associativity: 8-way Set-associative
...</pre></td></tr></table></div>




<h5>Port Info (USB, Infrared, Parallel, etc.)</h5>


<div class="wp_codebox"><table width="100%" ><tr id="p261626"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
</pre></td><td class="code" id="p2616code26"><pre class="text" style="font-family:monospace;">...
Handle 0x000D, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: Not Available
	Internal Connector Type: None
	External Reference Designator: Infrared
	External Connector Type: Infrared
	Port Type: Other
&nbsp;
Handle 0x000E, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: Not Available
	Internal Connector Type: None
	External Reference Designator: Parallel
	External Connector Type: DB-25 female
	Port Type: Parallel Port ECP/EPP
&nbsp;
Handle 0x000F, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: Not Available
	Internal Connector Type: None
	External Reference Designator: External Monitor
	External Connector Type: DB-15 female
	Port Type: Video Port
&nbsp;
Handle 0x0015, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: Not Available
	Internal Connector Type: None
	External Reference Designator: Microphone Jack
	External Connector Type: Mini Jack (headphones)
	Port Type: Audio Port
&nbsp;
Handle 0x0016, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: Not Available
	Internal Connector Type: None
	External Reference Designator: Headphone Jack
	External Connector Type: Mini Jack (headphones)
	Port Type: Audio Port
&nbsp;
Handle 0x0017, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: Not Available
	Internal Connector Type: None
	External Reference Designator: S-Video-Out
	External Connector Type: Other
	Port Type: Video Port
&nbsp;
Handle 0x0019, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: Not Available
	Internal Connector Type: None
	External Reference Designator: Modem
	External Connector Type: RJ-11
	Port Type: Modem Port
&nbsp;
Handle 0x001A, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: Not Available
	Internal Connector Type: None
	External Reference Designator: Ethernet
	External Connector Type: RJ-45
	Port Type: Network Port
&nbsp;
Handle 0x001B, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: Not Available
	Internal Connector Type: None
	External Reference Designator: USB 1
	External Connector Type: Access Bus (USB)
	Port Type: USB
&nbsp;
Handle 0x001C, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: Not Available
	Internal Connector Type: None
	External Reference Designator: USB 2
	External Connector Type: Access Bus (USB)
	Port Type: USB
...</pre></td></tr></table></div>




<h5>CardBus Slot Info</h5>


<div class="wp_codebox"><table width="100%" ><tr id="p261627"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
</pre></td><td class="code" id="p2616code27"><pre class="text" style="font-family:monospace;">...
Handle 0x0022, DMI type 9, 13 bytes
System Slot Information
	Designation: CardBus Slot 1
	Type: 32-bit PC Card (PCMCIA)
	Current Usage: Available
	Length: Other
	ID: Adapter 0, Socket 0
	Characteristics:
		5.0 V is provided
		3.3 V is provided
		PC Card-16 is supported
		Cardbus is supported
		Zoom Video is supported
		Modem ring resume is supported
		PME signal is supported
		Hot-plug devices are supported
&nbsp;
Handle 0x0023, DMI type 9, 13 bytes
System Slot Information
	Designation: CardBus Slot 2
	Type: 32-bit PC Card (PCMCIA)
	Current Usage: Available
	Length: Other
	ID: Adapter 1, Socket 0
	Characteristics:
		5.0 V is provided
		3.3 V is provided
		PC Card-16 is supported
		Cardbus is supported
		Zoom Video is supported
		Modem ring resume is supported
		PME signal is supported
		Hot-plug devices are supported
...</pre></td></tr></table></div>




<h5><span class="caps">RAM</span> Modules Info</h5>


<div class="wp_codebox"><table width="100%" ><tr id="p261628"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
</pre></td><td class="code" id="p2616code28"><pre class="text" style="font-family:monospace;">...
Handle 0x002C, DMI type 16, 15 bytes
Physical Memory Array
	Location: System Board Or Motherboard
	Use: System Memory
	Error Correction Type: None
	Maximum Capacity: 1 GB
	Error Information Handle: Not Provided
	Number Of Devices: 2
&nbsp;
Handle 0x002D, DMI type 17, 27 bytes
Memory Device
	Array Handle: 0x002C
	Error Information Handle: No Error
	Total Width: 64 bits
	Data Width: 64 bits
	Size: 1024 MB
	Form Factor: SODIMM
	Set: None
	Locator: DIMM 1
	Bank Locator: Bank 0/1
	Type: DDR
	Type Detail: Synchronous
	Speed: Unknown
	Manufacturer: Not Specified
	Serial Number: Not Specified
	Asset Tag: Not Specified
	Part Number: Not Specified
&nbsp;
Handle 0x002E, DMI type 17, 27 bytes
Memory Device
	Array Handle: 0x002C
	Error Information Handle: No Error
	Total Width: 64 bits
	Data Width: 64 bits
	Size: 1024 MB
	Form Factor: SODIMM
	Set: None
	Locator: DIMM 2
	Bank Locator: Bank 2/3
	Type: DDR
	Type Detail: Synchronous
	Speed: Unknown
	Manufacturer: Not Specified
	Serial Number: Not Specified
	Asset Tag: Not Specified
	Part Number: Not Specified
&nbsp;
Handle 0x002F, DMI type 18, 23 bytes
32-bit Memory Error Information
	Type: OK
	Granularity: Unknown
	Operation: Unknown
	Vendor Syndrome: Unknown
	Memory Array Address: Unknown
	Device Address: Unknown
	Resolution: Unknown
&nbsp;
Handle 0x0030, DMI type 19, 15 bytes
Memory Array Mapped Address
	Starting Address: 0x00000000000
	Ending Address: 0x0007FFFFFFF
	Range Size: 2 GB
	Physical Array Handle: 0x002C
	Partition Width: 0
&nbsp;
Handle 0x0031, DMI type 20, 19 bytes
Memory Device Mapped Address
	Starting Address: 0x00000000000
	Ending Address: 0x0003FFFFFFF
	Range Size: 1 GB
	Physical Device Handle: 0x002D
	Memory Array Mapped Address Handle: 0x0030
	Partition Row Position: 1
&nbsp;
Handle 0x0032, DMI type 20, 19 bytes
Memory Device Mapped Address
	Starting Address: 0x00040000000
	Ending Address: 0x0007FFFFFFF
	Range Size: 1 GB
	Physical Device Handle: 0x002E
	Memory Array Mapped Address Handle: 0x0030
	Partition Row Position: 1
...</pre></td></tr></table></div>




<h5>Pointing Device Info</h5>


<div class="wp_codebox"><table width="100%" ><tr id="p261629"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code" id="p2616code29"><pre class="text" style="font-family:monospace;">...
Handle 0x0033, DMI type 21, 7 bytes
Built-in Pointing Device
	Type: Track Point
	Interface: PS/2
	Buttons: 3
&nbsp;
Handle 0x0034, DMI type 21, 7 bytes
Built-in Pointing Device
	Type: Touch Pad
	Interface: PS/2
	Buttons: 0
...</pre></td></tr></table></div>




<h5>The End</h5>


<div class="wp_codebox"><table width="100%" ><tr id="p261630"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p2616code30"><pre class="text" style="font-family:monospace;">...
End Of Table</pre></td></tr></table></div>




<p>There are some additional <strong>handles</strong> related to system logging, hardware security, and <span class="caps">OEM </span>information that I omitted to keep this post from just becoming a complete dump of the output but needless to say <strong>dmidecode</strong> is a pretty exhaustive and sweet command.</p>

<h3>Useful Links</h3>

<p>Check out the <a href="http://www.nongnu.org/dmidecode/">dmidecode website</a> or the man page for more information.</p>

<p><strong><span class="caps">NOTE</span>:</strong> For further details regarding my <strong>one-liner</strong> blog posts, check out my <a href="http://www.lamolabs.org/blog/2147/intro-blogs-one-liner-code-block-style-guides/">one-liner style guide primer</a>.</p><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.lamolabs.org/blog/2147/intro-blogs-one-liner-code-block-style-guides/" rel="bookmark" class="wherego_title">Intro to my Blog&#8217;s [one-liner] Code Block Style Guides</a></li><li><a href="http://www.lamolabs.org/blog/2842/one-liner-previewing-a-pretty-printed-text-file-using-enscript-ps2pdf/" rel="bookmark" class="wherego_title">[one-liner]: Previewing a Pretty Printed Text File using enscript &#038; ps2pdf</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.lamolabs.org/blog/2616/one-liner-analyzing-a-systems-bios-from-the-command-line-under-fedora-centos-rhel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Broken Arrow Keys during an Ubuntu 9.04 install on Vmware Server 1.X</title>
		<link>http://www.lamolabs.org/blog/3132/broken-arrow-keys-during-an-ubuntu-9-04-install-on-vmware-server-1-x/</link>
		<comments>http://www.lamolabs.org/blog/3132/broken-arrow-keys-during-an-ubuntu-9-04-install-on-vmware-server-1-x/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 01:34:16 +0000</pubDate>
		<dc:creator>slmingol</dc:creator>
				<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.lamolabs.org/blog/?p=3132</guid>
		<description><![CDATA[Background

<p>Recently I was trying to create a Ubuntu 9.04 vmware image using Vmware Server 1.08, but I was doing it remotely from my Fedora 10 laptop which was running Vmware Server 1.06. This can normally be done by using Vmware Server&#8217;s ability to remotely connect to other Vmware Servers.</p>

<p class="wp-caption-text">VMware Server Console</p>

<p>Here&#8217;s my work flow. [...]]]></description>
			<content:encoded><![CDATA[<h3>Background</h3>

<p>Recently I was trying to create a Ubuntu 9.04 vmware image using Vmware Server 1.08, but I was doing it remotely from my Fedora 10 laptop which was running Vmware Server 1.06. This can normally be done by using Vmware Server&#8217;s ability to remotely connect to other Vmware Servers.</p>

<div id="attachment_3194" class="wp-caption aligncenter" style="width: 418px"><img src="http://www.lamolabs.org/blog/wp-content/uploads/2010/01/ss_vmware_server_console_dialog1.png" alt="" title="ss_vmware_server_console_dialog" width="408" height="306" class="size-full wp-image-3194" /><p class="wp-caption-text">VMware Server Console</p></div>

<p>Here&#8217;s my work flow. <strong><span class="caps">NOTE</span>:</strong> Ubuntu 9.04 will be running on the vmware server on CentOS 5.4.</p>

<div id="attachment_3201" class="wp-caption aligncenter" style="width: 479px"><img src="http://www.lamolabs.org/blog/wp-content/uploads/2010/01/vmware_workflow3.png" alt="" title="vmware_workflow" width="469" height="305" class="size-full wp-image-3201" /><p class="wp-caption-text">VMware Workflow</p></div>

<h3>Problem</h3>

<p>While going through the setup I encountered a problem I hadn&#8217;t seen before where the arrow keys didn&#8217;t appear to be working within <span class="caps">GRUB </span>while I was installing Ubuntu 9.04. </p>

<div id="attachment_3138" class="wp-caption aligncenter" style="width: 604px"><img src="http://www.lamolabs.org/blog/wp-content/uploads/2010/01/ss_grub_ubuntu_9.04_1.png" alt="" title="ss_grub_ubuntu_9.04_1" width="594" height="398" class="size-full wp-image-3138" /><p class="wp-caption-text">broken arrow keys</p></div>

<h3>Solution</h3>

<p>Turns out there is an option you can enable (i.e. set to <span class="caps">TRUE</span>) in the <strong>$HOME/.vmware/preferences</strong> file which fixes this.</p>


<div class="wp_codebox"><table width="100%" ><tr id="p313232"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p3132code32"><pre class="conf" style="font-family:monospace;">xkeymap.nokeycodeMap = &quot;TRUE&quot;</pre></td></tr></table></div>




<p><strong><span class="caps">NOTE</span>:</strong> This change was made to the Vmware Server that was running on the Fedora 10 box.</p>

<p><span id="more-3132"></span></p>

<p>I did not need to restart the vmware service, <strong>/etc/init.d/vmware</strong>, for this change to get picked up, however I did need to restart the vmware server <span class="caps">GUI </span>that was running on Fedora 10.</p>

<div id="attachment_3139" class="wp-caption aligncenter" style="width: 605px"><img src="http://www.lamolabs.org/blog/wp-content/uploads/2010/01/ss_grub_ubuntu_9.04_2.png" alt="" title="ss_grub_ubuntu_9.04_2" width="595" height="376" class="size-full wp-image-3139" /><p class="wp-caption-text">working arrow keys</p></div>

<p>This <a href="http://communities.vmware.com/message/1290908#1290908">link</a> on the vmware communities forum proved helpful in figuring out this workaround.</p><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.lamolabs.org/blog/3126/delicious-bookmarks-for-january-26th-from-1446-to-2128/" rel="bookmark" class="wherego_title">Delicious Bookmarks for January 26th from 14:46 to 21:28</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.lamolabs.org/blog/3132/broken-arrow-keys-during-an-ubuntu-9-04-install-on-vmware-server-1-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[one-liner]: Previewing a Pretty Printed Text File using enscript &amp; ps2pdf</title>
		<link>http://www.lamolabs.org/blog/2842/one-liner-previewing-a-pretty-printed-text-file-using-enscript-ps2pdf/</link>
		<comments>http://www.lamolabs.org/blog/2842/one-liner-previewing-a-pretty-printed-text-file-using-enscript-ps2pdf/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 15:45:07 +0000</pubDate>
		<dc:creator>slmingol</dc:creator>
				<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[one-liner]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.lamolabs.org/blog/?p=2842</guid>
		<description><![CDATA[Background

<p>Before my wife and I had kids we thought it would be nice to collect the United States quarters that were released during 1999 through 2008 to commemorate each of the 50 states. Seemed like something simple to do and would be a nice gift for the kids when they got older. So we bought [...]]]></description>
			<content:encoded><![CDATA[<h3>Background</h3>

<p>Before my wife and I had kids we thought it would be nice to collect the <a href="http://www.usmint.gov/mint_Programs/50sq_program/">United States quarters</a> that were released during <strong>1999</strong> through <strong>2008</strong> to commemorate each of the <strong>50 states</strong>. Seemed like something simple to do and would be a nice gift for the kids when they got older. So we bought a couple of the blue books which you can fill up with quarters as you find them. Each book contains 100 slots, 2 for each state. One slot is for the Philadelphia minted version of the quarter, and the other slot is for the Denver mint.</p>

<h3>Problem</h3>

<p>Well we ended up having 3 kids so we have to collect 300 quarters. The task of finding the quarters has been more of a dad task so when I have a chance, I&#8217;ll put a $5 dollar bill in various soda machines at work and go quarter fishing. This approach has been working fairly well and we&#8217;ve collected ~130 of the 300 quarters thus far.</p>

<p>However I&#8217;ve started getting to the point where I&#8217;m netting a lot of duplicates and the job of having to bring them home to weed through them is starting to get old. Having a list of which quarters we already have would sure be nice, so I could quickly nix any duplicates.</p>

<h3>Solution</h3>

<p>Of course I wanted a low tech solution, i.e. a piece of paper in my wallet would do the job, but how to do it?</p>

<p>The answer? A text file that I could maintain would suffice. No need for a bloated spreadsheet or some fancy handheld app. So I created a file, <strong>quarters.txt</strong>, like so:</p>


<div class="wp_codebox"><table width="100%" ><tr id="p284235"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="code" id="p2842code35"><pre class="text" style="font-family:monospace;">State           Year  Cnt (P/D)
=====           ====  =========
Alabama         2003  2/1
Alaska          2008  3/1
Arizona         2008  3/0
Arkansas        2003  3/0
California      2005  3/0
Colorado        2006  3/0
Connecticut     1999  3/2
Delaware        1999  0/0
Florida         2004  2/0
Georgia         1999  2/1
Hawaii          2008  3/0
...</pre></td></tr></table></div>




<p>It&#8217;s about as simple a text file as you can get. 3 columns, <strong>State</strong>, <strong>Year</strong>, and <strong>Counts</strong>. The 3rd column shows how many <strong>P</strong> and <strong>D</strong> quarters I have for a given state. So for example, for Alabama, I&#8217;ve got 2 Philadelphia minted quarters, and 1 Denver minted.</p>

<p>So you&#8217;re probably wondering, &#8220;why the hell is this guy writing up this in a blog post?&#8221; </p>

<p>We&#8217;ll the interesting bit to this low tech solution is how I print this list out. For this task I make use of a pretty powerful <span class="caps">UNIX </span>command called <strong>enscript</strong>, which lets you do all kinds of nifty things to a text file to augment how it looks when it gets printed.</p>

<p>About the only thing enscript doesn&#8217;t do for you, is give you the ability to preview your text file prior to printing. To accomplish this bit, I made use of another powerful <span class="caps">UNIX </span>command called <strong>ps2pdf</strong>. This command will take a postscript file (ps) and convert it to a pdf file.</p>

<p>So putting all the pieces together I came up with the following command:</p>


<div class="wp_codebox"><table width="100%" ><tr id="p284236"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p2842code36"><pre class="bash" style="font-family:monospace;">enscript <span style="color: #660033;">--fancy-header</span> <span style="color: #660033;">-U</span> 4 quarters.txt <span style="color: #660033;">-o</span> - <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">ps2pdf</span> - quarters_sm.pdf</pre></td></tr></table></div>




<p>The first part of this command, will call enscript instructing it to convert the file <strong>quarters.txt</strong>, and print it to standard out <strong>-o -</strong>. The printout will include some <strong>fancy headers</strong> and enscript will print the text file out in what is called <strong>4 UP</strong>. This means that 4 pages will be printed on a single piece of paper. You could also print the page out in 2 <span class="caps">UP,</span> 8 <span class="caps">UP, </span>etc. It only needs to be a power of 2. <span class="caps">BTW,</span> 2 and 4 are the most commonly used, 8 is pretty hard to read.</p>

<p>The second part of this command passes the postscript generated by enscript through a <span class="caps">UNIX </span>pipe which gets picked up by ps2pdf, and converts it into a <span class="caps">PDF </span>file, quarters_sm.pdf.</p>

<p>From here you can check what the page would look like using your favorite <span class="caps">PDF </span>viewer, such as <strong>evince</strong> or <strong>xpdf</strong>. Once you&#8217;re comfortable with the page you can actually print it out from the <span class="caps">PDF </span>reader, or via the command-line.</p>

<p><span id="more-2842"></span></p>

<p>Here&#8217;s what the resulting <span class="caps">PDF </span>file looks like:</p>

<div id="attachment_2844" class="wp-caption aligncenter" style="width: 424px"><a href="http://www.lamolabs.org/blog/wp-content/uploads/2009/11/ss_quarters_pdf.png" rel="lightbox[2842]"><img src="http://www.lamolabs.org/blog/wp-content/uploads/2009/11/ss_quarters_pdf.png" alt="PDF file" title="ss_quarters_pdf" width="414" height="532" class="size-full wp-image-2844" /></a><p class="wp-caption-text">PDF file</p></div>

<p>Here&#8217;s a portion of the <span class="caps">PDF </span>file at a 150% of it&#8217;s original size:</p>

<div id="attachment_2845" class="wp-caption aligncenter" style="width: 597px"><a href="http://www.lamolabs.org/blog/wp-content/uploads/2009/11/ss_quarters_pdf_150pct.png" rel="lightbox[2842]"><img src="http://www.lamolabs.org/blog/wp-content/uploads/2009/11/ss_quarters_pdf_150pct.png" alt="screenshot of quarters_sm.pdf at 150%" title="ss_quarters_pdf_150pct" width="587" height="638" class="size-full wp-image-2845" /></a><p class="wp-caption-text">screenshot of quarters_sm.pdf at 150%</p></div>

<h3>Useful Links</h3>


<ul>
<li><a href="https://www.cs.utk.edu/help/doku.php?id=printing%3Alinux_printing_guide">enscript printing guide</a></li>
</ul>



<p><strong><span class="caps">NOTE</span>:</strong> For further details regarding my <strong>one-liner</strong> blog posts, check out my <a href="http://www.lamolabs.org/blog/2147/intro-blogs-one-liner-code-block-style-guides/">one-liner style guide primer</a>.</p><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.lamolabs.org/blog/1766/pushing-pulling-files-around-using-tar-ssh-scp-rsync/" rel="bookmark" class="wherego_title">Pushing &#038; Pulling Files Around Using tar, ssh, scp, &#038; rsync</a></li><li><a href="http://www.lamolabs.org/blog/2745/one-liner-copying-moving-files-efficiently-with-xargs/" rel="bookmark" class="wherego_title">[one-liner]: Copying &#038; Moving Files efficiently with xargs</a></li><li><a href="http://www.lamolabs.org/blog/2147/intro-blogs-one-liner-code-block-style-guides/" rel="bookmark" class="wherego_title">Intro to my Blog&#8217;s [one-liner] Code Block Style Guides</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.lamolabs.org/blog/2842/one-liner-previewing-a-pretty-printed-text-file-using-enscript-ps2pdf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[one-liner]: Copying &amp; Moving Files efficiently with xargs</title>
		<link>http://www.lamolabs.org/blog/2745/one-liner-copying-moving-files-efficiently-with-xargs/</link>
		<comments>http://www.lamolabs.org/blog/2745/one-liner-copying-moving-files-efficiently-with-xargs/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 14:13:24 +0000</pubDate>
		<dc:creator>slmingol</dc:creator>
				<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[one-liner]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.lamolabs.org/blog/?p=2745</guid>
		<description><![CDATA[Background

<p>From time to time I need to move and/or copy a subset of files from one directory to another. I typically would use something like one of these to do the task:</p>


1
2
3
4
5
#-- COPY
find . -type f -ctime -1 &#124; xargs -I &#123;&#125; cp &#123;&#125; /some/other/directory
&#160;
#-- MOVE
find . -type f -ctime -1 &#124; xargs -I &#123;&#125; [...]]]></description>
			<content:encoded><![CDATA[<h4>Background</h4>

<p>From time to time I need to move and/or copy a subset of files from one directory to another. I typically would use something like one of these to do the task:</p>


<div class="wp_codebox"><table width="100%" ><tr id="p274540"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p2745code40"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#-- COPY</span>
<span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-type</span> f <span style="color: #660033;">-ctime</span> <span style="color: #660033;">-1</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #660033;">-I</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #000000; font-weight: bold;">/</span>some<span style="color: #000000; font-weight: bold;">/</span>other<span style="color: #000000; font-weight: bold;">/</span>directory
&nbsp;
<span style="color: #666666; font-style: italic;">#-- MOVE</span>
<span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-type</span> f <span style="color: #660033;">-ctime</span> <span style="color: #660033;">-1</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #660033;">-I</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #000000; font-weight: bold;">/</span>some<span style="color: #000000; font-weight: bold;">/</span>other<span style="color: #000000; font-weight: bold;">/</span>directory</pre></td></tr></table></div>




<p><strong><span class="caps">NOTE</span>:</strong> The <strong>1st command</strong> finds all the files in the current directory that are <em>less than 24 hours old</em>, and <strong>copies</strong> them to <em>/some/other/directory</em>. The <strong>2nd command</strong> finds all the files in the current directory that are <em>less than 24 hours old</em>, and <strong>moves</strong> them to <em>/some/other/directory</em>.</p>

<p>But then I realized that by using xargs&#8217; <strong>&ndash;I switch</strong> I was basically limiting <strong>xargs</strong> to doing a single file at a time. According to xargs&#8217; man page, when you use the <strong>&ndash;I switch</strong> you&#8217;re implying the <strong>&ndash;x switch</strong> <span class="caps">AND </span>the <strong>&ndash;L 1 switch</strong>. The <strong>L switch</strong> is what tells <strong>xargs</strong> how many lines of input to process at a time, so we&#8217;re basically telling it to only handle one file at a time. This made no sense. I was unintentially limiting xargs&#8217; ability to optimize the command-line. So I found a better way.</p>

<h4>New Approach</h4>

<p>By utilizing 2 little used switches (&ndash;t | &ndash;&ndash;target-directory) on <strong>cp</strong> and <strong>mv</strong> I could un-tie <strong>xargs&#8217;</strong> hands.</p>

<h5>copy</h5>


<div class="wp_codebox"><table width="100%" ><tr id="p274541"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p2745code41"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># long form</span>
<span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-type</span> f <span style="color: #660033;">-ctime</span> <span style="color: #660033;">-1</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #660033;">-0</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">--target-directory</span>=<span style="color: #000000; font-weight: bold;">/</span>some<span style="color: #000000; font-weight: bold;">/</span>other<span style="color: #000000; font-weight: bold;">/</span>directory
&nbsp;
<span style="color: #666666; font-style: italic;"># short form</span>
<span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-type</span> f <span style="color: #660033;">-ctime</span> <span style="color: #660033;">-1</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #660033;">-0</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-t</span> <span style="color: #000000; font-weight: bold;">/</span>some<span style="color: #000000; font-weight: bold;">/</span>other<span style="color: #000000; font-weight: bold;">/</span>directory</pre></td></tr></table></div>




<h5>move</h5>


<div class="wp_codebox"><table width="100%" ><tr id="p274542"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p2745code42"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># long form</span>
<span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-type</span> f <span style="color: #660033;">-ctime</span> <span style="color: #660033;">-1</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #660033;">-0</span> <span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #660033;">--target-directory</span>=<span style="color: #000000; font-weight: bold;">/</span>some<span style="color: #000000; font-weight: bold;">/</span>other<span style="color: #000000; font-weight: bold;">/</span>directory
&nbsp;
<span style="color: #666666; font-style: italic;"># short form</span>
<span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-type</span> f <span style="color: #660033;">-ctime</span> <span style="color: #660033;">-1</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #660033;">-0</span> <span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #660033;">-t</span> <span style="color: #000000; font-weight: bold;">/</span>some<span style="color: #000000; font-weight: bold;">/</span>other<span style="color: #000000; font-weight: bold;">/</span>directory</pre></td></tr></table></div>




<p><strong><span class="caps">NOTE</span>:</strong> For further details regarding my <strong>one-liner</strong> blog posts, check out my <a href="http://www.lamolabs.org/blog/2147/intro-blogs-one-liner-code-block-style-guides/">one-liner style guide primer</a>.</p><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.lamolabs.org/blog/2681/one-liner-how-to-use-the-bash-shells-export-command/" rel="bookmark" class="wherego_title">[one-liner]: How to Use the Bash Shell&#8217;s export Command</a></li><li><a href="http://www.lamolabs.org/blog/2147/intro-blogs-one-liner-code-block-style-guides/" rel="bookmark" class="wherego_title">Intro to my Blog&#8217;s [one-liner] Code Block Style Guides</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.lamolabs.org/blog/2745/one-liner-copying-moving-files-efficiently-with-xargs/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>[one-liner]: Getting Remote Desktop Sharing &amp; Compiz to play nice under Ubuntu 9.04 with GNOME</title>
		<link>http://www.lamolabs.org/blog/2708/one-liner-getting-remote-desktop-sharing-compiz-to-play-nice-under-ubuntu-9-04-with-gnome/</link>
		<comments>http://www.lamolabs.org/blog/2708/one-liner-getting-remote-desktop-sharing-compiz-to-play-nice-under-ubuntu-9-04-with-gnome/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 14:12:13 +0000</pubDate>
		<dc:creator>slmingol</dc:creator>
				<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[one-liner]]></category>
		<category><![CDATA[remote desktop]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[VNC]]></category>

		<guid isPermaLink="false">http://www.lamolabs.org/blog/?p=2708</guid>
		<description><![CDATA[Background

<p>This one threw me for a bit but I finally realized that when I had Compiz enabled on an Ubuntu 9.04 system, I couldn&#8217;t use VNC to connect via Remote Desktop Sharing in GNOME (aka. Vino, aka. VNC Server). Apparently this has been an issue going back since 2007 8-(, when Compiz is enabled. Since [...]]]></description>
			<content:encoded><![CDATA[<h4>Background</h4>

<p>This one threw me for a bit but I finally realized that when I had <strong>Compiz</strong> enabled on an <strong>Ubuntu 9.04</strong> system, I couldn&#8217;t use <strong><span class="caps">VNC</span></strong> to connect via <strong>Remote Desktop Sharing</strong> in <strong><span class="caps">GNOME</span></strong> (aka. Vino, aka. <span class="caps">VNC</span> Server). Apparently this has been an issue going back since 2007 8-(, when Compiz is enabled. Since this is the first system that I actually bothered to enable Compiz I&#8217;m dealing with it for the first time.</p>

<p>The problem shows up when you try and connect remotely to a system that has Remote Desktop Sharing enabled &ndash;AND&ndash; Compiz. This <a href="https://bugs.launchpad.net/ubuntu/+source/vnc/+bug/77442">thread on launchpad</a> was helpful in showing the lineage of the problem, and the only real workaround to get Remote Desktop Sharing to work.</p>

<h4>Solution</h4>

<p>The workaround? If you&#8217;re coming at it remotely, and are too lazy to walk over to the remote system &#8230; ssh into the remote system and run these commands to effectively disable Compiz, and enable (re-enable?) the window manager Metacity.</p>


<div class="wp_codebox"><table width="100%" ><tr id="p270845"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p2708code45"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #000000; font-weight: bold;">&lt;</span>remote system<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">DISPLAY</span>=:0
<span style="color: #c20cb9; font-weight: bold;">nohup</span> metacity <span style="color: #660033;">--replace</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000; font-weight: bold;">&amp;</span></pre></td></tr></table></div>




<p><strong><span class="caps">NOTE</span>:</strong> I&#8217;m wrapping a <strong>&#8220;nohup &#8230; &gt; /dev/null &amp;&#8221;</strong> around the <strong>&#8220;metacity &#8211;replace&#8221;</strong> so that when/if I close the ssh connection, the metacity running in there doesn&#8217;t get inexplicably killed off. Additionally, this version of <strong>nohup</strong> (/usr/bin/nohup), likes to leave a <strong>nohup.out</strong> file lying around, which is just <strong>cruft</strong> in our case, so by sending <strong>all</strong> the <strong>output</strong> to <strong>/dev/null</strong> we are effectively <strong>disabling</strong> the creation of the <strong>nohup.out</strong> file.</p>

<p>Now you can do your work remotely with Compiz turned off. But now what to do when you&#8217;re all done and you want to turn Compiz back on? Easy. Do this:</p>


<div class="wp_codebox"><table width="100%" ><tr id="p270846"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p2708code46"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #000000; font-weight: bold;">&lt;</span>remote system<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">DISPLAY</span>=:0
<span style="color: #c20cb9; font-weight: bold;">nohup</span> compiz <span style="color: #660033;">--replace</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000; font-weight: bold;">&amp;</span></pre></td></tr></table></div>




<h4>Useful Links</h4>


<ul>
<li><a href="https://bugs.launchpad.net/ubuntu/+source/vnc/+bug/77442">launchpad bug #77442: compiz / vnc screen updates with nVidia restricted</a></li>
<li><a href="http://ubuntuforums.org/showthread.php?t=964856">forum thread on how to restart compiz</a></li>
</ul>



<p><strong><span class="caps">NOTE</span>:</strong> For further details regarding my <strong>one-liner</strong> blog posts, check out my <a href="http://www.lamolabs.org/blog/2147/intro-blogs-one-liner-code-block-style-guides/">one-liner style guide primer</a>.</p><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.lamolabs.org/blog/2702/delicious-bookmarks-for-october-3rd-from-0255-to-1530/" rel="bookmark" class="wherego_title">Delicious Bookmarks for October 3rd from 02:55 to 15:30</a></li><li><a href="http://www.lamolabs.org/blog/2706/delicious-bookmarks-for-october-3rd-through-october-7th/" rel="bookmark" class="wherego_title">Delicious Bookmarks for October 3rd through October 7th</a></li><li><a href="http://www.lamolabs.org/blog/370/installing-python-25-on-centos-5/" rel="bookmark" class="wherego_title">Installing Python 2.5 on CentOS 5</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.lamolabs.org/blog/2708/one-liner-getting-remote-desktop-sharing-compiz-to-play-nice-under-ubuntu-9-04-with-gnome/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
