<?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; Linux Tutorials</title>
	<atom:link href="http://wiredgorilla.com.au/category/linux-server-managment/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>Rebuilding/Restarting Exim Mail Server</title>
		<link>http://wiredgorilla.com.au/2010/02/rebuildingrestarting-exim-mail-server/</link>
		<comments>http://wiredgorilla.com.au/2010/02/rebuildingrestarting-exim-mail-server/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 01:24:53 +0000</pubDate>
		<dc:creator>jada</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Exim]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[Restart]]></category>
		<category><![CDATA[Service]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://wiredgorilla.com.au/?p=667</guid>
		<description><![CDATA[When troubleshooting the Exim log file: tail -f /var/log/exim_mainlog If you need to restart or rebuild Exim, you can dump your databases * /etc/exim.conf * /var/spool/exim/db Which Exim just rebuilds automatically by issuing the following command via SSH: rm -fv /var/spool/exim/db/* Then to start Exim: /scripts/eximup &#8211;force No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>When troubleshooting the Exim log file:</p>
<p>tail -f /var/log/exim_mainlog</p>
<p>If you need to restart or rebuild Exim, you can dump your databases<br />
* /etc/exim.conf<br />
* /var/spool/exim/db</p>
<p>Which Exim just rebuilds automatically by issuing the following command via SSH:</p>
<p>rm -fv /var/spool/exim/db/*</p>
<p>Then to start Exim:</p>
<p>/scripts/eximup &#8211;force</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2010/02/rebuildingrestarting-exim-mail-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux server tip: force reboot/shutdown</title>
		<link>http://wiredgorilla.com.au/2009/04/linux-server-tip-force-rebootshutdown/</link>
		<comments>http://wiredgorilla.com.au/2009/04/linux-server-tip-force-rebootshutdown/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 15:31:05 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>

		<guid isPermaLink="false">http://wiredgorilla.com.au/?p=661</guid>
		<description><![CDATA[Forcing reboot A Linux Server is not Windows XP and if reboot fail you usually still connect by SSH and do something. This commands will show you how to remotely hard reboot machine. Hard reboot mean that shutdown scripts will not run and machine reboot immediately without syncing hard disk drives, shutdown applications etc, it’s


No related posts.]]></description>
			<content:encoded><![CDATA[<p><strong>Forcing reboot</strong></p>
<p>A Linux Server is not Windows XP and if reboot fail you usually still connect by SSH and do something. This commands will show you how to remotely hard reboot machine. Hard reboot mean that shutdown scripts will not run and machine reboot immediately without syncing hard disk drives, shutdown applications etc, it’s more like hitting the reset button.</p>
<p><span style="color: #ff0000;">echo 1 &gt; /proc/sys/kernel/sysrq</span></p>
<p><span style="color: #ff0000;"> echo b &gt; /proc/sysrq-trigger</span></p>
<p>This commands enable sysrq and after this calls fast reboot. If you want to force shutdown machine try this.</p>
<p><strong>Force shutdown</strong></p>
<p><span style="color: #ff0000;">echo 1 &gt; /proc/sys/kernel/sysrq</span></p>
<p><span style="color: #ff0000;"> echo o &gt; /proc/sysrq-trigger</span></p>
<p>This came handy, when I had a server that had some IO error and it can no longer read from disk, only few cached binaries into memory kept it running (kernel, SSHD, bash), I could still access the machine via SSH but can no longer do anything, forcing the reboot as mentioned above was my only resort, and it worked like charm…</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2009/04/linux-server-tip-force-rebootshutdown/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Set Up A Load-Balanced MySQL Cluster With MySQL 5.1</title>
		<link>http://wiredgorilla.com.au/2009/04/set-loadbalanced-mysql-cluster-mysql-51/</link>
		<comments>http://wiredgorilla.com.au/2009/04/set-loadbalanced-mysql-cluster-mysql-51/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 01:05:47 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[load balance]]></category>

		<guid isPermaLink="false">http://wiredgorilla.com.au/?p=657</guid>
		<description><![CDATA[This tutorial is based on Falko Timme&#8217;s tutorial for MySQL Cluster 5.0. It shows how to configure a MySQL 5.1 cluster with five nodes: 1 x management, 2 x storage nodes and 2 x balancer nodes. This cluster is load-balanced by an Ultra Monkey package which provides heartbeat (for checking if the other node is


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 is based on Falko Timme&#8217;s tutorial for MySQL Cluster 5.0. It shows how to configure a MySQL 5.1 cluster with five nodes: 1 x management, 2 x storage nodes and 2 x balancer nodes. This cluster is load-balanced by an Ultra Monkey package which provides heartbeat (for checking if the other node is still alive) and ldirectord (to split up the requests to the nodes of the MySQL cluster).<br />
<span id="more-657"></span></p>
<p>In this document I use Debian Etch 4.0 for all nodes. Therefore the setup might differ a bit for other distributions. The two data nodes were x64 to use all of the 8GB RAM. Servers were compiled from source so you should be able to make it running on any platform. The MySQL version I use in this setup is 5.1.24-rc. It&#8217;s a release candidate, but I wanted to use 5.1 to take advantage of Memory-Disk Based tables.</p>
<p>Beginning with MySQL 5.1.6, it is possible to store the non-indexed columns of NDB tables on disk, rather than in RAM as with previous versions of MySQL Cluster.[More here]</p>
<p>This howto is just a scratch to make it running, for many of you I am suggesting to read some off docs from MySQL page to be prepared to how manage the whole cluster and always know whats going on.</p>
<p>This document comes without warranty of any kind! Bare in mind you need to make tests and prepare your databases before using it in production mode.</p>
<p><a href="http://www.howtoforge.com/setting-up-a-loadbalanced-mysql-cluster-with-mysql5.1">http://www.howtoforge.com/setting-up-a-loadbalanced-mysql-cluster-with-mysql5.1</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/04/set-loadbalanced-mysql-cluster-mysql-51/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to update Virtuozzo Node to the newest Kernel</title>
		<link>http://wiredgorilla.com.au/2009/04/update-virtuozzo-kernel/</link>
		<comments>http://wiredgorilla.com.au/2009/04/update-virtuozzo-kernel/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 13:38:57 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>

		<guid isPermaLink="false">http://wiredgorilla.com.au/?p=654</guid>
		<description><![CDATA[Virtuozzo includes a utility to update itself and the included templates. To run this, you will need to ssh into the hardware node and execute the command: vzup2date In order to update the templates, add a -t to the command thusly: vzup2date -t It should be noted that if Virtuozzo is installed on the server,


Related posts:<ol><li><a href='http://wiredgorilla.com.au/2010/03/virtuozzo-fixing-windows-vps-system-errors/' rel='bookmark' title='Permanent Link: Virtuozzo: Fixing Windows VPS Container Start Errors'>Virtuozzo: Fixing Windows VPS Container Start Errors</a> <small>Due to the way the Virtuozzo virtualization platform works, all...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Virtuozzo includes a utility to update itself and the included templates. To run this, you will need to ssh into the hardware node and execute the command:</p>
<p>vzup2date</p>
<p>In order to update the templates, add a -t to the command thusly:</p>
<p>vzup2date -t</p>
<p>It should be noted that if Virtuozzo is installed on the server, the standard Redhat up2date command should never be run.</p>
<p>If you are running Virtuozzo on a Windows server, then you can run the Virtuozzo update utility accessed through the Start menu.</p>


<p>Related posts:<ol><li><a href='http://wiredgorilla.com.au/2010/03/virtuozzo-fixing-windows-vps-system-errors/' rel='bookmark' title='Permanent Link: Virtuozzo: Fixing Windows VPS Container Start Errors'>Virtuozzo: Fixing Windows VPS Container Start Errors</a> <small>Due to the way the Virtuozzo virtualization platform works, all...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2009/04/update-virtuozzo-kernel/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>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>How to Reset your Linux Root Password</title>
		<link>http://wiredgorilla.com.au/2009/03/reset-linux-root-password/</link>
		<comments>http://wiredgorilla.com.au/2009/03/reset-linux-root-password/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 12:02:45 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>

		<guid isPermaLink="false">http://wiredgorilla.com/?p=434</guid>
		<description><![CDATA[Whenever you can&#8217;t remember Root password, you can read this tutorial and do step by step to Reset it &#8230; You can log in with single-user mode and create a new root password. Reboot your computer. When GRUB is presenting the menu list, follow those instructions: use the arrows to select the boot entry you


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Whenever you can&#8217;t remember <span style="font-weight: bold;">Root password</span>, you can read this tutorial and do step by step to Reset it &#8230;    <span class="fullpost">You can log in with single-user mode and create a new root password.<br />
Reboot your computer. When GRUB is presenting the menu list, follow those instructions:</span></p>
<p><span class="fullpost"><span id="more-434"></span></span></p>
<ul>
<li><span class="fullpost">use the arrows to select the boot entry you want to 	modify</span></li>
<li><span class="fullpost">press <span style="color: #ff0000;"><strong>e</strong></span> to edit the entry</span></li>
<li><span class="fullpost">use the arrows to go to kernel line</span></li>
<li><span class="fullpost">press <strong><span style="color: #ff0000;">e </span></strong>to edit this entry</span></li>
<li><span class="fullpost">at the end of the line add the word <span style="font-weight: bold;"><span style="color: #ff0000;">single </span>(there should be a space between like  / single) </span></span></li>
<li><span class="fullpost">press ENTER to go back to the parent menu</span></li>
<li><span class="fullpost">press <strong><span style="color: #ff0000;">b</span></strong> to boot this kernel</span></li>
</ul>
<p><span class="fullpost"><br />
As root, changing password <span style="font-weight: bold;">does not ask for your old password</span>. Now, you can change root&#8217;s password by typing:</span></p>
<p>bash# <span style="font-weight: bold; color: #ff0000;">passwd</span><span style="color: #ff0000;"> root</span></p>
<p>You&#8217;ll be asked to re-type the password for verification. Once you&#8217;re finished, the password will be changed and you can reboot by typing <span style="font-weight: bold; color: #ff0000;">shutdown -r</span> now at the prompt; then you can log in to root as before</p>
<h2><span style="font-size: 12pt;">My boot loader is LILO</span></h2>
<p>At LILO boot loader type linux single and press [ENTER] key:<br />
<code>Boot: <span style="color: #ff0000;"><strong>linux single</strong></span></code><br />
When you get the # prompt you will need to type passwd root to reset password:<br />
<code># <span style="color: #ff0000;">passwd</span></code><br />
Reboot system:<br />
<code># <span style="color: #ff0000;">sync</span><br />
# <span style="color: #ff0000;">reboot</span></code></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2009/03/reset-linux-root-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS &#8211; what happened to netconfig in 5.1</title>
		<link>http://wiredgorilla.com.au/2009/03/centos-happened-netconfig-51/</link>
		<comments>http://wiredgorilla.com.au/2009/03/centos-happened-netconfig-51/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 07:33:12 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>

		<guid isPermaLink="false">http://wiredgorilla.com/?p=427</guid>
		<description><![CDATA[For whatever reason CentOS decided to drop netconfig and renamed it to system-config-network No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>For whatever reason CentOS decided to drop netconfig and renamed it to</p>
<pre><span style="font-size: 12pt; font-family: arial,helvetica,sans-serif; color: #ff0000;">system-config-network</span></pre>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2009/03/centos-happened-netconfig-51/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Common SSH Commands and Linux Shell Commands</title>
		<link>http://wiredgorilla.com.au/2009/03/common-ssh-commands-linux-shell-commands/</link>
		<comments>http://wiredgorilla.com.au/2009/03/common-ssh-commands-linux-shell-commands/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 07:30:20 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>

		<guid isPermaLink="false">http://wiredgorilla.com/?p=425</guid>
		<description><![CDATA[We&#8217;ve put together some of the more frequently used SSH commands or linux shell commands, and organized them by name so you can easily find a command, their description and how to use it. This guide will continue to be updated and should not be considered a complete list of SSH commands or linux shell


No related posts.]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve put together some of the more frequently used SSH commands or linux shell commands, and organized them by name so you can easily find a command, their description and how to use it. This guide will continue to be updated and should not be considered a complete list of SSH commands or linux shell commands, but commands, we found, often used. If you would like to add to this guide, please email us and let us know.</p>
<p><span id="more-425"></span></p>
<p>Common SSH Commands or Linux Shell Commands,<br />
ls : list files/directories in a directory, comparable to dir in windows/dos.<br />
ls -al : shows all files (including ones that start with a period), directories,    and details attributes for each file.</p>
<p>cd : change directory ? ? cd /usr/local/apache : go to /usr/local/apache/    directory<br />
cd ~ : go to your home directory<br />
cd &#8211; : go to the last directory you were in<br />
cd .. : go up a directory cat : print file contents to the screen</p>
<p>cat filename.txt : cat the contents of filename.txt to your screen</p>
<p>tail : like cat, but only reads the end of the file<br />
tail /var/log/messages : see the last 20 (by default) lines of /var/log/messages<br />
tail -f /var/log/messages : watch the file continuously, while it&#8217;s being updated<br />
tail -200 /var/log/messages : print the last 200 lines of the file to the screen</p>
<p>more : like cat, but opens the file one screen at a time rather than all at    once<br />
more /etc/userdomains : browse through the userdomains file. hit to go to the    next page, to quit</p>
<p>pico : friendly, easy to use file editor<br />
pico /home/burst/public_html/index.html : edit the index page for the user&#8217;s    website.</p>
<p>vi : another editor, tons of features, harder to use at first than pico<br />
vi /home/burst/public_html/index.html : edit the index page for the user&#8217;s website.</p>
<p>grep : looks for patterns in files<br />
grep root /etc/passwd : shows all matches of root in /etc/passwd<br />
grep -v root /etc/passwd : shows all lines that do not match root</p>
<p>touch : create an empty file<br />
touch /home/burst/public_html/404.html : create an empty file called 404.html    in the directory /home/burst/public_html/</p>
<p>ln : create&#8217;s &#8220;links&#8221; between files and directories<br />
ln -s /usr/local/apache/conf/httpd.conf /etc/httpd.conf : Now you can edit /etc/httpd.conf    rather than the original. changes will affect the orginal, however you can delete    the link and it will not delete the original.</p>
<p>rm : delete a file<br />
rm filename.txt : deletes filename.txt, will more than likely ask if you really    want to delete it<br />
rm -f filename.txt : deletes filename.txt, will not ask for confirmation before    deleting.<br />
rm -rf tmp/ : recursively deletes the directory tmp, and all files in it, including    subdirectories. BE VERY CAREFULL WITH THIS COMMAND!!!</p>
<p>last : shows who logged in and when<br />
last -20 : shows only the last 20 logins<br />
last -20 -a : shows last 20 logins, with the hostname in the last field</p>
<p>w : shows who is currently logged in and where they are logged in from.</p>
<p>netstat : shows all current network connections.<br />
netstat -an : shows all connections to the server, the source and destination    ips and ports.<br />
netstat -rn : shows routing table for all ips bound to the server.</p>
<p>top : shows live system processes in a nice table, memory information, uptime    and other useful info. This is excellent for managing your system processes,    resources and ensure everything is working fine and your server isn&#8217;t bogged    down.<br />
top then type Shift + M to sort by memory usage or Shift + P to sort by CPU    usage</p>
<p>ps: ps is short for process status, which is similar to the top command. It&#8217;s    used to show currently running processes and their PID.<br />
A process ID is a unique number that identifies a process, with that you can    kill or terminate a running program on your server (see kill command).<br />
ps U username : shows processes for a certain user<br />
ps aux : shows all system processes<br />
ps aux &#8211;forest : shows all system processes like the above but organizes in    a hierarchy that&#8217;s very useful!</p>
<p>file : attempts to guess what type of file a file is by looking at it&#8217;s content.<br />
file * : prints out a list of all files/directories in a directory</p>
<p>du : shows disk usage.<br />
du -sh : shows a summary, in human-readble form, of total disk space used in    the current directory, including subdirectories.<br />
du -sh * : same thing, but for each file and directory. helpful when finding    large files taking up space.</p>
<p>wc : word count<br />
wc -l filename.txt : tells how many lines are in filename.txt</p>
<p>cp : copy a file<br />
cp filename filename.backup : copies filename to filename.backup<br />
cp -a /home/burst/new_design/* /home/burst/public_html/ : copies all files,    retaining permissions form one directory to another.</p>
<p>kill: terminate a system process<br />
kill -9 PID EG: kill -9 431<br />
kill PID EG: kill 10550<br />
Use top or ps ux to get system PIDs (Process IDs)</p>
<p>EG:<br />
PID TTY TIME COMMAND<br />
10550 pts/3 0:01 /bin/csh</p>
<p>10574 pts/4 0:02 /bin/csh</p>
<p>10590 pts/4 0:09 APP</p>
<p>Each line represents one process, with a process being loosely defined as a    running instance of a program. The column headed PID (process ID) shows the    assigned process numbers of the processes. The heading COMMAND shows the location    of the executed process.</p>
<p>Putting commands together<br />
Often you will find you need to use different commands on the same line. Here    are some examples. Note that the | character is called a pipe, it takes date    from one program and pipes it to another.<br />
&gt; means create a new file, overwriting any content already there.<br />
&gt;&gt; means tp append data to a file, creating a newone if it doesn not already    exist.<br />
&lt; send input from a file back into a command.</p>
<p>grep User /usr/local/apache/conf/httpd.conf |more<br />
This will dump all lines that match User from the httpd.conf, then print the    results to your screen one page at a time.</p>
<p>last -a &gt; /root/lastlogins.tmp<br />
This will print all the current login history to a file called lastlogins.tmp    in /root/</p>
<p>tail -10000 /var/log/exim_mainlog |grep domain.com |more<br />
This will grab the last 10,000 lines from /var/log/exim_mainlog, find all occurances    of domain.com (the period represents &#8216;anything&#8217;,<br />
&#8211; comment it out with a so it will be interpretted literally), then send it    to your screen page by page.</p>
<p>netstat -an |grep :80 |wc -l<br />
Show how many active connections there are to apache (httpd runs on port 80)</p>
<p>mysqladmin processlist |wc -l<br />
Show how many current open connections there are to mysql</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2009/03/common-ssh-commands-linux-shell-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving large files from one linux server to your new linux server</title>
		<link>http://wiredgorilla.com.au/2009/01/moving-large-files-linux-server-linux-server/</link>
		<comments>http://wiredgorilla.com.au/2009/01/moving-large-files-linux-server-linux-server/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 12:12:40 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>

		<guid isPermaLink="false">http://wiredgorilla.com/?p=449</guid>
		<description><![CDATA[Ok, so you like to move your 3 gig backup from your old server to your new server, but the the good old wget command is not doing the trick? There is an easy way around with the scp command Log into your old server where you want to move that big tar file from


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Ok, so you like to move your 3 gig backup from your old server to your new server, but the the good old <span style="color: #ff0000;">wget </span>command is not doing the trick?</p>
<p>There is an easy way around with the <span style="color: #ff0000;">scp </span>command</p>
<p><span id="more-449"></span></p>
<p>Log into your old server where you want to move that big tar file from and</p>
<blockquote><p><span style="color: #ff0000;">scp </span><span style="color: #3366ff;">yourlarge3gigfile.tgz   <script type="text/javascript"><!--
 &lt;! 
 var prefix = '&amp;#109;a' + 'i&amp;#108;' + '&amp;#116;o';
 var path = 'hr' + 'ef' + '=';
 var addy45584 = 'r&amp;#111;&amp;#111;t' + '&amp;#64;';
 addy45584 = addy45584 + 'n&amp;#101;ws&amp;#101;rv&amp;#101;rIP' + '&amp;#46;' + 'c&amp;#111;m';
 document.write( '&lt;a ' + path + '\'' + prefix + ':' + addy45584 + '\'&gt;' );
 document.write( addy45584 );
 document.write( '&lt;\/a&gt;' );
 // &gt;\n
// --></script><a href="mailto:root@newserverIP.com">root@newserverIP.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>:/home/</span><br />
(enter the 	root pass for the <span class="highlight">new</span> <span class="highlight">server</span> and let it copy the file over)</p></blockquote>
<p>If you run SSH on a different port (that is, not the default port 22) and you need to scp then it can be done by:</p>
<blockquote><p><span style="color: #3366ff;"><span style="color: #ff0000;">scp </span>-P &lt;port&gt; yourlarge3gigfile.tgz   <script type="text/javascript"><!--
 &lt;! 
 var prefix = '&amp;#109;a' + 'i&amp;#108;' + '&amp;#116;o';
 var path = 'hr' + 'ef' + '=';
 var addy45584 = 'r&amp;#111;&amp;#111;t' + '&amp;#64;';
 addy45584 = addy45584 + 'n&amp;#101;ws&amp;#101;rv&amp;#101;rIP' + '&amp;#46;' + 'c&amp;#111;m';
 document.write( '&lt;a ' + path + '\'' + prefix + ':' + addy45584 + '\'&gt;' );
 document.write( addy45584 );
 document.write( '&lt;\/a&gt;' );
 // &gt;\n
// --></script><a href="mailto:root@newserverIP.com">root@newserverIP.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>:/home/</span></p></blockquote>
<p>For example, if your ssh/scp is on port 2000 then:</p>
<blockquote><p><span style="color: #3366ff;"><span style="color: #ff0000;">scp </span>-P 2000 yourlarge3gigfile.tgz   <script type="text/javascript"><!--
 &lt;! 
 var prefix = '&amp;#109;a' + 'i&amp;#108;' + '&amp;#116;o';
 var path = 'hr' + 'ef' + '=';
 var addy45584 = 'r&amp;#111;&amp;#111;t' + '&amp;#64;';
 addy45584 = addy45584 + 'n&amp;#101;ws&amp;#101;rv&amp;#101;rIP' + '&amp;#46;' + 'c&amp;#111;m';
 document.write( '&lt;a ' + path + '\'' + prefix + ':' + addy45584 + '\'&gt;' );
 document.write( addy45584 );
 document.write( '&lt;\/a&gt;' );
 // &gt;\n
// --></script><a href="mailto:root@newserverIP.com">root@newserverIP.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>:/home/</span></p></blockquote>
<p>the above command will connect to scp/ssh port 2000 and copy the file to the remote user&#8217;s home directory in the remote server.</p>
<p>If you use SSH key based authentication then when you scp, scp will not ask for user&#8217;s password. It will copy your file to the remote server using your ssh private key. Example,</p>
<blockquote><p><span style="color: #3366ff;"><span style="color: #ff0000;">scp </span>-i your_private_key yourlarge3gigfile.tgz   <script type="text/javascript"><!--
 &lt;! 
 var prefix = '&amp;#109;a' + 'i&amp;#108;' + '&amp;#116;o';
 var path = 'hr' + 'ef' + '=';
 var addy45584 = 'r&amp;#111;&amp;#111;t' + '&amp;#64;';
 addy45584 = addy45584 + 'n&amp;#101;ws&amp;#101;rv&amp;#101;rIP' + '&amp;#46;' + 'c&amp;#111;m';
 document.write( '&lt;a ' + path + '\'' + prefix + ':' + addy45584 + '\'&gt;' );
 document.write( addy45584 );
 document.write( '&lt;\/a&gt;' );
 // &gt;\n
// --></script><a href="mailto:root@newserverIP.com">root@newserverIP.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>:/home/</span></p></blockquote>
<p>the above command will use your ssh private key and copy the file (file.txt) in the remote_user&#8217;s home directory.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2009/01/moving-large-files-linux-server-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>How can I repair corrupt MySQL tables?</title>
		<link>http://wiredgorilla.com.au/2008/09/how-can-i-repair-corrupt-mysql-tables/</link>
		<comments>http://wiredgorilla.com.au/2008/09/how-can-i-repair-corrupt-mysql-tables/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 09:37:36 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Repair MySQL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[How can I repair corrupt MySQL tables? Every so often, MySQL tables have a way of corrupting themselves. MySQL offers a quick and painless method of repairing those tables. Login to your server via SSH and change directories to the database that is having problems. cd /usr/local/mysql/var/[DBNAME]/ You will need to replace [DBNAME] with 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[<div class="divider_dash_grey_bt">How can I repair corrupt MySQL tables?</div>
<p>Every so often, MySQL<br />
tables have a way of corrupting themselves. MySQL offers a quick and<br />
painless method of repairing those tables.</p>
<p><span id="more-141"></span></p>
<p>Login to your server via SSH and change directories to the database that is having problems.</p>
<pre style="border-right: 2px solid #dddddd; border-bottom: 2px solid #dddddd; padding: 10px; background-color: #ffffcc">cd /usr/local/mysql/var/[DBNAME]/</pre>
<p>You will need to replace [DBNAME] with the actual name of your database.</p>
<p>Stop the MySQL server:</p>
<pre style="border-right: 2px solid #dddddd; border-bottom: 2px solid #dddddd; padding: 10px; background-color: #ffffcc">/etc/rc.d/init.d/mysql stop</pre>
<p><span class="highlite">NOTE:</span> Accounts created before July 7th, 2003 will want to use:</p>
<pre style="border-right: 2px solid #dddddd; border-bottom: 2px solid #dddddd; padding: 10px; background-color: #ffffcc">/etc/rc.d/init.d/mysqld stop</pre>
<p>To check the tables:</p>
<pre style="border-right: 2px solid #dddddd; border-bottom: 2px solid #dddddd; padding: 10px; background-color: #ffffcc">myisamchk *.MYI</pre>
<p>To repair tables:</p>
<pre style="border-right: 2px solid #dddddd; border-bottom: 2px solid #dddddd; padding: 10px; background-color: #ffffcc">myisamchk -r *.MYI</pre>
<p>Restart MySQL:</p>
<pre style="border-right: 2px solid #dddddd; border-bottom: 2px solid #dddddd; padding: 10px; background-color: #ffffcc">/etc/rc.d/init.d/mysql start</pre>
<p><span class="highlite">NOTE:</span> Accounts created before July 7th, 2003 will want to use:</p>
<pre style="border-right: 2px solid #dddddd; border-bottom: 2px solid #dddddd; padding: 10px; background-color: #ffffcc">/etc/rc.d/init.d/mysqld start</pre>
<p>Alternatively, if you do not want to shut down MySQL, you can use mysqlcheck.</p>
<pre style="border-right: 2px solid #dddddd; border-bottom: 2px solid #dddddd; padding: 10px; background-color: #ffffcc">mysqlcheck [DBNAME]</pre>
<p>To repair the database tables:</p>
<pre style="border-right: 2px solid #dddddd; border-bottom: 2px solid #dddddd; padding: 10px; background-color: #ffffcc">mysqlcheck -r [DBNAME]</pre>
<p>You will need to replace [DBNAME] with the actual name of your database.</p>
<p>You can find additional documentation here:</p>
<p><a class="reglink" href="http://dev.mysql.com/doc/mysql/en/Table_maintenance.html">http://dev.mysql.com/doc/mysql/en/Table_maintenance.html</a></p>
<p><a class="reglink" href="http://dev.mysql.com/doc/mysql/en/Using_mysqlcheck.html">http://dev.mysql.com/doc/mysql/en/Using_mysqlcheck.html</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/2008/09/how-can-i-repair-corrupt-mysql-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to mount and unmount a drive in linux</title>
		<link>http://wiredgorilla.com.au/2008/08/how-to-mount-and-unmount-a-drive-in-linux/</link>
		<comments>http://wiredgorilla.com.au/2008/08/how-to-mount-and-unmount-a-drive-in-linux/#comments</comments>
		<pubDate>Tue, 26 Aug 2008 00:35:29 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[How To Mount A Drive In Linux This simple step by step guide will show you how to mount a new hard drive or partitions onto your Linux server Initially you wanna check the hard drives on your system fdisk -l so now you now whats being seen by the system Command Line mount /dev/partitionId


No related posts.]]></description>
			<content:encoded><![CDATA[<h3>How To Mount A Drive In Linux</h3>
<p>This simple step by step guide will show you how to mount a new hard drive or partitions onto your Linux server</p>
<p><span id="more-348"></span></p>
<p>Initially you wanna check the hard drives on your system</p>
<p><span style="color: #3366ff">fdisk -l </span></p>
<p>so now you now whats being seen by the system</p>
<div class="codeWrapper">
<h3>Command Line</h3>
</div>
<div class="codeWrapper"><span style="color: #3366ff"><code title="Command Line">mount /dev/partitionId /some/mounting/point</code></span></div>
<div class="codeWrapper"></div>
<div class="codeWrapper">for example</div>
<div class="codeWrapper"><code title="Command Line">mount /dev/sdb /backup</code></div>
<p>The mounting point path must already be created with proper permissions. So a more likely flow of commands would be below:</p>
<div class="codeWrapper">
<h3>Command Line</h3>
</div>
<div class="codeWrapper"><span style="color: #3366ff"><code title="Command Line">mkdir /some/mounting/point<br />
</code></span></div>
<div class="codeWrapper"><span style="color: #3366ff"><code title="Command Line">chmod 777 /some/mounting/point<br />
</code></span></div>
<div class="codeWrapper"><span style="color: #3366ff"><code title="Command Line">mount /dev/partitionId /some/mounting/point</code></span></div>
<div class="codeWrapper"></div>
<div class="codeWrapper">for example:</div>
<div class="codeWrapper">
<div class="codeWrapper"><code title="Command Line">mkdir </code><code title="Command Line">/backup</code></div>
<div class="codeWrapper"><code title="Command Line">chmod 777 </code><code title="Command Line">/backup</code></div>
</div>
<div class="codeWrapper"><code title="Command Line">mount /dev/sdb /backup</code></div>
<div class="codeWrapper"></div>
<div class="codeWrapper">Now you just need to add the addon hard drive into fstab to be booted on startup as well</div>
<div class="codeWrapper"></div>
<div class="codeWrapper"><span style="color: #3366ff">nano /etc/fstab<br />
</span></div>
<h3>How To Unmount A Drive In Linux</h3>
<div class="codeWrapper">
<h3>Command Line</h3>
<p><span style="color: #3366ff"><code title="Command Line">umount /dev/partitionId</code></span></div>
<p>This command is very easy to type wrong. It is NOT <em>unmount</em>. Take another closer look if thats what you saw at first. It is <em>umount</em> &#8212; no n here!</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2008/08/how-to-mount-and-unmount-a-drive-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux sub directory size info</title>
		<link>http://wiredgorilla.com.au/2008/07/linux-sub-directory-size-info/</link>
		<comments>http://wiredgorilla.com.au/2008/07/linux-sub-directory-size-info/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 16:14:05 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Need to know the exact size of your subdirectories in Linux? Just go to the directory , like cd / and try this du -cksh * &#160; No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>
Need to know the exact size of your subdirectories in Linux?
</p>
<p>
Just go to the directory , like cd / and try this
</p>
<p>
<span style="color: #0000ff">du -cksh * </span>
</p>
<p>
&nbsp;
</p>
<p><span id="more-347"></span></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2008/07/linux-sub-directory-size-info/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>cPanel &#8211; Manually back up and transfer an account via SSH</title>
		<link>http://wiredgorilla.com.au/2008/06/cpanel-manualy-back-up-and-transfer-an-account-via-ssh/</link>
		<comments>http://wiredgorilla.com.au/2008/06/cpanel-manualy-back-up-and-transfer-an-account-via-ssh/#comments</comments>
		<pubDate>Sun, 22 Jun 2008 14:43:56 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Sometime accounts are to big to transfer via the WHM transfer feature. Below you can find some steps to do so manually Log into your server and create a cPanel backup for the account /scripts/pkgacct &#60;username&#62; &#60;location&#62; backup &#60;username&#62; refers to the username you want to backup. &#60;location&#62; is the path to where the backup


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Sometime accounts are to big to transfer via the WHM transfer feature.</p>
<p>Below you can find some steps to do so manually</p>
<p>Log into your server and create a cPanel backup for the account</p>
<p><span style="color: #0000ff">/scripts/pkgacct &lt;username&gt; &lt;location&gt; backup</span></p>
<p><span style="color: #0000ff">&lt;username&gt;</span> refers to the username you want to backup.</p>
<p><span style="color: #0000ff">&lt;location&gt;</span> is the path to where the backup will be placed (in your case you want to put /backup/cpbackup here).</p>
<p>So backup tells pkgacct that you want to create a backup file.</p>
<p>If you leave this off it creates a cpmove archive. Not sure what the difference is between a cpmove and a backup file, but this tells pkgacct you just want to create a &lt;username&gt;.tar.gz file in &lt;location&gt;.</p>
<p>And after the backup has been completed you can simple move it by pushing it via <span style="color: #ff0000">SCP </span></p>
<p>here is the tutorial  <a href="http://www3.wiredgorilla.com/content/view/322/1/" target="_self">http://www3.wiredgorilla.com/content/view/322/1/</a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2008/06/cpanel-manualy-back-up-and-transfer-an-account-via-ssh/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>
	</channel>
</rss>
