<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Enhanced Linux</title> <link>http://enhancedlinux.com</link> <description>Enhancing Linux since 2006!</description> <lastBuildDate>Mon, 12 Jul 2010 14:04:34 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=abc</generator> <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/EnhancedLinux" /><feedburner:info uri="enhancedlinux" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>EnhancedLinux</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item><title>Check the Status of ‘dd’ Command</title><link>http://feedproxy.google.com/~r/EnhancedLinux/~3/2ly89MEYkEo/</link> <comments>http://enhancedlinux.com/2010/07/11/check-the-status-of-dd-command/#comments</comments> <pubDate>Sun, 11 Jul 2010 17:46:14 +0000</pubDate> <dc:creator>Christer</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[linux]]></category><guid isPermaLink="false">http://enhancedlinux.com/?p=153</guid> <description><![CDATA[The other day I was copying the entire contents of one USB drive to another. To use this I used the dd command, as I needed the images to be identical. Once the copy started I started wondering about its progress, and was reminded that dd does not have any kind of progress bar or [...]]]></description> <content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/m0g8VMJwAgJMEmi7oRFoULA8qFM/0/da"><img src="http://feedads.g.doubleclick.net/~a/m0g8VMJwAgJMEmi7oRFoULA8qFM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/m0g8VMJwAgJMEmi7oRFoULA8qFM/1/da"><img src="http://feedads.g.doubleclick.net/~a/m0g8VMJwAgJMEmi7oRFoULA8qFM/1/di" border="0" ismap="true"></img></a></p><p>The other day I was copying the entire contents of one USB drive to another. To use this I used the dd command, as I needed the images to be identical. Once the copy started I started wondering about its progress, and was reminded that dd does not have any kind of progress bar or other status output. In this article I&#8217;ll outline how to output the status / progress of dd during a large copy.</p><p><strong>A note about speed</strong></p><p>Before I outline how to output the status of the dd command, I wanted to comment briefly on the speed of the dd reads/writes. The dd command allows you to specify the input file, output file, block size and count. I have found that not specifying the block size can have detrimental effects on the speed of your transfer. Currently I find the best performance specifying a 4k block size, the same as the default block size on ext file systems.</p><p>To specify this block size, use:</p><blockquote><p><code>dd if=/source/file of=/dest/file bs=4k</code></p></blockquote><p><strong>Status of dd command</strong></p><p>The quickest and easiest way I&#8217;ve found to check the status of the dd command is to run the following:</p><blockquote><p><code>watch -n 10 killall -USR1 dd</code></p></blockquote><p>There are, of course, other ways to find the result, but this is what I use. This command will report the status on any running dd process every 10 seconds. When the transfer is finished you can kill this reporting via ctrl-c.</p> <img src="http://feeds.feedburner.com/~r/EnhancedLinux/~4/2ly89MEYkEo" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://enhancedlinux.com/2010/07/11/check-the-status-of-dd-command/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://enhancedlinux.com/2010/07/11/check-the-status-of-dd-command/</feedburner:origLink></item> <item><title>How to Install VirtualBox Guest Additions in Fedora Guests</title><link>http://feedproxy.google.com/~r/EnhancedLinux/~3/L6MGNfoUJqA/</link> <comments>http://enhancedlinux.com/2010/06/27/how-to-install-virtualbox-guest-additions-in-fedora-guests/#comments</comments> <pubDate>Sun, 27 Jun 2010 14:11:08 +0000</pubDate> <dc:creator>Christer</dc:creator> <category><![CDATA[Fedora]]></category> <category><![CDATA[fedora]]></category> <category><![CDATA[guest additions]]></category> <category><![CDATA[virtualbox]]></category><guid isPermaLink="false">http://enhancedlinux.com/?p=149</guid> <description><![CDATA[Installing VirtualBox guest additions seems to vary between distributions. The other day I saw an article outlining how to install VirtualBox Guest Additions on Ubuntu, but those same steps did not apply to my Fedora 13 Virtual Machine. In this article I&#8217;ll outline the packages and steps required to install VirtualBox Guest Additions on a [...]]]></description> <content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/Aq2Sbbpi0EPWDe2XCCIX-_wCWOE/0/da"><img src="http://feedads.g.doubleclick.net/~a/Aq2Sbbpi0EPWDe2XCCIX-_wCWOE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Aq2Sbbpi0EPWDe2XCCIX-_wCWOE/1/da"><img src="http://feedads.g.doubleclick.net/~a/Aq2Sbbpi0EPWDe2XCCIX-_wCWOE/1/di" border="0" ismap="true"></img></a></p><p><a href="http://enhancedlinux.com/wp-content/uploads/2009/12/fedora-logo.png"><img class="alignright size-full wp-image-14" title="VirtualBox Guest Additions on Fedora" src="http://enhancedlinux.com/wp-content/uploads/2009/12/fedora-logo.png" alt="VirtualBox Guest Additions on Fedora" width="269" height="116" /></a>Installing VirtualBox guest additions seems to vary between distributions. The other day I saw an article outlining how to <a title="Install VirtualBox Guest Additions on Ubuntu" href="http://ubuntu-tutorials.com/2010/06/26/install-virtualbox-guest-additions-on-virtualbox-guests/">install VirtualBox Guest Additions on Ubuntu</a>, but those same steps did not apply to my Fedora 13 Virtual Machine. In this article I&#8217;ll outline the packages and steps required to install VirtualBox Guest Additions on a Fedora Guest.</p><p><strong>Requirements</strong></p><p>This tutorial assumes you already have VirtualBox installed and a Fedora Virtual Machine running.</p><p><strong>Installation</strong></p><p>To successfully install VirtualBox Guest Additions on a Fedora guest, you&#8217;ll need to install the following:</p><blockquote><p><code>yum install kernel-headers kernel-devel gcc</code></p></blockquote><p>Once these packages are installed you&#8217;ll be able to mount the VirtualBox Guest Additions image, and run the required script. This is done using the following steps:</p><ol><li>In the VirtualBox menu, under Devices, select &#8220;Install Guest Additions&#8221;</li><li>Select the VBOXADDITIONS* image from the Places menu, which will mount the image.</li><li>In a Terminal, navigate to /media/VBOXADDITIONS*/ and run: sudo ./VboxLinuxAdditions-(x86,amd64).sh</li><li>Reboot the Fedora guest</li></ol><p>Installing VirtualBox Guest Additions isn&#8217;t difficult, it is just different on most Linux distributions. Hopefully this helps those using Fedora quickly get it installed on their systems.</p> <img src="http://feeds.feedburner.com/~r/EnhancedLinux/~4/L6MGNfoUJqA" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://enhancedlinux.com/2010/06/27/how-to-install-virtualbox-guest-additions-in-fedora-guests/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://enhancedlinux.com/2010/06/27/how-to-install-virtualbox-guest-additions-in-fedora-guests/</feedburner:origLink></item> <item><title>Install GNOME-Shell in Arch Linux</title><link>http://feedproxy.google.com/~r/EnhancedLinux/~3/YadxuD6OqBQ/</link> <comments>http://enhancedlinux.com/2010/06/26/install-gnome-shell-in-arch-linux/#comments</comments> <pubDate>Sat, 26 Jun 2010 14:28:17 +0000</pubDate> <dc:creator>Christer</dc:creator> <category><![CDATA[GNOME]]></category> <category><![CDATA[arch]]></category><guid isPermaLink="false">http://enhancedlinux.com/?p=146</guid> <description><![CDATA[I was getting curious about the progress of the new GNOME-Shell (which will be part of GNOME 3.x), so I went to find how to install it in Arch Linux. It is, just like a number of things, available in the Arch User Repository (AUR), but I also found that there is an official package [...]]]></description> <content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/cyEiwoduujTvGtZf1sGm88yvZEI/0/da"><img src="http://feedads.g.doubleclick.net/~a/cyEiwoduujTvGtZf1sGm88yvZEI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/cyEiwoduujTvGtZf1sGm88yvZEI/1/da"><img src="http://feedads.g.doubleclick.net/~a/cyEiwoduujTvGtZf1sGm88yvZEI/1/di" border="0" ismap="true"></img></a></p><p><a href="http://enhancedlinux.com/wp-content/uploads/2009/12/200px-archlinux.png"><img class="alignright size-full wp-image-90" title="200px-archlinux" src="http://enhancedlinux.com/wp-content/uploads/2009/12/200px-archlinux.png" alt="" width="200" height="66" /></a>I was getting curious about the progress of the new GNOME-Shell (which will be part of GNOME 3.x), so I went to find how to install it in Arch Linux. It is, just like a number of things, available in the Arch User Repository (AUR), but I also found that there is an official package in the gnome-unstable repository. This post outlines how to add the gnome-unstable repository and install GNOME-Shell in Arch Linux</p><p><strong>Repository</strong></p><p>The first requirement for installing GNOME-Shell is the addition of the gnome-unstable repository. This can be done by adding the following to your /etc/pacman.conf:</p><blockquote><p><code>[gnome-unstable]<br /> Server = http://mirrors.kernel.org/archlinux/$repo/os/$arch/<br /> </code></p></blockquote><p>You&#8217;ll notice I&#8217;m using mirrors.kernel.org, but you should be able to use your own preferred mirror.</p><p><strong>Installation</strong><br /> Once you&#8217;ve added the repository, you can add the GNOME-Shell using the following command:</p><blockquote><p><code>sudo pacman -Sy gnome-shell clutter</code></p></blockquote><p><strong>Usage</strong></p><p>To launch GNOME-Shell (and replace your current environment for this session), run:</p><blockquote><p><code>gnome-shell --replace</code></p></blockquote><p>You should now be in GNOME Shell. Have fun playing with this, still in development, Desktop Environment.</p> <img src="http://feeds.feedburner.com/~r/EnhancedLinux/~4/YadxuD6OqBQ" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://enhancedlinux.com/2010/06/26/install-gnome-shell-in-arch-linux/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://enhancedlinux.com/2010/06/26/install-gnome-shell-in-arch-linux/</feedburner:origLink></item> <item><title>[SECURITY] [DSA-1971-1] New libthai packages fix arbitrary code execution</title><link>http://feedproxy.google.com/~r/EnhancedLinux/~3/pcIOaqTCHYc/</link> <comments>http://enhancedlinux.com/2010/01/15/security-dsa-1971-1-new-libthai-packages-fix-arbitrary-code-execution/#comments</comments> <pubDate>Sat, 16 Jan 2010 00:13:02 +0000</pubDate> <dc:creator>Christer</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[security]]></category><guid isPermaLink="false">http://enhancedlinux.com/?p=134</guid> <description><![CDATA[Package : libthai Vulnerability : integer overflow Problem type : local (remote) Debian-specific : no CVE Id : CVE-2009-4012 Tim Starling discovered that libthai, a set of Thai language support routines, is vulnerable of integer/heap overflow. This vulnerability could allow an attacker to run arbitrary code by sending a very long string. For the oldstable distribution (etch), this [...]]]></description> <content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/Iqq2rCsYNMFXCnmaCyRtfOZu3v4/0/da"><img src="http://feedads.g.doubleclick.net/~a/Iqq2rCsYNMFXCnmaCyRtfOZu3v4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Iqq2rCsYNMFXCnmaCyRtfOZu3v4/1/da"><img src="http://feedads.g.doubleclick.net/~a/Iqq2rCsYNMFXCnmaCyRtfOZu3v4/1/di" border="0" ismap="true"></img></a></p><p><strong><a href="http://enhancedlinux.com/wp-content/uploads/2009/12/debianlogo-100.png"><img class="alignright size-full wp-image-11" title="debianlogo-100" src="http://enhancedlinux.com/wp-content/uploads/2009/12/debianlogo-100.png" alt="" width="100" height="123" /></a>Package </strong>: libthai<br /> <strong>Vulnerability</strong> : integer overflow<br /> <strong>Problem type</strong> : local (remote)<br /> <strong>Debian-specific</strong> : no<br /> <strong>CVE Id </strong> : CVE-2009-4012</p><p>Tim Starling discovered that libthai, a set of Thai language support routines, is vulnerable of integer/heap overflow. This vulnerability could allow an attacker to run arbitrary code by sending a very long string.</p><p>For the oldstable distribution (etch), this problem has been fixed in version 0.1.6-1+etch1.</p><p>For the stable distribution (lenny), this problem has been fixed in version 0.1.9-4+lenny1.</p><p>For the testing distribution (squeeze), and the unstable distribution (sid), this problem will be fixed soon.</p><p>We recommend that you upgrade your libthai package.</p> <img src="http://feeds.feedburner.com/~r/EnhancedLinux/~4/pcIOaqTCHYc" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://enhancedlinux.com/2010/01/15/security-dsa-1971-1-new-libthai-packages-fix-arbitrary-code-execution/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://enhancedlinux.com/2010/01/15/security-dsa-1971-1-new-libthai-packages-fix-arbitrary-code-execution/</feedburner:origLink></item> <item><title>Disable Thunderbird 3 Bloat!</title><link>http://feedproxy.google.com/~r/EnhancedLinux/~3/fVLSVvyR-Wk/</link> <comments>http://enhancedlinux.com/2010/01/15/disable-thunderbird-3-bloat/#comments</comments> <pubDate>Fri, 15 Jan 2010 19:30:40 +0000</pubDate> <dc:creator>Christer</dc:creator> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[cache]]></category> <category><![CDATA[imap]]></category> <category><![CDATA[index]]></category> <category><![CDATA[search]]></category> <category><![CDATA[thunderbird]]></category><guid isPermaLink="false">http://enhancedlinux.com/?p=128</guid> <description><![CDATA[I have been using Thunderbird 3 since its final release, and overall I have enjoyed it. I never quite liked version 2, but version 3 appeals to me a bit more. I&#8217;ve got multiple accounts configured, and it has been working very well. The one issue that I recently discovered is the HUGE amount of [...]]]></description> <content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/Ek4Y7y7U48l85a6cwXDNkoUbCio/0/da"><img src="http://feedads.g.doubleclick.net/~a/Ek4Y7y7U48l85a6cwXDNkoUbCio/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Ek4Y7y7U48l85a6cwXDNkoUbCio/1/da"><img src="http://feedads.g.doubleclick.net/~a/Ek4Y7y7U48l85a6cwXDNkoUbCio/1/di" border="0" ismap="true"></img></a></p><p><a href="http://enhancedlinux.com/wp-content/uploads/2009/12/UbuntuLogo.resized.resized.png"><img class="alignright size-full wp-image-10" title="UbuntuLogo.resized.resized" src="http://enhancedlinux.com/wp-content/uploads/2009/12/UbuntuLogo.resized.resized.png" alt="" width="376" height="98" /></a>I have been using Thunderbird 3 since its final release, and overall I have enjoyed it. I never quite liked version 2, but version 3 appeals to me a bit more. I&#8217;ve got multiple accounts configured, and it has been working very well. The one issue that I recently discovered is the HUGE amount of disk-space that it can take up. In this post I&#8217;ll outline how to regain that lost space.</p><p><strong>Thunderbird 3</strong></p><p>If you have been using Thunderbird 3, take a look at how much space the <em>.thunderbird</em> folder is using. Open a terminal (Applications &gt; Accessories &gt; Terminal), and run the command:</p><blockquote><p><code>cd .thunderbird/<br /> du -sh</code></p></blockquote><p>On my machine Thunderbird was using 923M of disk space! I was very surprised to find that amount&#8211;I didn&#8217;t even think I had <em>that</em> much email! This got me curious, because Thunderbird 2 never used nearly this much disk space! I made my way to Google to do some digging, and this is what I found out.</p><p><strong>Thunderbird Profile</strong></p><p>Your <em>.thunderbird</em> profile directory contains all of your settings, as well as your ImapMail headers and other information. If using the default Thunderbird settings, all email will also be synchronized to your local computer. This means that your email, including attachments, will be stored within this directory (ie; <em>.thunderbird/*.profile/ImapMail/</em>). I have this option turned off, and I&#8217;ll outline how to do so below.</p><p>I bring up the topic of the profile directory simply so that you are aware of the files contained there. Some of these files are those that you&#8217;ll end up deleting to remove some of the bloat that can come along with Thunderbird 3 settings. Generally, the files that take up the most space are:</p><ul><li>/ImapMail/</li><li>global-messages-db.sqlite</li></ul><p>We&#8217;ll have a look at each of these below.</p><p><strong>ImapMail &#8211; Mail Synch and Cache</strong></p><p>Assuming you are using IMAP with your mail accounts, you will have an ImapMail folder, caching email and headers for your Imap accounts. If you take a look into this directory you&#8217;ll find sub-folders for each of your accounts. If you have &#8220;Message Synchronization&#8221; activated (which, I believe, is the default), you should have a local cache of all your mail in this folder.</p><p>If you&#8217;d prefer to disable this feature to regain disk space, you can do the following:</p><ol><li>Delete the contents of the ImapMail/mail.domain.tld/ folder (where mail.domain.tld is your mail server(s)).</li><li>Disable &#8220;Message Synchronization&#8221; in Edit &gt; Account Settings &gt; Synchronization and Storage</li><li>I would suggest leaving the remaining settings at their defaults. This post doesn&#8217;t cover them.</li></ol><p><strong>Global Search and Indexer</strong></p><p>Once I deleted the previously synchronized mail from my ImapMail folder I still found that there was over 200M being used elsewhere. After some additional digging I found that the bulk of this was used by the <em>global-messages-db.sqlite</em> file. This file is used for the Global Search and Indexing features of Thunderbird 3. I did a little research and this sqlite database is used to index your messages, attachments, etc. The new additions in Thunderbird 3 allow you to search this database and quickly find files and messages.</p><p>I realized that I rarely use the search feature, so I disabled this setting and freed up a lot of additional space. I use Message Filters to sort my mail, so disabling Indexing and Searching doesn&#8217;t affect me. If you would like to disable Global Search and Indexer, and free up an additional 200M of disk-space, do the following:</p><ol><li>Delete the <em>global-messages-db.sqlite</em> file, and regain the disk-space.</li><li>Uncheck &#8220;Enable Global Search and Indexer&#8221; in Edit &gt; Preferences &gt; Advanced &gt; General</li></ol><p>I would be interested in any additional feedback the readers have about improving Thunderbird 3. How to make the client more efficient or customizable.</p> <img src="http://feeds.feedburner.com/~r/EnhancedLinux/~4/fVLSVvyR-Wk" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://enhancedlinux.com/2010/01/15/disable-thunderbird-3-bloat/feed/</wfw:commentRss> <slash:comments>3</slash:comments> <feedburner:origLink>http://enhancedlinux.com/2010/01/15/disable-thunderbird-3-bloat/</feedburner:origLink></item> <item><title>Install Required Fonts on Arch Linux</title><link>http://feedproxy.google.com/~r/EnhancedLinux/~3/S0Ib4axz2uI/</link> <comments>http://enhancedlinux.com/2010/01/15/install-required-fonts-on-arch-linux/#comments</comments> <pubDate>Fri, 15 Jan 2010 17:26:46 +0000</pubDate> <dc:creator>Christer</dc:creator> <category><![CDATA[arch]]></category> <category><![CDATA[fonts]]></category><guid isPermaLink="false">http://enhancedlinux.com/?p=132</guid> <description><![CDATA[I was reinstalling Arch Linux just the other day and I noticed that, while my Desktop looked natural enough, my web browser fonts did not. I did some quick reading and found some of the fonts that seem to clear up the issue. If your fonts look a bit fuzzy, you&#8217;ll likely want to keep [...]]]></description> <content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/ks9DV-l9btsjhHOoNqJNe7Ws0M8/0/da"><img src="http://feedads.g.doubleclick.net/~a/ks9DV-l9btsjhHOoNqJNe7Ws0M8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/ks9DV-l9btsjhHOoNqJNe7Ws0M8/1/da"><img src="http://feedads.g.doubleclick.net/~a/ks9DV-l9btsjhHOoNqJNe7Ws0M8/1/di" border="0" ismap="true"></img></a></p><p><a href="http://enhancedlinux.com/wp-content/uploads/2009/12/200px-archlinux.png"><img class="alignright size-full wp-image-90" title="200px-archlinux" src="http://enhancedlinux.com/wp-content/uploads/2009/12/200px-archlinux.png" alt="" width="200" height="66" /></a>I was reinstalling Arch Linux just the other day and I noticed that, while my Desktop looked natural enough, my web browser fonts did not. I did some quick reading and found some of the fonts that seem to clear up the issue. If your fonts look a bit fuzzy, you&#8217;ll likely want to keep reading.</p><p><strong>Arch Linux Fonts</strong></p><p>To get a better all-around font experience, including the desktop and the web, I installed the following packages:</p><ul><li>ttf-droid</li><li>ttf-liberation</li><li>ttf-dejavu</li><li>ttf-ms-fonts</li></ul><p>To install all of these, simply run:</p><blockquote><p>sudo pacman -S ttf-droid ttf-liberation ttf-dejavu ttf-ms-fonts</p></blockquote><p>You may need to restart your browser, or even logout and log back in, but you should notice a change once these fonts are installed.</p> <img src="http://feeds.feedburner.com/~r/EnhancedLinux/~4/S0Ib4axz2uI" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://enhancedlinux.com/2010/01/15/install-required-fonts-on-arch-linux/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://enhancedlinux.com/2010/01/15/install-required-fonts-on-arch-linux/</feedburner:origLink></item> <item><title>Finding Files and Binaries on Linux and UNIX</title><link>http://feedproxy.google.com/~r/EnhancedLinux/~3/NJ5J7Fe3ahA/</link> <comments>http://enhancedlinux.com/2010/01/08/finding-files-and-binaries-on-linux-and-unix/#comments</comments> <pubDate>Fri, 08 Jan 2010 16:02:31 +0000</pubDate> <dc:creator>Christer</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[arch]]></category> <category><![CDATA[CentOS]]></category> <category><![CDATA[find]]></category> <category><![CDATA[freebsd]]></category> <category><![CDATA[locate]]></category> <category><![CDATA[OS X]]></category> <category><![CDATA[whereis]]></category> <category><![CDATA[which]]></category><guid isPermaLink="false">http://enhancedlinux.com/?p=76</guid> <description><![CDATA[I manage a number of different types of systems. I have an Arch Linux laptop, a Macbook installed with OS X, CentOS and RHEL machines at work, as well as Debian servers both at work and home. As if that weren&#8217;t enough I also maintain a few FreeBSD servers. Between all of these different Operating [...]]]></description> <content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/4RFayiKcbC7JNFBY0rbOWpGU4zQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/4RFayiKcbC7JNFBY0rbOWpGU4zQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/4RFayiKcbC7JNFBY0rbOWpGU4zQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/4RFayiKcbC7JNFBY0rbOWpGU4zQ/1/di" border="0" ismap="true"></img></a></p><p><a href="http://enhancedlinux.com/wp-content/uploads/2009/12/debianlogo-100.png"><img class="alignright size-full wp-image-11" title="debianlogo-100" src="http://enhancedlinux.com/wp-content/uploads/2009/12/debianlogo-100.png" alt="" width="100" height="123" /></a>I manage a number of different types of systems. I have an Arch Linux laptop, a Macbook installed with OS X, CentOS and RHEL machines at work, as well as Debian servers both at work and home. As if that weren&#8217;t enough I also maintain a few FreeBSD servers. Between all of these different Operating Systems and variants I find that certain files and commands aren&#8217;t always where I might expect them to be. For today&#8217;s article I&#8217;ve outlined different methods for finding files and binaries on Linux and UNIX systems.</p><p><strong>Locate</strong></p><p>The first tool I&#8217;ll share is the <em>locate</em> command. This command searches through an index, built-daily, of all files and folders on your machine. Locate should be available on all standard UNIX systems, and is generally a very fast way to search for files.</p><ul><li>Positives: fast</li><li>Negatives: not very specific, index updated daily</li></ul><p>If you need to re-build your index to include recently added files, you can run the command:</p><blockquote><p><code>updatedb</code></p></blockquote><p><strong>Find</strong></p><p>The <em>find</em> command is much, much more granular than the <em>locate</em> command but it can also be more complicated to use. Explaining all of its options would warrant a post of its own, so I&#8217;ll just outline a few basic uses.</p><ul><li> Positives: very, very granular search parameters</li><li>Negatives: slower than other methods</li></ul><p>To use the find command, refer to one of these examples:</p><blockquote><p><code>find / -type f -iname "httpd.conf"<br /> find . -type f -name ".bashrc"<br /> find /etc/ -type f -name "hosts.*"<br /> find /usr/local/ -type d -iname "www"<br /> </code></p></blockquote><p>These examples are all very similar, with only slight variations, to give you an idea of some of the power of <em>find</em>. Again, <em>find</em> can do <strong>much</strong> more than this, but this is enough to get you started.</p><ul><li>The first command searches from the root directory for any files (-type f) for the case-insensitive string of &#8220;httpd.conf&#8221;.</li><li>The second command searches the current working directory for any files with the case-sensitive name of &#8220;.bashrc&#8221;.</li><li>The third command searches within the /etc/ directory (and subdirectories) for any files matching the name &#8220;hosts.*&#8221;</li><li>The last command searches within the /usr/local/ directory for any directories (-type d) with the case-insensitive name of &#8220;www&#8221;.</li></ul><p>As you can see, <em>find</em> can be very flexible and this only touches on the advanced search patterns it can define. I highly suggest you have a look at the <em>find</em> man page for more information!</p><p><strong>Which</strong></p><p>The <em>which</em> command searches for binary files within your PATH. For example, let&#8217;s say you need to know the full path to the <em>wget</em> command. You could use:</p><blockquote><p><code>which wget</code></p></blockquote><p>You should see something along the lines of:</p><blockquote><p><code>/usr/bin/wget</code></p></blockquote><p>Binaries may be stored in different places on different systems, which is again why it is important to know how to find them. I use which frequently within my scripting in an attempt to make scripts portable. Let me give you an example:</p><blockquote><p><code>#!/bin/bash<br /> if [ -x $(which wget) ]; then<br /> $(which wget) http://example.com/file.txt<br /> fi</code></p></blockquote><p>This very simply script doesn&#8217;t make any assumptions about the availability or the location of the wget tool. It does a simple check to see if the binary, as defined by its full path, is executable and if so use it to download a file. If wget does not exist the script will do nothing, and if it does exist it will be sure to execute it by its full path.</p><p>This tool has been helpful when moving between operating systems and variants. It helps me ensure I know exactly where files are, and not make any assumptions.</p><p><strong>Whereis</strong></p><p>The whereis tool is similar to the <em>locate</em> tool in that it is not as granular as <em>find</em>, and it is also similar to the <em>which</em> tool in that it searches only a predefined PATH for files. I use whereis constantly on my FreeBSD systems to search for ports within the ports tree. An example:</p><blockquote><p>whereis portmaster</p></blockquote><p>This would give me the output (assuming it is installed), of:</p><blockquote><p>portmaster: /usr/local/sbin/portmaster /usr/local/man/man8/portmaster.8.gz /usr/ports/ports-mgmt/portmaster</p></blockquote><p>This searches the standard binary, manual page, and source directories. As you can see from the above output, I have a result from each. This tells me where the binary is in its full path, where the man page(s) is stored as well as within the ports tree. If I didn&#8217;t have it installed, the only result I would be given would be the ports tree entry. This would help me find the path, allowing me to install it.</p><p><strong>Conclusion</strong></p><p>All of these tools are standard UNIX binaries that you should find on any system. Each tool has its own strengths and weaknesses, and none of them will always do the job the right way. I find myself using each of these on a regular basis, each for its own strengths. I would invite you to start using these commands in your day-to-day as needed, and read more about them.</p> <img src="http://feeds.feedburner.com/~r/EnhancedLinux/~4/NJ5J7Fe3ahA" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://enhancedlinux.com/2010/01/08/finding-files-and-binaries-on-linux-and-unix/feed/</wfw:commentRss> <slash:comments>1</slash:comments> <feedburner:origLink>http://enhancedlinux.com/2010/01/08/finding-files-and-binaries-on-linux-and-unix/</feedburner:origLink></item> <item><title>How to solve cron error: “ERROR: failed to open PAM security session: Success”</title><link>http://feedproxy.google.com/~r/EnhancedLinux/~3/EwVDieAmMvw/</link> <comments>http://enhancedlinux.com/2010/01/06/how-to-solve-cron-error-failed-to-open-pam-security-session-success/#comments</comments> <pubDate>Wed, 06 Jan 2010 19:30:29 +0000</pubDate> <dc:creator>Christer</dc:creator> <category><![CDATA[CentOS]]></category> <category><![CDATA[chage]]></category> <category><![CDATA[cron]]></category> <category><![CDATA[expire]]></category> <category><![CDATA[passwd]]></category><guid isPermaLink="false">http://enhancedlinux.com/?p=119</guid> <description><![CDATA[Today I ran into a problem at work that I thought would be worth sharing. It is one of those odd only-happens-once-in-a-blue-moon errors, so writing it down and putting it out there on the internet may help those lucky few who run into it. The Situation I had a report from a user that the [...]]]></description> <content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/djfaHqhRluSUDvPcVfQqypFZah0/0/da"><img src="http://feedads.g.doubleclick.net/~a/djfaHqhRluSUDvPcVfQqypFZah0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/djfaHqhRluSUDvPcVfQqypFZah0/1/da"><img src="http://feedads.g.doubleclick.net/~a/djfaHqhRluSUDvPcVfQqypFZah0/1/di" border="0" ismap="true"></img></a></p><p><a href="http://enhancedlinux.com/wp-content/uploads/2009/12/centos_logo.png"><img class="alignright size-full wp-image-28" title="centos_logo" src="http://enhancedlinux.com/wp-content/uploads/2009/12/centos_logo.png" alt="" width="63" height="60" /></a>Today I ran into a problem at work that I thought would be worth sharing. It is one of those odd only-happens-once-in-a-blue-moon errors, so writing it down and putting it out there on the internet may help those lucky few who run into it.</p><p><strong>The Situation</strong></p><p>I had a report from a user that the system account he and his team share was unable to run cron jobs. My initial checklist of things to verify were:</p><ul><li>Verify the syntax of the cronjob(s) by viewing the crontab: crontab -u &lt;username&gt; -l</li><li>Verify user was listed in /etc/cron.allow, or *not* listed in /etc/cron.deny.</li><li>Check the /var/log/cron for informational messages.</li></ul><p>The cron syntax looked fine&#8211;I didn&#8217;t see any errors. I also verified that they were listed in the cron.allow file. (Our systems implement a cron.allow policy, for security.). From the crontab man page:</p><blockquote><p>If the cron.allow file exists, then you must be listed therein in order to be allowed to use this command. If the cron.allow file exists, then you must be listed therein in order to be allowed to use this command.</p></blockquote><p>It was the third entry, the system log, that alerted me to the problem.</p><blockquote><p>Jan  5 10:26:01 hostname crond[21536]: User account has expired<br /> Jan  5 10:26:01 hostname crond[21536]: CRON (username) ERROR: failed to open PAM security session: Success<br /> Jan  5 10:26:01 hostname crond[21536]: CRON (username) ERROR: cannot set security context</p></blockquote><p>The key piece of information here is &#8220;User account has expired.&#8221; While the shared system account was still usable&#8211;it doesn&#8217;t require a password&#8211;it had technically expired which meant cron would restrict its jobs. Remember, 99% of the time the system log tells you exactly what the problem is. The key is reading!</p><p>[ad#Google Adsense]</p><p><strong>The Solution</strong></p><p>The solution was to unexpire the system account. To do so you can use the chage command or the passwd command. In this situation, because this is a shared system account that does not need to expire, I set it to never expire:</p><blockquote><p>passwd -x -1 username</p></blockquote><p>From the passwd man page:</p><blockquote><p>This will set the maximum password lifetime,  in  days,  if  the user’s  account  supports password lifetimes.  Available to root only. This will set the maximum password lifetime,  in  days,  if  the user’s  account  supports password lifetimes.  Available to root only.</p></blockquote><p>As you might guess, -1 sets an infinite value meaning it will never expire.</p> <img src="http://feeds.feedburner.com/~r/EnhancedLinux/~4/EwVDieAmMvw" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://enhancedlinux.com/2010/01/06/how-to-solve-cron-error-failed-to-open-pam-security-session-success/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://enhancedlinux.com/2010/01/06/how-to-solve-cron-error-failed-to-open-pam-security-session-success/</feedburner:origLink></item> <item><title>The Simplest DVD Ripper for Mac!</title><link>http://feedproxy.google.com/~r/EnhancedLinux/~3/NuI1u68yUlo/</link> <comments>http://enhancedlinux.com/2010/01/05/the-simplest-dvd-ripper-for-mac/#comments</comments> <pubDate>Tue, 05 Jan 2010 14:38:35 +0000</pubDate> <dc:creator>Christer</dc:creator> <category><![CDATA[OSX]]></category> <category><![CDATA[archive]]></category> <category><![CDATA[dvd]]></category> <category><![CDATA[mac]]></category> <category><![CDATA[ripit]]></category><guid isPermaLink="false">http://enhancedlinux.com/?p=113</guid> <description><![CDATA[My wife and I are movie fans. For as long as I can remember one of our favorite things to do is sit down together and watch a movie. Then we had kids and our movies started becoming toys. It is really frustrating to pull a DVD off the shelf and find either that it [...]]]></description> <content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/G9hn7AdIMeOX4uFBBkNxURNhqfw/0/da"><img src="http://feedads.g.doubleclick.net/~a/G9hn7AdIMeOX4uFBBkNxURNhqfw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/G9hn7AdIMeOX4uFBBkNxURNhqfw/1/da"><img src="http://feedads.g.doubleclick.net/~a/G9hn7AdIMeOX4uFBBkNxURNhqfw/1/di" border="0" ismap="true"></img></a></p><p><a href="http://enhancedlinux.com/wp-content/uploads/2009/12/OSXLeopard.png"><img class="alignright size-full wp-image-13" title="OSXLeopard" src="http://enhancedlinux.com/wp-content/uploads/2009/12/OSXLeopard.png" alt="" width="189" height="226" /></a>My wife and I are movie fans. For as long as I can remember one of our favorite things to do is sit down together and watch a movie. Then we had kids and our movies started becoming toys. It is really frustrating to pull a DVD off the shelf and find either that it is missing or that it has baby fingerprints all over it!</p><p>I finally found a very simple solution. <a title="RipIT - The Mac DVD Ripper" href="http://thelittleappfactory.com/ripit/">RipIT &#8211; The Mac DVD Ripper</a>. This utility lets you <em>easily</em> rip DVDs onto your hard drive for archiving. This way I can archive my DVDs to my hard drive, and store all of the originals in a box. This way I can still watch my movies (I watch them now from my Mac) and keep the originals safely out of reach of the kids.</p><p><strong>Installation</strong></p><p>To install the latest version of RipIT for Mac, visit the site or use this link: <a title="RipIT - Download" href="http://files.thelittleappfactory.com/ripit/RipIt.zip">Download</a></p><p>Drag-and-drop the RipIT icon into your Applications folder, and start things up.</p><p>The free version allows you 10 DVD rips. After that it has a very affordable registration fee to unlock unlimited rips.</p><p><strong>Use</strong></p><p>I&#8217;ve included some screenshots, courtesy of the main RipIT site, to give you an idea of just how incredibly simple it is to archive a DVD onto your hard drive:</p><p>It really is as easy as 1, 2, 3!</p><p><a href="http://enhancedlinux.com/wp-content/uploads/2010/01/screen_1.png"><img class="alignleft size-full wp-image-114" title="screen_1" src="http://enhancedlinux.com/wp-content/uploads/2010/01/screen_1.png" alt="" width="292" height="300" /></a> <a href="http://enhancedlinux.com/wp-content/uploads/2010/01/screen_2.png"><img class="alignleft size-full wp-image-115" title="screen_2" src="http://enhancedlinux.com/wp-content/uploads/2010/01/screen_2.png" alt="" width="292" height="300" /></a><a href="http://enhancedlinux.com/wp-content/uploads/2010/01/screen_3.png"><img class="alignleft size-full wp-image-116" title="screen_3" src="http://enhancedlinux.com/wp-content/uploads/2010/01/screen_3.png" alt="" width="292" height="300" /></a></p> <img src="http://feeds.feedburner.com/~r/EnhancedLinux/~4/NuI1u68yUlo" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://enhancedlinux.com/2010/01/05/the-simplest-dvd-ripper-for-mac/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://enhancedlinux.com/2010/01/05/the-simplest-dvd-ripper-for-mac/</feedburner:origLink></item> <item><title>AUR Package of the Week : Firefox-Branded</title><link>http://feedproxy.google.com/~r/EnhancedLinux/~3/KWjXIWVFEYw/</link> <comments>http://enhancedlinux.com/2010/01/04/aur-package-of-the-week-firefox-branded/#comments</comments> <pubDate>Mon, 04 Jan 2010 15:24:29 +0000</pubDate> <dc:creator>Christer</dc:creator> <category><![CDATA[arch]]></category> <category><![CDATA[AUR]]></category> <category><![CDATA[branded]]></category> <category><![CDATA[firefox]]></category> <category><![CDATA[license]]></category> <category><![CDATA[mozilla]]></category><guid isPermaLink="false">http://enhancedlinux.com/?p=110</guid> <description><![CDATA[I&#8217;m happy to present the AUR Package of the Week, and also the first package of the new year! Today I thought I would showcase the old and trusted browser, Firefox, with a slight twist from the package available in the main repositories. Installation The version of Firefox available in the main repositories is distribution-restricted [...]]]></description> <content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/Sqk2LxY21WJWQ8l6lqLL0Qh6S4w/0/da"><img src="http://feedads.g.doubleclick.net/~a/Sqk2LxY21WJWQ8l6lqLL0Qh6S4w/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Sqk2LxY21WJWQ8l6lqLL0Qh6S4w/1/da"><img src="http://feedads.g.doubleclick.net/~a/Sqk2LxY21WJWQ8l6lqLL0Qh6S4w/1/di" border="0" ismap="true"></img></a></p><p><a href="http://enhancedlinux.com/wp-content/uploads/2009/12/200px-archlinux.png"><img class="alignright size-full wp-image-90" title="200px-archlinux" src="http://enhancedlinux.com/wp-content/uploads/2009/12/200px-archlinux.png" alt="" width="200" height="66" /></a>I&#8217;m happy to present the AUR Package of the Week, and also the first package of the new year! Today I thought I would showcase the old and trusted browser, Firefox, with a slight twist from the package available in the main repositories.</p><p><strong>Installation</strong></p><p>The version of Firefox available in the main repositories is distribution-restricted based on the Mozilla license. You may notice that the version you install is lacking the Firefox branding and name. Again, this is due to a clause in the license. The license say that while Firefox is Open Source software, the name and the branding are not. Unless you&#8217;ve made an agreement with Mozilla, it is outside of the license to distribute the browser along with the name and logo. It is fine, however, to get the source from Mozilla and retain the logo and other branding.</p><p>With that said, to install a branded Firefox browser use the command:</p><blockquote><p><code>yaourt -S firefox-branded</code></p></blockquote><p><strong>Compilation</strong></p><p>As is the case with many other packages in the AUR, this one will require compilation. I&#8217;ve found Firefox to take a bit of time to compile, but its not nearly as bad as some other packages. Your mileage may vary.</p><p><strong>Conclusion</strong></p><p>Firefox has long been the flagship of the free software world. I think this is changing with the release of so many other new (WebKit) browsers, but Firefox still retains the market lead. I have found that, while I have become a fan of Chrome, that Firefox is always dependable as a fall back browser.</p> <img src="http://feeds.feedburner.com/~r/EnhancedLinux/~4/KWjXIWVFEYw" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://enhancedlinux.com/2010/01/04/aur-package-of-the-week-firefox-branded/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://enhancedlinux.com/2010/01/04/aur-package-of-the-week-firefox-branded/</feedburner:origLink></item> </channel> </rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching using disk

Served from: enhancedlinux.com @ 2010-08-10 07:34:26 -->
