<?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&#039;s Notebook, A Programmers Journal</description>
	<lastBuildDate>Sun, 05 Feb 2012 14:13:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Check if folder exist on bash command</title>
		<link>http://www.johnbernardabella.com/check-if-folder-exist-on-bash-command/</link>
		<comments>http://www.johnbernardabella.com/check-if-folder-exist-on-bash-command/#comments</comments>
		<pubDate>Sun, 05 Feb 2012 14:13:33 +0000</pubDate>
		<dc:creator>jba_21</dc:creator>
				<category><![CDATA[Linux Help]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[folder checking sh]]></category>

		<guid isPermaLink="false">http://www.johnbernardabella.com/?p=68</guid>
		<description><![CDATA[if [ ! -e "$BACKUPDIR/latest" ] # Check Latest Directory exists. then mkdir -p &#8220;$BACKUPDIR/latest&#8221; fi]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>if [ ! -e "$BACKUPDIR/latest" ]	# Check Latest Directory exists.<br />
then<br />
mkdir -p &#8220;$BACKUPDIR/latest&#8221;<br />
fi</p>
<div class="shr-publisher-68"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/check-if-folder-exist-on-bash-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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 [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><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 mv /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>
<p>Updated: correction from Amar Patil, Thanks&#8230;.</p>
<div class="shr-publisher-83"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/nautilus-cannot-handle-computer-location-on-ubuntu-karmic-kaula/feed/</wfw:commentRss>
		<slash:comments>5</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 [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><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>
<div class="shr-publisher-70"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></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 [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><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>
<div class="shr-publisher-49"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></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 [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><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>
<div class="shr-publisher-47"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/account-default-page-for-cpanelwhm/feed/</wfw:commentRss>
		<slash:comments>3</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 a [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><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>
<div class="shr-publisher-13"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></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. [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><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>
<div class="shr-publisher-12"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></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 [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><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>
<div class="shr-publisher-9"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></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: [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><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>
<div class="shr-publisher-8"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/alternative-for-rm-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

