<?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>Ruy Rocha &#187; Ruy Rocha</title>
	<atom:link href="http://ruyrocha.com/author/ruyrocha-com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ruyrocha.com</link>
	<description>it&#039;s a long way to the top if wanna rock and roll</description>
	<lastBuildDate>Tue, 31 Jan 2012 02:17:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>cPanel License and Dynamic IP Address</title>
		<link>http://ruyrocha.com/cpanel-license-and-dynamic-ip-address/</link>
		<comments>http://ruyrocha.com/cpanel-license-and-dynamic-ip-address/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 02:17:28 +0000</pubDate>
		<dc:creator>Ruy Rocha</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[cpanel license]]></category>
		<category><![CDATA[cpanel license dynamic ip address]]></category>

		<guid isPermaLink="false">http://ruyrocha.com/?p=555</guid>
		<description><![CDATA[Quoting cPanel staff: Because cPanel is designed for commercial hosting, we only license publicly-visible, static IP addresses. We do not license dynamic, sticky, or internal IP addresses, until now. I&#8217;ll only develop my applications locally since last data loss using some cheap virtual server provider &#8211; I&#8217;ve lost all my data twice with this provider. So [...]]]></description>
			<content:encoded><![CDATA[<p>Quoting cPanel staff: <em>Because cPanel is designed for commercial hosting, we only license publicly-visible, static IP addresses. We do not license dynamic, sticky, or internal IP addresses</em>, <strong>until now</strong>.<span id="more-555"></span></p>
<p>I&#8217;ll only develop my applications locally since last data loss using some cheap virtual server provider &#8211; I&#8217;ve lost all my data twice with this provider. So I went ahead and created a local server for cPanel but its license was disabled today, and now it shows there is no license for my address:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>opsbox <span style="color: #7a0874; font-weight: bold;">&#91;</span>~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># /usr/local/cpanel/cpkeyclt</span>
Updating cPanel license...Done. Update Failed<span style="color: #000000; font-weight: bold;">!</span>
Error message:
The cPanel license server said that there was no license <span style="color: #000000; font-weight: bold;">for</span> your IP address.
For <span style="color: #c20cb9; font-weight: bold;">more</span> information visit: http:<span style="color: #000000; font-weight: bold;">//</span>www.cpanel.net<span style="color: #000000; font-weight: bold;">/</span>lic.html
&nbsp;
The exact message was: No license entry found <span style="color: #000000; font-weight: bold;">for</span> your machine <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">187</span>.x.x.x<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">!</span>
&nbsp;
Building global cache <span style="color: #000000; font-weight: bold;">for</span> cpanel...Done</pre></div></div>

<p>I&#8217;ve bought a valid license on www.buycpanel.com for some random server with static/valid ip address and downloaded <strong>tsocks</strong> from repoforge.org. To get my licensed activated, I must log into validserver (ssh session will acts as socks server):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">perseverance ~ $ <span style="color: #c20cb9; font-weight: bold;">ssh</span> validserver <span style="color: #660033;">-D</span> <span style="color: #000000;">31313</span>
...</pre></div></div>

<p>Instruct tsocks on opsbox to use this socks proxy:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>opsbox <span style="color: #7a0874; font-weight: bold;">&#91;</span>~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cat /etc/tsocks.conf </span>
<span style="color: #7a0874; font-weight: bold;">local</span> = <span style="color: #000000;">10</span>.x.x.x<span style="color: #000000; font-weight: bold;">/</span>255.255.255.255
server = <span style="color: #000000;">10</span>.x.x.x
server_type = <span style="color: #000000;">5</span>
server_port = <span style="color: #000000;">31313</span></pre></div></div>

<p>And update my license information:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>opsbox <span style="color: #7a0874; font-weight: bold;">&#91;</span>~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># /usr/local/cpanel/cpkeyclt</span>
Updating cPanel license...Done. Update Failed<span style="color: #000000; font-weight: bold;">!</span>
Error message:
The cPanel license server said that your license has been expired.
For <span style="color: #c20cb9; font-weight: bold;">more</span> information visit: http:<span style="color: #000000; font-weight: bold;">//</span>www.cpanel.net<span style="color: #000000; font-weight: bold;">/</span>lic.html
&nbsp;
The exact message was: The license is expired. <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">187</span>.x.x.x<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">!</span>
&nbsp;
Building global cache <span style="color: #000000; font-weight: bold;">for</span> cpanel...Done
root<span style="color: #000000; font-weight: bold;">@</span>opsbox <span style="color: #7a0874; font-weight: bold;">&#91;</span>~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># tsocks /usr/local/cpanel/cpkeyclt</span>
Updating cPanel license...Done. Update succeeded.
Building global cache <span style="color: #000000; font-weight: bold;">for</span> cpanel...Done
root<span style="color: #000000; font-weight: bold;">@</span>opsbox <span style="color: #7a0874; font-weight: bold;">&#91;</span>~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># tsocks lynx -dump http://www.cpanel.net/showip.cgi</span>
00:<span style="color: #000000;">13</span>:00 libtsocks<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">17585</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: Call to connect received on completed request <span style="color: #000000;">3</span>
&nbsp;
   <span style="color: #000000;">69</span>.x.x.x</pre></div></div>

<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=cPanel+License+and+Dynamic+IP+Address+http%3A%2F%2Fis.gd%2FsuTzVf" title="Post to Twitter"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="tt twitter cPanel License and Dynamic IP Address"  title="cPanel License and Dynamic IP Address" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=cPanel+License+and+Dynamic+IP+Address+http%3A%2F%2Fis.gd%2FsuTzVf" title="Post to Twitter">Tweet This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://delicious.com/post?url=http://ruyrocha.com/cpanel-license-and-dynamic-ip-address/&amp;title=cPanel+License+and+Dynamic+IP+Address" title="Post to Delicious"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious.png" alt="tt delicious cPanel License and Dynamic IP Address"  title="cPanel License and Dynamic IP Address" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://delicious.com/post?url=http://ruyrocha.com/cpanel-license-and-dynamic-ip-address/&amp;title=cPanel+License+and+Dynamic+IP+Address" title="Post to Delicious">Post to Delicious</a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://ruyrocha.com/cpanel-license-and-dynamic-ip-address/&amp;title=cPanel+License+and+Dynamic+IP+Address" title="Post to Digg"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="tt digg cPanel License and Dynamic IP Address"  title="cPanel License and Dynamic IP Address" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://ruyrocha.com/cpanel-license-and-dynamic-ip-address/&amp;title=cPanel+License+and+Dynamic+IP+Address" title="Post to Digg">Digg This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://ruyrocha.com/cpanel-license-and-dynamic-ip-address/&amp;t=cPanel+License+and+Dynamic+IP+Address" title="Post to Facebook"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="tt facebook cPanel License and Dynamic IP Address"  title="cPanel License and Dynamic IP Address" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://ruyrocha.com/cpanel-license-and-dynamic-ip-address/&amp;t=cPanel+License+and+Dynamic+IP+Address" title="Post to Facebook">Post to Facebook</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://ruyrocha.com/cpanel-license-and-dynamic-ip-address/&amp;title=cPanel+License+and+Dynamic+IP+Address&amp;summary=Quoting+cPanel+staff%3A+Because+cPanel+is+designed+for+commercial+hosting%2C+we+only+license+publicly-visible%2C+static+IP+addresses.+We+do+not+license+d...&amp;source=Ruy Rocha" title="Post to LinkedIn"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/linkedin/tt-linkedin.png" alt="tt linkedin cPanel License and Dynamic IP Address"  title="cPanel License and Dynamic IP Address" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://ruyrocha.com/cpanel-license-and-dynamic-ip-address/&amp;title=cPanel+License+and+Dynamic+IP+Address&amp;summary=Quoting+cPanel+staff%3A+Because+cPanel+is+designed+for+commercial+hosting%2C+we+only+license+publicly-visible%2C+static+IP+addresses.+We+do+not+license+d...&amp;source=Ruy Rocha" title="Post to LinkedIn">Post to LinkedIn</a></p></div><div class="al2fb_like_button"><div id="fb-root"></div><script src="http://connect.facebook.net/pt_BR/all.js#appId=159773440769970&amp;xfbml=1" type="text/javascript"></script>
<fb:like href="http://ruyrocha.com/cpanel-license-and-dynamic-ip-address/" send="true" layout="standard" show_faces="true" width="450" action="like" font="arial" colorscheme="light" ref="AL2FB"></fb:like></div>]]></content:encoded>
			<wfw:commentRss>http://ruyrocha.com/cpanel-license-and-dynamic-ip-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gotta Go</title>
		<link>http://ruyrocha.com/gotta-go/</link>
		<comments>http://ruyrocha.com/gotta-go/#comments</comments>
		<pubDate>Thu, 13 Oct 2011 16:00:11 +0000</pubDate>
		<dc:creator>Ruy Rocha</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[business]]></category>
		<category><![CDATA[internet business]]></category>
		<category><![CDATA[internet marketing]]></category>
		<category><![CDATA[success]]></category>

		<guid isPermaLink="false">http://ruyrocha.com/?p=523</guid>
		<description><![CDATA[No one fails in internet business but many quit before they achieve the success. There are lots of buzz and miracle formulas but success takes time and perseverance. If you did not hit anything, double your efforts, be patient and persist. Only yourself can describe your success but it&#8217;s not time to quit if you [...]]]></description>
			<content:encoded><![CDATA[<p><em><strong>No one fails in internet business but many quit before they achieve the success.</strong> <span id="more-523"></span><em>There are lots of buzz and miracle formulas but success takes <strong>time</strong> and perseverance. If you did not hit anything, double your efforts, be patient and <strong>persist</strong>. Only yourself can describe your success but it&#8217;s not time to quit if you did not hit anything. </em>Read that at least five times and see you are not a looser by birth &#8211; trust me! Internet business allows you to work some minutes a week and obtain some figures in bank. When you hit some point it&#8217;s time to scale and double this kind of (love this term) residual income. Residual income can be used to pay bills, parties, a new car and almost everything you want or need. Listen me: do not spend this money in foolish things. </em></p>
<p><em>It&#8217;s time to re-invest and scale things up.</em></p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=Gotta+Go+http%3A%2F%2Fis.gd%2Fx6MKvW" title="Post to Twitter"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="tt twitter Gotta Go"  title="Gotta Go" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=Gotta+Go+http%3A%2F%2Fis.gd%2Fx6MKvW" title="Post to Twitter">Tweet This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://delicious.com/post?url=http://ruyrocha.com/gotta-go/&amp;title=Gotta+Go" title="Post to Delicious"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious.png" alt="tt delicious Gotta Go"  title="Gotta Go" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://delicious.com/post?url=http://ruyrocha.com/gotta-go/&amp;title=Gotta+Go" title="Post to Delicious">Post to Delicious</a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://ruyrocha.com/gotta-go/&amp;title=Gotta+Go" title="Post to Digg"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="tt digg Gotta Go"  title="Gotta Go" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://ruyrocha.com/gotta-go/&amp;title=Gotta+Go" title="Post to Digg">Digg This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://ruyrocha.com/gotta-go/&amp;t=Gotta+Go" title="Post to Facebook"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="tt facebook Gotta Go"  title="Gotta Go" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://ruyrocha.com/gotta-go/&amp;t=Gotta+Go" title="Post to Facebook">Post to Facebook</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://ruyrocha.com/gotta-go/&amp;title=Gotta+Go&amp;summary=No+one+fails+in+internet+business+but+many+quit+before+they+achieve+the+success.+There+are+lots+of+buzz+and+miracle+formulas+but+success+takes+time...&amp;source=Ruy Rocha" title="Post to LinkedIn"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/linkedin/tt-linkedin.png" alt="tt linkedin Gotta Go"  title="Gotta Go" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://ruyrocha.com/gotta-go/&amp;title=Gotta+Go&amp;summary=No+one+fails+in+internet+business+but+many+quit+before+they+achieve+the+success.+There+are+lots+of+buzz+and+miracle+formulas+but+success+takes+time...&amp;source=Ruy Rocha" title="Post to LinkedIn">Post to LinkedIn</a></p></div><div class="al2fb_like_button"><div id="fb-root"></div><script src="http://connect.facebook.net/pt_BR/all.js#appId=159773440769970&amp;xfbml=1" type="text/javascript"></script>
<fb:like href="http://ruyrocha.com/gotta-go/" send="true" layout="standard" show_faces="true" width="450" action="like" font="arial" colorscheme="light" ref="AL2FB"></fb:like></div>]]></content:encoded>
			<wfw:commentRss>http://ruyrocha.com/gotta-go/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cPanel &#8211; Restrict Root Login</title>
		<link>http://ruyrocha.com/cpanel-restrict-root-login/</link>
		<comments>http://ruyrocha.com/cpanel-restrict-root-login/#comments</comments>
		<pubDate>Tue, 30 Aug 2011 16:04:15 +0000</pubDate>
		<dc:creator>Ruy Rocha</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[restrict root login]]></category>
		<category><![CDATA[security policy]]></category>

		<guid isPermaLink="false">http://ruyrocha.com/?p=510</guid>
		<description><![CDATA[Recently I&#8217;ve talked about the new cPanel feature &#8211; Security Policies &#8211; and there is no way to restrict root logins only to valid or allowed ip addresses until now. The cPanel&#8217;s Security Policy is a framework which let you improve you security or practices. For example take the test server tnt.ruyrocha.com and its root [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve talked about the <em>new</em> cPanel feature &#8211; Security Policies &#8211; and there is no way to restrict root logins only to valid or allowed ip addresses until now.<span id="more-510"></span></p>
<p>The cPanel&#8217;s Security Policy is a framework which let you improve you security or practices. For example take the test server tnt.ruyrocha.com and its root password <strong>3Y6Nn5CW44bY0F?5F}gHoWDy:KFzAGtp</strong> Go ahead and try to access it: https://tnt.ruyrocha.com:2087/login/?user=root&amp;pass=3Y6Nn5CW44bY0F?5F}gHoWDy:KFzAGtp</p>
<p>TNT will be available until next Friday, 02/09, so feel free to give it a try. I don&#8217;t want anyone being able to access it from home, just from office&#8217;s ip address. The <strong>RestrictRoot</strong> security policy module must be included in /usr/local/cpanel/Cpanel/SecurityPolicy as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #000066;">package</span> Cpanel<span style="color: #339933;">::</span><span style="color: #006600;">SecurityPolicy</span><span style="color: #339933;">::</span><span style="color: #006600;">RestrictRoot</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># cpanel - Cpanel/SecurityPolicy/RestrictRoot.pm</span>
<span style="color: #666666; font-style: italic;"># </span>
<span style="color: #666666; font-style: italic;"># Copyright (c) 2011 Ruy Rocha &lt;admin@ruyrocha.com&gt;</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Permission is hereby granted, free of charge, to any person obtaining a copy of </span>
<span style="color: #666666; font-style: italic;"># this software and associated documentation files (the &quot;Software&quot;), to deal in the </span>
<span style="color: #666666; font-style: italic;"># Software without restriction, including without limitation the rights to use, copy, </span>
<span style="color: #666666; font-style: italic;"># modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, </span>
<span style="color: #666666; font-style: italic;"># and to permit persons to whom the Software is furnished to do so, subject to the </span>
<span style="color: #666666; font-style: italic;"># following conditions:</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># The above copyright notice and this permission notice shall be included in all copies </span>
<span style="color: #666666; font-style: italic;"># or substantial portions of the Software.</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, </span>
<span style="color: #666666; font-style: italic;"># INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR </span>
<span style="color: #666666; font-style: italic;"># PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE </span>
<span style="color: #666666; font-style: italic;"># LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, </span>
<span style="color: #666666; font-style: italic;"># TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE </span>
<span style="color: #666666; font-style: italic;"># USE OR OTHER DEALINGS IN THE SOFTWARE.</span>
<span style="color: #666666; font-style: italic;">#</span>
&nbsp;
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$priority</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">20</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">sub</span> check <span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">my</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">$acctref</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$sec_ctxt</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$cpconf_ref</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$cookie_ref</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">@_</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">$sec_ctxt</span><span style="color: #339933;">-&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #ff0000;">'appname'</span><span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">eq</span> <span style="color: #ff0000;">'whostmgrd'</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #0000ff;">$acctref</span><span style="color: #339933;">-&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #ff0000;">'user'</span><span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">eq</span> <span style="color: #ff0000;">'root'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000066;">return</span> _ip_passes<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$sec_ctxt</span><span style="color: #339933;">-&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #ff0000;">'remoteip'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #000066;">return</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Return true if this address is valid, false otherwise.</span>
<span style="color: #000000; font-weight: bold;">sub</span> _ip_passes <span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$remote_ip</span> <span style="color: #339933;">=</span> <span style="color: #000066;">shift</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">@allowed_ips</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #ff0000;">'187.x.x.x'</span><span style="color: #339933;">,</span> <span style="color: #ff0000;">'17.x.x.x'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><span style="color: #0000ff;">$remote_ip</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    Carp<span style="color: #339933;">::</span><span style="color: #006600;">confess</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;I am missing the users remote ip.  Security Policy requires exec termination.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #000066;">return</span> <span style="color: #0000ff;">$priority</span> <span style="color: #b1b100;">if</span> <span style="color: #339933;">!</span><span style="color: #000066;">grep</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/$remote_ip$/</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">@allowed_ips</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #000066;">return</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span></pre></div></div>

<p>Save the code to <strong>/usr/local/cpanel/Cpanel/SecurityPolicy/RestrictRoot.pm</strong> and activate the module on WHM.</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=cPanel+%E2%80%93+Restrict+Root+Login+http%3A%2F%2Fis.gd%2Ffl2KV3" title="Post to Twitter"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="tt twitter cPanel   Restrict Root Login"  title="cPanel   Restrict Root Login" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=cPanel+%E2%80%93+Restrict+Root+Login+http%3A%2F%2Fis.gd%2Ffl2KV3" title="Post to Twitter">Tweet This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://delicious.com/post?url=http://ruyrocha.com/cpanel-restrict-root-login/&amp;title=cPanel+%E2%80%93+Restrict+Root+Login" title="Post to Delicious"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious.png" alt="tt delicious cPanel   Restrict Root Login"  title="cPanel   Restrict Root Login" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://delicious.com/post?url=http://ruyrocha.com/cpanel-restrict-root-login/&amp;title=cPanel+%E2%80%93+Restrict+Root+Login" title="Post to Delicious">Post to Delicious</a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://ruyrocha.com/cpanel-restrict-root-login/&amp;title=cPanel+%E2%80%93+Restrict+Root+Login" title="Post to Digg"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="tt digg cPanel   Restrict Root Login"  title="cPanel   Restrict Root Login" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://ruyrocha.com/cpanel-restrict-root-login/&amp;title=cPanel+%E2%80%93+Restrict+Root+Login" title="Post to Digg">Digg This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://ruyrocha.com/cpanel-restrict-root-login/&amp;t=cPanel+%E2%80%93+Restrict+Root+Login" title="Post to Facebook"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="tt facebook cPanel   Restrict Root Login"  title="cPanel   Restrict Root Login" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://ruyrocha.com/cpanel-restrict-root-login/&amp;t=cPanel+%E2%80%93+Restrict+Root+Login" title="Post to Facebook">Post to Facebook</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://ruyrocha.com/cpanel-restrict-root-login/&amp;title=cPanel+%E2%80%93+Restrict+Root+Login&amp;summary=Recently+I%27ve+talked+about+the+new+cPanel+feature+-+Security+Policies+-+and+there+is+no+way+to+restrict+root+logins+only+to+valid+or+allowed+ip+add...&amp;source=Ruy Rocha" title="Post to LinkedIn"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/linkedin/tt-linkedin.png" alt="tt linkedin cPanel   Restrict Root Login"  title="cPanel   Restrict Root Login" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://ruyrocha.com/cpanel-restrict-root-login/&amp;title=cPanel+%E2%80%93+Restrict+Root+Login&amp;summary=Recently+I%27ve+talked+about+the+new+cPanel+feature+-+Security+Policies+-+and+there+is+no+way+to+restrict+root+logins+only+to+valid+or+allowed+ip+add...&amp;source=Ruy Rocha" title="Post to LinkedIn">Post to LinkedIn</a></p></div><div class="al2fb_like_button"><div id="fb-root"></div><script src="http://connect.facebook.net/pt_BR/all.js#appId=159773440769970&amp;xfbml=1" type="text/javascript"></script>
<fb:like href="http://ruyrocha.com/cpanel-restrict-root-login/" send="true" layout="standard" show_faces="true" width="450" action="like" font="arial" colorscheme="light" ref="AL2FB"></fb:like></div>]]></content:encoded>
			<wfw:commentRss>http://ruyrocha.com/cpanel-restrict-root-login/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>cPanel &#8211; Melhorias e Alterações Recentes</title>
		<link>http://ruyrocha.com/cpanel-melhorias-e-alteracoes-recentes/</link>
		<comments>http://ruyrocha.com/cpanel-melhorias-e-alteracoes-recentes/#comments</comments>
		<pubDate>Tue, 23 Aug 2011 01:49:41 +0000</pubDate>
		<dc:creator>Ruy Rocha</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[cpanelsync]]></category>
		<category><![CDATA[database mapping]]></category>
		<category><![CDATA[eol]]></category>
		<category><![CDATA[lts]]></category>
		<category><![CDATA[md5 passwords]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[pkgacct]]></category>
		<category><![CDATA[restoreaccount]]></category>
		<category><![CDATA[security policies]]></category>

		<guid isPermaLink="false">http://ruyrocha.com/?p=502</guid>
		<description><![CDATA[Nas duas últimas versões do cPanel &#8211; 11.28 e 11.30 &#8211; uma série de alterações foram realizadas, como: Mapeamento De Bancos De Dados: os bancos de dados criados seguiam o padrão conta_nomedobanco; agora é possível especificar somente o banco, por exemplo, e também especificar em qual servidor a base de dados está É possível fugir [...]]]></description>
			<content:encoded><![CDATA[<p>Nas duas últimas versões do cPanel &#8211; 11.28 e 11.30 &#8211; uma série de alterações foram realizadas, como:<span id="more-502"></span></p>
<ul>
<li>Mapeamento De Bancos De Dados: os bancos de dados criados seguiam o padrão <strong>conta_nomedobanco</strong>; agora é possível especificar somente o banco, por exemplo, e também especificar em qual servidor a base de dados está</li>
<li>É possível fugir do trio RoundCube, Horde IMP e Squirrelmail e usar um webmail alternativo</li>
<li>Uso de senhas com MD5 (ao invés de crypt) está disponível, o que melhora a segurança até certo ponto</li>
<li>Tokens de segurança estão habilitados na instalação padrão</li>
<li>Otimização do script <strong>pkgacct</strong></li>
<li>Restauração de contas através da API</li>
<li><strong>Security Policies</strong></li>
<li>Novo caminho dos scripts: /scripts -&gt; /usr/local/cpanel/scripts</li>
<li>LTS (long term support) + EOL (end of life)</li>
<li>/etc/cpanelsync.exclude: lista dos arquivos que não precisam de atualização (<em>like immutable files</em>)</li>
<li>/etc/cpanelsync.no_chmod: arquivos contidos aqui não terão suas permissões modificadas</li>
<li>MySQL VIEWS &amp; TRIGGERS disponíveis no cPanel &#8211; se, e somente se, a versão do MySQL for superior ou igual a 5.1</li>
</ul>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=cPanel+%E2%80%93+Melhorias+e+Altera%C3%A7%C3%B5es+Recentes+http%3A%2F%2Fis.gd%2F26kJ4Q" title="Post to Twitter"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="tt twitter cPanel   Melhorias e Alterações Recentes"  title="cPanel   Melhorias e Alterações Recentes" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=cPanel+%E2%80%93+Melhorias+e+Altera%C3%A7%C3%B5es+Recentes+http%3A%2F%2Fis.gd%2F26kJ4Q" title="Post to Twitter">Tweet This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://delicious.com/post?url=http://ruyrocha.com/cpanel-melhorias-e-alteracoes-recentes/&amp;title=cPanel+%E2%80%93+Melhorias+e+Altera%C3%A7%C3%B5es+Recentes" title="Post to Delicious"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious.png" alt="tt delicious cPanel   Melhorias e Alterações Recentes"  title="cPanel   Melhorias e Alterações Recentes" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://delicious.com/post?url=http://ruyrocha.com/cpanel-melhorias-e-alteracoes-recentes/&amp;title=cPanel+%E2%80%93+Melhorias+e+Altera%C3%A7%C3%B5es+Recentes" title="Post to Delicious">Post to Delicious</a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://ruyrocha.com/cpanel-melhorias-e-alteracoes-recentes/&amp;title=cPanel+%E2%80%93+Melhorias+e+Altera%C3%A7%C3%B5es+Recentes" title="Post to Digg"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="tt digg cPanel   Melhorias e Alterações Recentes"  title="cPanel   Melhorias e Alterações Recentes" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://ruyrocha.com/cpanel-melhorias-e-alteracoes-recentes/&amp;title=cPanel+%E2%80%93+Melhorias+e+Altera%C3%A7%C3%B5es+Recentes" title="Post to Digg">Digg This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://ruyrocha.com/cpanel-melhorias-e-alteracoes-recentes/&amp;t=cPanel+%E2%80%93+Melhorias+e+Altera%C3%A7%C3%B5es+Recentes" title="Post to Facebook"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="tt facebook cPanel   Melhorias e Alterações Recentes"  title="cPanel   Melhorias e Alterações Recentes" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://ruyrocha.com/cpanel-melhorias-e-alteracoes-recentes/&amp;t=cPanel+%E2%80%93+Melhorias+e+Altera%C3%A7%C3%B5es+Recentes" title="Post to Facebook">Post to Facebook</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://ruyrocha.com/cpanel-melhorias-e-alteracoes-recentes/&amp;title=cPanel+%E2%80%93+Melhorias+e+Altera%C3%A7%C3%B5es+Recentes&amp;summary=Nas+duas+%C3%BAltimas+vers%C3%B5es+do+cPanel+-+11.28+e+11.30+-+uma+s%C3%A9rie+de+altera%C3%A7%C3%B5es+foram+realizadas%2C+como%3A%0D%0A%0D%0A%09Mapeamento+De+Bancos+De+Dados%3A+os+bancos+d...&amp;source=Ruy Rocha" title="Post to LinkedIn"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/linkedin/tt-linkedin.png" alt="tt linkedin cPanel   Melhorias e Alterações Recentes"  title="cPanel   Melhorias e Alterações Recentes" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://ruyrocha.com/cpanel-melhorias-e-alteracoes-recentes/&amp;title=cPanel+%E2%80%93+Melhorias+e+Altera%C3%A7%C3%B5es+Recentes&amp;summary=Nas+duas+%C3%BAltimas+vers%C3%B5es+do+cPanel+-+11.28+e+11.30+-+uma+s%C3%A9rie+de+altera%C3%A7%C3%B5es+foram+realizadas%2C+como%3A%0D%0A%0D%0A%09Mapeamento+De+Bancos+De+Dados%3A+os+bancos+d...&amp;source=Ruy Rocha" title="Post to LinkedIn">Post to LinkedIn</a></p></div><div class="al2fb_like_button"><div id="fb-root"></div><script src="http://connect.facebook.net/pt_BR/all.js#appId=159773440769970&amp;xfbml=1" type="text/javascript"></script>
<fb:like href="http://ruyrocha.com/cpanel-melhorias-e-alteracoes-recentes/" send="true" layout="standard" show_faces="true" width="450" action="like" font="arial" colorscheme="light" ref="AL2FB"></fb:like></div>]]></content:encoded>
			<wfw:commentRss>http://ruyrocha.com/cpanel-melhorias-e-alteracoes-recentes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenVZ: Administração de CPU</title>
		<link>http://ruyrocha.com/openvz-administracao-de-cpu/</link>
		<comments>http://ruyrocha.com/openvz-administracao-de-cpu/#comments</comments>
		<pubDate>Sun, 21 Aug 2011 12:06:04 +0000</pubDate>
		<dc:creator>Ruy Rocha</dc:creator>
				<category><![CDATA[Virtualização]]></category>
		<category><![CDATA[cpulimit]]></category>
		<category><![CDATA[cpuunits]]></category>
		<category><![CDATA[openvz]]></category>
		<category><![CDATA[ve0cpuunits]]></category>
		<category><![CDATA[vzcpucheck]]></category>
		<category><![CDATA[vzctl]]></category>

		<guid isPermaLink="false">http://ruyrocha.com/?p=470</guid>
		<description><![CDATA[A falta de limites para os containers pode ser um grande problema, e um container pode comprometer a qualidade do serviço oferecido para os demais pelo excesso de tempo de uso de CPU. Para adicionarmos os limites, existem dois parâmetros a serem trabalhados: cpuunits &#38; cpulimit. O comando vzcpucheck nos dá o total de unidades de [...]]]></description>
			<content:encoded><![CDATA[<p>A falta de <strong>limites</strong> para os containers pode ser um grande problema, e um container pode comprometer a qualidade do serviço oferecido para os demais pelo excesso de tempo de uso de CPU. Para adicionarmos os limites, existem dois parâmetros a serem trabalhados: <strong>cpuunits &amp; cpulimit</strong>.<span id="more-470"></span></p>
<p>O comando <strong>vzcpucheck</strong> nos dá o total de unidades de CPU disponíveis no nó e também o uso corrente destas unidades. Por exemplo, o poder total do nó pode ser igual a 1991330 (Intel Xeon E5620) e possuirmos cinco containers com 1000 cpuunits. Aqui a saída do vzcpucheck nos mostraria o uso de 5000 cpuunits. Cada container possui mil unidades de CPU garantidas, e o restante das unidades (<strong>1986330</strong>) será distribuído pelos containers, e até onde vi <em>quem chega primeiro é beneficiado</em>, ou seja, se o container 102 está <strong>no talo</strong> é possível que permaneça. Para limitar é preciso utilizar o cpulimit.</p>
<p>Ainda com o container 102, podemos garantir 20% das unidades de CPU (cpuunits igual a 398266), mas não queremos que este container utilize mais que 25% do processamento total, ex:</p>
<p># vzctl set 102 &#8211;cpuunits 398266 &#8211;cpulimit 25 &#8211;save</p>
<p>Por último, é bom lembrar de ajustar os valores de <strong>ve0cpuunits</strong>. Com memória e também com processamento como limites não temos mais problema, certo? Outros dois fatores que serão vistos em breve são: <strong>I/O</strong> e <strong>velocidade de link</strong>.</p>
<p>&nbsp;</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=OpenVZ%3A+Administra%C3%A7%C3%A3o+de+CPU+http%3A%2F%2Fis.gd%2FMgyEZP" title="Post to Twitter"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="tt twitter OpenVZ: Administração de CPU"  title="OpenVZ: Administração de CPU" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=OpenVZ%3A+Administra%C3%A7%C3%A3o+de+CPU+http%3A%2F%2Fis.gd%2FMgyEZP" title="Post to Twitter">Tweet This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://delicious.com/post?url=http://ruyrocha.com/openvz-administracao-de-cpu/&amp;title=OpenVZ%3A+Administra%C3%A7%C3%A3o+de+CPU" title="Post to Delicious"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious.png" alt="tt delicious OpenVZ: Administração de CPU"  title="OpenVZ: Administração de CPU" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://delicious.com/post?url=http://ruyrocha.com/openvz-administracao-de-cpu/&amp;title=OpenVZ%3A+Administra%C3%A7%C3%A3o+de+CPU" title="Post to Delicious">Post to Delicious</a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://ruyrocha.com/openvz-administracao-de-cpu/&amp;title=OpenVZ%3A+Administra%C3%A7%C3%A3o+de+CPU" title="Post to Digg"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="tt digg OpenVZ: Administração de CPU"  title="OpenVZ: Administração de CPU" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://ruyrocha.com/openvz-administracao-de-cpu/&amp;title=OpenVZ%3A+Administra%C3%A7%C3%A3o+de+CPU" title="Post to Digg">Digg This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://ruyrocha.com/openvz-administracao-de-cpu/&amp;t=OpenVZ%3A+Administra%C3%A7%C3%A3o+de+CPU" title="Post to Facebook"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="tt facebook OpenVZ: Administração de CPU"  title="OpenVZ: Administração de CPU" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://ruyrocha.com/openvz-administracao-de-cpu/&amp;t=OpenVZ%3A+Administra%C3%A7%C3%A3o+de+CPU" title="Post to Facebook">Post to Facebook</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://ruyrocha.com/openvz-administracao-de-cpu/&amp;title=OpenVZ%3A+Administra%C3%A7%C3%A3o+de+CPU&amp;summary=A+falta+de+limites%C2%A0para+os+containers+pode+ser+um+grande+problema%2C+e+um+container+pode+comprometer+a+qualidade+do+servi%C3%A7o+oferecido+para+os+demais+...&amp;source=Ruy Rocha" title="Post to LinkedIn"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/linkedin/tt-linkedin.png" alt="tt linkedin OpenVZ: Administração de CPU"  title="OpenVZ: Administração de CPU" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://ruyrocha.com/openvz-administracao-de-cpu/&amp;title=OpenVZ%3A+Administra%C3%A7%C3%A3o+de+CPU&amp;summary=A+falta+de+limites%C2%A0para+os+containers+pode+ser+um+grande+problema%2C+e+um+container+pode+comprometer+a+qualidade+do+servi%C3%A7o+oferecido+para+os+demais+...&amp;source=Ruy Rocha" title="Post to LinkedIn">Post to LinkedIn</a></p></div><div class="al2fb_like_button"><div id="fb-root"></div><script src="http://connect.facebook.net/pt_BR/all.js#appId=159773440769970&amp;xfbml=1" type="text/javascript"></script>
<fb:like href="http://ruyrocha.com/openvz-administracao-de-cpu/" send="true" layout="standard" show_faces="true" width="450" action="like" font="arial" colorscheme="light" ref="AL2FB"></fb:like></div>]]></content:encoded>
			<wfw:commentRss>http://ruyrocha.com/openvz-administracao-de-cpu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cPanel &#8211; Prevent Mail Spoofing</title>
		<link>http://ruyrocha.com/cpanel-prevent-mail-spoofing/</link>
		<comments>http://ruyrocha.com/cpanel-prevent-mail-spoofing/#comments</comments>
		<pubDate>Sun, 21 Aug 2011 07:17:36 +0000</pubDate>
		<dc:creator>Ruy Rocha</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[email spoofing]]></category>
		<category><![CDATA[exim]]></category>

		<guid isPermaLink="false">http://ruyrocha.com/?p=493</guid>
		<description><![CDATA[Email spoofing consists in send email as others. You can authenticate as username@domain.com and send email as boss@domain.com by default on cPanel servers due to Exim&#8217;s configuration and this is not needed in some environments. So to prevent email spoofing and send email only as authenticated user add the following to your Exim&#8217;s check_recipient ACL: 1 2 3 4 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Email spoofing</strong> consists in send email as others. You can authenticate as <em>username@domain.com</em> and send email as <em>boss@domain.com</em> by default on cPanel servers due to Exim&#8217;s configuration and this is not needed in some environments.</p>
<p><span id="more-493"></span></p>
<p>So to prevent email spoofing and send email only as authenticated user add the following to your Exim&#8217;s check_recipient ACL:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">  deny
    message = <span style="color: #ff0000;">&quot;Incorrect from address &lt;<span style="color: #007800;">${sender_address}</span>&gt;. Please use &lt;<span style="color: #007800;">${authenticated_id}</span>&gt; instead&quot;</span>
    authenticated = <span style="color: #000000; font-weight: bold;">*</span>
    <span style="color: #000000; font-weight: bold;">!</span> condition = <span style="color: #800000;">${if match_address{${sender_address}</span><span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #007800;">$authenticated_id</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></td></tr></table></div>

<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=cPanel+%E2%80%93+Prevent+Mail+Spoofing+http%3A%2F%2Fis.gd%2FY2w65W" title="Post to Twitter"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="tt twitter cPanel   Prevent Mail Spoofing"  title="cPanel   Prevent Mail Spoofing" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=cPanel+%E2%80%93+Prevent+Mail+Spoofing+http%3A%2F%2Fis.gd%2FY2w65W" title="Post to Twitter">Tweet This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://delicious.com/post?url=http://ruyrocha.com/cpanel-prevent-mail-spoofing/&amp;title=cPanel+%E2%80%93+Prevent+Mail+Spoofing" title="Post to Delicious"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious.png" alt="tt delicious cPanel   Prevent Mail Spoofing"  title="cPanel   Prevent Mail Spoofing" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://delicious.com/post?url=http://ruyrocha.com/cpanel-prevent-mail-spoofing/&amp;title=cPanel+%E2%80%93+Prevent+Mail+Spoofing" title="Post to Delicious">Post to Delicious</a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://ruyrocha.com/cpanel-prevent-mail-spoofing/&amp;title=cPanel+%E2%80%93+Prevent+Mail+Spoofing" title="Post to Digg"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="tt digg cPanel   Prevent Mail Spoofing"  title="cPanel   Prevent Mail Spoofing" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://ruyrocha.com/cpanel-prevent-mail-spoofing/&amp;title=cPanel+%E2%80%93+Prevent+Mail+Spoofing" title="Post to Digg">Digg This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://ruyrocha.com/cpanel-prevent-mail-spoofing/&amp;t=cPanel+%E2%80%93+Prevent+Mail+Spoofing" title="Post to Facebook"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="tt facebook cPanel   Prevent Mail Spoofing"  title="cPanel   Prevent Mail Spoofing" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://ruyrocha.com/cpanel-prevent-mail-spoofing/&amp;t=cPanel+%E2%80%93+Prevent+Mail+Spoofing" title="Post to Facebook">Post to Facebook</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://ruyrocha.com/cpanel-prevent-mail-spoofing/&amp;title=cPanel+%E2%80%93+Prevent+Mail+Spoofing&amp;summary=Email+spoofing%C2%A0consists+in+send+email+as+others.%C2%A0You+can+authenticate+as+username%40domain.com%C2%A0and+send+email+as+boss%40domain.com%C2%A0by+default+on+cPanel...&amp;source=Ruy Rocha" title="Post to LinkedIn"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/linkedin/tt-linkedin.png" alt="tt linkedin cPanel   Prevent Mail Spoofing"  title="cPanel   Prevent Mail Spoofing" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://ruyrocha.com/cpanel-prevent-mail-spoofing/&amp;title=cPanel+%E2%80%93+Prevent+Mail+Spoofing&amp;summary=Email+spoofing%C2%A0consists+in+send+email+as+others.%C2%A0You+can+authenticate+as+username%40domain.com%C2%A0and+send+email+as+boss%40domain.com%C2%A0by+default+on+cPanel...&amp;source=Ruy Rocha" title="Post to LinkedIn">Post to LinkedIn</a></p></div><div class="al2fb_like_button"><div id="fb-root"></div><script src="http://connect.facebook.net/pt_BR/all.js#appId=159773440769970&amp;xfbml=1" type="text/javascript"></script>
<fb:like href="http://ruyrocha.com/cpanel-prevent-mail-spoofing/" send="true" layout="standard" show_faces="true" width="450" action="like" font="arial" colorscheme="light" ref="AL2FB"></fb:like></div>]]></content:encoded>
			<wfw:commentRss>http://ruyrocha.com/cpanel-prevent-mail-spoofing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cPanel &#8211; Secure Remote Logins</title>
		<link>http://ruyrocha.com/cpanel-secure-remote-logins/</link>
		<comments>http://ruyrocha.com/cpanel-secure-remote-logins/#comments</comments>
		<pubDate>Sun, 21 Aug 2011 06:29:57 +0000</pubDate>
		<dc:creator>Ruy Rocha</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[cpanel remote login]]></category>
		<category><![CDATA[cpanel secure remote login]]></category>
		<category><![CDATA[cpanel security]]></category>

		<guid isPermaLink="false">http://ruyrocha.com/?p=479</guid>
		<description><![CDATA[You can access cPanel/WHM by passing username and password as URL parameters like http://happywebserver.com:2086/login/?user=MYUSER&#38;pass=MYPASSWORD Sadly it&#8217;s not secure and this way is used in many third party applications. The secure way to log into cPanel/WHM is using a valid session, without user or password in URL.Documentation about secure remote logins introduces us to another cPanel&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>You can access cPanel/WHM by passing username and password as URL parameters like</p>
<blockquote><p>http://happywebserver.com:2086/login/?user=MYUSER&amp;pass=MYPASSWORD</p></blockquote>
<p>Sadly it&#8217;s not secure and this way is used in many third party applications. The secure way to log into cPanel/WHM is using a valid session, without user or password in URL.<span id="more-479"></span>Documentation about <a title="Secure Remote Logins - cPanel/WHM Docs" href="http://docs.cpanel.net/twiki/bin/view/AllDocumentation/SecureRemoteLogins">secure remote logins</a> introduces us to another cPanel&#8217;s module &#8211; LogMeIn &#8211; and this module returns a URL that you can just click to log into a valid session. We can reproduce the same behavior with <strong>cURL</strong> and say &#8220;goodbye&#8221; to insecure accesses:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #000088;">$url</span>  <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;https://happywebserver.com:2087/login/&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$user</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$pass</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$post_args</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;user=<span style="color: #006699; font-weight: bold;">$user</span>&amp;pass=<span style="color: #006699; font-weight: bold;">$pass</span>&amp;goto_uri=<span style="color: #009933; font-weight: bold;">%2F</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$ch</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_FOLLOWLOCATION<span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_SSL_VERIFYPEER<span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_SSL_VERIFYHOST<span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_HEADER<span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_RETURNTRANSFER<span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_URL<span style="color: #339933;">,</span> <span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_POST<span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_POSTFIELDS<span style="color: #339933;">,</span> <span style="color: #000088;">$post_args</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/^Set-Cookie: whostmgrsession=(.*?);/m'</span><span style="color: #339933;">,</span> <span style="color: #990000;">curl_exec</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$whm_session</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #990000;">curl_close</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$session</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$whm_session</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$whm_url</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$url</span>?session=<span style="color: #006699; font-weight: bold;">$session</span>&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Location: <span style="color: #006699; font-weight: bold;">$whm_url</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #666666; font-style: italic;">// do nothing</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=cPanel+%E2%80%93+Secure+Remote+Logins+http%3A%2F%2Fis.gd%2FuwOLQF" title="Post to Twitter"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="tt twitter cPanel   Secure Remote Logins"  title="cPanel   Secure Remote Logins" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=cPanel+%E2%80%93+Secure+Remote+Logins+http%3A%2F%2Fis.gd%2FuwOLQF" title="Post to Twitter">Tweet This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://delicious.com/post?url=http://ruyrocha.com/cpanel-secure-remote-logins/&amp;title=cPanel+%E2%80%93+Secure+Remote+Logins" title="Post to Delicious"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious.png" alt="tt delicious cPanel   Secure Remote Logins"  title="cPanel   Secure Remote Logins" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://delicious.com/post?url=http://ruyrocha.com/cpanel-secure-remote-logins/&amp;title=cPanel+%E2%80%93+Secure+Remote+Logins" title="Post to Delicious">Post to Delicious</a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://ruyrocha.com/cpanel-secure-remote-logins/&amp;title=cPanel+%E2%80%93+Secure+Remote+Logins" title="Post to Digg"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="tt digg cPanel   Secure Remote Logins"  title="cPanel   Secure Remote Logins" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://ruyrocha.com/cpanel-secure-remote-logins/&amp;title=cPanel+%E2%80%93+Secure+Remote+Logins" title="Post to Digg">Digg This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://ruyrocha.com/cpanel-secure-remote-logins/&amp;t=cPanel+%E2%80%93+Secure+Remote+Logins" title="Post to Facebook"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="tt facebook cPanel   Secure Remote Logins"  title="cPanel   Secure Remote Logins" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://ruyrocha.com/cpanel-secure-remote-logins/&amp;t=cPanel+%E2%80%93+Secure+Remote+Logins" title="Post to Facebook">Post to Facebook</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://ruyrocha.com/cpanel-secure-remote-logins/&amp;title=cPanel+%E2%80%93+Secure+Remote+Logins&amp;summary=You+can+access+cPanel%2FWHM+by+passing+username+and+password+as+URL+parameters+like%0D%0Ahttp%3A%2F%2Fhappywebserver.com%3A2086%2Flogin%2F%3Fuser%3DMYUSER%26amp%3Bpass%3DMYPAS...&amp;source=Ruy Rocha" title="Post to LinkedIn"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/linkedin/tt-linkedin.png" alt="tt linkedin cPanel   Secure Remote Logins"  title="cPanel   Secure Remote Logins" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://ruyrocha.com/cpanel-secure-remote-logins/&amp;title=cPanel+%E2%80%93+Secure+Remote+Logins&amp;summary=You+can+access+cPanel%2FWHM+by+passing+username+and+password+as+URL+parameters+like%0D%0Ahttp%3A%2F%2Fhappywebserver.com%3A2086%2Flogin%2F%3Fuser%3DMYUSER%26amp%3Bpass%3DMYPAS...&amp;source=Ruy Rocha" title="Post to LinkedIn">Post to LinkedIn</a></p></div><div class="al2fb_like_button"><div id="fb-root"></div><script src="http://connect.facebook.net/pt_BR/all.js#appId=159773440769970&amp;xfbml=1" type="text/javascript"></script>
<fb:like href="http://ruyrocha.com/cpanel-secure-remote-logins/" send="true" layout="standard" show_faces="true" width="450" action="like" font="arial" colorscheme="light" ref="AL2FB"></fb:like></div>]]></content:encoded>
			<wfw:commentRss>http://ruyrocha.com/cpanel-secure-remote-logins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>In The Mood</title>
		<link>http://ruyrocha.com/in-the-mood/</link>
		<comments>http://ruyrocha.com/in-the-mood/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 02:08:21 +0000</pubDate>
		<dc:creator>Ruy Rocha</dc:creator>
				<category><![CDATA[Geral]]></category>

		<guid isPermaLink="false">http://ruyrocha.com/?p=465</guid>
		<description><![CDATA[Sabe quando você para e diz &#8220;mas que c****** afinal eu to fazendo&#8221; e consegue ver de forma clara o que pode mudar, melhorar e aprimorar?! Não que tudo esteja fora de controle ou indo mal (muito pelo contrário)&#8230; Enfim, let&#8217;s rock! Algo a ser trabalhado são os prazos menores: ao invés de jogar as [...]]]></description>
			<content:encoded><![CDATA[<p>Sabe quando você para e diz &#8220;mas que <del>c******</del> afinal eu to fazendo&#8221; e consegue ver de forma clara o que pode mudar, melhorar e aprimorar?! Não que tudo esteja fora de controle ou indo mal (<strong>muito</strong> pelo contrário)&#8230; Enfim, let&#8217;s rock!<span id="more-465"></span></p>
<p><object width="500" height="306"><param name="movie" value="http://www.youtube.com/v/qLFH3Jttyf4?version=3"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/qLFH3Jttyf4?version=3" type="application/x-shockwave-flash" width="500" height="306" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>Algo a ser trabalhado são os <strong>prazos menores</strong>: ao invés de jogar as coisas para dois ou três meses, vou buscar manter as coisas na escala de semanas, dias e horas. Amanhã não tomarei café a partir das 16 horas amanhã da mesma forma que não vou consumir &#8220;nada&#8221; com carboidrato de noite, por exemplo. E pretendo continuar assim pela semana, e quem sabe mais uma, e talvez ainda outra. Não vai ser fácil mas é <strong>completamente possível</strong>, e também uma mudança.</p>
<p>Atingir metas é algo legal. Onde trabalho, comprei um novo notebook quando fiz três mil tickes &#8211; já havia estabelecido isso. Agora com dez mil pensei em trocar o <em>papa movel,</em> que só me deixa na mão <img src='http://ruyrocha.com/wp-includes/images/smilies/icon_sad.gif' alt="icon sad In The Mood" class='wp-smiley' title="In The Mood" />  Mudando de assunto e continuando com <em>metas</em>: é bom encarar a realidade quando uma meta fica distante. E se está distante é por não existir (talvez) o esforço, tempo e investimento necessário.</p>
<p>Já pensou se tivesse de comprar a Coca no Burger King e a batata no Bob&#8217;s pra ter um <em>número 1</em> &#8211; com BigMac? Daria o trabalho de alguns passos e mesmo assim você  teria tudo ali, certo? O que fica disso é o seguinte: se existe a  possibilidade de complementar o que você oferece, <strong>por que não faz</strong>? Se você tem <strong>todas as cartas</strong> é possível vencer com um pouco de esforço.</p>
<p>Quero me riscar (<em>yup! some more tattoos</em>) e isto envolve três passos distintos. Melhor aguardar, e seguimos adiante.</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=In+The+Mood+http%3A%2F%2Fis.gd%2FBY66EP" title="Post to Twitter"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="tt twitter In The Mood"  title="In The Mood" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=In+The+Mood+http%3A%2F%2Fis.gd%2FBY66EP" title="Post to Twitter">Tweet This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://delicious.com/post?url=http://ruyrocha.com/in-the-mood/&amp;title=In+The+Mood" title="Post to Delicious"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious.png" alt="tt delicious In The Mood"  title="In The Mood" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://delicious.com/post?url=http://ruyrocha.com/in-the-mood/&amp;title=In+The+Mood" title="Post to Delicious">Post to Delicious</a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://ruyrocha.com/in-the-mood/&amp;title=In+The+Mood" title="Post to Digg"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="tt digg In The Mood"  title="In The Mood" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://ruyrocha.com/in-the-mood/&amp;title=In+The+Mood" title="Post to Digg">Digg This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://ruyrocha.com/in-the-mood/&amp;t=In+The+Mood" title="Post to Facebook"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="tt facebook In The Mood"  title="In The Mood" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://ruyrocha.com/in-the-mood/&amp;t=In+The+Mood" title="Post to Facebook">Post to Facebook</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://ruyrocha.com/in-the-mood/&amp;title=In+The+Mood&amp;summary=Sabe+quando+voc%C3%AA+para+e+diz+%22mas+que+c%2A%2A%2A%2A%2A%2A+afinal+eu+to+fazendo%22+e+consegue+ver+de+forma+clara+o+que+pode+mudar%2C+melhorar+e+aprimorar%3F%21+N%C3%A3o+que+t...&amp;source=Ruy Rocha" title="Post to LinkedIn"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/linkedin/tt-linkedin.png" alt="tt linkedin In The Mood"  title="In The Mood" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://ruyrocha.com/in-the-mood/&amp;title=In+The+Mood&amp;summary=Sabe+quando+voc%C3%AA+para+e+diz+%22mas+que+c%2A%2A%2A%2A%2A%2A+afinal+eu+to+fazendo%22+e+consegue+ver+de+forma+clara+o+que+pode+mudar%2C+melhorar+e+aprimorar%3F%21+N%C3%A3o+que+t...&amp;source=Ruy Rocha" title="Post to LinkedIn">Post to LinkedIn</a></p></div><div class="al2fb_like_button"><div id="fb-root"></div><script src="http://connect.facebook.net/pt_BR/all.js#appId=159773440769970&amp;xfbml=1" type="text/javascript"></script>
<fb:like href="http://ruyrocha.com/in-the-mood/" send="true" layout="standard" show_faces="true" width="450" action="like" font="arial" colorscheme="light" ref="AL2FB"></fb:like></div>]]></content:encoded>
			<wfw:commentRss>http://ruyrocha.com/in-the-mood/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FUÉN</title>
		<link>http://ruyrocha.com/fuen/</link>
		<comments>http://ruyrocha.com/fuen/#comments</comments>
		<pubDate>Tue, 21 Jun 2011 21:10:27 +0000</pubDate>
		<dc:creator>Ruy Rocha</dc:creator>
				<category><![CDATA[Geral]]></category>

		<guid isPermaLink="false">http://ruyrocha.com/?p=411</guid>
		<description><![CDATA[Entretanto, vida diferente não quer dizer vida pior, é outra coisa a certos respeitos, aquela vida antiga aparece-me despida de muitos encantos que lhe achei; mas é também exato que perdeu muito espinho que a fez molesta, e, de memória, conservo alguma recordação doce e feiticeira. Em verdade, pouco apareço e menos falo. Ora, como [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Entretanto, vida diferente não quer dizer vida pior, é outra coisa a certos respeitos, aquela vida antiga aparece-me despida de muitos encantos que lhe achei; mas é também exato que perdeu muito espinho que a fez molesta, e, de memória, conservo alguma recordação doce e feiticeira. Em verdade, pouco apareço e menos falo. Ora, como tudo cansa, esta monotonia acabou por exaurir-me também.</p></blockquote>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=FU%C3%89N+http%3A%2F%2Fis.gd%2FZCFldK" title="Post to Twitter"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="tt twitter FUÉN"  title="FUÉN" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=FU%C3%89N+http%3A%2F%2Fis.gd%2FZCFldK" title="Post to Twitter">Tweet This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://delicious.com/post?url=http://ruyrocha.com/fuen/&amp;title=FU%C3%89N" title="Post to Delicious"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious.png" alt="tt delicious FUÉN"  title="FUÉN" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://delicious.com/post?url=http://ruyrocha.com/fuen/&amp;title=FU%C3%89N" title="Post to Delicious">Post to Delicious</a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://ruyrocha.com/fuen/&amp;title=FU%C3%89N" title="Post to Digg"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="tt digg FUÉN"  title="FUÉN" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://ruyrocha.com/fuen/&amp;title=FU%C3%89N" title="Post to Digg">Digg This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://ruyrocha.com/fuen/&amp;t=FU%C3%89N" title="Post to Facebook"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="tt facebook FUÉN"  title="FUÉN" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://ruyrocha.com/fuen/&amp;t=FU%C3%89N" title="Post to Facebook">Post to Facebook</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://ruyrocha.com/fuen/&amp;title=FU%C3%89N&amp;summary=Entretanto%2C+vida+diferente+n%C3%A3o+quer+dizer+vida+pior%2C+%C3%A9+outra+coisa+a+certos+respeitos%2C+aquela+vida+antiga+aparece-me+despida+de+muitos+encantos+que...&amp;source=Ruy Rocha" title="Post to LinkedIn"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/linkedin/tt-linkedin.png" alt="tt linkedin FUÉN"  title="FUÉN" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://ruyrocha.com/fuen/&amp;title=FU%C3%89N&amp;summary=Entretanto%2C+vida+diferente+n%C3%A3o+quer+dizer+vida+pior%2C+%C3%A9+outra+coisa+a+certos+respeitos%2C+aquela+vida+antiga+aparece-me+despida+de+muitos+encantos+que...&amp;source=Ruy Rocha" title="Post to LinkedIn">Post to LinkedIn</a></p></div><div class="al2fb_like_button"><div id="fb-root"></div><script src="http://connect.facebook.net/pt_BR/all.js#appId=159773440769970&amp;xfbml=1" type="text/javascript"></script>
<fb:like href="http://ruyrocha.com/fuen/" send="true" layout="standard" show_faces="true" width="450" action="like" font="arial" colorscheme="light" ref="AL2FB"></fb:like></div>]]></content:encoded>
			<wfw:commentRss>http://ruyrocha.com/fuen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Acessibilidade e Reconhecimento De Voz &#8211; A TABELA</title>
		<link>http://ruyrocha.com/acessibilidade-e-reconhecimento-de-voz-a-tabela/</link>
		<comments>http://ruyrocha.com/acessibilidade-e-reconhecimento-de-voz-a-tabela/#comments</comments>
		<pubDate>Mon, 20 Jun 2011 21:06:46 +0000</pubDate>
		<dc:creator>Ruy Rocha</dc:creator>
				<category><![CDATA[Business]]></category>

		<guid isPermaLink="false">http://ruyrocha.com/?p=405</guid>
		<description><![CDATA[Nobres, como podem ver nesta tabela, o que disse antes não é uma grande mentira. A maioria dos softwares é gringo ou defasado. obs: será que realmente vou ter de gastar tempo e compilar o tanto de informação que já passou por aí pra iniciar uma discussão sadia naquele blog tecnológico? listen to and replace [...]]]></description>
			<content:encoded><![CDATA[<p>Nobres, como podem ver <a title="The Speech To Text Recognition - DA TABLE" href="http://www.voicerecognition.com/thetable.html">nesta tabela</a>, o que disse antes não é uma grande mentira. A maioria dos softwares é gringo ou defasado.</p>
<p>obs: será que realmente vou ter de gastar tempo e compilar o tanto de informação que <em>já passou por aí</em> pra iniciar uma discussão sadia naquele blog tecnológico? <img src='http://ruyrocha.com/wp-includes/images/smilies/icon_sad.gif' alt="icon sad Acessibilidade e Reconhecimento De Voz   A TABELA" class='wp-smiley' title="Acessibilidade e Reconhecimento De Voz   A TABELA" /> </p>
<p><object width="500" height="400"><param name="movie" value="http://www.youtube.com/v/NNC0kIzM1Fo?version=3"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/NNC0kIzM1Fo?version=3" type="application/x-shockwave-flash" width="500" height="400" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>listen to and replace love with money <img src='http://ruyrocha.com/wp-includes/images/smilies/icon_biggrin.gif' alt="icon biggrin Acessibilidade e Reconhecimento De Voz   A TABELA" class='wp-smiley' title="Acessibilidade e Reconhecimento De Voz   A TABELA" /> </p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=Acessibilidade+e+Reconhecimento+De+Voz+%E2%80%93+A+TABELA+http%3A%2F%2Fis.gd%2FzY5M9y" title="Post to Twitter"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="tt twitter Acessibilidade e Reconhecimento De Voz   A TABELA"  title="Acessibilidade e Reconhecimento De Voz   A TABELA" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=Acessibilidade+e+Reconhecimento+De+Voz+%E2%80%93+A+TABELA+http%3A%2F%2Fis.gd%2FzY5M9y" title="Post to Twitter">Tweet This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://delicious.com/post?url=http://ruyrocha.com/acessibilidade-e-reconhecimento-de-voz-a-tabela/&amp;title=Acessibilidade+e+Reconhecimento+De+Voz+%E2%80%93+A+TABELA" title="Post to Delicious"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious.png" alt="tt delicious Acessibilidade e Reconhecimento De Voz   A TABELA"  title="Acessibilidade e Reconhecimento De Voz   A TABELA" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://delicious.com/post?url=http://ruyrocha.com/acessibilidade-e-reconhecimento-de-voz-a-tabela/&amp;title=Acessibilidade+e+Reconhecimento+De+Voz+%E2%80%93+A+TABELA" title="Post to Delicious">Post to Delicious</a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://ruyrocha.com/acessibilidade-e-reconhecimento-de-voz-a-tabela/&amp;title=Acessibilidade+e+Reconhecimento+De+Voz+%E2%80%93+A+TABELA" title="Post to Digg"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="tt digg Acessibilidade e Reconhecimento De Voz   A TABELA"  title="Acessibilidade e Reconhecimento De Voz   A TABELA" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://ruyrocha.com/acessibilidade-e-reconhecimento-de-voz-a-tabela/&amp;title=Acessibilidade+e+Reconhecimento+De+Voz+%E2%80%93+A+TABELA" title="Post to Digg">Digg This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://ruyrocha.com/acessibilidade-e-reconhecimento-de-voz-a-tabela/&amp;t=Acessibilidade+e+Reconhecimento+De+Voz+%E2%80%93+A+TABELA" title="Post to Facebook"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="tt facebook Acessibilidade e Reconhecimento De Voz   A TABELA"  title="Acessibilidade e Reconhecimento De Voz   A TABELA" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://ruyrocha.com/acessibilidade-e-reconhecimento-de-voz-a-tabela/&amp;t=Acessibilidade+e+Reconhecimento+De+Voz+%E2%80%93+A+TABELA" title="Post to Facebook">Post to Facebook</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://ruyrocha.com/acessibilidade-e-reconhecimento-de-voz-a-tabela/&amp;title=Acessibilidade+e+Reconhecimento+De+Voz+%E2%80%93+A+TABELA&amp;summary=Nobres%2C+como+podem+ver+nesta+tabela%2C+o+que+disse+antes+n%C3%A3o+%C3%A9+uma+grande+mentira.+A+maioria+dos+softwares+%C3%A9+gringo+ou+defasado.%0D%0A%0D%0Aobs%3A+ser%C3%A1+que+rea...&amp;source=Ruy Rocha" title="Post to LinkedIn"><img class="nothumb" src="http://ruyrocha.com/wp-content/plugins/tweet-this/icons/en/linkedin/tt-linkedin.png" alt="tt linkedin Acessibilidade e Reconhecimento De Voz   A TABELA"  title="Acessibilidade e Reconhecimento De Voz   A TABELA" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://ruyrocha.com/acessibilidade-e-reconhecimento-de-voz-a-tabela/&amp;title=Acessibilidade+e+Reconhecimento+De+Voz+%E2%80%93+A+TABELA&amp;summary=Nobres%2C+como+podem+ver+nesta+tabela%2C+o+que+disse+antes+n%C3%A3o+%C3%A9+uma+grande+mentira.+A+maioria+dos+softwares+%C3%A9+gringo+ou+defasado.%0D%0A%0D%0Aobs%3A+ser%C3%A1+que+rea...&amp;source=Ruy Rocha" title="Post to LinkedIn">Post to LinkedIn</a></p></div><div class="al2fb_like_button"><div id="fb-root"></div><script src="http://connect.facebook.net/pt_BR/all.js#appId=159773440769970&amp;xfbml=1" type="text/javascript"></script>
<fb:like href="http://ruyrocha.com/acessibilidade-e-reconhecimento-de-voz-a-tabela/" send="true" layout="standard" show_faces="true" width="450" action="like" font="arial" colorscheme="light" ref="AL2FB"></fb:like></div>]]></content:encoded>
			<wfw:commentRss>http://ruyrocha.com/acessibilidade-e-reconhecimento-de-voz-a-tabela/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

