<?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>Wired Gorilla &#187; Techno Babble</title>
	<atom:link href="http://wiredgorilla.com.au/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://wiredgorilla.com.au</link>
	<description>Server - VPS - Web Hosting Info</description>
	<lastBuildDate>Sat, 03 Apr 2010 11:25:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>E-mail Alert on Root SSH Login</title>
		<link>http://wiredgorilla.com.au/2009/03/email-alert-root-ssh-login/</link>
		<comments>http://wiredgorilla.com.au/2009/03/email-alert-root-ssh-login/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 12:18:57 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Techno Babble]]></category>

		<guid isPermaLink="false">http://wiredgorilla.com/?p=549</guid>
		<description><![CDATA[Want to be notified instantly when someone logs into your server as root? No problem, check out this nice tutorial on email notification for root logins. Keeping track of who logs into your server and when is very important, especially when you&#8217;re dealing with the super user account. We recommend that you use an email


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Want to be notified instantly when someone logs into your server as root?</p>
<p>No problem, check out this nice tutorial on email notification for root logins. Keeping track of who logs into your server and when is very important, especially when you&#8217;re dealing with the super user account. We recommend that you use an email address not hosted on the server your sending the alert from</p>
<p><span id="more-549"></span></p>
<p><strong>1.</strong> Login to your server and su to root, I know the irony!</p>
<p><strong>2.</strong> <em>cd /root</em></p>
<p><strong>3.</strong> <em>pico .bashrc</em></p>
<p><strong>4.</strong> Scroll to the end of the file then add the following:<br />
<em>echo &#8216;ALERT &#8211; Root Shell Access (YourserverName) on:&#8217; `date` `who` | mail -s &#8220;Alert: Root Access from `who | cut -d&#8221;(&#8221; -f2 | cut -d&#8221;)&#8221; -f1`&#8221; </em><a href="mailto:%20%3Cscript%20language=%27JavaScript%27%20type=%27text/javascript%27%3E%20%3C%21--%20var%20prefix%20=%20%27ma%27%20+%20%27il%27%20+%20%27to%27;%20var%20path%20=%20%27hr%27%20+%20%27ef%27%20+%20%27=%27;%20var%20addy60775%20=%20%27you%27%20+%20%27@%27;%20addy60775%20=%20addy60775%20+%20%27yourdomain%27%20+%20%27.%27%20+%20%27com%27;%20document.write%28%20%27%3Ca%20%27%20+%20path%20+%20%27%5C%27%27%20+%20prefix%20+%20%27:%27%20+%20addy60775%20+%20%27%5C%27%3E%27%20%29;%20document.write%28%20addy60775%20%29;%20document.write%28%20%27%3C%5C/a%3E%27%20%29;%20//--%3E%5Cn%20%3C/script%3E%3Cscript%20language=%27JavaScript%27%20type=%27text/javascript%27%3E%20%3C%21--%20document.write%28%20%27%3Cspan%20style=%5C%27display:%20none;%5C%27%3E%27%20%29;%20//--%3E%20%3C/script%3EThis%20e-mail%20address%20is%20being%20protected%20from%20spam%20bots,%20you%20need%20JavaScript%20enabled%20to%20view%20it%20%3Cscript%20language=%27JavaScript%27%20type=%27text/javascript%27%3E%20%3C%21--%20document.write%28%20%27%3C/%27%20%29;%20document.write%28%20%27span%3E%27%20%29;%20//--%3E%20%3C/script%3E"><em> <script type="text/javascript"><!--
 &lt;! 
 var prefix = '&amp;#109;a' + 'i&amp;#108;' + '&amp;#116;o';
 var path = 'hr' + 'ef' + '=';
 var addy60775 = 'y&amp;#111;&amp;#117;' + '&amp;#64;';
 addy60775 = addy60775 + 'y&amp;#111;&amp;#117;rd&amp;#111;m&amp;#97;&amp;#105;n' + '&amp;#46;' + 'c&amp;#111;m';
 document.write( '&lt;a ' + path + '\'' + prefix + ':' + addy60775 + '\'&gt;' );
 document.write( addy60775 );
 document.write( '&lt;\/a&gt;' );
 // &gt;\n
// --></script></em></a><em><a href="mailto:you@yourdomain.com">you@yourdomain.com</a><script type="text/javascript"><!--
 &lt;! 
 document.write( '&lt;span style=\'display: none;\'&gt;' );
 // &gt;</p>
<p>// --></script><span style="display: none;">This e-mail address is being protected from spam bots, you need JavaScript enabled to view it  <script type="text/javascript"><!--
 &lt;! 
 document.write( '&lt;/' );
 document.write( 'span&gt;' );
 // &gt;</p>
<p>// --></script></span></em></p>
<p>Replace <em>YourServerName </em>with the handle for your actual server<br />
Replace <a href="mailto:%20%3Cscript%20language=%27JavaScript%27%20type=%27text/javascript%27%3E%20%3C%21--%20var%20prefix%20=%20%27ma%27%20+%20%27il%27%20+%20%27to%27;%20var%20path%20=%20%27hr%27%20+%20%27ef%27%20+%20%27=%27;%20var%20addy60775%20=%20%27you%27%20+%20%27@%27;%20addy60775%20=%20addy60775%20+%20%27yourdomain%27%20+%20%27.%27%20+%20%27com%27;%20document.write%28%20%27%3Ca%20%27%20+%20path%20+%20%27%5C%27%27%20+%20prefix%20+%20%27:%27%20+%20addy60775%20+%20%27%5C%27%3E%27%20%29;%20document.write%28%20addy60775%20%29;%20document.write%28%20%27%3C%5C/a%3E%27%20%29;%20//--%3E%5Cn%20%3C/script%3E%3Cscript%20language=%27JavaScript%27%20type=%27text/javascript%27%3E%20%3C%21--%20document.write%28%20%27%3Cspan%20style=%5C%27display:%20none;%5C%27%3E%27%20%29;%20//--%3E%20%3C/script%3EThis%20e-mail%20address%20is%20being%20protected%20from%20spam%20bots,%20you%20need%20JavaScript%20enabled%20to%20view%20it%20%3Cscript%20language=%27JavaScript%27%20type=%27text/javascript%27%3E%20%3C%21--%20document.write%28%20%27%3C/%27%20%29;%20document.write%28%20%27span%3E%27%20%29;%20//--%3E%20%3C/script%3E"><em> <script type="text/javascript"><!--
 &lt;! 
 var prefix = '&amp;#109;a' + 'i&amp;#108;' + '&amp;#116;o';
 var path = 'hr' + 'ef' + '=';
 var addy60775 = 'y&amp;#111;&amp;#117;' + '&amp;#64;';
 addy60775 = addy60775 + 'y&amp;#111;&amp;#117;rd&amp;#111;m&amp;#97;&amp;#105;n' + '&amp;#46;' + 'c&amp;#111;m';
 document.write( '&lt;a ' + path + '\'' + prefix + ':' + addy60775 + '\'&gt;' );
 document.write( addy60775 );
 document.write( '&lt;\/a&gt;' );
 // &gt;\n
// --></script></em></a><em><a href="mailto:you@yourdomain.com">you@yourdomain.com</a><script type="text/javascript"><!--
 &lt;! 
 document.write( '&lt;span style=\'display: none;\'&gt;' );
 // &gt;</p>
<p>// --></script><span style="display: none;">This e-mail address is being protected from spam bots, you need JavaScript enabled to view it  <script type="text/javascript"><!--
 &lt;! 
 document.write( '&lt;/' );
 document.write( 'span&gt;' );
 // &gt;</p>
<p>// --></script></span></em> with your actual email address</p>
<p><strong>5.</strong> <em>Crtl + X</em> then <em>Y</em></p>
<p><em></em>Now logout of SSH, close the connection?and log back in! You should receive an email address of the root login alert a few minutes afterwards.</p>
<p><strong>Note: </strong>This is a great tool for servers that have multiple admins or if you give someone SSH access for whatever reason, although you should give out the root password to as few people as humanly possible and be sure to change it often.</p>
<p>This will not magically alert you when a hacker runs the latest kernel exploit on your server and logs into SSH because they will create their own SSH/telnet connection. You should keep your system up to date, install a firewall and follow the latest security releases.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2009/03/email-alert-root-ssh-login/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Turbo charging MySQL by setting up the query cache</title>
		<link>http://wiredgorilla.com.au/2009/03/turbo-charging-mysql-setting-query-cache/</link>
		<comments>http://wiredgorilla.com.au/2009/03/turbo-charging-mysql-setting-query-cache/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 12:06:06 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Techno Babble]]></category>

		<guid isPermaLink="false">http://wiredgorilla.com/?p=532</guid>
		<description><![CDATA[To make sure MySQL uses the query cache, there are a few variables you need to set in the configuration file . Usually its my.cnf or my.ini so check on your server with the shell command locate , in our case we are running on a CentOS 5.2  distro and to its my.cnf located in


Related posts:<ol><li><a href='http://wiredgorilla.com.au/2010/02/linux-server-type-restoring-mysql-simlink/' rel='bookmark' title='Permanent Link: Linux Server Type: Restoring MySQL SimLink.'>Linux Server Type: Restoring MySQL SimLink.</a> <small>If you&#8217;re unable to restart mysqld and troubleshooting the cause:...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>To make sure MySQL uses the query cache, there are a few variables you need to set in the configuration file . Usually its my.cnf or my.ini so check on your server with the shell command locate , in our case we are running on a CentOS 5.2  distro and to its my.cnf located in /etc so we opened it by using :   <span style="color: #ff0000;">nano /etc/my.cnf </span></p>
<p><span id="more-532"></span></p>
<div>First, is the query_cache_type. There are three possible settings: 0 (for off, do not use), 1 (for on, cache queries) and 2 (on demand). To ensure it is always on, place:<em></em></div>
<div><span style="color: #ff0000;"><em>query-cache-type = 1</em></span></div>
<div>in the configuration file.</div>
<div>The query_cache_type is set to ON now. However, there is one more to set, and that is the query_cache_size. If set to 0 (the default), the cache will be disabled. This variable determines the memory, in bytes, used for the query cache. For our purposes, we will set it to 20 MB:</div>
<div><span style="color: #ff0000;"><em>query-cache-size = 20M</em></span></div>
<div>Hope that helped a little <img src='http://wiredgorilla.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>And if you want to check out whats happening in the mySql cache just run this comand<br />
<em><br />
<span style="color: #ff0000;">mysql -e &#8220;SHOW STATUS LIKE &#8216;%qcache%&#8217;;&#8221;</span><br />
</em></div>


<p>Related posts:<ol><li><a href='http://wiredgorilla.com.au/2010/02/linux-server-type-restoring-mysql-simlink/' rel='bookmark' title='Permanent Link: Linux Server Type: Restoring MySQL SimLink.'>Linux Server Type: Restoring MySQL SimLink.</a> <small>If you&#8217;re unable to restart mysqld and troubleshooting the cause:...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2009/03/turbo-charging-mysql-setting-query-cache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving mySQL DBs between servers</title>
		<link>http://wiredgorilla.com.au/2009/03/moving-mysql-dbs-servers/</link>
		<comments>http://wiredgorilla.com.au/2009/03/moving-mysql-dbs-servers/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 12:02:59 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Techno Babble]]></category>

		<guid isPermaLink="false">http://wiredgorilla.com/?p=530</guid>
		<description><![CDATA[Moving mySQL DBs from one server to another: mysqldump -uUSER -pPASSWORD txp_database &#62; txp_database.sql puts the entire thing in one nicely portable text file. on a new server it takes mysql -uUSER -pPASSWORD txp_database &#60; txp_database.sql to import it. Related posts:Linux Server Type: Restoring MySQL SimLink. If you&#8217;re unable to restart mysqld and troubleshooting the


Related posts:<ol><li><a href='http://wiredgorilla.com.au/2010/02/linux-server-type-restoring-mysql-simlink/' rel='bookmark' title='Permanent Link: Linux Server Type: Restoring MySQL SimLink.'>Linux Server Type: Restoring MySQL SimLink.</a> <small>If you&#8217;re unable to restart mysqld and troubleshooting the cause:...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Moving mySQL DBs from one server to another:</p>
<p><span style="color: #ff0000;">mysqldump -uUSER -pPASSWORD txp_database &gt; txp_database.sql </span></p>
<p>puts the entire thing in one nicely portable text file.</p>
<p>on a new server it takes</p>
<p><span style="color: #ff0000;">mysql -uUSER -pPASSWORD txp_database &lt; txp_database.sql </span></p>
<p>to import it.</p>


<p>Related posts:<ol><li><a href='http://wiredgorilla.com.au/2010/02/linux-server-type-restoring-mysql-simlink/' rel='bookmark' title='Permanent Link: Linux Server Type: Restoring MySQL SimLink.'>Linux Server Type: Restoring MySQL SimLink.</a> <small>If you&#8217;re unable to restart mysqld and troubleshooting the cause:...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2009/03/moving-mysql-dbs-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Cron Jobs Explained</title>
		<link>http://wiredgorilla.com.au/2009/03/linux-cron-jobs-explained/</link>
		<comments>http://wiredgorilla.com.au/2009/03/linux-cron-jobs-explained/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 11:59:26 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Techno Babble]]></category>

		<guid isPermaLink="false">http://wiredgorilla.com/?p=527</guid>
		<description><![CDATA[Cron allows users to automate repetitive system administration tasks such as tape backups, database reorganization, and general file cleanups (such as emptying log files and queues). The Crontab File&#8217;s Syntax To tell cron what you want it to run, and how often you want it to run it, you need to create a crontab file.


Related posts:<ol><li><a href='http://wiredgorilla.com.au/2010/02/rebuildingrestarting-exim-mail-server/' rel='bookmark' title='Permanent Link: Rebuilding/Restarting Exim Mail Server'>Rebuilding/Restarting Exim Mail Server</a> <small>When troubleshooting the Exim log file: tail -f /var/log/exim_mainlog If...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Cron allows users to automate repetitive system administration tasks such as tape  backups, database reorganization, and general file cleanups (such as emptying  log files and queues).</p>
<p>The Crontab File&#8217;s Syntax<br />
To tell cron what you want it to run, and how often you want it to run it, you    need to create a crontab file. A crontab file is just a text file with the following    syntax:</p>
<p><span id="more-527"></span></p>
<p>Code:</p>
<p>minute hour day-of-month month-of-year day-of-week command</p>
<p>Each of the above columns can be in one of the following formats (these examples    are for the minute column):<br />
30<br />
Run command at 30 minutes past the hour.</p>
<p>0-59/10<br />
Run command once every 10 minutes, for entire hour.</p>
<p>15-30<br />
Run command once every minute, from 15 to 30 minutes past the hour.</p>
<p>0,10,50<br />
Run command at 0 minutes past the hour, 10 minutes past the hour, and 50 minutes    past the hour.<br />
*<br />
Run command once every minute.</p>
<p>And here&#8217;s the range of numbers available for each of the time and date columns:<br />
Minute : 0-59<br />
Hour : 0-23<br />
day-of-month : 0-31<br />
month-of-year : 1-12<br />
day-of-week : 0-6<br />
(0=Sun, 1=Mon, 2=Tue, 3=Wed, 4=Thu, 5=Fri, 6=Sat)<br />
Here&#8217;s an example crontab file:</p>
<p>Code:</p>
<p>30 0 * * * ./backup.sh<br />
0,10,50 9-15 * * * ./compute.sh<br />
0-59/10 * * * 1,3,5 ./netgrab.sh<br />
30 0 * * * ./backup.sh</p>
<p>Run the backup.sh script (located in your home directory) at half-past (30)    midnight (0), on every day of the month (*), and every day of the year (*),    and every day of the week (*).<br />
0,10,50 9-15 * * * ./compute.sh</p>
<p>Run the compute.sh script every 0 minutes, 10 minutes, and 50 minutes past    the hours (0,10,50), between 9am and 5pm (9-15), every day of the year.</p>
<p>0-59/10 * * * 1,3,5 ./netgrab.sh</p>
<p>Run the netgrab.sh script every 10 minutes (0-59/10), every Monday, Wednesday,    and Friday (1,3,5).</p>
<p>Creating and Submitting Your Crontab File to Cron</p>
<p>There are two methods to create/modify and submit a crontab file:</p>
<p>Method 1<br />
Create a crontab file in a text editor. You can call it whatever you want and    save it wherever you like. Now you have to submit the crontab file. To do this    enter:<br />
crontab filename<br />
&#8230;replacing filename with the location and name of your crontab file e.g. if    the file was named crontab and was in your current directory you would enter:<br />
crontab crontab</p>
<p>Method 2</p>
<p>crontab -e<br />
To open your default editor (which is Vi). When saving the file just enter :wq    without specifying a Filename; to quit Vi, and automatically submit the crontab    file.</p>
<p>Note<br />
When you sumbit a file, a copy of it is stored in the /var/spool/cron directory,    with your username as the filename. So if I submitted the file mycron whilst    logged into the account laurence, a copy would be stored as /var/spool/cron/laurence.    It&#8217;s this file the cron daemon uses, and not the master file you created if    you used method 1. If you used Method 2 then only one copy of the file exists.    Never directly edit files in /var/spool/cron. Cron will not be updated and you    can potentially mess things up. Instead use either Method 1 or 2 again, to modify    your crontab file.</p>
<p>Listing and Removing Your Crontab File<br />
To display the contents of your crontab file held in the /var/spool/cron directory,    enter:<br />
crontab -l<br />
And to remove your crontab file from the /var/spool/cron directory, enter:<br />
crontab -r</p>
<p>Restricting Users<br />
By default only root can submit and modify a crontab file. To allow users to    have their own crontab file add their username to the /etc/cron.allow file,    e.g:<br />
john<br />
julie<br />
Indicating that john and julie are now permitted to submit their own crontab    file.</p>
<p>Putting Theory Into Practice<br />
Here&#8217;s a handy little automation exercise for you to try out. It will backup    the contents of your home directory to a .tar.gz file each morning at 2.30a.m.<br />
If you haven&#8217;t already done so, enter:<br />
su -c &#8216;pico /etc/cron.allow&#8217;<br />
&#8230;and add your username to this file to allow you to submit crontab files.<br />
/ 1<br />
If you&#8217;re not already in your home directory, enter:<br />
cd<br />
/ 2<br />
Enter:<br />
pico backup<br />
&#8230;and enter the following:<br />
rm backup.tar.gz<br />
tar cfz backup.tar.gz .<br />
&#8230;then press Ctrl+o to save the file, and Ctrl+x to exit.</p>
<p>/ 3 -<br />
Now make the script executable by entering:<br />
chmod +x backup</p>
<p>/4 -<br />
Enter:<br />
crontab -e</p>
<p>/ 5 -<br />
Press i to enter Insert mode and enter the following:</p>
<p>30 2 * * * ./backup</p>
<p>&#8230;then press Esc to return to Command mode, and enter:<br />
:wq<br />
&#8230;to exit Vi and submit your crontab file. That&#8217;s all there is to it. Now you    can spend hours thinking of bigger and better ways to make your life as a system    administrator an easy one.</p>
<p>If you don&#8217;t have access to cron, consult your local admin. And<br />
remember, in shell you can access the cron manual by doing :</p>
<p>man cron<br />
Or<br />
man crontab</p>
<p>Some good additional links:</p>
<p>1. http://www.clockwatchers.com/cron_main.html<br />
2. http://www.linuxforums.org/tutorial&#8230;orial-4017.html</p>


<p>Related posts:<ol><li><a href='http://wiredgorilla.com.au/2010/02/rebuildingrestarting-exim-mail-server/' rel='bookmark' title='Permanent Link: Rebuilding/Restarting Exim Mail Server'>Rebuilding/Restarting Exim Mail Server</a> <small>When troubleshooting the Exim log file: tail -f /var/log/exim_mainlog If...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2009/03/linux-cron-jobs-explained/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Taking backup of mysql database using cron</title>
		<link>http://wiredgorilla.com.au/2009/03/backup-mysql-database-cron/</link>
		<comments>http://wiredgorilla.com.au/2009/03/backup-mysql-database-cron/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 11:56:38 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Techno Babble]]></category>

		<guid isPermaLink="false">http://wiredgorilla.com/?p=522</guid>
		<description><![CDATA[Taking backup of mysql database using cron Create a file called database_backup.sh and also an empty directory called mysql_backup. The database_backup.sh script should have the following info : &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- #!/bin/sh date=`date &#8216;+%m-%d-%y&#8217;` mysqldump -u database_username -pdatabase_password database_name &#62; ~/mysql_backup/database_name.$date &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- Run the script that performs the backup job. &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- * 23 * * * your_userid


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Taking backup of mysql database using cron</p>
<p>Create a file called database_backup.sh and also an empty directory called mysql_backup.  The database_backup.sh script should have the following info :</p>
<p><span id="more-522"></span></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
#!/bin/sh</p>
<p>date=`date &#8216;+%m-%d-%y&#8217;`<br />
mysqldump -u database_username -pdatabase_password database_name &gt; ~/mysql_backup/database_name.$date<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Run the script that performs the backup job.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
* 23 * * * your_userid /path/to/backup/script<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Set this script up to run every night, etc. as a cron job. It will save an    sql dump of your database every night in the mysql_backup.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2009/03/backup-mysql-database-cron/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PRM (Process Resource Monitoring) in Linux Servers</title>
		<link>http://wiredgorilla.com.au/2009/03/prm-process-resource-monitoring-linux-servers/</link>
		<comments>http://wiredgorilla.com.au/2009/03/prm-process-resource-monitoring-linux-servers/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 12:05:09 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Techno Babble]]></category>

		<guid isPermaLink="false">http://wiredgorilla.com/?p=440</guid>
		<description><![CDATA[The great people from R-FX Networks are bringing us a number of powerfull tools for the Linux Server enviroment PRM (Process Resource Monitoring) monitors the process table on a given system and matches process id&#8217;s with set resource limits in the config file or per-process based rules. Process id&#8217;s that match or exceed the set


No related posts.]]></description>
			<content:encoded><![CDATA[<p>The great people from R-FX Networks are bringing us a number of powerfull tools for the Linux Server enviroment</p>
<p><span style="color: #000000;"> PRM (Process Resource Monitoring)</span> monitors the process table on a given system and matches process id&#8217;s with set resource limits in the config file or per-process based rules. Process id&#8217;s that match or exceed the set limits are logged and killed; includes e-mail alerts, kernel logging routine and more&#8230;</p>
<p><span id="more-440"></span></p>
<p class="style33"><strong>Installation:</strong></p>
<p class="style33">First  the package:<br />
<span style="color: #0000ff;">wget http://www.rfxnetworks.com/downloads/prm-current.tar.gz</span></p>
<p class="style33">Extract it:</p>
<p class="style33"><span style="color: #0000ff;">tar xvfz prm-current.tar.gz</span></p>
<p class="style33">The current version of prm as of this writing is 0.5, so lets cd to the 0.5 extracted path:<br />
<span style="color: #0000ff;">cd prm-0.5/</span></p>
<p class="style33">And finally run the enclosed install.sh script:<br />
<span style="color: #0000ff;">./install.sh</span></p>
<p>Download the current release of PRM distributed under the <a href="http://www3.wiredgorilla.com/COPYING.GPL" target="_blank">GNU GENERAL PUBLIC LICENSE</a>:<br />
<strong><a href="http://www.r-fx.ca/downloads/prm-current.tar.gz" target="_blank">- http://www.r-fx.ca/downloads/prm-current.tar.gz </a></strong></p>
<p>All projects on rfxnetworks.com are free for use and distribution in accordance with the <a href="http://www3.wiredgorilla.com/COPYING.GPL" target="_blank">gnu gpl</a>; funding for the continued development and research into this and other projects, is solely dependent on public contributions and donations.</p>
<p><a href="http://www.rfxnetworks.com/index.php" target="_blank">R-FX Networks </a><br />
ReadMe<br />
<a href="http://www3.wiredgorilla.com/appdocs/README.prm" target="_blank">http://www.rfxnetworks.com/appdocs/README.prm</a><br />
Version History:<br />
<a href="http://www3.wiredgorilla.com/appdocs/CHANGELOG.prm" target="_blank">http://www.rfxnetworks.com/appdocs/CHANGELOG.prm</a></p>
<hr />


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2009/03/prm-process-resource-monitoring-linux-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The old JavaScript cPanel Server exploit</title>
		<link>http://wiredgorilla.com.au/2009/03/javascript-cpanel-server-exploit/</link>
		<comments>http://wiredgorilla.com.au/2009/03/javascript-cpanel-server-exploit/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 12:03:58 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Techno Babble]]></category>

		<guid isPermaLink="false">http://wiredgorilla.com/?p=437</guid>
		<description><![CDATA[The Javascript exploit has been an old saga on a few Linux distros running cPanel and Plesk . The compromise is at the root level and a rootkit has been installed. This rootkit will attach to several syscalls within the kernel and begin serving malicious javascript to random web visitors. This root compromise is not


No related posts.]]></description>
			<content:encoded><![CDATA[<p>The Javascript exploit has been an old saga on a few Linux distros running cPanel and Plesk .</p>
<p>The compromise is at the root level and a rootkit has been installed. This  rootkit will attach to several syscalls within the kernel and begin serving  malicious javascript to random web visitors.</p>
<p>This root compromise is not  related to cPanel directly, as it has been reported on many different control  panels on many different servers. The compromise is at the system level, and  only Redhat 4, CentOS 4, and FC6 appear to be vulnerable at this time. We are  actively researching this issue and will have an in-depth analysis of current  information posted soon.<span id="more-437"></span></p>
<p><a href="http://forums.cpanel.net/showthread.php?t=74963&amp;page=10&amp;highlight=centos5" target="_blank">http://forums.cpanel.net/showthread.php?t=74963&amp;page=10&amp;highlight=centos5</a></p>
<div id="post_message_348485">The easiest way to confirm the compromise is to attempt to make a directory with  a numerical name. Run &#8216;mkdir 1&#8242; or &#8216;touch 2&#8242;. If this fails with an error  similar to the errors below, then it&#8217;s recommended to contact your datacenter,  NOC or a qualified admin who can recover the system properly.</p>
<div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">Code:</div>
<pre class="alt2" style="border: 1px inset; margin: 0px; padding: 0px; overflow: auto; width: 640px; height: 98px; text-align: left;" dir="ltr">[root\@cpanel ~]# mkdir 1
mkdir: cannot create directory `1': No such file or directory
[root\@cpanel ~]# touch 2
touch: cannot touch `2': No such file or directory</pre>
</div>
</div>
<div>__________________</div>
<div id="post_message_351361">These attacks have started slowing down as the  attackers behind this know the heat is on. They appear to be changing a few  parts of the attack to make it much harder to notice. If anyone feels they are  infected, please run the tcpdump command below to briefly watch the web requests  for the javascript being served.</div>
<div id="post_message_351361">More details can be found at <a href="http://www.cpanel.net/security/notes/random_js_toolkit.html" target="_blank">http://www.cpanel.net/security/notes&#8230;s_toolkit.html</a></div>
<div id="post_message_351361">
<div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">Code:</div>
<pre class="alt2" style="border: 1px inset; margin: 0px; padding: 0px; overflow: auto; width: 640px; height: 34px; text-align: left;" dir="ltr">tcpdump -nAs 2048 src port 80 | grep "[a-zA-Z]\{5\}\.js'"</pre>
</div>
<p>This  command on a server infected by this specific rootkit will result in something  similar to:</p>
<div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">Code:</div>
<pre class="alt2" style="border: 1px inset; margin: 0px; padding: 0px; overflow: auto; width: 640px; height: 146px; text-align: left;" dir="ltr">root@server log]# tcpdump -nAs 2048 src port 80 | grep "[a-zA-Z]\{5\}\.js'"
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 2048 bytes
&lt;script language='JavaScript' type='text/javascript' src='ateyc.js'&gt;&lt;/script&gt;
&lt;script language='JavaScript' type='text/javascript' src='taopp.js'&gt;&lt;/script&gt;
1311 packets captured
2627 packets received by filter
0 packets dropped by kernel</pre>
</div>
</div>
<div>__________________<br />
Todd Shipway<br />
cPanel Technical Support</div>
<div>Another is to check your outgoing packets,</p>
<div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">Quote:</div>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td class="alt2" style="border: 1px inset;">tcpdump  			-nAs 2048 src port 80 | grep &#8220;[a-zA-Z]\{5\}\.js&#8217;&#8221;</td>
</tr>
</tbody>
</table>
</div>
<p>For older  versions of tcpdump (Such as the ones provided with RHEL3/centOS3)</p>
<div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">Quote:</div>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td class="alt2" style="border: 1px inset;">tcpdump  			-XX -ns 2048 src port 80 | grep &#8220;[a-zA-Z]\{5\}\.js&#8217;&#8221;</td>
</tr>
</tbody>
</table>
</div>
<p>The  grsecurity fix people are mentioning does <strong>not</strong> remove this, it simply  stops it from writing to /dev/mem (or /dev/kmem depending on what is available)  however the second you boot out of this kernel you are likely to be vulnerable  again.</p>
<p>The rootkit itself is rather simple in terms of how it actually  functions, it uses common binaries as listed in the article (there’s another  binary not listed from the older variants of this [that don't prevent the  numbers at the start of file names/directories]). Replacing those binaries in  the manner suggested is not the safest option and there is not always a copy,  you should replace these from the binaries from your distribution. In the  particular case it’s actually rather easy to do , simply remove the attributes  to the files, remove the files themselves(not needed, but do it anyway) and then  reinstalled the RPM’s (As this is always on an RPM based distribution) there’s  only 3 rpm’s that are needed to be reinstalled.</p>
<p>Lastly, if you are not  comfortable working with the kernel/debuggers then <strong>HIRE A QUALIFIED  ADMINISTRATOR</strong> there’s plenty of them out there</div>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2009/03/javascript-cpanel-server-exploit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 5.1 Server Setup: LAMP, Email, DNS, FTP, ISPConfig (a.k.a. The Perfect Server)</title>
		<link>http://wiredgorilla.com.au/2009/02/centos-51-server-setup-lamp-email-dns-ftp-ispconfig-aka-perfect-server/</link>
		<comments>http://wiredgorilla.com.au/2009/02/centos-51-server-setup-lamp-email-dns-ftp-ispconfig-aka-perfect-server/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 12:06:18 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Techno Babble]]></category>

		<guid isPermaLink="false">http://wiredgorilla.com/?p=443</guid>
		<description><![CDATA[This tutorial shows how to set up a CentOS 5.1 based server that offers all services needed by ISPs and web hosters: Apache web server (SSL-capable), Postfix mail server with SMTP-AUTH and TLS, BIND DNS server, Proftpd FTP server, MySQL server, Dovecot POP3/IMAP, Quota, Firewall, etc. This tutorial is written for the 32-bit version of


Related posts:<ol><li><a href='http://wiredgorilla.com.au/2010/02/linux-server-type-restoring-mysql-simlink/' rel='bookmark' title='Permanent Link: Linux Server Type: Restoring MySQL SimLink.'>Linux Server Type: Restoring MySQL SimLink.</a> <small>If you&#8217;re unable to restart mysqld and troubleshooting the cause:...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This tutorial shows how to set up a <strong>CentOS 5.1</strong> based server that offers all services needed by ISPs and web hosters: Apache web server (SSL-capable), Postfix mail server with SMTP-AUTH and TLS, BIND DNS server, Proftpd FTP server, MySQL server, Dovecot POP3/IMAP, Quota, Firewall, etc. This tutorial is written for the 32-bit version of CentOS 5.1, but should apply to the 64-bit version with very little modifications as well.</p>
<p><span id="more-443"></span></p>
<p>I will use the following software:</p>
<blockquote>
<ul>
<li>Web Server: Apache 2.2 with PHP 5.1.6</li>
<li>Database Server: MySQL 5.0</li>
<li>Mail Server: Postfix</li>
<li>DNS Server: BIND9 (chrooted)</li>
<li>FTP Server: Proftpd</li>
<li>POP3/IMAP server: Dovecot</li>
<li>Webalizer for web site statistics</li>
</ul>
</blockquote>
<p>In the end you should have a system that works reliably, and if you like you can install the free webhosting control panel <a href="http://www.ispconfig.org/" target="_blank">ISPConfig</a> (i.e., ISPConfig runs on it out of the box).</p>
<p>I want to say first that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you!</p>
<p><a href="http://www.howtoforge.com/centos-5.1-server-lamp-email-dns-ftp-ispconfig" target="_blank">Read the full article here</a></p>


<p>Related posts:<ol><li><a href='http://wiredgorilla.com.au/2010/02/linux-server-type-restoring-mysql-simlink/' rel='bookmark' title='Permanent Link: Linux Server Type: Restoring MySQL SimLink.'>Linux Server Type: Restoring MySQL SimLink.</a> <small>If you&#8217;re unable to restart mysqld and troubleshooting the cause:...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2009/02/centos-51-server-setup-lamp-email-dns-ftp-ispconfig-aka-perfect-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install mod_gzip on a Linux server</title>
		<link>http://wiredgorilla.com.au/2009/01/install-modgzip-linux-server/</link>
		<comments>http://wiredgorilla.com.au/2009/01/install-modgzip-linux-server/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 12:17:24 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Techno Babble]]></category>

		<guid isPermaLink="false">http://wiredgorilla.com/?p=546</guid>
		<description><![CDATA[This guide will show you how to install mod_gzip on your Linux server mod_gzip &#8211; what&#8217;s that, anyway? mod_gzip &#8211; serving compressed content by the Apache webserver mod_gzip is an external extension module for the WWW&#8217;s most popular web server Apache, created in autumn, 2000. Its implementation allows for using the compression method gzip for


No related posts.]]></description>
			<content:encoded><![CDATA[<p>This guide will show you how to install mod_gzip on your Linux server</p>
<h2><span style="font-family: Arial,Helvetica,sans-serif; font-size: small;"><strong>mod_gzip &#8211; what&#8217;s    that, anyway?</strong></span></h2>
<p>mod_gzip &#8211; serving compressed content by the Apache webserver<br />
mod_gzip is an external extension module for the WWW&#8217;s most popular web server    Apache, created in autumn, 2000.<br />
Its implementation allows for using the compression method gzip for a significant    reduction of the volume of web page content served over the HTTP protocol.</p>
<p><span id="more-546"></span>If you are having difficulties with getting mod_gzip to work when compiled with using easyapache, then you can go and use this step by step manual install.</p>
<p>Log into you server using shell and your root account and download mod_gzip-1.3.26.1a.tgz    (or whatever the latest version) from sourceforge.net</p>
<p>I used</p>
<p><span style="color: #0000ff;">wget http://optusnet.dl.sourceforge.net/sourceforge/mod-gzip/mod_gzip-1.3.26.1a.tgz</span><br />
after that</p>
<p><span style="color: #0000ff;">tar -zxvf mod_gzip-1.3.26.1a.tgz<br />
cd mod_gzip-1.3.26.1a</span></p>
<p><span style="color: #0000ff;">make APXS=/usr/local/apache/bin/apxs<br />
make install APXS=/usr/local/apache/bin/apxs</span></p>
<p>Then edit your httpd.conf file</p>
<p><span style="color: #0000ff;">pico /etc/httpd/conf/httpd.conf </span></p>
<p>and add the following (in the AddModule stuff):</p>
<p>first uncomment:</p>
<p><span style="color: #0000ff;">#LoadModule gzip_module libexec/mod_gzip.so</span><br />
to<br />
<span style="color: #0000ff;">LoadModule gzip_module libexec/mod_gzip.so</span></p>
<p>and</p>
<p><span style="color: #0000ff;">#AddModule mod_gzip.c</span><br />
to<br />
<span style="color: #0000ff;">AddModule mod_gzip.c</span></p>
<p>and after AddModule mod_gzip.c add this below</p>
<p><span style="color: #0000ff;">&lt;IfModule mod_gzip.c&gt;<br />
mod_gzip_on Yes<br />
mod_gzip_can_negotiate Yes<br />
mod_gzip_static_suffix .gz<br />
AddEncoding gzip .gz<br />
mod_gzip_update_static No<br />
mod_gzip_command_version &#8216;/mod_gzip_status&#8217;<br />
mod_gzip_temp_dir /tmp<br />
mod_gzip_keep_workfiles No<br />
mod_gzip_minimum_file_size 500<br />
mod_gzip_maximum_file_size 500000<br />
mod_gzip_maximum_inmem_size 60000<br />
mod_gzip_min_http 1000<br />
mod_gzip_handle_methods GET POST<br />
mod_gzip_item_exclude reqheader &#8220;User-agent: Mozilla/4.0[678]&#8221;<br />
mod_gzip_item_include file \.html$<br />
mod_gzip_item_include file \.shtml$<br />
mod_gzip_item_include file \.htm$<br />
mod_gzip_item_include file \.shtm$<br />
mod_gzip_item_include file \.php$<br />
mod_gzip_item_include file \.phtml$<br />
mod_gzip_item_exclude file \.js$<br />
mod_gzip_item_exclude file \.css$<br />
mod_gzip_item_exclude file \.wml$<br />
mod_gzip_item_include file \.pl$<br />
mod_gzip_item_include file \.cgi$<br />
mod_gzip_item_include handler ^cgi-script$<br />
mod_gzip_item_include mime ^text/html$<br />
mod_gzip_item_include mime ^text/plain$<br />
mod_gzip_item_include mime ^httpd/unix-directory$<br />
mod_gzip_item_include mime ^application/x-httpd-php<br />
mod_gzip_item_include handler ^perl-script$<br />
mod_gzip_item_exclude mime ^image/<br />
mod_gzip_dechunk Yes<br />
mod_gzip_add_header_count Yes<br />
mod_gzip_send_vary Yes<br />
&lt;/IfModule&gt;</span></p>
<p>Then restart apache with</p>
<p><span style="color: #0000ff;">service httpd restart</span></p>
<p>That&#8217;s about it. There is nothing too typical about installtion and getting    it to work, except for in cases where one is using mod_proxy also for proxying    a back-end httpd in which case mod_gzip would fail because of a bug. Other than    that it works fine.</p>
<p>Compiled tutorial with info from Anup <img src='http://wiredgorilla.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Oh, and nearly forgot; you can check if you have successfully installed gZip by going here :  <a href="http://leknor.com/code/gziped.php?url=http%3A%2F%2Fwiredgorilla.com%2Fmain%2Findex.php" target="blank">http://leknor.com/code/gziped.php?</a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2009/01/install-modgzip-linux-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to check and stop if DDoS attack is going on.</title>
		<link>http://wiredgorilla.com.au/2008/09/how-to-check-and-stop-if-ddos-attack-is-going-on/</link>
		<comments>http://wiredgorilla.com.au/2008/09/how-to-check-and-stop-if-ddos-attack-is-going-on/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 12:05:52 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Techno Babble]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Distributed denial-of-service attacks In a distributed attack, the attacking computers are often personal computers with broadband connections to the Internet that have been compromised by viruses or Trojan horse programs. These allow the perpetrator to remotely control machines to direct the attack, and such an array of computers is called a botnet. With enough such


No related posts.]]></description>
			<content:encoded><![CDATA[<p><strong>Distributed denial-of-service attacks</strong><br />
In a distributed attack, the attacking computers are often personal computers<br />
with broadband connections to the Internet that have been compromised by viruses<br />
or Trojan horse programs. These allow the perpetrator to remotely control machines<br />
to direct the attack, and such an array of computers is called a botnet. With<br />
enough such slave or zombie hosts, the services of even the largest and most well-connected<br />
websites can be disrupted.</p>
<p><span id="more-277"></span><br />
<strong>Denial-of-service attack </strong></p>
<p>A denial-of-service attack (also, DoS attack) is an attack on a computer system<br />
or network that causes a loss of service to users, typically the loss of network<br />
connectivity and services by consuming the bandwidth of the victim network or<br />
overloading the computational resources of the victim system.<br />
Attacks can be directed at any network device, including routers and Web, electronic<br />
mail, and Domain Name System servers.</p>
<p>A DoS attack can be perpetrated in a number of ways. There are four basic types<br />
of attack:</p>
<p>1) consumption or overload of system or network resources, such as bandwidth,<br />
disk space, or CPU time<br />
2) disruption of configuration information, such as routing information<br />
3) disruption of physical network components<br />
4) disruption of normal operating-system functionality by exploiting a software<br />
vulnerability.</p>
<p>Attempts to &#8220;flood&#8221; a network with bogus packets, thereby preventing<br />
legitimate network traffic, are the most common form of attack, often conducted<br />
by disrupting network connectivity with the use of multiple hosts in a distributed<br />
denial-of-service attack or DDoS. Such attacks can consume the resources of<br />
intervening systems and networks over which the attack is transmitted. Other<br />
than incorrectly formed packets or random traffic, two specific sophisticated<br />
means of attack include:</p>
<p>1) a smurf attack, in which ICMP requests are sent to the broadcast address<br />
of misconfigured networks, with a faked, or spoofed, source IP Address set to<br />
the one of the target<br />
2) a SYN flood, in which bogus SYN requests to a service (often HTTP) cause<br />
a server to be overloaded by spawning half-open connections<br />
<strong>You can check the current http usage by firing the shell command</strong></p>
<p><span style="color: #ff0000;">top -d2</span></p>
<p>If you are getting lots of httpd processes, then you have to check if it is<br />
a DoS attack and the server is flooded with SYN packets. You can check this<br />
by the following command.</p>
<p><span style="color: #ff0000;">netstat -nap | grep SYN | wc -l</span></p>
<p>If you are getting abnormal numbers then your server is under attack.<br />
You can check from which IPs the SYN packets are coming. Give the following<br />
command</p>
<p><span style="color: #ff0000;">netstat -nap | less</span></p>
<p>You will get all the details of kernel routing table also the IPs from where<br />
the packets are coming. If it is coming from any particular IP then you can<br />
simply block that IP on the server. Or if its from one network then you will<br />
have to block the range of IPs.<br />
If there are multiple IPs which are attacking then you will have to find which<br />
site is under attack.<br />
To check this go to<span style="color: #ff0000;"> /usr/local/apache/domlogs/</span><br />
Check how stat&#8217;s date is defined. Then run the command &#8220;<span style="color: #ff0000;">date</span>&#8220;.<br />
Check the current time of the server. Then you have to check which site was<br />
under attack before few mins ago. Suppose current time is Sep 15 02:03:38 then<br />
run the command</p>
<p>grep &#8220;15/Sep/2005:02:01&#8243; *</p>
<p>It will show you the list of sites accessed at that time. If you see any particular<br />
site is being accessed multiple times, then the site is under attack. You can<br />
chnage the time to check if different sites are under attack. You can suspend<br />
that site to prevent the server from overloading.</p>
<p>Many times the attack hits a particular IP and all the sites having that IP<br />
get attacked. All you have to do is change the IP of those sites and then null-route<br />
that IP.</p>
<p>These are the simple steps you have to follow when attack is going on. Obviously<br />
you have to use your presence of mind while working on it. You will find many<br />
ways to solve this issue.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2008/09/how-to-check-and-stop-if-ddos-attack-is-going-on/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Downgrading MySQL5 to MySQL4.1 in cPanel</title>
		<link>http://wiredgorilla.com.au/2008/08/downgrading-mysql5-to-mysql41-in-cpanel/</link>
		<comments>http://wiredgorilla.com.au/2008/08/downgrading-mysql5-to-mysql41-in-cpanel/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 00:00:22 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Techno Babble]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[For whatever reason , some people still want to run the old version of MySQL4.1 in there new cPanel servers, which seems a little issue , as the default database version in new cPanel server installs is MySQL5. Here are the simple steps to downgrade the database (this should only be done on a new


No related posts.]]></description>
			<content:encoded><![CDATA[<p>For whatever reason , some people still want to run the old version of MySQL4.1 in there new cPanel servers, which seems a little issue , as the default database version in new cPanel server installs is MySQL5.</p>
<p>Here are the simple steps to downgrade the database (this should only be done on a new server without any account on it yet)</p>
<p><span id="more-130"></span><br />
Log into SSH as root and modify the cpanel.config</p>
<p><span style="color: #0000ff">nano /var/cpanel/cpanel.config</span></p>
<p>search for the mysql version</p>
<p><span style="color: #0000ff">Ctrl + w , mysql</span></p>
<p>Now log into WHM and make sure MySQL 4.1 is checked in</p>
<p>Main &gt;&gt; Server Configuration &gt;&gt; Tweak Settings</p>
<p>And now change the version from 5.0 to 4.1</p>
<p>and now you need to run</p>
<p><span style="color: #0000ff">/scripts/mysqlup &#8211;force </span></p>
<p>to force the downgrade .</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2008/08/downgrading-mysql5-to-mysql41-in-cpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MD5 password generator</title>
		<link>http://wiredgorilla.com.au/2008/08/md5-password-generator/</link>
		<comments>http://wiredgorilla.com.au/2008/08/md5-password-generator/#comments</comments>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Techno Babble]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[MD5 password generator $pw is: &#34;; echo &#34; &#34; . strtoupper(md5($pw)) . &#34;&#34;; } ?&#62; &#160; Enter a password to encrypt: No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<h2>MD5 password generator</h2>
<p>$pw is:<br />
&quot;;<br />
echo &quot;<br />
<tt>&quot; . strtoupper(md5($pw)) . &quot;</tt>&quot;;<br />
}<br />
?&gt;</p>
<p>
&nbsp;
</p>
<form name="pw" method="post">
	Enter a password to encrypt:</p>
<input name="pw" type="text" />
	</p>
<input value="Submit" type="submit" />
</form>
<p><span id="more-284"></span></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2008/08/md5-password-generator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easyapache failing on CentOS server</title>
		<link>http://wiredgorilla.com.au/2008/07/easyapache-failing-on-centos-server/</link>
		<comments>http://wiredgorilla.com.au/2008/07/easyapache-failing-on-centos-server/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 01:13:15 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Techno Babble]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Had an issue with one on our CentOS cPanel servers running 64 bit and cPanels easyapache upgrade. The folks at cPanel helped out with their usual professional response The cause of the EasyApache failure, according to the log, was a failure of the package manager, in this case yum.&#160; This was caused by a problem


No related posts.]]></description>
			<content:encoded><![CDATA[<p>
Had an issue with one on our CentOS cPanel servers running 64 bit and cPanels easyapache upgrade. The folks at cPanel helped out with their usual professional response
</p>
<p><span id="more-129"></span><br />The cause of the EasyApache failure, according to the log, was a failure of the package manager, in this case yum.&nbsp; This was caused by a problem with domain name resolution, which was preventing yum from accessing its mirrors.&nbsp; Here is what I found:</p>
<p>
[root@server ~]# <span style="color: #0000ff">yum check-update</span><br />
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&amp;arch=x86_64&amp;repo=os error was<br />
[Errno 4] IOError: &lt;urlopen error (-2, &#8216;Name or service not known&#8217;)&gt;<br />
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again<br />
[root@server ~]# <span style="color: #0000ff">host mirrorlist.centos.org</span><br />
[root@server ~]#</p>
<p>
Note that no result was returned for mirrorlist.centos.org.&nbsp; To correct this, I added the following to the top of the <span style="color: #0000ff">/etc/resolv.conf</span> file:</p>
<p>
nameserver 4.2.2.1</p>
<p>
This is one of the root nameservers.&nbsp; After I made this change, mirrorlist.centos.org was resolvable, and yum worked correctly:</p>
<p>
[root@server ~]# <span style="color: #0000ff">host mirrorlist.centos.org</span><br />
mirrorlist.centos.org has address 72.21.40.11<br />
[root@server ~]# <span style="color: #0000ff">yum check-update</span><br />
base&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 100% |=========================| 1.1 kB&nbsp;&nbsp;&nbsp; 00:00&nbsp;&nbsp;&nbsp;&nbsp; <br />
updates&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 100% |=========================|&nbsp; 951 B&nbsp;&nbsp;&nbsp; 00:00&nbsp;&nbsp;&nbsp;&nbsp; <br />
addons&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 100% |=========================|&nbsp; 951 B&nbsp;&nbsp;&nbsp; 00:00&nbsp;&nbsp;&nbsp;&nbsp; <br />
extras&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 100% |=========================| 1.1 kB&nbsp;&nbsp;&nbsp; 00:00&nbsp;&nbsp;&nbsp;&nbsp; <br />
Excluding Packages in global exclude list<br />
Finished</p>
<p>wget.x86_64&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.10.2-7.el5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; base&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
[root@server ~]#</p>
<p>
Adding a root nameserver to /etc/resolv.conf is meant to be a temporary measure, so you will need to take a look at the other nameservers listed in the file and make sure they are valid recursive nameservers that will do host look-ups for domains that they do not host.</p>
<p>EasyApache should work properly now.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2008/07/easyapache-failing-on-centos-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to find MAC address in CentOS</title>
		<link>http://wiredgorilla.com.au/2008/07/how-to-find-mac-address-in-centos/</link>
		<comments>http://wiredgorilla.com.au/2008/07/how-to-find-mac-address-in-centos/#comments</comments>
		<pubDate>Sat, 19 Jul 2008 01:53:22 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Techno Babble]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Open SSH and type the following and press Enter: /sbin/ifconfig &#124; grep -i hwaddr The sequence of hexadecimal digits that appears to the right of eth0 HWAddr (e.g. 08:00:27:ED:DA:8b) is your network card&#8217;s MAC Address No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Open SSH and type the following and press Enter:</p>
<p><span style="color: #0000ff"> /sbin/ifconfig | grep -i <em>hwaddr</em></span></p>
<p>The sequence of hexadecimal digits that appears to the right of eth0 <em><span class="highlightedSearchTerm">HWAddr</span> </em>(e.g. <em>08:00:27:ED:DA:8b</em>) is<br />
your network card&#8217;s MAC Address</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2008/07/how-to-find-mac-address-in-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problems with CenotOS5 &#8211; cPanel and BIND</title>
		<link>http://wiredgorilla.com.au/2008/06/problems-with-cenotos5-cpanel-and-bind/</link>
		<comments>http://wiredgorilla.com.au/2008/06/problems-with-cenotos5-cpanel-and-bind/#comments</comments>
		<pubDate>Sun, 22 Jun 2008 14:06:36 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Techno Babble]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[If you have issues with cPanel running CentOS5 with BIND then the easiest way is to downgrade BIND to 9.2.4 The reason you&#8217;re having trouble is because CentOS 5 uses bind-9.3 and CentOS 4 uses bind-9.2 &#8211; The changes between these versions is significant enough that cPanel won&#8217;t work with it properly. For instance by


No related posts.]]></description>
			<content:encoded><![CDATA[<p>
If you have issues with cPanel running CentOS5 with BIND then the easiest way is to downgrade BIND to 9.2.4
</p>
<p>
The reason you&#8217;re having trouble is because CentOS 5 uses bind-9.3 and CentOS 4 uses bind-9.2 &#8211; The changes between these versions is significant enough that cPanel won&#8217;t work with it properly.
</p>
<p>
For instance by default there is no /etc/named.conf file created when bind-9.3 is installed and the default named.conf file for bind-9.3 is significantly different than in older versions.</p>
<p>Until the code is updated to work with bind-9.3, I have found the workaround to be to remove bind-9.3 packages and install bind-9.2 packages as follows:<br />
&nbsp;
</p>
<p><span id="more-127"></span>
<p>
Log into your servers via SSH and firstly we BIND
</p>
<p>
<br />
<span style="color: #ff0000">yum remove bind-*</span>
</p>
<p>
<span style="color: #ff0000">yum remove bind</span></p>
<p>Then we ll install the old BIND rpm&#8217;s from a mirror closed to you
</p>
<p>
<span style="color: #339966">rpm -Uvh &#8211;nodeps http://ftp.monash.edu.au/pub/linux/CentOS/4.6/os/x86_64/CentOS/RPMS/bind-libs-9.2.4-28.el4.x86_64.rpm<br />
rpm -Uvh &#8211;nodeps http://ftp.monash.edu.au/pub/linux/CentOS/4.6/os/x86_64/CentOS/RPMS/bind-utils-9.2.4-28.el4.x86_64.rpm<br />
rpm -Uvh &#8211;nodeps http://ftp.monash.edu.au/pub/linux/CentOS/4.6/os/x86_64/CentOS/RPMS/bind-9.2.4-28.el4.x86_64.rpm<br />
rpm -Uvh &#8211;nodeps http://ftp.monash.edu.au/pub/linux/CentOS/4.6/os/x86_64/CentOS/RPMS/caching-nameserver-7.3-3.noarch.rpm</span></p>
<p>simlink this <br />
<span style="color: #339966">ln -s ../../lib/libcrypto.so.0.9.8b /usr/lib/libcrypto.so.4</span></p>
<p>service named start
</p>
<p>
The &#8211;nodeps flag is tagged on because of dependency &quot;libcrypto.so.4&quot; for the bind packages. <br />
IMPORTANT! </p>
<p>Run those cPanel SSH comands
</p>
<p>
<span style="color: #339966">/scripts/fixndc<br />
/scripts/rebuildnamedconf</span></p>
<p>
You&#8217;ll also need to edit /etc/yum.conf and add a line in the [main] section<br />
&nbsp;that starts &quot;exclude=&quot; or append to this line if it already exists &quot;<span style="color: #ff0000">bind* caching-nameserver</span>&quot;.
</p>
<p>
<span style="color: #339966">nano&nbsp; /etc/yum.conf</span>
</p>
<p>
<span style="color: #339966"></span><br />
This prevents yum from updating bind-9.2 to bind-9.3 and in the process breaking cPanel.<br />
If you fail to do this when cPanel update is run BIND will get updated and the DNS functionality of cPanel will break. <br />
I hope this helps shed some light on this anoying issue.
</p>
<p>
&nbsp;
</p>
<p>
PS: To find the dowload mirrors appropiate to your location please go here
</p>
<p>http://www.centos.org/modules/tinycontent/index.php?id=13&nbsp;</p>
<p>
&nbsp;</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2008/06/problems-with-cenotos5-cpanel-and-bind/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>kernel yum upgrade</title>
		<link>http://wiredgorilla.com.au/2008/06/kernel-yum-upgrade/</link>
		<comments>http://wiredgorilla.com.au/2008/06/kernel-yum-upgrade/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 23:41:29 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Techno Babble]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[check what kernel you are running at the moment uname -a and to upgrade your kernel yum update \kernel* check if your kernel is added to grub cat /boot/grub/grub.conf and then reboot shutdown -rf now No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>check what kernel you are running at the moment</p>
<p><span style="color: #0000ff">uname -a</span></p>
<p><span style="color: #000000"><br />
and t</span><span style="color: #0000ff"><span style="color: #000000">o upgrade your kernel</span><br />
</span></p>
<p><span style="color: #0000ff">yum update \kernel*</span></p>
<p>check if your kernel is added to grub</p>
<p><span style="color: #0000ff">cat /boot/grub/grub.conf</span></p>
<p>and then reboot</p>
<p><span style="color: #0000ff"><br />
shutdown -rf now</span></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2008/06/kernel-yum-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing SSH public key for extra security on your Linux server</title>
		<link>http://wiredgorilla.com.au/2008/06/installing-ssh-public-key-for-extra-security-on-your-linux-server/</link>
		<comments>http://wiredgorilla.com.au/2008/06/installing-ssh-public-key-for-extra-security-on-your-linux-server/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 22:16:53 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Techno Babble]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Log into SSH mkdir $HOME/.ssh chmod -R og= $HOME/.ssh cd .ssh nano authorized_keys2 Add your key you created with PuttyGen , make absolutly sure you r key is in one line ONLY , otherwise it wont work! Adjust your&#160; sshd_config nano /etc/ssh/sshd_config to RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile&#160;&#160;&#160;&#160;&#160; .ssh/authorized_keys2 No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>
Log into SSH
</p>
<p>
<span style="color: #008000">mkdir $HOME/.ssh<br />
chmod -R og= $HOME/.ssh<br />
cd .ssh<br />
nano authorized_keys2</span>
</p>
<p>
<span style="color: #008000"></span>Add your key you created with <a href="http://the.earth.li/~sgtatham/putty/latest/x86/puttygen.exe" target="_blank">PuttyGen</a> , make absolutly sure you r key is in one line ONLY , otherwise it wont work!
</p>
<p>
Adjust your&nbsp; <span style="color: #000000">sshd_config</span>
</p>
<p>
<span style="color: #008000">nano /etc/ssh/sshd_config</span>
</p>
<p>
<span style="color: #000000">to</span></p>
<p><span style="color: #008000"><br />
RSAAuthentication yes<br />
PubkeyAuthentication yes<br />
AuthorizedKeysFile&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ssh/authorized_keys2</span>
</p>
<p><span id="more-343"></span></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2008/06/installing-ssh-public-key-for-extra-security-on-your-linux-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing and configuring Windows CDP Agents</title>
		<link>http://wiredgorilla.com.au/2008/06/installing-and-configuring-windows-cdp-agents/</link>
		<comments>http://wiredgorilla.com.au/2008/06/installing-and-configuring-windows-cdp-agents/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 16:42:06 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Techno Babble]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[R1Soft CDP is a easy to install and use continous data protection system, primarily targeted at the hosting market. It backups up multiple servers to a central backup server; multiple backup windows can be performed per day, and files or even the whole disk can be restored from the image. This tutorial will show you


No related posts.]]></description>
			<content:encoded><![CDATA[<p>R1Soft CDP is a easy to install and use continous data protection system, primarily targeted at the hosting market. It backups up multiple servers to a central backup server; multiple backup windows can be performed per day, and files or even the whole disk can be restored from the image. This tutorial will show you how to install the Windows Agent on a server which you want to be backed up, and how to configure it.<br />
<br /><span id="more-351"></span>
<p>
Firstly login to your Windows server via Remote Desktop, launch IE, and go to the following address:
</p>
<p>http://download.r1soft.com</p>
<p>
Click on the Windows Stable link under CDP Agent, and download the latest Windows Agent. Once it is downloaded, run it.
</p>
<p>
You will see the following screen:
</p>
<p>
{gallery}winagent1{/gallery}
</p>
<p>
This is just a typical Windows installation program; follow through the prompts and install it. You will then be shown the following screen:
</p>
<p>
{gallery}winagent2{/gallery}
</p>
<p>
&nbsp;Click on Finish, and the Windows Agent Key Utility will load. Click on Next, accept the license agreement, and you will be presented with the following screen:
</p>
<p>
{gallery}winagent3{/gallery}
</p>
<p>
Click on CDP Server Allow, and then click on the &quot;Add Server Key&quot; button (padlock with the little green +).&nbsp; Leave the protocol as http and the port as 80 (unless your setup is different; if so, adjust accordingly)and enter the host name of your central backup server. Click OK, and the utility will add the backup server key to the server to be backed up.
</p>
<p>
One last thing to do; open up TCP port 1167 on the server firewall.<br />
This can be done through the Windows Firewall or your hosting control panel (e.g. Plesk).
</p>
<p>
Everything is now completed on the server to be backed up; now you<br />
just need to add it in the CDP interface. Login as administrator and<br />
click on the New Host button.
</p>
<p>
{gallery}winagent4{/gallery}
</p>
<p>
Now fill out the form like this:</p>
<p>Host Name or IP: The IP address/hostname of the server you just installed the agent on.<br />
Host Description: A description of the server you installed the agent on<br />
Host Type: Select &quot;Windows&quot;<br />
Tick the Use Default Network Settings box</p>
<p>Leave both &quot;Licensed Addon Module&quot; checkboxes blank.
</p>
<p>
Now select the Volume you want the server to place the backups in, check the &quot;Create Disk Safe Next&quot; box, and click on OK. </p>
<p>These settings are usually fine for a standard CDP server setup;<br />
however, keep in mind that your server setup may mean that you need to<br />
use different settings from the ones listed here. </p>
<p>The next page contains Disk Safe configuration settings.
</p>
<p>
{gallery}agentcompression{/gallery}
</p>
<p>
The first,<br />
Compression Level, I would recommend setting to at least 1.<br />
Uncompressed backups can use up all the available disk space on your<br />
backup server quickly; setting the Compression Level to 1 can reduce<br />
backup size by up to 50% without too significant a hit on CPU<br />
consumption. Leaving the Defragment setting at 5% is fine.
</p>
<p>
I would not recommend encryption unless the data you are backing up sensitive data. Now click on OK.</p>
<p>You should now be directed to the host summary page. CDP<br />
automatically attempts to find the host; click on History at the top<br />
and see if it was successful or not.
</p>
<p>
{gallery}hosthistory{/gallery}
</p>
<p>
If it was, you can now start the<br />
first backup and setup a recurring backup schedule to your liking in<br />
the Backup and Restore tab in the host&#8217;s page.
</p>
<p>
{gallery}backupandrestore{/gallery}
</p>
<p>
Here is a brief overview of setting up a recurring backup schedule:
</p>
<p>
1. Login to CDP as admin<br />
2. Click on the Host<br />
3. Click on the &quot;Backup and Restore&quot; option<br />
4. Click on &quot;Schedule Backup&quot;
</p>
<p>
Now fill out the settings to your liking. If you have a separate backup drive, I recommend skipping it.&nbsp;
</p>
<p>
If you now need to setup a granular MySQL backup using the MySQL addon, click on the MySQL button.
</p>
<p>
{gallery}agentmysql{/gallery}
</p>
<p>
Fill out the description and the root username and password of your MySQL server. I recommend changing the Connection Type to Socket File &#8211; the default socket file location on CentOS servers is:
</p>
<p>
/var/lib/mysql/mysql.sock
</p>
<p>
CDP will now backup your MySQL databases table by table in line with your backup schedule.&nbsp;
</p>
<p>
All done, you have setup a Windows server to be backed up by R1soft <img src='http://wiredgorilla.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
<p>
&nbsp;
</p>
<p>
&nbsp;</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2008/06/installing-and-configuring-windows-cdp-agents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recover broken systems with SystemRescueCD</title>
		<link>http://wiredgorilla.com.au/2008/06/recover-broken-systems-with-systemrescuecd/</link>
		<comments>http://wiredgorilla.com.au/2008/06/recover-broken-systems-with-systemrescuecd/#comments</comments>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Techno Babble]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[SystemRescueCD is a powerful, expansive live cd which is useful for recovering broken systems. This tutorial will guide you through how to get it up and running and how to perform some basic recovery procedures. &#160; First of all, download the latest disc image from the SystemRescueCD website: http://www.sysresccd.org/Main_Page Burn it to disc, pop it


No related posts.]]></description>
			<content:encoded><![CDATA[<p>
SystemRescueCD is a powerful, expansive live cd which is useful for recovering broken systems. This tutorial will guide you through how to get it up and running and how to perform some basic recovery procedures.
</p>
<p>
&nbsp;
</p>
<p><span id="more-342"></span>
<p>
First of all, download the latest disc image from the SystemRescueCD website:
</p>
<p>http://www.sysresccd.org/Main_Page</p>
<p>
Burn it to disc, pop it in the CD drive of the server and boot. Check in BIOS to make sure the cdrom drive has boot priority. Then reboot and the server should boot into SystemRescueCD.
</p>
<p>
You can pass a number of options to the operating system before it boots; I find the following the most useful:
</p>
<p>
docache &#8211; Load the entire OS into RAM, freeing up the CD drive<br />
rootpass &#8211; Define the root password, useful for SSH<br />
dodhcp &#8211; Try to enable networking via DHCP
</p>
<p>
These parameters are passed like so:
</p>
<p>
rescuecd rootpass=password docache
</p>
<p>
More options can be viewed by pressing the F keys.
</p>
<p>
Once you have entered the options you want (always remember to put rescuecd first), press enter to boot. Once the system has booted, you will be presented with a standard root command prompt. If you did not choose DHCP at the boot prompt, you can either do it now by typing:
</p>
<p>
dhcpcd eth0&nbsp; (replace eth0 with another network device if necessary)
</p>
<p>
Alternatively, you can set up the network manually by using this command:
</p>
<p>
net-setup eth0&nbsp;
</p>
<p>
Once the network is setup, you can SSH into the server; SSH is started automatically on boot.
</p>
<p>
Probably the most useful aspect of a live cd is copying files from a partition on the server hard disk, which is otherwise inaccessible. To mount a partition, first of all get a list of existing partitions:
</p>
<p>
fdisk -l&nbsp;
</p>
<p>
Here is an example output:
</p>
<p>
Disk /dev/sda: 150.0 GB, 150039945216 bytes<br />
255 heads, 63 sectors/track, 18241 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes<br />
Disk identifier: 0x0009e255</p>
<p>&nbsp;&nbsp; Device Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Blocks&nbsp;&nbsp; Id&nbsp; System<br />
/dev/sda1&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 64&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 514048+&nbsp; 83&nbsp; Linux<br />
/dev/sda2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 65&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 586&nbsp;&nbsp;&nbsp;&nbsp; 4192965&nbsp;&nbsp; 82&nbsp; Linux swap / Solaris<br />
/dev/sda3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 587&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1108&nbsp;&nbsp;&nbsp;&nbsp; 4192965&nbsp;&nbsp; 83&nbsp; Linux<br />
/dev/sda4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1109&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 18241&nbsp;&nbsp; 137620822+&nbsp;&nbsp; 5&nbsp; Extended<br />
/dev/sda5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1109&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 18241&nbsp;&nbsp; 137620791&nbsp;&nbsp; 83&nbsp; Linux
</p>
<p>
In this case, we will mount the partition sda5. Navigate to the mnt directory:
</p>
<p>
cd /mnt
</p>
<p>
Create a directory with the same name as the partition:
</p>
<p>
mkdir sda5
</p>
<p>
Now mount the partition with the following command:
</p>
<p>
mount /dev/sda5 /mnt/sda5
</p>
<p>
This command should work for most Linux filesystems (ext2, ext3 etc). NTFS filesystems must be mounted by using the NTFS-3g driver; here is an example:
</p>
<p>
mount -t ntfs-3g /dev/sda5 /mnt/sda5
</p>
<p>
Once the disk is mounted, you can perform all the usual filesystem operations e.g. read, copy, write, delete. An example scenario would be if a web server had died due to hardware failure and you need to recover a specific home directory. A fast way of doing this is to simply plug in a USB stick using the instructions above and transfer the directory across to that.
</p>
<p>
Once the USB stick is mounted, browse to the home folder and locate the folder you want to transfer. Then, use the following command:
</p>
<p>
cp -v -R examplefolder /mnt/sdc1/
</p>
<p>
Replace examplefolder with the folder name, and sdc1 with the partition name. The -v switch enables verbose mode (so it tells you what its doing in a detail), and -R enables recursive mode, so it goes into the directory and copies all files within it.&nbsp;
</p>
<p>
There are a number of partitioning tools included in SystemRescueCD such as cfdisk and parted.
</p>
<p>
There is also a full graphical environment including tools like gparted for graphical manipulation of partitions. To start the graphical system, just type wizard at the command line. &nbsp;
</p>
<p>
&nbsp;</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2008/06/recover-broken-systems-with-systemrescuecd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing and configuring Linux CDP Agents</title>
		<link>http://wiredgorilla.com.au/2008/06/installing-and-configuring-linux-cdp-agents/</link>
		<comments>http://wiredgorilla.com.au/2008/06/installing-and-configuring-linux-cdp-agents/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 14:27:28 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Techno Babble]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[R1Soft CDP is a easy to install and use continous data protection system, primarily targeted at the hosting market. It backups up multiple servers to a central backup server; multiple backup windows can be performed per day, and files or even the whole disk can be restored from the image. This tutorial will show you


No related posts.]]></description>
			<content:encoded><![CDATA[<p>R1Soft CDP is a easy to install and use continous data protection<br />
system, primarily targeted at the hosting market. It backups up<br />
multiple servers to a central backup server; multiple backup windows<br />
can be performed per day, and files or even the whole disk can be<br />
restored from the image. This tutorial will show you how to install the Linux Agent on a server which you want to be backed up, and how to<br />
configure it.</p>
<p><span id="more-341"></span></p>
<p>First, login to the new server as root. Then browse to the following page:</p>
<p><span style="color: #008000"></p>
<p>http://download.r1soft.com/</span></p>
<p>Click on the Linux Stable link under CDP Agent, and copy the link location of the latest CentOS agent.</p>
<p>Now, go back to the server, and execute the following command:</p>
<p>For 64bit CentOS : <span style="color: #0000ff">wget http://download.r1soft.com/d/linux-agent/1.46.5-x86_64/linux-agent-64-1.46.5-centos.run</span></p>
<p>For 32bit CentOS : <span style="color: #0000ff">wget http://download.r1soft.com/d/linux-agent/1.46.5-x86/linux-agent-32-1.46.5-centos.run</span></p>
<p><span style="color: #000000">for newer kernels go to the </span><span style="color: #000000"><a href="http://download.r1soft.com/s/;jsessionid=fb2q7t2n1fro?action=DownloadAction&amp;downloadType=2&amp;transaction=DownloadAction&amp;step=2&amp;stableRelease=false" target="_blank">Pre<br />
Release</a><br />
section</span></p>
<p><span style="color: #0000ff">wget http://download.r1soft.com/d/linux-agent/1.47.0-x86_64/linux-agent-64-1.47.0-centos.run</span></p>
<p>The link will look different depending on the release you download. Once this has finished, execute the file:</p>
<p><span style="color: #0000ff"><br />
sh linux-agent-64-1.46.5-centos.run</span></p>
<p>or</p>
<p><span style="color: #0000ff">sh linux-agent-32-1.46.5-centos.run</span></p>
<p>If you are installing a custom kernel then you need to install the headers first</p>
<p><span style="color: #0000ff">yum install kernel-devel</span></p>
<p>A graphical wizard will appear. Just go through here accepting the defaults; they usually work fine. Once this is done, we need to create the server key. Browse to the following directory:</p>
<p><span style="color: #0000ff"><br />
cd /etc/buagent/server.allow/</span></p>
<p>Now create a file called the IP of your main backup server.</p>
<p><span style="color: #0000ff"><br />
nano 111.222.333.444 </span>(Your backup server IP)</p>
<p>Browse to your main backup server, login as administrator, click on Options, then click on Server Key. You need to copy this key into the file you just created on the server to be backed up. Once this is done, save the file. The path to the file should look like this:</p>
<p>/etc/buagent/server.allow/SERVER_IP</p>
<p>One last thing to do; open up TCP port 1167 on the server firewall. This can easily be done through a iptables frontend like csf, or just use iptables via the command line.</p>
<p>Everything is now completed on the server to be backed up; now you just need to add it in the CDP interface. Login as administrator and click on the New Host button.</p>
<p>{gallery}winagent4{/gallery}</p>
<p>Now fill out the form like this:</p>
<p>Host Name or IP: The IP address/hostname of the server you just installed the agent on.</p>
<p>Host Description: A description of the server you installed the agent on</p>
<p>Host Type: Select &#8220;Linux&#8221;</p>
<p>Tick the Use Default Network Settings box</p>
<p>In the &#8220;Licensed Add-on Modules&#8221; section, you need to tick the Control Panel option if you want CDP to integrate with a hosting</p>
<p>control panel (like cPanel or Plesk), and you need to tick the MySQL module if you want CDP to perform a proper granular (table by</p>
<p>table) backup of the databases on the server.</p>
<p>Now select the Volume you want the server to place the backups in, check the &#8220;Create Disk Safe Next&#8221; box, and click on OK.</p>
<p>These settings are usually fine for a standard CDP server setup; however, keep in mind that your server setup may mean that you need to use different settings from the ones listed here.</p>
<p>The next page contains Disk Safe configuration settings.</p>
<p>{gallery}agentcompression{/gallery}</p>
<p>The first, Compression Level, I would recommend setting to at least 1. Uncompressed backups can use up all the available disk space on your backup server quickly; setting the Compression Level to 1 can reduce backup size by up to 50% without too significant a hit on CPU consumption. Leaving the Defragment setting at 5% is fine.</p>
<p>I would not recommend encryption unless the data you are backing up sensitive data. Now click on OK.</p>
<p>You should now be directed to the host summary page. CDP automatically attempts to find the host; click on History at the top and see if it was succesful or not.</p>
<p>{gallery}hosthistory{/gallery}</p>
<p>If it was, you can now start the first backup and setup a recurring backup schedule to your liking in the Backup and Restore tab in the host&#8217;s page.</p>
<p>{gallery}backupandrestore{/gallery}</p>
<p>Here is a brief overview of setting up a recurring backup schedule:</p>
<p>1. Login to CDP as admin</p>
<p>2. Click on the Host</p>
<p>3. Click on the &#8220;Backup and Restore&#8221; option</p>
<p>4. Click on &#8220;Schedule Backup&#8221;</p>
<p>Now fill out the settings to your liking. Do backup the swap partition (CDP will skip it anyway), disable the tmp partition. If you have a second hard drive for backups (for example, for cPanel backups), do not include it.</p>
<p>If you now need to setup a granular MySQL backup using the MySQL addon, click on the MySQL button.</p>
<p>{gallery}agentmysql{/gallery}</p>
<p>Fill out the description and the root username and password of your<br />
MySQL server. I recommend changing the Connection Type to Socket File -<br />
the default socket file location on CentOS servers is:</p>
<p>/var/lib/mysql/mysql.sock</p>
<p>CDP will now backup your MySQL databases table by table in line with your backup schedule.</p>
<p>All done, you have setup a Linux server to be backed up by R1soft <img src='http://wiredgorilla.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2008/06/installing-and-configuring-linux-cdp-agents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
