<?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>e r i k i m h   d o t   c o m</title>
	<atom:link href="http://erikimh.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://erikimh.com</link>
	<description>inside the mind of a linux system administrator</description>
	<lastBuildDate>Sat, 04 Sep 2010 22:39:32 +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>Ubuntu 10.10 Beta (Maverick Meerkat) Released</title>
		<link>http://erikimh.com/ubuntu-10-10-beta-maverick-meerkat-released/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://erikimh.com/ubuntu-10-10-beta-maverick-meerkat-released/#comments</comments>
		<pubDate>Sat, 04 Sep 2010 22:21:15 +0000</pubDate>
		<dc:creator>kire</dc:creator>
				<category><![CDATA[ubuntu linux]]></category>

		<guid isPermaLink="false">http://erikimh.com/?p=420</guid>
		<description><![CDATA[
	
	<!-- google ad injected by adsense-optimizer http://www.adsenseoptimizer.de -->
	<div  style="padding:7px; display: block; margin-left: auto; margin-right: auto; text-align: center;"><!-- Ad number: 1 --><script type="text/javascript"><!--
    	 
    	google_ad_client = "pub-6351046122854811"; google_alternate_color = "FFFFFF";
		google_ad_width = 180; google_ad_height = 150;
		google_ad_format = "180x150_as"; google_ad_type = "text_image";
		google_ad_channel ="6917465437"; google_color_border = "336699";
		google_color_link = "C8DAE6"; google_color_bg = "000000";
		google_color_text = "FFFFFF"; google_color_url = "DBDBDB";
		google_ui_features = "rc:10"; //--></script>
		<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>The Ubuntu developers are moving quickly to bring you the absolute latest and greatest software the Open Source community has to offer. The Maverick Meerkat Beta is the beta release of Ubuntu 10.10, bringing with it new features for the next version of Ubuntu. This is a beta release. Do not install it on production [...]


Related posts:<ol><li><a href='http://erikimh.com/ubuntu-9-10-karmic-koala-released/' rel='bookmark' title='Permanent Link: Ubuntu 9.10 Karmic Koala Released!'>Ubuntu 9.10 Karmic Koala Released!</a> <small>Ubuntu 9.10 codenamed Karmic Koala has been released! ...</small></li>
<li><a href='http://erikimh.com/now-beta-testing-ubuntu-10-04-lucid-lynx/' rel='bookmark' title='Permanent Link: now beta testing Ubuntu 10.04 (lucid lynx)'>now beta testing Ubuntu 10.04 (lucid lynx)</a> <small>I&#8217;ve started testing Ubuntu 10.04 beta 1, the server edition...</small></li>
<li><a href='http://erikimh.com/ubuntu-10-04-lucid-lynx-is-here/' rel='bookmark' title='Permanent Link: Yes folks, Ubuntu 10.04 (Lucid Lynx) is here!'>Yes folks, Ubuntu 10.04 (Lucid Lynx) is here!</a> <small>Yes folks, Ubuntu 10.04 is here. It’s suppose to be...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>The Ubuntu developers are moving quickly to bring you the absolute latest and greatest software the Open Source community has to offer. The Maverick Meerkat Beta is the beta release of Ubuntu 10.10, bringing with it new features for the next version of Ubuntu.</p>
<p><strong>This is a beta release. Do not install it on production machines.</strong> The final stable version will be released on October 10, 2010.</p>
<p><strong>Upgrading from Ubuntu 10.04 LTS</strong><br />
To upgrade from Ubuntu 10.04 LTS on a desktop system, press Alt+F2 and type in “update-manager -d” (without the quotes) into the command box. Update Manager should open up and tell you: New distribution release ’10.10′ is available. Click Upgrade and follow the on-screen instructions.</p>
<p>To upgrade from Ubuntu 10.04 LTS on a server system: install the update-manager-core package if it is not already installed; edit /etc/update-manager/release-upgrades and set Prompt=normal; launch the upgrade tool with the command sudo do-release-upgrade -d; and follow the on-screen instructions.</p>
<p><strong>Download Beta</strong></p>
<blockquote><p>Get it while it’s hot. ISOs and torrents are available at:
</p></blockquote>
<p><a href="http://www.ubuntu.com/testing/download">http://www.ubuntu.com/testing/download</a> (Ubuntu Desktop, Server, and Netbook) </p>
<p><strong>Want it pre-installed and complete compatibility configured on a brand new Dell laptop?</strong><br />
<CENTER><br />
<A HREF="http://thelinuxlaptop.com" target="_blank"><IMG SRC="http://thelinuxlaptop.com/tll-banner.gif" border="0"></A><br />
</CENTER><BR> </p>
<p>Please test and report any bugs you find:<br />
<a href="http://help.ubuntu.com/community/ReportingBugs">http://help.ubuntu.com/community/ReportingBugs</a></p>
<p><strong>Updated Packages</strong><br />
As with every new release, packages&#8211;applications and software of all kinds&#8211;are being updated at a rapid pace. Many of these packages came from an automatic sync from Debian’s Unstable branch. The period of automatic syncs has stopped now, so from now on there will be fewer changes.</p>
<p><strong>Ubuntu Desktop Edition</strong><br />
The GNOME base platform has been updated to the current 2.31 versions. This particularly includes the new dconf and gsettings API.</p>
<p>Evolution was updated to the 2.30 version, which operates much faster compared to the version in Ubuntu 10.04 LTS.</p>
<p>Shotwell has replaced F-Spot as the default photo manager.</p>
<p>Gwibber has been updated to support the recent change in Twitter’s authentication system, as well as changing the back end storage to improve performance.</p>
<p>The Sound Indicator has been enhanced to include music player controls.</p>
<p>The Ubuntu Software Center has an updated look and feel, including the new “Featured” and “What’s New” views for showcasing applications, an improved package description view, and a “For Purchase” software category has been added. You can also now easily access your package installation history too.</p>
<p>Ubuntu One: Polished desktop integration with new sign up and sign in process. Tighter integration with Ubuntu SSO. Nautilus enhancements for managing folder sync preferences. Faster file sync speed. Share links to music within the Ubuntu One Music Store.</p>
<p><strong>Ubuntu Netbook Edition<br />
</strong>The new Unity interface is now the default in Ubuntu Netbook Edition. This includes the global menu bar as part of the default interface. The date/time indicator now has a real calendar widget.</p>
<p>The standard photo management application has been switched to Shotwell. Evolution express is also available in the default launcher. This interface is more suited to netbook interfaces.</p>
<p><strong>Installation</strong><br />
The new btrfs file system may now be used during installation via manual partitioning, as long as /boot is on some other file system.</p>
<p><strong>Linux kernel 2.6.35</strong><br />
Beta includes the 2.6.35-19.28 kernel which is based on the 2.6.35.3  upstream stable kernel.</p>
<p><em>This kernel also includes input subsystem patches for improved  multitouch capability, ALSA device patches to resolve audio and  microphone issues, miscellaneous driver updates for intel_ips, lirc, iscsitarget  and rtl8192se, general security updates(CVE-2010-2240,CVE-2010-2803,CVE-2010-2959), and security enhancements for ARM.</em></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://erikimh.com/ubuntu-10-10-beta-maverick-meerkat-released/" target="_blank"><img src="http://erikimh.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://erikimh.com/ubuntu-10-10-beta-maverick-meerkat-released/" target="_blank" title="Share on Facebook">Share on Facebook</a></p><!-- google_ad_section_end --><p>&copy;2010 <a href="http://erikimh.com">e r i k i m h   d o t   c o m</a>. All Rights Reserved.</p>.

<p>Related posts:<ol><li><a href='http://erikimh.com/ubuntu-9-10-karmic-koala-released/' rel='bookmark' title='Permanent Link: Ubuntu 9.10 Karmic Koala Released!'>Ubuntu 9.10 Karmic Koala Released!</a> <small>Ubuntu 9.10 codenamed Karmic Koala has been released! ...</small></li>
<li><a href='http://erikimh.com/now-beta-testing-ubuntu-10-04-lucid-lynx/' rel='bookmark' title='Permanent Link: now beta testing Ubuntu 10.04 (lucid lynx)'>now beta testing Ubuntu 10.04 (lucid lynx)</a> <small>I&#8217;ve started testing Ubuntu 10.04 beta 1, the server edition...</small></li>
<li><a href='http://erikimh.com/ubuntu-10-04-lucid-lynx-is-here/' rel='bookmark' title='Permanent Link: Yes folks, Ubuntu 10.04 (Lucid Lynx) is here!'>Yes folks, Ubuntu 10.04 (Lucid Lynx) is here!</a> <small>Yes folks, Ubuntu 10.04 is here. It’s suppose to be...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://erikimh.com/ubuntu-10-10-beta-maverick-meerkat-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RAID: Rebuilding a Foreign disk by hand</title>
		<link>http://erikimh.com/raid-rebuilding-foreign-disk-by-hand/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://erikimh.com/raid-rebuilding-foreign-disk-by-hand/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 23:32:58 +0000</pubDate>
		<dc:creator>kire</dc:creator>
				<category><![CDATA[linux administration - tips, notes and projects]]></category>

		<guid isPermaLink="false">http://erikimh.com/?p=418</guid>
		<description><![CDATA[While replacing a bad drive with a drive that used to be part of another RAID array configuration, the RAID refused to automatically rebuild, thinking that I might want to import the configuration from this disk (or that there&#8217;s data on there that I might need). Simply inserting the drive doesn&#8217;t make the controller rebuild [...]


Related posts:<ol><li><a href='http://erikimh.com/how-to-upgrade-from-ext3-to-ext4-without-formatting-the-hard-disk/' rel='bookmark' title='Permanent Link: How To Upgrade From Ext3 To Ext4 Without Formatting The Hard Disk'>How To Upgrade From Ext3 To Ext4 Without Formatting The Hard Disk</a> <small>Disclaimer: ALWAYS BACKUP YOUR DATA WHEN MAKING ANY CHANGES TO...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>While replacing a bad drive with a drive that used to be part of another RAID array configuration, the RAID refused to automatically rebuild, thinking that I might want to import the configuration from this disk (or that there&#8217;s data on there that I might need).  </p>
<p>Simply inserting the drive doesn&#8217;t make the controller rebuild the array with that disk.  Here&#8217;s how to manually make the drive get along with the rest of the new array:</p>
<p>(Note: this is a 64 bit server, so the MegaCli client I&#8217;m using is called &#8220;MegaCli64&#8243;, if you are not running x64,  you can simply substitute the commands below with the path to your megacli binary.)</p>
<blockquote><p>server:~# MegaCli64 -PDlist -aALL -a0<br />
[...]<br />
Enclosure Device ID: 32<br />
Slot Number: 4<br />
[...]<br />
Firmware state: Unconfigured(bad)<br />
[...]<br />
Secured: Unsecured<br />
Locked: Unlocked<br />
Foreign State: Foreign<br />
[...]
</p></blockquote>
<p>Based on the information obtained above, I now know that the disk drive I just replaced is [32:4] ([enclosureid:slotnumber]) and is currently being reported as &#8216;Unconfigured(bad)&#8217;. </p>
<p>To bring this drive back online run:</p>
<blockquote><p>server:~# MegaCli64 -PDMakeGood -PhysDrv[32:4] -a0<br />
Adapter: 0: EnclId-32 SlotId-4 state changed to Unconfigured-Good.
</p></blockquote>
<p>The controller will now recognize the disk as being a &#8220;foreign&#8221; one. This does not mean it was made in Japan (though, it likely was).  It means it has detected some RAID configuration/data on it and thus, considers it as a disk being part of an array that may be imported into current controller configuration.  Because of this, it will not automatically rebuild until you force it to.</p>
<p>Now you can ask the controller to scan for foreign configurations and remove them:</p>
<blockquote><p>server:~# MegaCli64 -CfgForeign -Scan -a0<br />
There are 1 foreign configuration(s) on controller 0.</p>
<p>server:~# MegaCli64 -CfgForeign -Clear -a0<br />
Foreign configuration 0 is cleared on controller 0.
</p></blockquote>
<p>The disk should now be available for rebuilding into your new RAID array.  To confirm, run this:</p>
<blockquote><p>server:~# MegaCli64 -PDList -a0<br />
[...]<br />
Enclosure Device ID: 32<br />
Slot Number: 4<br />
[...]<br />
Firmware state: Unconfigured(good), Spun Up<br />
Foreign State: None<br />
[...]</p></blockquote>
<p>Excellent.  We have a good, recognized (yet still unconfigured) drive now.  Now we have all we need to add the disk back into the new array, and rebuild:</p>
<p>Get the disk [32:4] back into array 1, as disk 4:</p>
<blockquote><p>server:~# MegaCli64 -PdReplaceMissing -PhysDrv[32:4] -array1 -row4 -a0<br />
Adapter: 0: Missing PD at Array 1, Row 4 is replaced
</p></blockquote>
<p>And finally start rebuilding it:</p>
<blockquote><p>
server:~# megacli -PDRbld -Start -PhysDrv[32:4] -a0<br />
Started rebuild progress on device(Encl-32 Slot-4)
</p></blockquote>
<p>Now, sit back, relax, grab a smoke and wait for it to rebuild itself into your new RAID array.  Not so foreign anymore, huh?</p>
<p>-E</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://erikimh.com/raid-rebuilding-foreign-disk-by-hand/" target="_blank"><img src="http://erikimh.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://erikimh.com/raid-rebuilding-foreign-disk-by-hand/" target="_blank" title="Share on Facebook">Share on Facebook</a></p><!-- google_ad_section_end --><p>&copy;2010 <a href="http://erikimh.com">e r i k i m h   d o t   c o m</a>. All Rights Reserved.</p>.

<p>Related posts:<ol><li><a href='http://erikimh.com/how-to-upgrade-from-ext3-to-ext4-without-formatting-the-hard-disk/' rel='bookmark' title='Permanent Link: How To Upgrade From Ext3 To Ext4 Without Formatting The Hard Disk'>How To Upgrade From Ext3 To Ext4 Without Formatting The Hard Disk</a> <small>Disclaimer: ALWAYS BACKUP YOUR DATA WHEN MAKING ANY CHANGES TO...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://erikimh.com/raid-rebuilding-foreign-disk-by-hand/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>process accounting</title>
		<link>http://erikimh.com/process-accounting/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://erikimh.com/process-accounting/#comments</comments>
		<pubDate>Sun, 22 Aug 2010 02:31:29 +0000</pubDate>
		<dc:creator>kire</dc:creator>
				<category><![CDATA[linux administration - tips, notes and projects]]></category>

		<guid isPermaLink="false">http://erikimh.com/?p=412</guid>
		<description><![CDATA[An excellent program for monitoring users and applications is psacct. This program will work in the background of your system recording what all users are doing on your system as well as the resources that are being consumed. I use it daily for resource abuse tracking, statistics generation, CPU usage trending, process identification and more. [...]


Related posts:<ol><li><a href='http://erikimh.com/cant-find-user-in-whm/' rel='bookmark' title='Permanent Link: can&#8217;t find user in WHM'>can&#8217;t find user in WHM</a> <small>cPanel doesn&#8217;t know user, or you can&#8217;t find the user...</small></li>
<li><a href='http://erikimh.com/how-to-upgrade-from-ext3-to-ext4-without-formatting-the-hard-disk/' rel='bookmark' title='Permanent Link: How To Upgrade From Ext3 To Ext4 Without Formatting The Hard Disk'>How To Upgrade From Ext3 To Ext4 Without Formatting The Hard Disk</a> <small>Disclaimer: ALWAYS BACKUP YOUR DATA WHEN MAKING ANY CHANGES TO...</small></li>
<li><a href='http://erikimh.com/pecl-install-fails-how-to-compile-manually/' rel='bookmark' title='Permanent Link: PECL install fails / how to compile manually'>PECL install fails / how to compile manually</a> <small>When attempting to compile using PECL install, you will likely...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>An excellent program for monitoring users and applications is psacct.  This program will work in the background of your system recording what all users are doing on your system as well as the resources that are being consumed.  I use it daily for resource abuse tracking, statistics generation, CPU usage trending, process identification and more.</p>
<p>Since I administer both Ubuntu/Debian and CentOS/RHEL servers, I&#8217;ll provide both methods of installation here:</p>
<p>CentOS:</p>
<blockquote><p>yum install psacct</p></blockquote>
<p>Ubuntu:</p>
<blockquote><p>sudo apt-get install acct</p></blockquote>
<p>The most useful command that now exists on your box is in /usr/bin and called &#8220;sa&#8221;. </p>
<p>SA has the following output fields:</p>
<blockquote><p>
cpu   &#8211;  sum of system and user time in cpu minutes<br />
re    &#8211;  actual time in minutes<br />
k     &#8211;  cpu-time averaged core usage, in 1k units<br />
k*sec &#8211;  cpu storage integral (kilo-core seconds)<br />
u     &#8211;  user cpu time in cpu minutes<br />
s     &#8211;  system time in cpu minutes
</p></blockquote>
<p>Start off by allowing process accounting to collect some data from your system.  This should really be left for 24-48 hours, though if you&#8217;re too excited to start parsing the results, lets continue.</p>
<p>This will show you averages for the all the activity for this server overtime. This log file grows larger over time as more commands run, and the longer you allow it to collect data.</p>
<blockquote><p># sa -m </p></blockquote>
<p>This will show you the sum of the system and user time in cpu minutes for specific commands.</p>
<blockquote><p># sa -u | grep username</p></blockquote>
<p>This will give you a combined total for a specific user:</p>
<blockquote><p># sa -u |grep username|awk &#8216;BEGIN{TOTAL=0}{TOTAL=TOTAL+$2}END{print TOTAL}&#8217;</p></blockquote>
<p>This option will show each of the programs on your server so you may evaluate, real time, memory usage and which programs are running:</p>
<blockquote><p># sa -a</p></blockquote>
<p>Hint:  append the &#8220;-c&#8221; flag to any of the options to view the highest percentile users first.</p>
<p>I know that this can be confusing, and it took myself and my organization some time to master the technology due to the lack of documentation available.  I hope this article will also help someone else&#8217;s resource management lightbulb illuminate.</p>
<p>-e</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://erikimh.com/process-accounting/" target="_blank"><img src="http://erikimh.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://erikimh.com/process-accounting/" target="_blank" title="Share on Facebook">Share on Facebook</a></p><!-- google_ad_section_end --><p>&copy;2010 <a href="http://erikimh.com">e r i k i m h   d o t   c o m</a>. All Rights Reserved.</p>.

<p>Related posts:<ol><li><a href='http://erikimh.com/cant-find-user-in-whm/' rel='bookmark' title='Permanent Link: can&#8217;t find user in WHM'>can&#8217;t find user in WHM</a> <small>cPanel doesn&#8217;t know user, or you can&#8217;t find the user...</small></li>
<li><a href='http://erikimh.com/how-to-upgrade-from-ext3-to-ext4-without-formatting-the-hard-disk/' rel='bookmark' title='Permanent Link: How To Upgrade From Ext3 To Ext4 Without Formatting The Hard Disk'>How To Upgrade From Ext3 To Ext4 Without Formatting The Hard Disk</a> <small>Disclaimer: ALWAYS BACKUP YOUR DATA WHEN MAKING ANY CHANGES TO...</small></li>
<li><a href='http://erikimh.com/pecl-install-fails-how-to-compile-manually/' rel='bookmark' title='Permanent Link: PECL install fails / how to compile manually'>PECL install fails / how to compile manually</a> <small>When attempting to compile using PECL install, you will likely...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://erikimh.com/process-accounting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to disable SSH host key checking</title>
		<link>http://erikimh.com/how-to-disable-ssh-host-key-checking/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://erikimh.com/how-to-disable-ssh-host-key-checking/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 21:48:38 +0000</pubDate>
		<dc:creator>kire</dc:creator>
				<category><![CDATA[linux administration - tips, notes and projects]]></category>

		<guid isPermaLink="false">http://erikimh.com/?p=405</guid>
		<description><![CDATA[Remote login using the SSH protocol is a common activity in my line of work. With the SSH protocol, the responsibility is on the SSH client to verify the identity of the host to which it is connecting. The host identify is established by its SSH host key. Typically, the host key is auto-created during [...]


Related posts:<ol><li><a href='http://erikimh.com/how-to-setup-ssh-keys/' rel='bookmark' title='Permanent Link: setup ssh keys'>setup ssh keys</a> <small>If you are going to connect to a remote host...</small></li>
<li><a href='http://erikimh.com/change-a-processes-priority-with-renice/' rel='bookmark' title='Permanent Link: Change a processes&#8217; priority with renice'>Change a processes&#8217; priority with renice</a> <small>You can change the default priority that an application runs...</small></li>
<li><a href='http://erikimh.com/enable-passive-ftp-in-pure-ftpd/' rel='bookmark' title='Permanent Link: enable passive FTP in pure-ftpd'>enable passive FTP in pure-ftpd</a> <small>For users that are behind a firewall it might be...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Remote login using the SSH protocol is a common activity in my line of work. With the SSH protocol, the responsibility is on the SSH client to verify the identity of the host to which it is connecting. The host identify is established by its SSH host key. Typically, the host key is auto-created during initial SSH installation setup.</p>
<p>By default, the SSH client verifies the host key against a local file containing known, rustworthy machines. This provides protection against possible Man-In-The-Middle attacks. However, there are situations in which you want to bypass this verification step. This article explains how to disable host key checking using OpenSSH, a popular Free and Open-Source implementation of SSH.</p>
<p>When you login to a remote host for the first time, the remote host&#8217;s host key is most likely unknown to the SSH client. The default behavior is to ask the user to confirm the fingerprint of the host key.</p>
<blockquote><p>$ ssh erik@192.168.0.100<br />
The authenticity of host &#8217;192.168.0.100 (192.168.0.100)&#8217; can&#8217;t be established.<br />
RSA key fingerprint is 3f:1b:f4:bd:c5:aa:c1:1f:bf:4e:2e:cf:53:fa:d8:59.<br />
Are you sure you want to continue connecting (yes/no)? </p></blockquote>
<p>If your answer is yes, the SSH client continues login, and stores the host key locally in the file ~/.ssh/known_hosts. You only need to validate the host key the first time around: in subsequent logins, you will not be prompted to confirm it again.</p>
<p>Yet, from time to time, when you try to remote login to the same host from the same origin, you may be refused with the following warning message:</p>
<blockquote><p>
$ ssh erik@192.168.0.100<br />
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@<br />
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @<br />
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@<br />
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!<br />
Someone could be eavesdropping on you right now (man-in-the-middle attack)!<br />
It is also possible that the RSA host key has just been changed.<br />
The fingerprint for the RSA key sent by the remote host is<br />
3f:1b:f4:bd:c5:aa:c1:1f:bf:4e:2e:cf:53:fa:d8:59.<br />
Please contact your system administrator.<br />
Add correct host key in /home/erik/.ssh/known_hosts to get rid of this message.<br />
Offending key in /home/erik/.ssh/known_hosts:3<br />
RSA host key for 192.168.0.100 has changed and you have requested strict checking.<br />
Host key verification failed.</p></blockquote>
<p>There are multiple possible reasons why the remote host key changed. A Man-in-the-Middle attack is only one possible reason. Other possible reasons include:</p>
<p>OpenSSH was re-installed on the remote host but, for whatever reason, the original host key was not restored.<br />
The remote host was replaced legitimately by another machine.</p>
<p>If you are sure that this is harmless, you can use either 1 of 2 methods below to trick openSSH to let you login. But be warned that you have become vulnerable to man-in-the-middle attacks. </p>
<p>The first method is to remove the remote host from the ~/.ssh/known_hosts file. Note that the warning message already tells you the line number in the known_hosts file that corresponds to the target remote host. The offending line in the above example is line 3(&#8220;Offending key in /home/erik/.ssh/known_hosts:3&#8243;)</p>
<p>You can use the following one liner to remove that one line (line 3) from the file.</p>
<blockquote><p>$ sed -i 3d ~/.ssh/known_hosts
</p></blockquote>
<p>Note that with the above method, you will be prompted to confirm the host key fingerprint when you run ssh to login.</p>
<p>The second method uses two openSSH parameters:<br />
StrictHostKeyCheckin, and UserKnownHostsFile.</p>
<p>This method tricks SSH by configuring it to use an empty known_hosts file, and NOT to ask you to confirm the remote host identity key.</p>
<blockquote><p>$ ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no erik@192.168.0.100<br />
Warning: Permanently added &#8217;192.168.0.100&#8242; (RSA) to the list of known hosts.<br />
erik@192.168.0.100&#8242;s password:</p></blockquote>
<p>The UserKnownHostsFile parameter specifies the database file to use for storing the user host keys (default is ~/.ssh/known_hosts).</p>
<p>The /dev/null file is a special system device file that discards anything and everything written to it, and when used as the input file, returns End Of File immediately.</p>
<p>By configuring the null device file as the host key database, SSH is fooled into thinking that the SSH client has never connected to any SSH server before, and so will never run into a mismatched host key.</p>
<p>The parameter StrictHostKeyChecking specifies if SSH will automatically add new host keys to the host key database file. By setting it to no, the host key is automatically added, without user confirmation, for all first-time connection. Because of the null key database file, all connection is viewed as the first-time for any SSH server host. Therefore, the host key is automatically added to the host key database with no user confirmation. Writing the key to the /dev/null file discards the key and reports success.</p>
<p>Please refer to this excellent article about host keys and key checking.</p>
<p>By specifying the above 2 SSH options on the command line, you can bypass host key checking for that particular SSH login. If you want to bypass host key checking on a permanent basis, you need to specify those same options in the SSH configuration file.</p>
<p>You can edit the global SSH configuration file <strong>(/etc/ssh/ssh_config)</strong> if you want to make the changes permanent for all users.</p>
<p>If you want to target a particular user, modify the user-specific SSH configuration file <strong>(~/.ssh/config).</strong> The instructions below apply to both files.</p>
<p>Suppose you want to bypass key checking for a particular subnet (192.168.0.0/24).</p>
<p>Add the following lines to the beginning of the SSH configuration file.</p>
<blockquote><p>Host 192.168.0.*<br />
   StrictHostKeyChecking no<br />
   UserKnownHostsFile=/dev/null</p></blockquote>
<p>Note that the configuration file should have a line like Host * followed by one or more parameter-value pairs. Host *means that it will match any host. Essentially, the parameters following Host * are the general defaults. Because the first matched value for each SSH parameter is used, you want to add the host-specific or subnet-specific parameters to the beginning of the file.</p>
<p>As a final word of caution, unless you know what you are doing, it is probably best to bypass key checking on a case by case basis, rather than making blanket permanent changes to the SSH configuration files.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://erikimh.com/how-to-disable-ssh-host-key-checking/" target="_blank"><img src="http://erikimh.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://erikimh.com/how-to-disable-ssh-host-key-checking/" target="_blank" title="Share on Facebook">Share on Facebook</a></p><!-- google_ad_section_end --><p>&copy;2010 <a href="http://erikimh.com">e r i k i m h   d o t   c o m</a>. All Rights Reserved.</p>.

<p>Related posts:<ol><li><a href='http://erikimh.com/how-to-setup-ssh-keys/' rel='bookmark' title='Permanent Link: setup ssh keys'>setup ssh keys</a> <small>If you are going to connect to a remote host...</small></li>
<li><a href='http://erikimh.com/change-a-processes-priority-with-renice/' rel='bookmark' title='Permanent Link: Change a processes&#8217; priority with renice'>Change a processes&#8217; priority with renice</a> <small>You can change the default priority that an application runs...</small></li>
<li><a href='http://erikimh.com/enable-passive-ftp-in-pure-ftpd/' rel='bookmark' title='Permanent Link: enable passive FTP in pure-ftpd'>enable passive FTP in pure-ftpd</a> <small>For users that are behind a firewall it might be...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://erikimh.com/how-to-disable-ssh-host-key-checking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Buy a Linux Laptop Computer (with a coupon code for 5% off)</title>
		<link>http://erikimh.com/linux-laptop-sale-coupon-codes/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://erikimh.com/linux-laptop-sale-coupon-codes/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 03:13:09 +0000</pubDate>
		<dc:creator>kire</dc:creator>
				<category><![CDATA[ubuntu linux]]></category>

		<guid isPermaLink="false">http://erikimh.com/?p=354</guid>
		<description><![CDATA[The Linux Laptop Company sells professional grade Linux laptops with full hardware support under all flavors of Linux. Our clients range from worldwide corporations to everyday personal Linux desktop users. We are familiar with all of the latest technology and our engineers can customize every aspect of your system to meet all of your most [...]


Related posts:<ol><li><a href='http://erikimh.com/buy-a-linux-laptop/' rel='bookmark' title='Permanent Link: linux laptops'>linux laptops</a> <small>The Linux Laptop Company is your source for professional grade...</small></li>
<li><a href='http://erikimh.com/open-source-tripwire-intrusion-detection-for-linux/' rel='bookmark' title='Permanent Link: Open Source Tripwire Intrusion Detection for Linux'>Open Source Tripwire Intrusion Detection for Linux</a> <small>&#8220;Open Source Tripwire® software is a security and data integrity...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>The Linux Laptop Company sells professional grade Linux laptops with full hardware support under all flavors of Linux.  Our clients range from worldwide corporations to everyday personal Linux desktop users. We are familiar with all of the latest technology and our engineers can customize every aspect of your system to meet all of your most demanding mobile computing needs.  Full manufacturer warranties are provided by Dell&reg;.  We stand by all of our products and guarantee support for the life of your computer.  </p>
<p><em>How do I know this to be true? </em><strong> Because I own the company.   </strong> I have over sixteen years of experience in a wide range of Linux based organizations. As a result, I&#8217;ve hand picked a team of Linux experts to manage this company. Most have been using Linux from its very earliest days (Slackware in 1993). Besides being skilled in every aspect of system administration and provisioning, our staff knows exactly what our customers want. The reason for this, is we are all Linux users ourself. After realizing how difficult it was to find a decent customizable Linux notebook, we decided to make our own. Our Linux wizards are at your service before and after the sale.</p>
<p>Why is everyone switching to Linux? While the list of reasons can go on for pages, in two words&#8230; &#8220;Open Source&#8221;.  Open source is publicly shared intellectual property. When it comes to Linux, brilliant minds from across the world contribute to your the operating system&#8217;s source code and does not have licensing restrictions that limit use, modification, or redistribution. Linux is the most popular example of an open source technology. This innovative way of using a computer is far superior to commercialized operating systems because of the Linux community. <strong>Until now, this type of freedom has only been available to the technically advanced. </strong></p>
<p><CENTER><H1>TAKE 5% OFF YOUR ORDER!</H1></CENTER></p>
<p><CENTER></p>
<blockquote><p>Use this coupon code while ordering to have 5% deducted from your total order amount.
</p></blockquote>
<p><H1>TUX5</H1><br />
<A HREF="http://thelinuxlaptop.com" target="_blank"><H2>Order Now!</H2></A><br />
</CENTER> </p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://erikimh.com/linux-laptop-sale-coupon-codes/" target="_blank"><img src="http://erikimh.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://erikimh.com/linux-laptop-sale-coupon-codes/" target="_blank" title="Share on Facebook">Share on Facebook</a></p><!-- google_ad_section_end --><p>&copy;2010 <a href="http://erikimh.com">e r i k i m h   d o t   c o m</a>. All Rights Reserved.</p>.

<p>Related posts:<ol><li><a href='http://erikimh.com/buy-a-linux-laptop/' rel='bookmark' title='Permanent Link: linux laptops'>linux laptops</a> <small>The Linux Laptop Company is your source for professional grade...</small></li>
<li><a href='http://erikimh.com/open-source-tripwire-intrusion-detection-for-linux/' rel='bookmark' title='Permanent Link: Open Source Tripwire Intrusion Detection for Linux'>Open Source Tripwire Intrusion Detection for Linux</a> <small>&#8220;Open Source Tripwire® software is a security and data integrity...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://erikimh.com/linux-laptop-sale-coupon-codes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change a processes&#8217; priority with renice</title>
		<link>http://erikimh.com/change-a-processes-priority-with-renice/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://erikimh.com/change-a-processes-priority-with-renice/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 02:46:49 +0000</pubDate>
		<dc:creator>kire</dc:creator>
				<category><![CDATA[linux administration - tips, notes and projects]]></category>

		<guid isPermaLink="false">http://erikimh.com/?p=403</guid>
		<description><![CDATA[You can change the default priority that an application runs with by starting it with the nice command, but if you want to change the priority of a process that is already running, the command to use is renice. Renice can be used to change the priority of a single process, or of all the [...]


Related posts:<ol><li><a href='http://erikimh.com/kill-multiple-pid/' rel='bookmark' title='Permanent Link: simple foreach to kill multiple PIDs'>simple foreach to kill multiple PIDs</a> <small>Sometimes you&#8217;ll find a bunch of stale or malicious processes...</small></li>
<li><a href='http://erikimh.com/apache-mpms/' rel='bookmark' title='Permanent Link: apache MPMs'>apache MPMs</a> <small>What are Multi-Processing Modules (MPM)? Prefork vs Worker Multi-Processing Modules...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>You can change the default priority that an application runs with by starting it with the nice command, but if you want to change the priority of a process that is already running, the command to use is renice.</p>
<p>Renice can be used to change the priority of a single process, or of all the processes owned by a specified user. As with the nice command, the priority values range from -20 to +19 and negative numbers raise the priority of a task while positive numbers lower it.  Yes, that seems a little backwards, but the higher the priority the less resources are devoted to it.  Only the superuser can specify negative numbers (thus raising the priority of a process).</p>
<blockquote><p>renice 5 some_process
</p></blockquote>
<p>This command will change the priority of some_process to 5.</p>
<blockquote><p>renice -5 -u erik
</p></blockquote>
<p>will change the priority of all processes owned by user erik to -5.</p>
<blockquote><p>renice -5 -u erik -p 699
</p></blockquote>
<p>will chance the priority of all processes owned by erik and process with PID 699 to -5.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://erikimh.com/change-a-processes-priority-with-renice/" target="_blank"><img src="http://erikimh.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://erikimh.com/change-a-processes-priority-with-renice/" target="_blank" title="Share on Facebook">Share on Facebook</a></p><!-- google_ad_section_end --><p>&copy;2010 <a href="http://erikimh.com">e r i k i m h   d o t   c o m</a>. All Rights Reserved.</p>.

<p>Related posts:<ol><li><a href='http://erikimh.com/kill-multiple-pid/' rel='bookmark' title='Permanent Link: simple foreach to kill multiple PIDs'>simple foreach to kill multiple PIDs</a> <small>Sometimes you&#8217;ll find a bunch of stale or malicious processes...</small></li>
<li><a href='http://erikimh.com/apache-mpms/' rel='bookmark' title='Permanent Link: apache MPMs'>apache MPMs</a> <small>What are Multi-Processing Modules (MPM)? Prefork vs Worker Multi-Processing Modules...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://erikimh.com/change-a-processes-priority-with-renice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Out of memory error on horde</title>
		<link>http://erikimh.com/out-of-memory-error-on-horde/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://erikimh.com/out-of-memory-error-on-horde/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 00:35:47 +0000</pubDate>
		<dc:creator>kire</dc:creator>
				<category><![CDATA[linux administration - tips, notes and projects]]></category>

		<guid isPermaLink="false">http://erikimh.com/?p=399</guid>
		<description><![CDATA[This one&#8217;s here because I spent the better half of an hour troubleshooting this for a customer. The error: Fatal error: Out of memory (allocated 47448064) (tried to allocate 13472326 bytes) in /usr/local/cpanel/3rdparty/lib/php/Net/SMTP.php on line 821 The cause: Sending messages through Webmail with attachments larger than 10MB. Incorrect diagnosis: If you&#8217;ve stumbled upon this post [...]


Related posts:<ol><li><a href='http://erikimh.com/force-horde-update/' rel='bookmark' title='Permanent Link: force a horde update and reset databases'>force a horde update and reset databases</a> <small>Sometimes you may need to update Horde forcefully due to...</small></li>
<li><a href='http://erikimh.com/imapd-error-inputoutput-error/' rel='bookmark' title='Permanent Link: imapd: Error: Input/output error'>imapd: Error: Input/output error</a> <small>So your IMAP mail is failing. Your e-mail client disconnects...</small></li>
<li><a href='http://erikimh.com/error-failed-opening-%e2%80%98netsmtp-php%e2%80%99-for-inclusion/' rel='bookmark' title='Permanent Link: Error: Failed opening ‘Net/SMTP.php’ for inclusion'>Error: Failed opening ‘Net/SMTP.php’ for inclusion</a> <small>Warning: send(Net/SMTP.php) [function.send]: failed to open stream: No such file...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>This one&#8217;s here because I spent the better half of an hour troubleshooting this for a customer.  </p>
<p>The error:  </p>
<blockquote><p>Fatal error: Out of memory (allocated 47448064) (tried to allocate 13472326 bytes) in<br />
/usr/local/cpanel/3rdparty/lib/php/Net/SMTP.php on line 821</p></blockquote>
<p>The cause: </p>
<blockquote><p>Sending messages through Webmail with attachments larger than 10MB.</p></blockquote>
<p>Incorrect diagnosis:  </p>
<blockquote><p>If you&#8217;ve stumbled upon this post as a result of furious internet searching for similar issues, you&#8217;ve likely found thousands of posts regarding the error indicating the problem lies in the php.ini file of cPanel or Horde.  While the PHP memory limit for cPanel and Horde are defined in their own php.ini, this does not actually alleviate the error seen here.  cPanel itself will actually kill off applications consuming more than what is defined in Tweak Settings.
</p></blockquote>
<p>The Fix:</p>
<blockquote><p>WHM (as root) ->Tweak Settings > The maximum memory a cPanel process can use before it is killed off.</p></blockquote>
<p><strong>Change this to 512M or 0 to disable memory limits all together.</strong></p>
<p>Done.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://erikimh.com/out-of-memory-error-on-horde/" target="_blank"><img src="http://erikimh.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://erikimh.com/out-of-memory-error-on-horde/" target="_blank" title="Share on Facebook">Share on Facebook</a></p><!-- google_ad_section_end --><p>&copy;2010 <a href="http://erikimh.com">e r i k i m h   d o t   c o m</a>. All Rights Reserved.</p>.

<p>Related posts:<ol><li><a href='http://erikimh.com/force-horde-update/' rel='bookmark' title='Permanent Link: force a horde update and reset databases'>force a horde update and reset databases</a> <small>Sometimes you may need to update Horde forcefully due to...</small></li>
<li><a href='http://erikimh.com/imapd-error-inputoutput-error/' rel='bookmark' title='Permanent Link: imapd: Error: Input/output error'>imapd: Error: Input/output error</a> <small>So your IMAP mail is failing. Your e-mail client disconnects...</small></li>
<li><a href='http://erikimh.com/error-failed-opening-%e2%80%98netsmtp-php%e2%80%99-for-inclusion/' rel='bookmark' title='Permanent Link: Error: Failed opening ‘Net/SMTP.php’ for inclusion'>Error: Failed opening ‘Net/SMTP.php’ for inclusion</a> <small>Warning: send(Net/SMTP.php) [function.send]: failed to open stream: No such file...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://erikimh.com/out-of-memory-error-on-horde/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easily remove the last character of every line</title>
		<link>http://erikimh.com/easily-remove-the-last-character-of-every-line/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://erikimh.com/easily-remove-the-last-character-of-every-line/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 03:24:51 +0000</pubDate>
		<dc:creator>kire</dc:creator>
				<category><![CDATA[linux administration - tips, notes and projects]]></category>

		<guid isPermaLink="false">http://erikimh.com/?p=395</guid>
		<description><![CDATA[So, often I&#8217;ll come across something that I need done, but don&#8217;t want to waste time manually doing it. This particular instance, I had a list of hostnames which I needed to remove the trailing &#8220;.&#8221; (dot) from the PTR. Normally, if these hostnames were all simple name.TLD domains this would easily be accomplished with [...]


Related posts:<ol><li><a href='http://erikimh.com/search-and-replac/' rel='bookmark' title='Permanent Link: search and replace'>search and replace</a> <small>Example: Customer has been a victim of iframe code injections...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>So, often I&#8217;ll come across something that I need done, but don&#8217;t want to waste time manually doing it.  This particular instance, I had a list of hostnames which I needed to remove the trailing &#8220;.&#8221; (dot) from the PTR.  Normally, if these hostnames were all simple name.TLD domains this would easily be accomplished with cut:</p>
<blockquote><p>cut -d. -f1-2</p></blockquote>
<p>This basically means cut by delimiter (-d), where the delimiter is defined as a period (.) and then print fields 1 and 2.   Easy enough.</p>
<p>But, what if you have hostnames and subdomains with varying field lengths, such as: <strong>something.domain.com. and something.else.domain.com.</strong></p>
<p>So &#8212; here&#8217;s two easy ways to get it done.</p>
<p><strong>USING VI: </strong><br />
This one&#8217;s for you <strong>vi</strong> fans (and once again pains me to learn another way that vi is more capable than nano/pico):</p>
<blockquote><p>:%s/.$//g</p></blockquote>
<p>Run that in vi, and wha-la, all the trailing dots disappear.  You can obviously do this for other characters that are not &#8220;dots&#8221; by replacing the . in the command above.</p>
<p>But wait, there&#8217;s still more ways to skin the <del datetime="2010-07-11T03:18:13+00:00">cat</del> dot. </p>
<p><strong>USING SED:<br />
</strong></p>
<blockquote><p>sed. x=`echo $i|sed s/.$//`</p></blockquote>
<p>Either way, this leaves you with an easy way to save yourself boatloads of time (depending on how long the list you&#8217;re trying to trim is!)</p>
<p>Hope this helps!</p>
<p>-E</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://erikimh.com/easily-remove-the-last-character-of-every-line/" target="_blank"><img src="http://erikimh.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://erikimh.com/easily-remove-the-last-character-of-every-line/" target="_blank" title="Share on Facebook">Share on Facebook</a></p><!-- google_ad_section_end --><p>&copy;2010 <a href="http://erikimh.com">e r i k i m h   d o t   c o m</a>. All Rights Reserved.</p>.

<p>Related posts:<ol><li><a href='http://erikimh.com/search-and-replac/' rel='bookmark' title='Permanent Link: search and replace'>search and replace</a> <small>Example: Customer has been a victim of iframe code injections...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://erikimh.com/easily-remove-the-last-character-of-every-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The difference between Megabytes and Megabits</title>
		<link>http://erikimh.com/the-difference-between-megabytes-and-megabits/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://erikimh.com/the-difference-between-megabytes-and-megabits/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 15:01:49 +0000</pubDate>
		<dc:creator>kire</dc:creator>
				<category><![CDATA[linux administration - tips, notes and projects]]></category>

		<guid isPermaLink="false">http://erikimh.com/?p=391</guid>
		<description><![CDATA[For those of you who are unaware of the difference between a Megabyte (MB) and a Megabit (Mb), here&#8217;s a quick 101: In my line of work, I often hear people confuse the two or even think that they&#8217;re the same. There are 8 bits that go to make up a byte, so 10Mb != [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>For those of you who are unaware of the difference between a Megabyte <strong>(MB)</strong> and a Megabit <strong>(Mb)</strong>, here&#8217;s a quick 101:</p>
<p>In my line of work, I often hear people confuse the two or even think that they&#8217;re the same.  </p>
<p>There are 8 bits that go to make up a byte, so 10Mb != 10MB.</p>
<blockquote><p>   10MB/s actually = 80Mb/s just as 800Mb/s = 100MB/s
</p></blockquote>
<p>If a particular switch or port is transferring 3.2MB per second, you&#8217;re actually moving 25.6Mbit per second.  </p>
<p>Quite a difference, indeed.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://erikimh.com/the-difference-between-megabytes-and-megabits/" target="_blank"><img src="http://erikimh.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://erikimh.com/the-difference-between-megabytes-and-megabits/" target="_blank" title="Share on Facebook">Share on Facebook</a></p><!-- google_ad_section_end --><p>&copy;2010 <a href="http://erikimh.com">e r i k i m h   d o t   c o m</a>. All Rights Reserved.</p>.

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://erikimh.com/the-difference-between-megabytes-and-megabits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error: Failed opening ‘Net/SMTP.php’ for inclusion</title>
		<link>http://erikimh.com/error-failed-opening-%e2%80%98netsmtp-php%e2%80%99-for-inclusion/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://erikimh.com/error-failed-opening-%e2%80%98netsmtp-php%e2%80%99-for-inclusion/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 02:49:58 +0000</pubDate>
		<dc:creator>kire</dc:creator>
				<category><![CDATA[linux administration - tips, notes and projects]]></category>

		<guid isPermaLink="false">http://erikimh.com/?p=352</guid>
		<description><![CDATA[Warning: send(Net/SMTP.php) [function.send]: failed to open stream: No such file or directory in /usr/local/lib/php/Mail/smtp.php on line 206 Warning: send() [function.include]: Failed opening ‘Net/SMTP.php’ for inclusion (include_path=’/usr/local/cpanel/base/horde/lib:.:/usr/lib/php:/usr/local/lib/php’) in /usr/local/lib/php/Mail/smtp.php on line 206 Annoying, yeah? # pear install Net_SMTP voilà! Share on Facebook&#169;2010 e r i k i m h d o t c o m. All [...]


Related posts:<ol><li><a href='http://erikimh.com/cpanel-error-language-cache-is-out-of-date/' rel='bookmark' title='Permanent Link: cPanel error: language cache is out of date'>cPanel error: language cache is out of date</a> <small>During an upcp, or visible on cPanel WHM you may...</small></li>
<li><a href='http://erikimh.com/imapd-error-inputoutput-error/' rel='bookmark' title='Permanent Link: imapd: Error: Input/output error'>imapd: Error: Input/output error</a> <small>So your IMAP mail is failing. Your e-mail client disconnects...</small></li>
<li><a href='http://erikimh.com/sempahore-errors/' rel='bookmark' title='Permanent Link: sempahore errors'>sempahore errors</a> <small>I came across this strange issue from a Tier II...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><blockquote><p>
Warning: send(Net/SMTP.php) [function.send]: failed to open stream: No such file or directory in /usr/local/lib/php/Mail/smtp.php on line 206<br />
Warning: send() [function.include]: Failed opening ‘Net/SMTP.php’ for inclusion (include_path=’/usr/local/cpanel/base/horde/lib:.:/usr/lib/php:/usr/local/lib/php’) in /usr/local/lib/php/Mail/smtp.php on line 206</p></blockquote>
<p>Annoying, yeah?</p>
<blockquote><p># pear install Net_SMTP</p></blockquote>
<p>voilà!</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://erikimh.com/error-failed-opening-%e2%80%98netsmtp-php%e2%80%99-for-inclusion/" target="_blank"><img src="http://erikimh.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://erikimh.com/error-failed-opening-%e2%80%98netsmtp-php%e2%80%99-for-inclusion/" target="_blank" title="Share on Facebook">Share on Facebook</a></p><!-- google_ad_section_end --><p>&copy;2010 <a href="http://erikimh.com">e r i k i m h   d o t   c o m</a>. All Rights Reserved.</p>.

<p>Related posts:<ol><li><a href='http://erikimh.com/cpanel-error-language-cache-is-out-of-date/' rel='bookmark' title='Permanent Link: cPanel error: language cache is out of date'>cPanel error: language cache is out of date</a> <small>During an upcp, or visible on cPanel WHM you may...</small></li>
<li><a href='http://erikimh.com/imapd-error-inputoutput-error/' rel='bookmark' title='Permanent Link: imapd: Error: Input/output error'>imapd: Error: Input/output error</a> <small>So your IMAP mail is failing. Your e-mail client disconnects...</small></li>
<li><a href='http://erikimh.com/sempahore-errors/' rel='bookmark' title='Permanent Link: sempahore errors'>sempahore errors</a> <small>I came across this strange issue from a Tier II...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://erikimh.com/error-failed-opening-%e2%80%98netsmtp-php%e2%80%99-for-inclusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
