<?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>EZ Linux Admin</title>
	<atom:link href="http://www.ezlinuxadmin.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ezlinuxadmin.com</link>
	<description>Making Linux Easier</description>
	<lastBuildDate>Tue, 29 Jun 2010 19:37:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Optimize MySQL DataBases</title>
		<link>http://www.ezlinuxadmin.com/2010/06/optimize-mysql-databases/</link>
		<comments>http://www.ezlinuxadmin.com/2010/06/optimize-mysql-databases/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 19:37:50 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Linux Software / Scripts]]></category>
		<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[myisamchk]]></category>
		<category><![CDATA[mysqlcheck]]></category>
		<category><![CDATA[optimize mysql]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=491</guid>
		<description><![CDATA[If you are online then you should run: mysqlcheck
mysqlcheck -o &#8211;all-databases
If you are offline then you can run myisamchk which is a little more thorough.
myisamchk &#8211;sort-index
myisamchk -r tbl_name
]]></description>
			<content:encoded><![CDATA[<p>If you are online then you should run: mysqlcheck</p>
<blockquote><p>mysqlcheck -o &#8211;all-databases</p></blockquote>
<p>If you are offline then you can run myisamchk which is a little more thorough.</p>
<blockquote><p>myisamchk &#8211;sort-index<br />
myisamchk -r tbl_name</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2010/06/optimize-mysql-databases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A script to not run back ups on websites over 10 gigs in cpanel</title>
		<link>http://www.ezlinuxadmin.com/2010/06/script-big-backups-cpanel/</link>
		<comments>http://www.ezlinuxadmin.com/2010/06/script-big-backups-cpanel/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 03:30:39 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Cpanel and WHM]]></category>
		<category><![CDATA[prevent big sites from backing up in cpanel]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=488</guid>
		<description><![CDATA[To avoid sites too big from being back upped, just run this script in a weekly cron from root.
#!/bin/bash
max_size=&#8221;2097152&#8243; # This is 2097152KB or 2GB
for u in `ls /var/cpanel/users/`;
do
size=$(repquota -a &#124; grep ${u}&#124;awk &#8216;{print $3}&#8217;&#124;sort -k 1 -nr&#124;head -1);
if [ "${size}" -ge "${max_size}" ];
then
echo &#8220;${u}&#8221; &#62;&#62; /tmp/cpbackup-userskip.conf;
fi;
done;
sort -u /tmp/cpbackup-userskip.conf /etc/cpbackup-userskip.conf &#62; /tmp/cpbackup-userskip.conf.uniq;
cp -f /tmp/cpbackup-userskip.conf.uniq /etc/cpbackup-userskip.conf;
rm [...]]]></description>
			<content:encoded><![CDATA[<p>To avoid sites too big from being back upped, just run this script in a weekly cron from root.</p>
<blockquote><p>#!/bin/bash</p>
<p>max_size=&#8221;2097152&#8243; # This is 2097152KB or 2GB</p>
<p>for u in `ls /var/cpanel/users/`;<br />
do<br />
size=$(repquota -a | grep ${u}|awk &#8216;{print $3}&#8217;|sort -k 1 -nr|head -1);<br />
if [ "${size}" -ge "${max_size}" ];<br />
then<br />
echo &#8220;${u}&#8221; &gt;&gt; /tmp/cpbackup-userskip.conf;<br />
fi;<br />
done;</p>
<p>sort -u /tmp/cpbackup-userskip.conf /etc/cpbackup-userskip.conf &gt; /tmp/cpbackup-userskip.conf.uniq;<br />
cp -f /tmp/cpbackup-userskip.conf.uniq /etc/cpbackup-userskip.conf;<br />
rm -f /tmp/cpbackup-userskip.conf.*;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2010/06/script-big-backups-cpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reset default emails to fail in cpanel</title>
		<link>http://www.ezlinuxadmin.com/2010/06/reset-default-emails-to-fail-in-cpanel/</link>
		<comments>http://www.ezlinuxadmin.com/2010/06/reset-default-emails-to-fail-in-cpanel/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 02:59:04 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Cpanel and WHM]]></category>
		<category><![CDATA[change default email server wide]]></category>
		<category><![CDATA[default email cpanel]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=485</guid>
		<description><![CDATA[Run each line from Root command:
replace :blackhole: :fail: &#8212; /etc/valiases/*
replace :blackhole :fail: &#8212; /etc/valiases/*
replace blackhole: :fail: &#8212; /etc/valiases/*
replace blackhole :fail: &#8212; /etc/valiases/*
replace &#8221; fail:&#8221; &#8221; :fail:&#8221; &#8212; /etc/valiases/*
replace /dev/null :fail: &#8212; /etc/valiases/*
cd /etc/valiases/
grep fail * &#124; grep -v &#8221; :fail:&#8221;
]]></description>
			<content:encoded><![CDATA[<p>Run each line from Root command:</p>
<blockquote><p>replace :blackhole: :fail: &#8212; /etc/valiases/*<br />
replace :blackhole :fail: &#8212; /etc/valiases/*<br />
replace blackhole: :fail: &#8212; /etc/valiases/*<br />
replace blackhole :fail: &#8212; /etc/valiases/*<br />
replace &#8221; fail:&#8221; &#8221; :fail:&#8221; &#8212; /etc/valiases/*<br />
replace /dev/null :fail: &#8212; /etc/valiases/*<br />
cd /etc/valiases/<br />
grep fail * | grep -v &#8221; :fail:&#8221;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2010/06/reset-default-emails-to-fail-in-cpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reset an accounts bandwidth in CPanel</title>
		<link>http://www.ezlinuxadmin.com/2010/06/reset-an-accounts-bandwidth-in-cpanel/</link>
		<comments>http://www.ezlinuxadmin.com/2010/06/reset-an-accounts-bandwidth-in-cpanel/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 02:56:03 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Cpanel and WHM]]></category>
		<category><![CDATA[reset account bandwidth in cpanel]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=482</guid>
		<description><![CDATA[
ssh to your server
cd /var/cpanel/bandwidth.cache/
vi domainname.com
delete the numbers in that file and retype 0 instead of the number
save and quit and show bandwidth usage in WHM you will find its 0

]]></description>
			<content:encoded><![CDATA[<ol>
<li>ssh to your server</li>
<li>cd /var/cpanel/bandwidth.cache/</li>
<li>vi domainname.com</li>
<li>delete the numbers in that file and retype 0 instead of the number</li>
<li>save and quit and show bandwidth usage in WHM you will find its 0</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2010/06/reset-an-accounts-bandwidth-in-cpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clear bash history through ssh command line</title>
		<link>http://www.ezlinuxadmin.com/2010/05/clear-bash-history-through-ssh-command-line/</link>
		<comments>http://www.ezlinuxadmin.com/2010/05/clear-bash-history-through-ssh-command-line/#comments</comments>
		<pubDate>Sun, 30 May 2010 20:01:12 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Linux Commands]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Clear]]></category>
		<category><![CDATA[history]]></category>
		<category><![CDATA[ssh command line]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=477</guid>
		<description><![CDATA[history -c
]]></description>
			<content:encoded><![CDATA[<blockquote><p>history -c</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2010/05/clear-bash-history-through-ssh-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Path to date</title>
		<link>http://www.ezlinuxadmin.com/2010/05/path-to-date/</link>
		<comments>http://www.ezlinuxadmin.com/2010/05/path-to-date/#comments</comments>
		<pubDate>Tue, 25 May 2010 03:22:09 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Cheat Sheets]]></category>
		<category><![CDATA[Linux Commands]]></category>
		<category><![CDATA[Linux Operating Systems]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[path to date]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=474</guid>
		<description><![CDATA[The server path to date can very for different servers, you will need to run this command to find it:
which date
For most servers it is:
/bin/date
This is the same for perl and php
]]></description>
			<content:encoded><![CDATA[<p>The server path to date can very for different servers, you will need to run this command to find it:</p>
<blockquote><p>which date</p></blockquote>
<p>For most servers it is:</p>
<blockquote><p>/bin/date</p></blockquote>
<p>This is the same for perl and php</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2010/05/path-to-date/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>setroubleshoot bug</title>
		<link>http://www.ezlinuxadmin.com/2010/05/setroubleshoot/</link>
		<comments>http://www.ezlinuxadmin.com/2010/05/setroubleshoot/#comments</comments>
		<pubDate>Mon, 24 May 2010 06:20:07 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Cpanel and WHM]]></category>
		<category><![CDATA[Linux Commands]]></category>
		<category><![CDATA[Linux Software / Scripts]]></category>
		<category><![CDATA[/usr/bin/python]]></category>
		<category><![CDATA[setroubleshoot]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=472</guid>
		<description><![CDATA[There is a bug with the new option in Centos 5 called setroubleshoot.
The bug spins the program over and over causing high memory and sometimes CPU use. Unfortunately there is no permanent fix yet, but if you see something like this high in your daily process log:
/usr/bin/python -E /usr/sbin/setroubleshootd
To fix for now you simply have [...]]]></description>
			<content:encoded><![CDATA[<p>There is a bug with the new option in Centos 5 called setroubleshoot.</p>
<p>The bug spins the program over and over causing high memory and sometimes CPU use. Unfortunately there is no permanent fix yet, but if you see something like this high in your daily process log:</p>
<blockquote><p>/usr/bin/python -E /usr/sbin/setroubleshootd</p></blockquote>
<p>To fix for now you simply have to restart the process:</p>
<blockquote><p>/etc/init.d/setroubleshoot restart</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2010/05/setroubleshoot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CPanel transfer error</title>
		<link>http://www.ezlinuxadmin.com/2010/05/cpanel-transfer-error/</link>
		<comments>http://www.ezlinuxadmin.com/2010/05/cpanel-transfer-error/#comments</comments>
		<pubDate>Sat, 08 May 2010 21:50:42 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Cpanel and WHM]]></category>
		<category><![CDATA[cpanel transfer]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[server move]]></category>
		<category><![CDATA[yaml]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=468</guid>
		<description><![CDATA[First try to upgrade perl this is the main reason for a cpanel error.
http://www.ezlinuxadmin.com/2009/08/upgrading-perl-on-cpanel/
After that if you still have a issue run this:
/scripts/perlinstaller &#8211;force YAML::Syck
or Install the YAML::Syck perl module in whm under module installers.
]]></description>
			<content:encoded><![CDATA[<p>First try to upgrade perl this is the main reason for a cpanel error.</p>
<p><a href="http://www.ezlinuxadmin.com/2009/08/upgrading-perl-on-cpanel/">http://www.ezlinuxadmin.com/2009/08/upgrading-perl-on-cpanel/</a></p>
<p>After that if you still have a issue run this:</p>
<blockquote><p>/scripts/perlinstaller &#8211;force YAML::Syck</p>
<p>or Install the YAML::Syck perl module in whm under module installers.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2010/05/cpanel-transfer-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fsck</title>
		<link>http://www.ezlinuxadmin.com/2010/04/fsck/</link>
		<comments>http://www.ezlinuxadmin.com/2010/04/fsck/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 02:01:27 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Cheat Sheets]]></category>
		<category><![CDATA[disk error]]></category>
		<category><![CDATA[FSCK]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=466</guid>
		<description><![CDATA[fsck -a
Will automatically fix errors.
]]></description>
			<content:encoded><![CDATA[<blockquote><p>fsck -a</p></blockquote>
<p>Will automatically fix errors.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2010/04/fsck/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading a realtech lan / nic driver</title>
		<link>http://www.ezlinuxadmin.com/2010/04/upgrading-a-realtech-lan-nic-driver/</link>
		<comments>http://www.ezlinuxadmin.com/2010/04/upgrading-a-realtech-lan-nic-driver/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 21:57:11 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[realtech driver]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=463</guid>
		<description><![CDATA[The driver for the realtech lan / nic card seems to be faulty when rsync is running several files through it. There is a newer driver that resolves this issue available from the realtech website.
Website Driver Download
Here is direct link to the driver from our website: 
http://www.downloadspot.com/downloads/r8168-8.018.00.tar.bz2
Upload the driver to your root directory, then run [...]]]></description>
			<content:encoded><![CDATA[<p>The driver for the realtech lan / nic card seems to be faulty when rsync is running several files through it. There is a newer driver that resolves this issue available from the realtech website.</p>
<p>Website <a href="http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&amp;PNid=13&amp;PFid=5&amp;Level=5&amp;Conn=4&amp;DownTypeID=3&amp;GetDown=false">Driver Download</a><br />
Here is direct link to the driver from our website: <a href="http://www.downloadspot.com/downloads/r8168-8.018.00.tar.bz2"></a></p>
<p><a href="http://www.downloadspot.com/downloads/r8168-8.018.00.tar.bz2">http://www.downloadspot.com/downloads/r8168-8.018.00.tar.bz2</a></p>
<p>Upload the driver to your root directory, then run these commands.</p>
<blockquote><p>tar vjxf r8168-8.018.00.tar.bz2</p>
<p>cd r8168-8.018.00</p>
<p>./autorun.sh</p></blockquote>
<p>Run this to check the driver details</p>
<blockquote><p>dmesg | grep &#8216;Ethernet driver&#8217;</p></blockquote>
<p><strong>Read me files for driver:</strong></p>
<p>&lt;Linux device driver for Realtek Ethernet controllers&gt;</p>
<p>This is the Linux device driver released for RealTek RTL8168B/8111B, RTL8168C/8111C, RTL8168CP/8111CP, RTL8168D/8111D, RTL8168DP/8111DP, and RTL8168E/8111E Gigabit Ethernet controllers with PCI-Express interface.</p>
<p>&lt;Requirements&gt;</p>
<p>- Kernel source tree (supported Linux kernel 2.6.x and 2.4.x)<br />
- For linux kernel 2.4.x, this driver supports 2.4.20 and latter.<br />
- Compiler/binutils for kernel compilation</p>
<p>&lt;Quick install with proper kernel settings&gt;<br />
Unpack the tarball :<br />
# tar vjxf r8168-8.aaa.bb.tar.bz2</p>
<p>Change to the directory:<br />
# cd r8168-8.aaa.bb</p>
<p>If you are running the target kernel, then you should be able to do :</p>
<p># ./autorun.sh    (as root or with sudo)</p>
<p>You can check whether the driver is loaded by using following commands.</p>
<p># lsmod | grep r8168<br />
# ifconfig -a</p>
<p>If there is a device name, ethX, shown on the monitor, the linux<br />
driver is loaded. Then, you can use the following command to activate<br />
the ethX.</p>
<p># ifconfig ethX up</p>
<p>,where X=0,1,2,&#8230;</p>
<p>&lt;Set the network related information&gt;<br />
1. Set manually<br />
a. Set the IP address of your machine.</p>
<p># ifconfig ethX &#8220;the IP address of your machine&#8221;</p>
<p>b. Set the IP address of DNS.</p>
<p>Insert the following configuration in /etc/resolv.conf.</p>
<p>nameserver &#8220;the IP address of DNS&#8221;</p>
<p>c. Set the IP address of gateway.</p>
<p># route add default gw &#8220;the IP address of gateway&#8221;</p>
<p>2. Set by doing configurations in /etc/sysconfig/network-scripts<br />
/ifcfg-ethX for Redhat and Fedora, or /etc/sysconfig/network<br />
/ifcfg-ethX for SuSE. There are two examples to set network<br />
configurations.</p>
<p>a. Fixed IP address:<br />
DEVICE=eth0<br />
BOOTPROTO=static<br />
ONBOOT=yes<br />
TYPE=ethernet<br />
NETMASK=255.255.255.0<br />
IPADDR=192.168.1.1<br />
GATEWAY=192.168.1.254<br />
BROADCAST=192.168.1.255</p>
<p>b. DHCP:<br />
DEVICE=eth0<br />
BOOTPROTO=dhcp<br />
ONBOOT=yes</p>
<p>&lt;Modify the MAC address&gt;<br />
There are two ways to modify the MAC address of the NIC.<br />
1. Use ifconfig:</p>
<p># ifconfig ethX hw ether YY:YY:YY:YY:YY:YY</p>
<p>,where X is the device number assigned by Linux kernel, and<br />
YY:YY:YY:YY:YY:YY is the MAC address assigned by the user.</p>
<p>2. Use ip:</p>
<p># ip link set ethX address YY:YY:YY:YY:YY:YY</p>
<p>,where X is the device number assigned by Linux kernel, and<br />
YY:YY:YY:YY:YY:YY is the MAC address assigned by the user.</p>
<p>&lt;Force Link Status&gt;</p>
<p>1. Force the link status when insert the driver.</p>
<p>If the user is in the path ~/r8168, the link status can be forced<br />
to one of the 5 modes as following command.</p>
<p># insmod ./src/r8168.ko speed=SPEED_MODE duplex=DUPLEX_MODE autoneg=NWAY_OPTION</p>
<p>,where<br />
SPEED_MODE    = 1000    for 1000Mbps<br />
= 100    for 100Mbps<br />
= 10    for 10Mbps<br />
DUPLEX_MODE    = 0    for half-duplex<br />
= 1    for full-duplex<br />
NWAY_OPTION    = 0    for auto-negotiation off (true force)<br />
= 1    for auto-negotiation on (nway force)<br />
For example:</p>
<p># insmod ./src/r8168.ko speed=100 duplex=0 autoneg=1</p>
<p>will force PHY to operate in 100Mpbs Half-duplex(nway force).</p>
<p>2. Force the link status by using ethtool.<br />
a. Insert the driver first.<br />
b. Make sure that ethtool exists in /sbin.<br />
c. Force the link status as the following command.</p>
<p># ethtool -s ethX speed SPEED_MODE duplex DUPLEX_MODE autoneg NWAY_OPTION</p>
<p>,where<br />
SPEED_MODE    = 1000    for 1000Mbps<br />
= 100    for 100Mbps<br />
= 10    for 10Mbps<br />
DUPLEX_MODE    = half    for half-duplex<br />
= full    for full-duplex<br />
NWAY_OPTION    = off    for auto-negotiation off (true force)<br />
= on    for auto-negotiation on (nway force)</p>
<p>For example:</p>
<p># ethtool -s eth0 speed 100 duplex full autoneg on</p>
<p>will force PHY to operate in 100Mpbs Full-duplex(nway force).</p>
<p>&lt;Jumbo Frame&gt;<br />
Transmitting Jumbo Frames, whose packet size is bigger than 1500 bytes, please change mtu by the following command.</p>
<p># ifconfig ethX mtu MTU</p>
<p>, where X=0,1,2,&#8230;, and MTU is configured by user.</p>
<p>RTL8168B/8111B supports Jumbo Frame size up to 4 kBytes.<br />
RTL8168C/8111C and RTL8168CP/8111CP support Jumbo Frame size up to 6 kBytes.<br />
RTL8168D/8111D supports Jumbo Frame size up to 9 kBytes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2010/04/upgrading-a-realtech-lan-nic-driver/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
