<?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>John Bernard Abella [blog] &#187; Linux Help</title>
	<atom:link href="http://www.johnbernardabella.com/category/linux_help/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.johnbernardabella.com</link>
	<description>A System Admin's Notebook, A Progrmmers Journal</description>
	<lastBuildDate>Wed, 16 Jun 2010 13:27:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Nautilus cannot handle &#8220;computer&#8221; location on Ubuntu(Karmic Kaula)</title>
		<link>http://www.johnbernardabella.com/nautilus-cannot-handle-computer-location-on-ubuntu-karmic-kaula/</link>
		<comments>http://www.johnbernardabella.com/nautilus-cannot-handle-computer-location-on-ubuntu-karmic-kaula/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 07:43:32 +0000</pubDate>
		<dc:creator>jba_21</dc:creator>
				<category><![CDATA[Internet Updates]]></category>
		<category><![CDATA[Linux Help]]></category>
		<category><![CDATA[Karmic Kaula]]></category>
		<category><![CDATA[Nautilus]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.johnbernardabella.com/?p=83</guid>
		<description><![CDATA[Problem:
Last week i have experiencing error during opening Computer, Network Folders, Destop and Recycle bin on Ubuntu Karmic Kuala. And flash drive cant do the automount anymore.
The error says :
Nautilus cannot handle "computer" location
I found out that i have upgraded my glib library under /usr/local few days ago.
Solution:
Remove /usr/local
sudo /usr/local /usr/local.old
create /usr/local
sudo mkdir /usr/local
restart your [...]]]></description>
			<content:encoded><![CDATA[<p>Problem:</p>
<p>Last week i have experiencing error during opening Computer, Network Folders, Destop and Recycle bin on Ubuntu Karmic Kuala. And flash drive cant do the automount anymore.</p>
<p>The error says :</p>
<p><code>Nautilus cannot handle "computer" location</code></p>
<p>I found out that i have upgraded my glib library under /usr/local few days ago.</p>
<p>Solution:</p>
<p>Remove /usr/local<br />
<code>sudo /usr/local /usr/local.old</code></p>
<p>create /usr/local<br />
<code>sudo mkdir /usr/local</code></p>
<p>restart your computer.</p>
<p>Try to check you computer folder and its working! Good luck!</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.johnbernardabella.com/nautilus-cannot-handle-computer-location-on-ubuntu-karmic-kaula/&amp;t=Nautilus+cannot+handle+%22computer%22+location+on+Ubuntu%28Karmic+Kaula%29" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Nautilus+cannot+handle+%22computer%22+location+on+Ubuntu%28Karmic+Kaula%29+-+http://b2l.me/ktyc9+(via+@jbabella)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.johnbernardabella.com/nautilus-cannot-handle-computer-location-on-ubuntu-karmic-kaula/&amp;title=Nautilus+cannot+handle+%22computer%22+location+on+Ubuntu%28Karmic+Kaula%29&amp;summary=Problem%3A%0D%0A%0D%0ALast%20week%20i%20have%20experiencing%20error%20during%20opening%20Computer%2C%20Network%20Folders%2C%20Destop%20and%20Recycle%20bin%20on%20Ubuntu%20Karmic%20Kuala.%20And%20flash%20drive%20cant%20do%20the%20automount%20anymore.%0D%0A%0D%0AThe%20error%20says%20%3A%0D%0A%0D%0ANautilus%20cannot%20handle%20%22computer%22%20location%0D%0A%0D%0AI%20found%20out%20that%20i%20have%20upgraded%20my%20glib%20librar&amp;source=John Bernard Abella [blog]" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.johnbernardabella.com/nautilus-cannot-handle-computer-location-on-ubuntu-karmic-kaula/&amp;n=Nautilus+cannot+handle+%22computer%22+location+on+Ubuntu%28Karmic+Kaula%29&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.johnbernardabella.com/nautilus-cannot-handle-computer-location-on-ubuntu-karmic-kaula/&amp;title=Nautilus+cannot+handle+%22computer%22+location+on+Ubuntu%28Karmic+Kaula%29" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.johnbernardabella.com/nautilus-cannot-handle-computer-location-on-ubuntu-karmic-kaula/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.johnbernardabella.com/nautilus-cannot-handle-computer-location-on-ubuntu-karmic-kaula/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.johnbernardabella.com/nautilus-cannot-handle-computer-location-on-ubuntu-karmic-kaula/&amp;title=Nautilus+cannot+handle+%22computer%22+location+on+Ubuntu%28Karmic+Kaula%29" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://www.johnbernardabella.com/nautilus-cannot-handle-computer-location-on-ubuntu-karmic-kaula/&amp;title=Nautilus+cannot+handle+%22computer%22+location+on+Ubuntu%28Karmic+Kaula%29&amp;desc=Problem%3A%0D%0A%0D%0ALast%20week%20i%20have%20experiencing%20error%20during%20opening%20Computer%2C%20Network%20Folders%2C%20Destop%20and%20Recycle%20bin%20on%20Ubuntu%20Karmic%20Kuala.%20And%20flash%20drive%20cant%20do%20the%20automount%20anymore.%0D%0A%0D%0AThe%20error%20says%20%3A%0D%0A%0D%0ANautilus%20cannot%20handle%20%22computer%22%20location%0D%0A%0D%0AI%20found%20out%20that%20i%20have%20upgraded%20my%20glib%20librar" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.johnbernardabella.com/nautilus-cannot-handle-computer-location-on-ubuntu-karmic-kaula/&amp;title=Nautilus+cannot+handle+%22computer%22+location+on+Ubuntu%28Karmic+Kaula%29" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.johnbernardabella.com/nautilus-cannot-handle-computer-location-on-ubuntu-karmic-kaula/&amp;submitHeadline=Nautilus+cannot+handle+%22computer%22+location+on+Ubuntu%28Karmic+Kaula%29&amp;submitSummary=Problem%3A%0D%0A%0D%0ALast%20week%20i%20have%20experiencing%20error%20during%20opening%20Computer%2C%20Network%20Folders%2C%20Destop%20and%20Recycle%20bin%20on%20Ubuntu%20Karmic%20Kuala.%20And%20flash%20drive%20cant%20do%20the%20automount%20anymore.%0D%0A%0D%0AThe%20error%20says%20%3A%0D%0A%0D%0ANautilus%20cannot%20handle%20%22computer%22%20location%0D%0A%0D%0AI%20found%20out%20that%20i%20have%20upgraded%20my%20glib%20librar&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.johnbernardabella.com/nautilus-cannot-handle-computer-location-on-ubuntu-karmic-kaula/&amp;title=Nautilus+cannot+handle+%22computer%22+location+on+Ubuntu%28Karmic+Kaula%29" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.johnbernardabella.com/nautilus-cannot-handle-computer-location-on-ubuntu-karmic-kaula/&amp;t=Nautilus+cannot+handle+%22computer%22+location+on+Ubuntu%28Karmic+Kaula%29" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-hyves">
			<a href="http://www.hyves.nl/profilemanage/add/tips/?name=Nautilus+cannot+handle+%22computer%22+location+on+Ubuntu%28Karmic+Kaula%29&amp;text=Problem%3A%0D%0A%0D%0ALast%20week%20i%20have%20experiencing%20error%20during%20opening%20Computer%2C%20Network%20Folders%2C%20Destop%20and%20Recycle%20bin%20on%20Ubuntu%20Karmic%20Kuala.%20And%20flash%20drive%20cant%20do%20the%20automount%20anymore.%0D%0A%0D%0AThe%20error%20says%20%3A%0D%0A%0D%0ANautilus%20cannot%20handle%20%22computer%22%20location%0D%0A%0D%0AI%20found%20out%20that%20i%20have%20upgraded%20my%20glib%20librar+-+http://www.johnbernardabella.com/nautilus-cannot-handle-computer-location-on-ubuntu-karmic-kaula/&amp;rating=5" rel="nofollow" class="external" title="Share this on Hyves">Share this on Hyves</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/nautilus-cannot-handle-computer-location-on-ubuntu-karmic-kaula/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hamachi killed after upgrading to Ubuntu 9.10</title>
		<link>http://www.johnbernardabella.com/hamachi-killed-after-upgrading-to-ubuntu-9-10/</link>
		<comments>http://www.johnbernardabella.com/hamachi-killed-after-upgrading-to-ubuntu-9-10/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 05:38:01 +0000</pubDate>
		<dc:creator>jba_21</dc:creator>
				<category><![CDATA[Linux Help]]></category>
		<category><![CDATA[hamachi]]></category>
		<category><![CDATA[hamachi killied]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu upgrade]]></category>

		<guid isPermaLink="false">http://www.johnbernardabella.com/?p=70</guid>
		<description><![CDATA[Hamachi killed after upgrading Ubuntu 9.10 (Karmic Koala). This is because hamachi executable is compressed with upx.
Steps in uncompressing Hamachi with upx



1. Install upx-ucl (make sure you have root or sudo privileged)
sudo apt-get install upx-ucl
2. locate hamachi executable (default installation /usr/bin)
cd /usr/bin
3. decompress hamachi
sudo upx -d hamachi
after executing this commands you will see this outputs
Ultimate [...]]]></description>
			<content:encoded><![CDATA[<p>Hamachi killed after upgrading Ubuntu 9.10 (Karmic Koala). This is because hamachi executable is compressed with upx.</p>
<p>Steps in uncompressing Hamachi with upx</p>
<div style="margin: 4px; float: left;"><script type="text/javascript"><!--
google_ad_client = "pub-5031870064508560";
google_ad_slot = "3596751350";
google_ad_width = 180;
google_ad_height = 150;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
<p>1. Install upx-ucl (make sure you have root or sudo privileged)</p>
<pre class="brush: bash">sudo apt-get install upx-ucl</pre>
<p>2. locate hamachi executable (default installation /usr/bin)</p>
<pre class="brush: bash">cd /usr/bin</pre>
<p>3. decompress hamachi</p>
<pre class="brush: bash">sudo upx -d hamachi</pre>
<p>after executing this commands you will see this outputs</p>
<pre class="brush: bash">Ultimate Packer for eXecutables
  Copyright (C) 1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007
UPX 3.01        Markus Oberhumer, Laszlo Molnar &#038; John Reiser   Jul 31st 2007

        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
    830676 < -    331144   39.86%    linux/386    hamachi

Unpacked 1 file.
</pre>
<p>And now you are read to run hamachi... enjoy!</pre>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.johnbernardabella.com/hamachi-killed-after-upgrading-to-ubuntu-9-10/&amp;t=Hamachi+killed+after+upgrading+to+Ubuntu+9.10" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Hamachi+killed+after+upgrading+to+Ubuntu+9.10+-+http://b2l.me/b3fch+(via+@jbabella)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.johnbernardabella.com/hamachi-killed-after-upgrading-to-ubuntu-9-10/&amp;title=Hamachi+killed+after+upgrading+to+Ubuntu+9.10&amp;summary=Hamachi%20killed%20after%20upgrading%20Ubuntu%209.10%20%28Karmic%20Koala%29.%20This%20is%20because%20hamachi%20executable%20is%20compressed%20with%20upx.%0D%0A%0D%0ASteps%20in%20uncompressing%20Hamachi%20with%20upx%0D%0A%0D%0A%5Bad%23ad-2%5D1.%20Install%20upx-ucl%20%28make%20sure%20you%20have%20root%20or%20sudo%20privileged%29%0D%0Asudo%20apt-get%20install%20upx-ucl%0D%0A2.%20locate%20hamachi%20executable%20%28de&amp;source=John Bernard Abella [blog]" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.johnbernardabella.com/hamachi-killed-after-upgrading-to-ubuntu-9-10/&amp;n=Hamachi+killed+after+upgrading+to+Ubuntu+9.10&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.johnbernardabella.com/hamachi-killed-after-upgrading-to-ubuntu-9-10/&amp;title=Hamachi+killed+after+upgrading+to+Ubuntu+9.10" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.johnbernardabella.com/hamachi-killed-after-upgrading-to-ubuntu-9-10/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.johnbernardabella.com/hamachi-killed-after-upgrading-to-ubuntu-9-10/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.johnbernardabella.com/hamachi-killed-after-upgrading-to-ubuntu-9-10/&amp;title=Hamachi+killed+after+upgrading+to+Ubuntu+9.10" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://www.johnbernardabella.com/hamachi-killed-after-upgrading-to-ubuntu-9-10/&amp;title=Hamachi+killed+after+upgrading+to+Ubuntu+9.10&amp;desc=Hamachi%20killed%20after%20upgrading%20Ubuntu%209.10%20%28Karmic%20Koala%29.%20This%20is%20because%20hamachi%20executable%20is%20compressed%20with%20upx.%0D%0A%0D%0ASteps%20in%20uncompressing%20Hamachi%20with%20upx%0D%0A%0D%0A%5Bad%23ad-2%5D1.%20Install%20upx-ucl%20%28make%20sure%20you%20have%20root%20or%20sudo%20privileged%29%0D%0Asudo%20apt-get%20install%20upx-ucl%0D%0A2.%20locate%20hamachi%20executable%20%28de" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.johnbernardabella.com/hamachi-killed-after-upgrading-to-ubuntu-9-10/&amp;title=Hamachi+killed+after+upgrading+to+Ubuntu+9.10" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.johnbernardabella.com/hamachi-killed-after-upgrading-to-ubuntu-9-10/&amp;submitHeadline=Hamachi+killed+after+upgrading+to+Ubuntu+9.10&amp;submitSummary=Hamachi%20killed%20after%20upgrading%20Ubuntu%209.10%20%28Karmic%20Koala%29.%20This%20is%20because%20hamachi%20executable%20is%20compressed%20with%20upx.%0D%0A%0D%0ASteps%20in%20uncompressing%20Hamachi%20with%20upx%0D%0A%0D%0A%5Bad%23ad-2%5D1.%20Install%20upx-ucl%20%28make%20sure%20you%20have%20root%20or%20sudo%20privileged%29%0D%0Asudo%20apt-get%20install%20upx-ucl%0D%0A2.%20locate%20hamachi%20executable%20%28de&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.johnbernardabella.com/hamachi-killed-after-upgrading-to-ubuntu-9-10/&amp;title=Hamachi+killed+after+upgrading+to+Ubuntu+9.10" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.johnbernardabella.com/hamachi-killed-after-upgrading-to-ubuntu-9-10/&amp;t=Hamachi+killed+after+upgrading+to+Ubuntu+9.10" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-hyves">
			<a href="http://www.hyves.nl/profilemanage/add/tips/?name=Hamachi+killed+after+upgrading+to+Ubuntu+9.10&amp;text=Hamachi%20killed%20after%20upgrading%20Ubuntu%209.10%20%28Karmic%20Koala%29.%20This%20is%20because%20hamachi%20executable%20is%20compressed%20with%20upx.%0D%0A%0D%0ASteps%20in%20uncompressing%20Hamachi%20with%20upx%0D%0A%0D%0A%5Bad%23ad-2%5D1.%20Install%20upx-ucl%20%28make%20sure%20you%20have%20root%20or%20sudo%20privileged%29%0D%0Asudo%20apt-get%20install%20upx-ucl%0D%0A2.%20locate%20hamachi%20executable%20%28de+-+http://www.johnbernardabella.com/hamachi-killed-after-upgrading-to-ubuntu-9-10/&amp;rating=5" rel="nofollow" class="external" title="Share this on Hyves">Share this on Hyves</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/hamachi-killed-after-upgrading-to-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>date function for bash commands</title>
		<link>http://www.johnbernardabella.com/date-function-for-bash-commands/</link>
		<comments>http://www.johnbernardabella.com/date-function-for-bash-commands/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 06:17:33 +0000</pubDate>
		<dc:creator>jba_21</dc:creator>
				<category><![CDATA[Linux Help]]></category>
		<category><![CDATA[bash command]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[date function]]></category>

		<guid isPermaLink="false">http://www.johnbernardabella.com/?p=49</guid>
		<description><![CDATA[How to get date on bash/sh command?


#!/bin/bash
# Datestamp e.g 2002-09-21_24h00m
DATE=`date +%Y-%m-%d_%Hh%Mm`

# Day of the week e.g. Monday
DATE=`date +%A`

# Day number of the week 1 to 7 where 1 represents Monday
DATE=`date +%u`

# Date of the Month e.g. 27
DATE=`date +%d`

# Month e.g January
DATE=`date +%B`

# Week Number e.g 37
DATE=`date +%V`






		
			Share this on Facebook
		
		
			Tweet This!
		
		
			Share this on Linkedin
		
		
			Blog this [...]]]></description>
			<content:encoded><![CDATA[<p>How to get date on bash/sh command?<br />
</p>
<pre class="brush: bash">
#!/bin/bash
# Datestamp e.g 2002-09-21_24h00m
DATE=`date +%Y-%m-%d_%Hh%Mm`

# Day of the week e.g. Monday
DATE=`date +%A`

# Day number of the week 1 to 7 where 1 represents Monday
DATE=`date +%u`

# Date of the Month e.g. 27
DATE=`date +%d`

# Month e.g January
DATE=`date +%B`

# Week Number e.g 37
DATE=`date +%V`
</pre>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.johnbernardabella.com/date-function-for-bash-commands/&amp;t=date+function+for+bash+commands" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=date+function+for+bash+commands+-+http://b2l.me/b3fcj+(via+@jbabella)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.johnbernardabella.com/date-function-for-bash-commands/&amp;title=date+function+for+bash+commands&amp;summary=How%20to%20get%20date%20on%20bash%2Fsh%20command%3F%0D%0A%5Bad%5D%0D%0A%0D%0A%23%21%2Fbin%2Fbash%0D%0A%23%20Datestamp%20e.g%202002-09-21_24h00m%0D%0ADATE%3D%60date%20%2B%25Y-%25m-%25d_%25Hh%25Mm%60%0D%0A%0D%0A%23%20Day%20of%20the%20week%20e.g.%20Monday%0D%0ADATE%3D%60date%20%2B%25A%60%0D%0A%0D%0A%23%20Day%20number%20of%20the%20week%201%20to%207%20where%201%20represents%20Monday%0D%0ADATE%3D%60date%20%2B%25u%60%0D%0A%0D%0A%23%20Date%20of%20the%20Month%20e.g.%2027%0D%0ADATE%3D%60date%20%2B%25d%60%0D%0A%0D&amp;source=John Bernard Abella [blog]" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.johnbernardabella.com/date-function-for-bash-commands/&amp;n=date+function+for+bash+commands&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.johnbernardabella.com/date-function-for-bash-commands/&amp;title=date+function+for+bash+commands" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.johnbernardabella.com/date-function-for-bash-commands/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.johnbernardabella.com/date-function-for-bash-commands/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.johnbernardabella.com/date-function-for-bash-commands/&amp;title=date+function+for+bash+commands" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://www.johnbernardabella.com/date-function-for-bash-commands/&amp;title=date+function+for+bash+commands&amp;desc=How%20to%20get%20date%20on%20bash%2Fsh%20command%3F%0D%0A%5Bad%5D%0D%0A%0D%0A%23%21%2Fbin%2Fbash%0D%0A%23%20Datestamp%20e.g%202002-09-21_24h00m%0D%0ADATE%3D%60date%20%2B%25Y-%25m-%25d_%25Hh%25Mm%60%0D%0A%0D%0A%23%20Day%20of%20the%20week%20e.g.%20Monday%0D%0ADATE%3D%60date%20%2B%25A%60%0D%0A%0D%0A%23%20Day%20number%20of%20the%20week%201%20to%207%20where%201%20represents%20Monday%0D%0ADATE%3D%60date%20%2B%25u%60%0D%0A%0D%0A%23%20Date%20of%20the%20Month%20e.g.%2027%0D%0ADATE%3D%60date%20%2B%25d%60%0D%0A%0D" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.johnbernardabella.com/date-function-for-bash-commands/&amp;title=date+function+for+bash+commands" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.johnbernardabella.com/date-function-for-bash-commands/&amp;submitHeadline=date+function+for+bash+commands&amp;submitSummary=How%20to%20get%20date%20on%20bash%2Fsh%20command%3F%0D%0A%5Bad%5D%0D%0A%0D%0A%23%21%2Fbin%2Fbash%0D%0A%23%20Datestamp%20e.g%202002-09-21_24h00m%0D%0ADATE%3D%60date%20%2B%25Y-%25m-%25d_%25Hh%25Mm%60%0D%0A%0D%0A%23%20Day%20of%20the%20week%20e.g.%20Monday%0D%0ADATE%3D%60date%20%2B%25A%60%0D%0A%0D%0A%23%20Day%20number%20of%20the%20week%201%20to%207%20where%201%20represents%20Monday%0D%0ADATE%3D%60date%20%2B%25u%60%0D%0A%0D%0A%23%20Date%20of%20the%20Month%20e.g.%2027%0D%0ADATE%3D%60date%20%2B%25d%60%0D%0A%0D&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.johnbernardabella.com/date-function-for-bash-commands/&amp;title=date+function+for+bash+commands" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.johnbernardabella.com/date-function-for-bash-commands/&amp;t=date+function+for+bash+commands" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-hyves">
			<a href="http://www.hyves.nl/profilemanage/add/tips/?name=date+function+for+bash+commands&amp;text=How%20to%20get%20date%20on%20bash%2Fsh%20command%3F%0D%0A%5Bad%5D%0D%0A%0D%0A%23%21%2Fbin%2Fbash%0D%0A%23%20Datestamp%20e.g%202002-09-21_24h00m%0D%0ADATE%3D%60date%20%2B%25Y-%25m-%25d_%25Hh%25Mm%60%0D%0A%0D%0A%23%20Day%20of%20the%20week%20e.g.%20Monday%0D%0ADATE%3D%60date%20%2B%25A%60%0D%0A%0D%0A%23%20Day%20number%20of%20the%20week%201%20to%207%20where%201%20represents%20Monday%0D%0ADATE%3D%60date%20%2B%25u%60%0D%0A%0D%0A%23%20Date%20of%20the%20Month%20e.g.%2027%0D%0ADATE%3D%60date%20%2B%25d%60%0D%0A%0D+-+http://www.johnbernardabella.com/date-function-for-bash-commands/&amp;rating=5" rel="nofollow" class="external" title="Share this on Hyves">Share this on Hyves</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/date-function-for-bash-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Account Default Page For CPANEL/WHM</title>
		<link>http://www.johnbernardabella.com/account-default-page-for-cpanelwhm/</link>
		<comments>http://www.johnbernardabella.com/account-default-page-for-cpanelwhm/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 15:41:52 +0000</pubDate>
		<dc:creator>jba_21</dc:creator>
				<category><![CDATA[Linux Help]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[cPanel Account Default page]]></category>
		<category><![CDATA[WHM]]></category>

		<guid isPermaLink="false">http://www.johnbernardabella.com/?p=47</guid>
		<description><![CDATA[How to set-up default page for cpanel account?
1. Create a default page that you want to be the default page.
2. Copy your created page to /root/cpanel3-skel/public_html/
That&#8217;s all! Every time you create an account on WHM your default page will be create on accounts public_html folder.
For reseller accounts that don&#8217;t have root privileged, you should have [...]]]></description>
			<content:encoded><![CDATA[<p>How to set-up default page for cpanel account?</p>
<p>1. Create a default page that you want to be the default page.</p>
<p>2. Copy your created page to /root/cpanel3-skel/public_html/</p>
<p>That&#8217;s all! Every time you create an account on WHM your default page will be create on accounts public_html folder.</p>
<p>For reseller accounts that don&#8217;t have root privileged, you should have /cpanel3-skel/ directory on your main account you can add public_html folder their.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.johnbernardabella.com/account-default-page-for-cpanelwhm/&amp;t=Account+Default+Page+For+CPANEL%2FWHM" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Account+Default+Page+For+CPANEL%2FWHM+-+http://b2l.me/b3fck+(via+@jbabella)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.johnbernardabella.com/account-default-page-for-cpanelwhm/&amp;title=Account+Default+Page+For+CPANEL%2FWHM&amp;summary=How%20to%20set-up%20default%20page%20for%20cpanel%20account%3F%0D%0A%0D%0A1.%20Create%20a%20default%20page%20that%20you%20want%20to%20be%20the%20default%20page.%0D%0A%0D%0A2.%20Copy%20your%20created%20page%20to%20%2Froot%2Fcpanel3-skel%2Fpublic_html%2F%0D%0A%0D%0AThat%27s%20all%21%20Every%20time%20you%20create%20an%20account%20on%20WHM%20your%20default%20page%20will%20be%20create%20on%20accounts%20public_html%20folder.%0D%0A%0D%0A&amp;source=John Bernard Abella [blog]" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.johnbernardabella.com/account-default-page-for-cpanelwhm/&amp;n=Account+Default+Page+For+CPANEL%2FWHM&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.johnbernardabella.com/account-default-page-for-cpanelwhm/&amp;title=Account+Default+Page+For+CPANEL%2FWHM" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.johnbernardabella.com/account-default-page-for-cpanelwhm/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.johnbernardabella.com/account-default-page-for-cpanelwhm/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.johnbernardabella.com/account-default-page-for-cpanelwhm/&amp;title=Account+Default+Page+For+CPANEL%2FWHM" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://www.johnbernardabella.com/account-default-page-for-cpanelwhm/&amp;title=Account+Default+Page+For+CPANEL%2FWHM&amp;desc=How%20to%20set-up%20default%20page%20for%20cpanel%20account%3F%0D%0A%0D%0A1.%20Create%20a%20default%20page%20that%20you%20want%20to%20be%20the%20default%20page.%0D%0A%0D%0A2.%20Copy%20your%20created%20page%20to%20%2Froot%2Fcpanel3-skel%2Fpublic_html%2F%0D%0A%0D%0AThat%27s%20all%21%20Every%20time%20you%20create%20an%20account%20on%20WHM%20your%20default%20page%20will%20be%20create%20on%20accounts%20public_html%20folder.%0D%0A%0D%0A" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.johnbernardabella.com/account-default-page-for-cpanelwhm/&amp;title=Account+Default+Page+For+CPANEL%2FWHM" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.johnbernardabella.com/account-default-page-for-cpanelwhm/&amp;submitHeadline=Account+Default+Page+For+CPANEL%2FWHM&amp;submitSummary=How%20to%20set-up%20default%20page%20for%20cpanel%20account%3F%0D%0A%0D%0A1.%20Create%20a%20default%20page%20that%20you%20want%20to%20be%20the%20default%20page.%0D%0A%0D%0A2.%20Copy%20your%20created%20page%20to%20%2Froot%2Fcpanel3-skel%2Fpublic_html%2F%0D%0A%0D%0AThat%27s%20all%21%20Every%20time%20you%20create%20an%20account%20on%20WHM%20your%20default%20page%20will%20be%20create%20on%20accounts%20public_html%20folder.%0D%0A%0D%0A&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.johnbernardabella.com/account-default-page-for-cpanelwhm/&amp;title=Account+Default+Page+For+CPANEL%2FWHM" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.johnbernardabella.com/account-default-page-for-cpanelwhm/&amp;t=Account+Default+Page+For+CPANEL%2FWHM" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-hyves">
			<a href="http://www.hyves.nl/profilemanage/add/tips/?name=Account+Default+Page+For+CPANEL%2FWHM&amp;text=How%20to%20set-up%20default%20page%20for%20cpanel%20account%3F%0D%0A%0D%0A1.%20Create%20a%20default%20page%20that%20you%20want%20to%20be%20the%20default%20page.%0D%0A%0D%0A2.%20Copy%20your%20created%20page%20to%20%2Froot%2Fcpanel3-skel%2Fpublic_html%2F%0D%0A%0D%0AThat%27s%20all%21%20Every%20time%20you%20create%20an%20account%20on%20WHM%20your%20default%20page%20will%20be%20create%20on%20accounts%20public_html%20folder.%0D%0A%0D%0A+-+http://www.johnbernardabella.com/account-default-page-for-cpanelwhm/&amp;rating=5" rel="nofollow" class="external" title="Share this on Hyves">Share this on Hyves</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/account-default-page-for-cpanelwhm/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Recovering from a forgotten root password</title>
		<link>http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/</link>
		<comments>http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 17:37:57 +0000</pubDate>
		<dc:creator>jba_21</dc:creator>
				<category><![CDATA[Linux Help]]></category>
		<category><![CDATA[change password]]></category>
		<category><![CDATA[change root password]]></category>
		<category><![CDATA[linux password]]></category>
		<category><![CDATA[recover root password]]></category>
		<category><![CDATA[reset password]]></category>
		<category><![CDATA[reset root password]]></category>
		<category><![CDATA[root password]]></category>

		<guid isPermaLink="false">http://www.johnbernardabella.com/2008/02/07/rocovering-from-a-forgotten-root-password/</guid>
		<description><![CDATA[To perform a system administrator task, you have to know the root password.  What happens if you forgot your root password?  Not to worry. Just reboot your PC and you can reset the root password by following these steps:

Reboot the PC(select reboot as you log out the of the GUI) or power up [...]]]></description>
			<content:encoded><![CDATA[<p>To perform a system administrator task, you have to know the root password.  What happens if you forgot your root password?  Not to worry. Just reboot your PC and you can reset the root password by following these steps:</p>
<ol>
<li>Reboot the PC(select reboot as you log out the of the GUI) or power up a usual.<br />
<blockquote><p>Soon you see the graphical boot loader on screen that shows the name of the operating systems you can boot.  If your system runs with LILO boot loader, press <code>Ctrl+X</code> and at the boot prompt type <code>linux single</code> and press enter. Then proceed to step 4.</p></blockquote>
<p>
</li>
<li>If you have more than one operating system installed, use the arrow key to select linux as operating system, then press the A key.</li>
<blockquote><p>GRUB prompts you for commands to add to its defualt boot command.</p></blockquote>
<li>Press the spacebar, type the following, and press enter:</li>
<blockquote><p><code>single</code></p>
<p>Linux starts up as usual but runs in a single-user mode that do not require you to log in.  After linux starts, you will see the following command line prompts that ends with a hash mark (#), similar to the following :</p>
<p><code>sh-2.05b#</code></p></blockquote>
<li>Type the <code>paswrd</code> command to change the <code>root</code> password as follows:</li>
<blockquote><p><code>sh-2.05b# passwd<br />
Changing password for root user.<br />
New password:</code></p></blockquote>
<li>Type the new <code>root</code> password that you want to use (it doesn&#8217;t appear on screen) and then press enter.</li>
<blockquote><p>Linux asks for the password again, like this:</p>
<p><code>Retype new password:</code></p></blockquote>
<li>Type the new password again, and press enter.</li>
<blockquote><p>If you enter the same password both times, the <code>passwrd </code>command changes the <code>root</code> password.</p></blockquote>
<li>Now type reboot to reboot the PC.</li>
<blockquote><p>After linux starts, it displays the familiar login screen.  Now you can log in as <code>root</code> with the new password</p></blockquote>
</ol>
<p></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/&amp;t=Recovering+from+a+forgotten+root+password" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Recovering+from+a+forgotten+root+password+-+http://b2l.me/ccvht+(via+@jbabella)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/&amp;title=Recovering+from+a+forgotten+root+password&amp;summary=To%20perform%20a%20system%20administrator%20task%2C%20you%20have%20to%20know%20the%20root%20password.%20%20What%20happens%20if%20you%20forgot%20your%20root%20password%3F%20%20Not%20to%20worry.%20Just%20reboot%20your%20PC%20and%20you%20can%20reset%20the%20root%20password%20by%20following%20these%20steps%3A%0D%0A%0D%0A%09Reboot%20the%20PC%28select%20reboot%20as%20you%20log%20out%20the%20of%20the%20GUI%29%20or%20power%20up%20a%20us&amp;source=John Bernard Abella [blog]" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/&amp;n=Recovering+from+a+forgotten+root+password&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/&amp;title=Recovering+from+a+forgotten+root+password" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/&amp;title=Recovering+from+a+forgotten+root+password" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/&amp;title=Recovering+from+a+forgotten+root+password&amp;desc=To%20perform%20a%20system%20administrator%20task%2C%20you%20have%20to%20know%20the%20root%20password.%20%20What%20happens%20if%20you%20forgot%20your%20root%20password%3F%20%20Not%20to%20worry.%20Just%20reboot%20your%20PC%20and%20you%20can%20reset%20the%20root%20password%20by%20following%20these%20steps%3A%0D%0A%0D%0A%09Reboot%20the%20PC%28select%20reboot%20as%20you%20log%20out%20the%20of%20the%20GUI%29%20or%20power%20up%20a%20us" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/&amp;title=Recovering+from+a+forgotten+root+password" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/&amp;submitHeadline=Recovering+from+a+forgotten+root+password&amp;submitSummary=To%20perform%20a%20system%20administrator%20task%2C%20you%20have%20to%20know%20the%20root%20password.%20%20What%20happens%20if%20you%20forgot%20your%20root%20password%3F%20%20Not%20to%20worry.%20Just%20reboot%20your%20PC%20and%20you%20can%20reset%20the%20root%20password%20by%20following%20these%20steps%3A%0D%0A%0D%0A%09Reboot%20the%20PC%28select%20reboot%20as%20you%20log%20out%20the%20of%20the%20GUI%29%20or%20power%20up%20a%20us&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/&amp;title=Recovering+from+a+forgotten+root+password" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/&amp;t=Recovering+from+a+forgotten+root+password" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-hyves">
			<a href="http://www.hyves.nl/profilemanage/add/tips/?name=Recovering+from+a+forgotten+root+password&amp;text=To%20perform%20a%20system%20administrator%20task%2C%20you%20have%20to%20know%20the%20root%20password.%20%20What%20happens%20if%20you%20forgot%20your%20root%20password%3F%20%20Not%20to%20worry.%20Just%20reboot%20your%20PC%20and%20you%20can%20reset%20the%20root%20password%20by%20following%20these%20steps%3A%0D%0A%0D%0A%09Reboot%20the%20PC%28select%20reboot%20as%20you%20log%20out%20the%20of%20the%20GUI%29%20or%20power%20up%20a%20us+-+http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/&amp;rating=5" rel="nofollow" class="external" title="Share this on Hyves">Share this on Hyves</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/rocovering-from-a-forgotten-root-password/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Resetting Mysql root Password</title>
		<link>http://www.johnbernardabella.com/resetting-mysql-root-password/</link>
		<comments>http://www.johnbernardabella.com/resetting-mysql-root-password/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 12:37:59 +0000</pubDate>
		<dc:creator>jba_21</dc:creator>
				<category><![CDATA[Linux Help]]></category>
		<category><![CDATA[PHP Programming]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql root password]]></category>
		<category><![CDATA[mysqld password]]></category>
		<category><![CDATA[recover mysql password]]></category>
		<category><![CDATA[recover password]]></category>
		<category><![CDATA[reset password]]></category>
		<category><![CDATA[root password]]></category>

		<guid isPermaLink="false">http://www.johnbernardabella.com/2008/02/06/resetting-mysql-root-password/</guid>
		<description><![CDATA[&#8216;Like locking your keys in the car, to forget your password after
you&#8217;ve spent an hour installing and tweaking a new MySQL server can be
an embarassment to say the least.&#8217;

Fortunately, if you have root access to that computer, all in NOT lost.
Here are the steps when you found yourself in this situation.
1. Kill the server process.
% [...]]]></description>
			<content:encoded><![CDATA[<p>&#8216;Like locking your keys in the car, to forget your password after<br />
you&#8217;ve spent an hour installing and tweaking a new MySQL server can be<br />
an embarassment to say the least.&#8217;<br />
<br />
Fortunately, if you have root access to that computer, all in NOT lost.</p>
<p>Here are the steps when you found yourself in this situation.</p>
<p>1. Kill the server process.<br />
<code>% kill pid</code><br />
(where pid is the process id. Do not use kill -9 unless absolutely<br />
necessary, as this may damage your table files)</p>
<p>2. Run safe-mysqld with the &#8211;skip-grant-tables command line option.<br />
(This instructs the MySQL server to allow unrestricted access to<br />
anyone) NOTE: restrict all remote access before issuing this command<br />
<code>% safe-mysqld --skip-grant-table</code></p>
<p>3. Change root password<br />
<code>mysql &gt; use mysql;<br />
mysql &gt; update user set password = password('newpassword') where user<br />
= 'root';</code><br />
<br />
4. Disconnect and instruct the mysql server to reload the grants<br />
tables to begin requiring passwords.<br />
<code>% mysqladmin flush-privileges</code></p>
<p>&#8220;That does it &#8212; and nobody ever has to know what you did. As for<br />
locking your keys in your car, you&#8217;re on your own there.&#8221;</p>
<p>Must have for php-mysql beginners developers.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;t=Resetting+Mysql+root+Password" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Resetting+Mysql+root+Password+-+http://b2l.me/ccvhu+(via+@jbabella)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;title=Resetting+Mysql+root+Password&amp;summary=%27Like%20locking%20your%20keys%20in%20the%20car%2C%20to%20forget%20your%20password%20after%0D%0Ayou%27ve%20spent%20an%20hour%20installing%20and%20tweaking%20a%20new%20MySQL%20server%20can%20be%0D%0Aan%20embarassment%20to%20say%20the%20least.%27%0D%0A%5Bad%23squere-ads%5D%0D%0AFortunately%2C%20if%20you%20have%20root%20access%20to%20that%20computer%2C%20all%20in%20NOT%20lost.%0D%0A%0D%0AHere%20are%20the%20steps%20when%20you%20found&amp;source=John Bernard Abella [blog]" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;n=Resetting+Mysql+root+Password&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;title=Resetting+Mysql+root+Password" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.johnbernardabella.com/resetting-mysql-root-password/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.johnbernardabella.com/resetting-mysql-root-password/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;title=Resetting+Mysql+root+Password" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;title=Resetting+Mysql+root+Password&amp;desc=%27Like%20locking%20your%20keys%20in%20the%20car%2C%20to%20forget%20your%20password%20after%0D%0Ayou%27ve%20spent%20an%20hour%20installing%20and%20tweaking%20a%20new%20MySQL%20server%20can%20be%0D%0Aan%20embarassment%20to%20say%20the%20least.%27%0D%0A%5Bad%23squere-ads%5D%0D%0AFortunately%2C%20if%20you%20have%20root%20access%20to%20that%20computer%2C%20all%20in%20NOT%20lost.%0D%0A%0D%0AHere%20are%20the%20steps%20when%20you%20found" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;title=Resetting+Mysql+root+Password" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;submitHeadline=Resetting+Mysql+root+Password&amp;submitSummary=%27Like%20locking%20your%20keys%20in%20the%20car%2C%20to%20forget%20your%20password%20after%0D%0Ayou%27ve%20spent%20an%20hour%20installing%20and%20tweaking%20a%20new%20MySQL%20server%20can%20be%0D%0Aan%20embarassment%20to%20say%20the%20least.%27%0D%0A%5Bad%23squere-ads%5D%0D%0AFortunately%2C%20if%20you%20have%20root%20access%20to%20that%20computer%2C%20all%20in%20NOT%20lost.%0D%0A%0D%0AHere%20are%20the%20steps%20when%20you%20found&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;title=Resetting+Mysql+root+Password" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;t=Resetting+Mysql+root+Password" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-hyves">
			<a href="http://www.hyves.nl/profilemanage/add/tips/?name=Resetting+Mysql+root+Password&amp;text=%27Like%20locking%20your%20keys%20in%20the%20car%2C%20to%20forget%20your%20password%20after%0D%0Ayou%27ve%20spent%20an%20hour%20installing%20and%20tweaking%20a%20new%20MySQL%20server%20can%20be%0D%0Aan%20embarassment%20to%20say%20the%20least.%27%0D%0A%5Bad%23squere-ads%5D%0D%0AFortunately%2C%20if%20you%20have%20root%20access%20to%20that%20computer%2C%20all%20in%20NOT%20lost.%0D%0A%0D%0AHere%20are%20the%20steps%20when%20you%20found+-+http://www.johnbernardabella.com/resetting-mysql-root-password/&amp;rating=5" rel="nofollow" class="external" title="Share this on Hyves">Share this on Hyves</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/resetting-mysql-root-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing RoundCube in cPanel</title>
		<link>http://www.johnbernardabella.com/installing-roundcube-in-cpanel/</link>
		<comments>http://www.johnbernardabella.com/installing-roundcube-in-cpanel/#comments</comments>
		<pubDate>Sun, 03 Feb 2008 09:55:22 +0000</pubDate>
		<dc:creator>jba_21</dc:creator>
				<category><![CDATA[Linux Help]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[email interface]]></category>
		<category><![CDATA[Installing RoundCount in cPanel]]></category>
		<category><![CDATA[RoundCube]]></category>

		<guid isPermaLink="false">http://www.johnbernardabella.com/2008/02/03/installing-roundcube-in-cpanel/</guid>
		<description><![CDATA[First make sure you know your mysql root password, you have to replace DATABASEPASSWORD to your mysql root password.
If you have already used RoundCube installation please make sure you remove any traces of it with,

cd /usr/local/cpanel/base
rm -rf roundcube*
mysql -p -e 'drop database roundcube';
chattr -i /usr/local/cpanel/base/frontend/x/webmaillogin.html
chattr -i /usr/local/cpanel/base/webmaillogin.cgi
/scripts/upcp


You will have to specify your root password when [...]]]></description>
			<content:encoded><![CDATA[<p>First make sure you know your mysql root password, you have to replace DATABASEPASSWORD to your mysql root password.</p>
<p>If you have already used RoundCube installation please make sure you remove any traces of it with,</p>
<p><code><br />
cd /usr/local/cpanel/base<br />
rm -rf roundcube*<br />
mysql -p -e 'drop database roundcube';<br />
chattr -i /usr/local/cpanel/base/frontend/x/webmaillogin.html<br />
chattr -i /usr/local/cpanel/base/webmaillogin.cgi<br />
/scripts/upcp<br />
</code></p>
<p></p>
<p>You will have to specify your root password when prompted.</p>
<p>Now lets download roundcube first and chmod the directorys</p>
<p><code><br />
cd /usr/local/cpanel/base<br />
wget -O roundcube.tar.gz http://heanet.dl.sourceforge.net/sourceforge/roundcubemail/<br />
roundcubemail-0.1-rc1.tar.gz<br />
tar -zxvf roundcube.tar.gz<br />
rm -rf roundcube.tar.gz<br />
mv -f roundcubemail-0.1-rc1 roundcube<br />
cd roundcube<br />
chmod -R 777 temp<br />
chmod -R 777 logs<br />
</code></p>
<p>Create the database and install the intial sql file. The following commands will do this for you.</p>
<p><code><br />
mysql -e "CREATE DATABASE roundcube;" -pDATABASEPASSWORD<br />
mysql -e "use roundcube; source SQL/mysql.initial.sql;" -pDATABASEPASSWORD<br />
</code></p>
<p>Now lets sort out the configuration</p>
<p><code><br />
cd config<br />
mv db.inc.php.dist db.inc.php<br />
mv main.inc.php.dist main.inc.php<br />
</code></p>
<p>Now open db.inc.php</p>
<p>nano db.inc.php</p>
<p>Find</p>
<p><code><br />
$rcmail_config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail';<br />
</code></p>
<p>Replace with</p>
<p><code><br />
$rcmail_config['db_dsnw'] = 'mysql://root:DATABASEPASSWORD@localhost/roundcube';<br />
</code></p>
<p>Now Open main.inc.php</p>
<p>nano main.inc.php</p>
<p>Find</p>
<p><code><br />
$rcmail_config['default_host'] = '';<br />
</code></p>
<p>Replace with</p>
<p><code><br />
$rcmail_config['default_host'] = 'localhost';<br />
</code></p>
<p>Now we have to configure cPanel to show roundcube in the theme. Please note this is for the X theme(default) only!! If you use another theme please skip the next part and see below.</p>
<p><code><br />
cd /usr/local/cpanel/base/roundcube/skins/default/images/<br />
cp --reply=yes roundcube_logo.png /usr/local/cpanel/base/frontend/x/images/roundcube_logo.png<br />
cp --reply=yes roundcube_logo.png /usr/local/cpanel/base/webmail/x/images/roundcube_logo.png<br />
cd /usr/local/cpanel/base<br />
wget http://www.hostgeekz.com/files/hostgeekz/HGpatch-roundcube-0.1-rc1<br />
patch -p0 &lt; HGpatch-roundcube-0.1-rc1<br />
</code></p>
<p>**NOTE** If you receive a message stating</p>
<p>Reversed (or previously applied) patch detected! Assume -R?</p>
<p>please press N for No as this is because you previously installed roundcube</p>
<p>This will auto do all the necessary changes to roundcube and the X theme.</p>
<p>Once the patch is executed you may now access roundcube via http://yourip/webmail</p>
<p>&#8212;&#8211;</p>
<p>If you do not use the X theme please do the following</p>
<p><code><br />
cd /usr/local/cpanel/base<br />
wget http://www.hostgeekz.com/files/hostgeekz/HGpatch-roundcube-NON-X-0.1-rc1<br />
patch -p0 &lt; HGpatch-roundcube-NON-X-0.1-rc1<br />
</code></p>
<p>Then open your webmaillogin.html, please replace YOURTHEME with the name of your theme.</p>
<p><code><br />
nano /usr/local/cpanel/base/frontend/YOURTHEME/webmaillogin.html<br />
</code></p>
<p>and find</p>
<p><code>  </code></p>
<p>Add Below</p>
<p><code></code></p>
<p><a href="/roundcube/index.php"><img src="images/roundcube_logo.png" border="0" /></a><br />
<a href="/roundcube/index.php">RoundCube</a>&#8212;&#8212;</p>
<p>***UPDATE***<br />
Remember to chattr +i the files or add the patch to your /scripts/upcp.</p>
<p><code><br />
chattr +i /usr/local/cpanel/base/frontend/x/webmaillogin.html<br />
chattr +i /usr/local/cpanel/base/webmaillogin.cgi<br />
</code></p>
<p>If you are using cPanel 11 ensure to run the following fix.</p>
<p><code><br />
wget http://www.hostgeekz.com/files/hostgeekz/cpanel-11-fix.sh<br />
chmod 700 cpanel-11-fix.sh<br />
./cpanel-11-fix.sh<br />
rm -f cpanel-11-fix.sh<br />
</code></p>
<p>That&#8217;s it! You may now access roundcube via http://yourip/webmail</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.johnbernardabella.com/installing-roundcube-in-cpanel/&amp;t=Installing+RoundCube+in+cPanel" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Installing+RoundCube+in+cPanel+-+http://b2l.me/ccvhv+(via+@jbabella)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.johnbernardabella.com/installing-roundcube-in-cpanel/&amp;title=Installing+RoundCube+in+cPanel&amp;summary=First%20make%20sure%20you%20know%20your%20mysql%20root%20password%2C%20you%20have%20to%20replace%20DATABASEPASSWORD%20to%20your%20mysql%20root%20password.%0D%0A%0D%0AIf%20you%20have%20already%20used%20RoundCube%20installation%20please%20make%20sure%20you%20remove%20any%20traces%20of%20it%20with%2C%0D%0A%0D%0A%0D%0Acd%20%2Fusr%2Flocal%2Fcpanel%2Fbase%0D%0Arm%20-rf%20roundcube%2A%0D%0Amysql%20-p%20-e%20%27drop%20database%20rou&amp;source=John Bernard Abella [blog]" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.johnbernardabella.com/installing-roundcube-in-cpanel/&amp;n=Installing+RoundCube+in+cPanel&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.johnbernardabella.com/installing-roundcube-in-cpanel/&amp;title=Installing+RoundCube+in+cPanel" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.johnbernardabella.com/installing-roundcube-in-cpanel/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.johnbernardabella.com/installing-roundcube-in-cpanel/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.johnbernardabella.com/installing-roundcube-in-cpanel/&amp;title=Installing+RoundCube+in+cPanel" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://www.johnbernardabella.com/installing-roundcube-in-cpanel/&amp;title=Installing+RoundCube+in+cPanel&amp;desc=First%20make%20sure%20you%20know%20your%20mysql%20root%20password%2C%20you%20have%20to%20replace%20DATABASEPASSWORD%20to%20your%20mysql%20root%20password.%0D%0A%0D%0AIf%20you%20have%20already%20used%20RoundCube%20installation%20please%20make%20sure%20you%20remove%20any%20traces%20of%20it%20with%2C%0D%0A%0D%0A%0D%0Acd%20%2Fusr%2Flocal%2Fcpanel%2Fbase%0D%0Arm%20-rf%20roundcube%2A%0D%0Amysql%20-p%20-e%20%27drop%20database%20rou" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.johnbernardabella.com/installing-roundcube-in-cpanel/&amp;title=Installing+RoundCube+in+cPanel" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.johnbernardabella.com/installing-roundcube-in-cpanel/&amp;submitHeadline=Installing+RoundCube+in+cPanel&amp;submitSummary=First%20make%20sure%20you%20know%20your%20mysql%20root%20password%2C%20you%20have%20to%20replace%20DATABASEPASSWORD%20to%20your%20mysql%20root%20password.%0D%0A%0D%0AIf%20you%20have%20already%20used%20RoundCube%20installation%20please%20make%20sure%20you%20remove%20any%20traces%20of%20it%20with%2C%0D%0A%0D%0A%0D%0Acd%20%2Fusr%2Flocal%2Fcpanel%2Fbase%0D%0Arm%20-rf%20roundcube%2A%0D%0Amysql%20-p%20-e%20%27drop%20database%20rou&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.johnbernardabella.com/installing-roundcube-in-cpanel/&amp;title=Installing+RoundCube+in+cPanel" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.johnbernardabella.com/installing-roundcube-in-cpanel/&amp;t=Installing+RoundCube+in+cPanel" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-hyves">
			<a href="http://www.hyves.nl/profilemanage/add/tips/?name=Installing+RoundCube+in+cPanel&amp;text=First%20make%20sure%20you%20know%20your%20mysql%20root%20password%2C%20you%20have%20to%20replace%20DATABASEPASSWORD%20to%20your%20mysql%20root%20password.%0D%0A%0D%0AIf%20you%20have%20already%20used%20RoundCube%20installation%20please%20make%20sure%20you%20remove%20any%20traces%20of%20it%20with%2C%0D%0A%0D%0A%0D%0Acd%20%2Fusr%2Flocal%2Fcpanel%2Fbase%0D%0Arm%20-rf%20roundcube%2A%0D%0Amysql%20-p%20-e%20%27drop%20database%20rou+-+http://www.johnbernardabella.com/installing-roundcube-in-cpanel/&amp;rating=5" rel="nofollow" class="external" title="Share this on Hyves">Share this on Hyves</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/installing-roundcube-in-cpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alternative for rm command</title>
		<link>http://www.johnbernardabella.com/alternative-for-rm-command/</link>
		<comments>http://www.johnbernardabella.com/alternative-for-rm-command/#comments</comments>
		<pubDate>Fri, 01 Feb 2008 16:07:17 +0000</pubDate>
		<dc:creator>jba_21</dc:creator>
				<category><![CDATA[Linux Help]]></category>
		<category><![CDATA[linux command]]></category>
		<category><![CDATA[linux rm]]></category>
		<category><![CDATA[remove files]]></category>
		<category><![CDATA[rm]]></category>
		<category><![CDATA[rm command]]></category>

		<guid isPermaLink="false">http://www.johnbernardabella.com/2008/02/03/alternative-for-rm-command/</guid>
		<description><![CDATA[Ive been handling  webserver with more than 1000 website and lots of unique visitors per month. Session are stored on the server hard drive and every end of the month i need to clean it up.
Now i was puzzled by rm command.
rm -f *
in /tmp/ directory. The terminal choked and gave out:
-bash: /bin/rm: Argument [...]]]></description>
			<content:encoded><![CDATA[<p>Ive been handling  webserver with more than 1000 website and lots of unique visitors per month. Session are stored on the server hard drive and every end of the month i need to clean it up.</p>
<p>Now i was puzzled by rm command.<br />
<code>rm -f *</code></p>
<p>in /tmp/ directory. The terminal choked and gave out:</p>
<p><code>-bash: /bin/rm: Argument list too long</code></p>
<p>Apparently there are a maximum number of files that can be passed to rm.</p>
<p><code>ls -1 | grep sess | wc -l</code></p>
<p><code>382611</code></p>
<p></p>
<p>wow 382611 session files! image how long it would take if you have an application that running with sessions.<br />
The solution for this problem would be :</p>
<p><code>find . -name 'sess*' | xargs rm </code></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.johnbernardabella.com/alternative-for-rm-command/&amp;t=Alternative+for+rm+command" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Alternative+for+rm+command+-+http://b2l.me/b3s3h+(via+@jbabella)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.johnbernardabella.com/alternative-for-rm-command/&amp;title=Alternative+for+rm+command&amp;summary=Ive%20been%20handling%20%20webserver%20with%20more%20than%201000%20website%20and%20lots%20of%20unique%20visitors%20per%20month.%20Session%20are%20stored%20on%20the%20server%20hard%20drive%20and%20every%20end%20of%20the%20month%20i%20need%20to%20clean%20it%20up.%0D%0A%0D%0ANow%20i%20was%20puzzled%20by%20rm%20command.%0D%0Arm%20-f%20%2A%0D%0A%0D%0Ain%20%2Ftmp%2F%20directory.%20The%20terminal%20choked%20and%20gave%20out%3A%0D%0A%0D%0A-bash&amp;source=John Bernard Abella [blog]" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.johnbernardabella.com/alternative-for-rm-command/&amp;n=Alternative+for+rm+command&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.johnbernardabella.com/alternative-for-rm-command/&amp;title=Alternative+for+rm+command" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.johnbernardabella.com/alternative-for-rm-command/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.johnbernardabella.com/alternative-for-rm-command/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.johnbernardabella.com/alternative-for-rm-command/&amp;title=Alternative+for+rm+command" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://www.johnbernardabella.com/alternative-for-rm-command/&amp;title=Alternative+for+rm+command&amp;desc=Ive%20been%20handling%20%20webserver%20with%20more%20than%201000%20website%20and%20lots%20of%20unique%20visitors%20per%20month.%20Session%20are%20stored%20on%20the%20server%20hard%20drive%20and%20every%20end%20of%20the%20month%20i%20need%20to%20clean%20it%20up.%0D%0A%0D%0ANow%20i%20was%20puzzled%20by%20rm%20command.%0D%0Arm%20-f%20%2A%0D%0A%0D%0Ain%20%2Ftmp%2F%20directory.%20The%20terminal%20choked%20and%20gave%20out%3A%0D%0A%0D%0A-bash" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.johnbernardabella.com/alternative-for-rm-command/&amp;title=Alternative+for+rm+command" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.johnbernardabella.com/alternative-for-rm-command/&amp;submitHeadline=Alternative+for+rm+command&amp;submitSummary=Ive%20been%20handling%20%20webserver%20with%20more%20than%201000%20website%20and%20lots%20of%20unique%20visitors%20per%20month.%20Session%20are%20stored%20on%20the%20server%20hard%20drive%20and%20every%20end%20of%20the%20month%20i%20need%20to%20clean%20it%20up.%0D%0A%0D%0ANow%20i%20was%20puzzled%20by%20rm%20command.%0D%0Arm%20-f%20%2A%0D%0A%0D%0Ain%20%2Ftmp%2F%20directory.%20The%20terminal%20choked%20and%20gave%20out%3A%0D%0A%0D%0A-bash&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.johnbernardabella.com/alternative-for-rm-command/&amp;title=Alternative+for+rm+command" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.johnbernardabella.com/alternative-for-rm-command/&amp;t=Alternative+for+rm+command" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-hyves">
			<a href="http://www.hyves.nl/profilemanage/add/tips/?name=Alternative+for+rm+command&amp;text=Ive%20been%20handling%20%20webserver%20with%20more%20than%201000%20website%20and%20lots%20of%20unique%20visitors%20per%20month.%20Session%20are%20stored%20on%20the%20server%20hard%20drive%20and%20every%20end%20of%20the%20month%20i%20need%20to%20clean%20it%20up.%0D%0A%0D%0ANow%20i%20was%20puzzled%20by%20rm%20command.%0D%0Arm%20-f%20%2A%0D%0A%0D%0Ain%20%2Ftmp%2F%20directory.%20The%20terminal%20choked%20and%20gave%20out%3A%0D%0A%0D%0A-bash+-+http://www.johnbernardabella.com/alternative-for-rm-command/&amp;rating=5" rel="nofollow" class="external" title="Share this on Hyves">Share this on Hyves</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/alternative-for-rm-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
