<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>centos &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/centos/</link>
	<description>Feed of posts on WordPress.com tagged "centos"</description>
	<pubDate>Mon, 28 Dec 2009 14:00:07 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[LAMP Programming For Professionals]]></title>
<link>http://sharanamshah.wordpress.com/2009/12/27/lamp-programming-for-professionals/</link>
<pubDate>Sun, 27 Dec 2009 07:31:16 +0000</pubDate>
<dc:creator>sharanamshah</dc:creator>
<guid>http://sharanamshah.wordpress.com/2009/12/27/lamp-programming-for-professionals/</guid>
<description><![CDATA[LAMP Programming For Professionals    Designed for beginners, intermediate and professional develope]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div class="wp-caption alignnone" style="width: 400px"><a href="http://www.sharanamshah.com/index.php/Books-authored-by-Sharanam-Shah/Shroff-Publishers-and-Distributors-Pvt.-Ltd./LAMP-Programming-For-Professionals.html"><img title="LAMP Programming For Professionals" src="http://www.sharanamshah.com/images/stories/books/LAMP.JPG" alt="LAMP Programming For Professionals" width="390" height="514" /></a><p class="wp-caption-text">LAMP Programming For Professionals</p></div>
<p>  </p>
<p>Designed for beginners, intermediate and professional developers, this book provides genuine domain knowledge to learn web based, application development, using<strong>Apache</strong> as the Web server, <strong>PHP</strong> as the programming language, <strong>MySQL</strong> as the data store, all mounted on the <strong>Linux</strong> OS. It delves deeply into the core of the MySQL and PHP providing a sound understanding of both.</p>
<p>This book also demonstrates a step-by-step guide to developing a few <strong>Web</strong>applications [using <strong>PHP 6 </strong>&#38; <strong>MySQL 5.4 </strong>under<strong> Apache 2.2</strong>] which re-enforces all the learning that takes place throughout the book. </p>
<p>This book uses the learning by doing pattern with a lot of ready-to-use examples. This pattern has proven to be the best approach for learning a new technology. Most [if not all] of the concepts that you will find in this book are demonstrated using well described and easy to understand examples, yet sophisticated enough to demonstrate LAMP Programming in a real-world context.</p>
<p>Additionally, a special chapter covering the virtual installation of <strong>Linux</strong> is included. This provides an opportunity to create a <strong>Virtual LAMP Framework</strong> on MS Windows. </p>
<p><strong>What You&#8217;ll Learn?</strong> </p>
<p>Installing and Setting Up LAMP<br />
Working with the MySQL Database <br />
Working with the PHP programming language<br />
o    Basics &#8211; Variables, Operators, Control Structures, Functions<br />
o    Regular Expression [PCRE]<br />
o    Using MySQL<strong>nd</strong>, the new native driver<br />
o    Using MySQL, MySQLi and PDO extensions<br />
o    Cookies and Sessions<br />
o    <strong>O</strong>bject <strong>O</strong>riented <strong>P</strong>rogramming<br />
o    Debugging And Error Handling<br />
o    Web Services Using <strong>SOAP<br />
</strong>Building Web Based Applications<br />
o    Contact Management System<br />
o    Uses jQuery and Ajax<br />
o    Uses SendMail to dispatch reminder emails for birthdays and anniversaries<br />
o    RSS Widget<br />
o    Uses <strong>MagpieRSS</strong> [RSS <strong>parser</strong> for PHP]<br />
o    Uses <strong>JavaScript</strong> to provide <strong>Drag</strong> <strong>and</strong> <strong>Drop</strong> functionality<br />
o    Newsletter Delivery System<br />
o    Uses <strong>SendMail</strong> to dispatch newsletter<br />
o    An Automatic Email Dispatcher <br />
o    Uses <strong>CronJob</strong> to schedule email dispatch<br />
o    Uses <strong>SendMail</strong> to dispatch emails<br />
o    Using The <strong>M</strong>odel <strong>V</strong>iew <strong>C</strong>ontroller Architecture<br />
Setting Up Linux On A Virtual Machine Over MS Windows <br />
Using phpMyAdmin &#8211; A Web based MySQL Administration tool</p>
<p><strong><span style="font-family:Verdana;font-size:x-small;">ISBN 10:</span></strong><span style="font-family:Verdana;font-size:x-small;"> </span><span style="font-family:Verdana;font-size:x-small;">81-8404-843-8</span></p>
<p><span style="font-family:Verdana;font-size:x-small;"><strong>ISBN 13:</strong> </span><span style="font-family:Verdana;font-size:x-small;">978-81-8404-843-8</span><br />
<strong><span style="font-family:Verdana;font-size:x-small;">Edition:</span></strong><span style="font-family:Verdana;font-size:x-small;"> First</span><br />
<strong><span style="font-size:x-small;"><span style="font-family:Verdana;">Downloads</span></span></strong></p>
<p><a title="LAMP Programming For Professionals" href="http://www.sharanamshah.com/index.php/Books-authored-by-Sharanam-Shah/Shroff-Publishers-and-Distributors-Pvt.-Ltd./LAMP-Programming-For-Professionals.html#"><strong><span style="font-size:x-small;"><span style="font-family:Verdana;"><span style="text-decoration:underline;">Sample Chapter</span></span></span></strong></a> <span style="font-family:Verdana;font-size:x-small;">                                                     </span><a title="LAMP Programming For Professionals" href="http://www.sharanamshah.com/index.php/Books-authored-by-Sharanam-Shah/Shroff-Publishers-and-Distributors-Pvt.-Ltd./LAMP-Programming-For-Professionals.html#"><span style="text-decoration:underline;"><strong><span style="font-family:Verdana;font-size:x-small;">TOC</span></strong></span></a></p>
<p><strong>THE TOPICS COVERED IN THE BOOK</strong></p>
<p><strong>All About The L.A.M.P. Framework<br />
</strong>Introduction to Linux, Apache, MySQL and PHP. How the L.A.M.P. framework works.<br />
<strong><br />
Setting Up The L.A.M.P. Environment<br />
</strong>Installing Cent OS, Apache, PHP and MySQL. Configuring the Development Environment.<br />
<strong><br />
Understanding The MySQL Database<br />
</strong>Db Storage Engines, Db Administration, SQL Elements, Table Creation, Working With Table Data, Tables And Its Structure, Operators And Regular Expression, Grouping Data, Joins, Views, Functions, Data Constraints, Subquery, Union, Indexes, Stored Procedures, Transactions, Cursors<br />
<strong><br />
Understanding The PHP Language<br />
</strong>Mixing PHP And HTML, Variables And Operators, Control Structures, Functions, Regular Expressions, Working With Database using MySQL, MySQLi and PDO, Cookies, Sessions, Object Oriented Programming, Debugging And Error Handling, Web Services Using SOAP<br />
<strong><br />
Application Development<br />
</strong>Contact Management, RSS Widget, Newsletter Delivery System, Automatic Email Dispatcher, Programming Using The Model View Controller Architecture    <br />
<strong><br />
Linux On Virtual Machine<br />
</strong>Installing CentOS On Sun VirtualBox<br />
<strong><br />
Appendix<br />
</strong>phpMyAdmin &#8211; A web based MySQL Db Administration tool</p>
<p><strong>CONTENTS OF THE CD-ROM</strong></p>
<p>Setup files for Apache Web Server 2<strong>.</strong>2<strong>.</strong>13<br />
MySQL 5<strong>.</strong>4<br />
PHP 6<strong>.</strong>0 [Development Snapshot]<br />
ICU 4<strong>.</strong>2<strong>.</strong>1<br />
PHP 5<strong>.</strong>3 [Stable Release]<br />
phpMyAdmin 3<strong>.</strong>2<strong>.</strong>2<br />
Video Footage covering LAMP Installation<br />
Source code for the examples covered in this book<span id="_marker"> <span id="_marker"> </span></span><span class="Apple-style-span" style="widows:2;text-transform:none;text-indent:0;border-collapse:separate;font:medium 'Times New Roman';white-space:normal;orphans:2;letter-spacing:normal;color:#000000;word-spacing:0;"><span class="Apple-style-span" style="text-align:justify;line-height:14px;border-collapse:collapse;font-family:Tahoma, Verdana, sans-serif;font-size:12px;"> </span></span></p>
<p><span class="Apple-style-span" style="widows:2;text-transform:none;text-indent:0;border-collapse:separate;font:medium 'Times New Roman';white-space:normal;orphans:2;letter-spacing:normal;color:#000000;word-spacing:0;"><span class="Apple-style-span" style="text-align:justify;line-height:14px;border-collapse:collapse;font-family:Tahoma, Verdana, sans-serif;font-size:12px;"></span></span></p>
<p style="text-align:justify;margin-top:0;margin-bottom:5px;"><span style="line-height:18px;color:black;"><strong><span style="font-family:Verdana;font-size:x-small;">THE TOPICS COVERED IN THE BOOK</span></strong></span></p>
<p class="MsoNormal" style="text-align:justify;line-height:18px;margin-top:0;margin-bottom:5px;"><span style="line-height:19px;font-family:Verdana;font-size:10pt;"><br />
</span></p>
<p><span style="line-height:19px;font-family:Verdana;font-size:10pt;"><span style="line-height:19px;font-family:Tahoma, sans-serif;color:black;font-size:10pt;"><span style="line-height:19px;font-family:Tahoma, sans-serif;color:black;font-size:10pt;"><span style="line-height:19px;font-family:Tahoma, sans-serif;"><strong>All About The L.A.M.P. Framework<br />
</strong><span style="line-height:19px;font-family:Tahoma, sans-serif;color:black;">Introduction to Linux, Apache, MySQL and PHP. How the L.A.M.P. framework works.<br />
</span><strong><br />
Setting Up The L.A.M.P. Environment<br />
</strong><span style="line-height:19px;font-family:Tahoma, sans-serif;color:black;">Installing Cent OS, Apache, PHP and MySQL. Configuring the Development Environment.<br />
</span><strong><br />
Understanding The MySQL Database<br />
</strong><span style="line-height:19px;font-family:Tahoma, sans-serif;color:black;">Db Storage Engines, Db Administration, SQL Elements, Table Creation, Working With Table Data, Tables And Its Structure, Operators And Regular Expression, Grouping Data, Joins, Views, Functions, Data Constraints, Subquery, Union, Indexes, Stored Procedures, Transactions, Cursors<br />
</span><strong><br />
Understanding The PHP Language<br />
</strong><span style="line-height:19px;font-family:Tahoma, sans-serif;color:black;">Mixing PHP And HTML, Variables And Operators, Control Structures, Functions, Regular Expressions, Working With Database using MySQL, MySQLi and PDO, Cookies, Sessions, Object Oriented Programming, Debugging And Error Handling, Web Services Using SOAP<br />
</span><span style="line-height:19px;font-family:Tahoma, sans-serif;color:black;"><strong><br />
Application Development<br />
</strong></span><span style="line-height:19px;font-family:Tahoma, sans-serif;color:black;">Contact Management, RSS Widget, Newsletter Delivery System, Automatic Email Dispatcher, Programming Using The Model View Controller Architecture   <span class="Apple-converted-space"> </span><br />
</span><strong><br />
Linux On Virtual Machine<br />
</strong><span style="line-height:19px;font-family:Tahoma, sans-serif;color:black;">Installing CentOS On Sun VirtualBox<br />
</span><strong><br />
Appendix<br />
</strong><span style="line-height:19px;font-family:Tahoma, sans-serif;color:black;">phpMyAdmin &#8211; A web based MySQL Db Administration tool<br />
</span></span></span></span><span style="line-height:19px;font-family:Verdana;font-size:10pt;"><br />
</span></span></p>
<p class="MsoNormal" style="text-align:justify;line-height:18px;margin-top:0;margin-bottom:5px;"><span style="line-height:18px;color:black;"><strong><span style="font-family:Verdana;font-size:x-small;">CONTENTS OF THE CD-ROM</span></strong></span></p>
<p><span style="line-height:19px;font-family:Verdana;font-size:10pt;"><span style="line-height:19px;font-family:Tahoma, sans-serif;color:black;font-size:10pt;"><span style="line-height:19px;font-family:Tahoma, sans-serif;color:black;font-size:10pt;"><span style="line-height:19px;font-family:Tahoma, sans-serif;"><span style="line-height:19px;font-family:Tahoma, sans-serif;color:black;">Setup files for Apache Web Server 2<strong>.</strong>2<strong>.</strong>13<br />
</span><span style="line-height:19px;font-family:Tahoma, sans-serif;color:black;">MySQL 5<strong>.</strong>4<br />
</span><span style="line-height:19px;font-family:Tahoma, sans-serif;color:black;">PHP 6<strong>.</strong>0 [Development Snapshot]<br />
</span><span style="line-height:19px;font-family:Tahoma, sans-serif;color:black;">ICU 4<strong>.</strong>2<strong>.</strong>1<br />
</span><span style="line-height:19px;font-family:Tahoma, sans-serif;color:black;">PHP 5<strong>.</strong>3 [Stable Release]<br />
</span><span style="line-height:19px;font-family:Tahoma, sans-serif;color:black;">phpMyAdmin 3<strong>.</strong>2<strong>.</strong>2<br />
</span><span style="line-height:19px;font-family:Tahoma, sans-serif;color:black;">Video Footage covering LAMP Installation<br />
</span><span style="line-height:19px;font-family:Tahoma, sans-serif;color:black;">Source code for the examples covered in this book</span></span></span></span></span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[setting up nginx and mochiweb on centos 5]]></title>
<link>http://erikeldridge.wordpress.com/2009/12/26/setting-up-nginx-and-mochiweb-on-centos-5/</link>
<pubDate>Sun, 27 Dec 2009 05:51:56 +0000</pubDate>
<dc:creator>Erik</dc:creator>
<guid>http://erikeldridge.wordpress.com/2009/12/26/setting-up-nginx-and-mochiweb-on-centos-5/</guid>
<description><![CDATA[Install nginx on centos using cyberciti&#8217;s tutorial update default iptables to allow http traff]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><ol>
<li>Install nginx on centos using <a href="//www.cyberciti.biz/faq/rhel-fedora-install-configure-nginx-php5/">cyberciti&#8217;s tutorial</a></li>
<li><a href="//www.cyberciti.biz/faq/rhel-fedora-install-configure-nginx-php5/"></a>update default iptables to allow http traffic:
<pre class="brush: bash;">
# ref: http://www.cyberciti.biz/faq/redhat-fedora-ip6tables-firewall-configuration/
# ref: http://wiki.zimbra.com/index.php?title=Firewall_Configuration
# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m tcp -p tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT
</pre>
</li>
<li> install mochiweb using <a href="http://beebole.com/en/blog/erlang/web-application-on-erlang-configure-nginx-with-mochiweb/">BeeBole&#8217;s tutorial</a>.  For ease of use while testing, launch dev server using separate <a href="http://www.cyberciti.biz/tips/linux-screen-command-howto.html">screen</a>, as the mochiweb shell will own the terminal used to launched it by default, and add the following line to iptables so we can hit the server directly:
<pre class="brush: bash;">
-A RH-Firewall-1-INPUT -m tcp -p tcp --dport 8000 -j ACCEPT # allow access to mochiweb
</pre>
<p>Test that mochiweb is available to localhost by running the following from the command line on the server:</p>
<pre class="brush: bash;">
curl http://127.0.0.1:8000
</pre>
<p>You should get something back like:</p>
<p>&#60;html&#62;<br />
&#60;head&#62;<br />
&#60;title&#62;It Worked&#60;/title&#62;<br />
&#60;/head&#62;<br />
&#60;body&#62;<br />
MochiWeb running.<br />
&#60;/body&#62;<br />
&#60;/html&#62;</li>
<li>Configure nginx to proxy api calls to mochiweb.  Put this in /etc/nginx/nginx.conf:
<pre class="brush: bash;">
user              nginx;
worker_processes  1;
error_log         /var/log/nginx/error.log;
pid               /var/run/nginx.pid;
events {
    worker_connections  1024;
}
http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;
    log_format  main  '$remote_addr - $remote_user [$time_local] $request '
                      '&#34;$status&#34; $body_bytes_sent &#34;$http_referer&#34; '
                      '&#34;$http_user_agent&#34; &#34;$http_x_forwarded_for&#34;';
    access_log  /var/log/nginx/access.log  main;
    sendfile        on;
    keepalive_timeout  65;
    include /etc/nginx/conf.d/*.conf;
    server {
        listen       80;
        server_name  localhost;
        location ~ api { # &#60;-- pass requests for 'api...' to mochiweb
                proxy_pass      http://127.0.0.1:8000;
        }
        location / {
            root   /usr/share/nginx/html;
            index  index.html index.htm;
        }
        error_page  404              /404.html;
        location = /404.html {
            root   /usr/share/nginx/html;
        }
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   /usr/share/nginx/html;
        }
    }
}
</pre>
<p>As per <a href="http://beebole.com/en/blog/erlang/how-to-quickly-set-up-ubuntu-804-loaded-with-erlang-mochiweb-and-nginx/">BeeBole&#8217;s tutorial</a>, edit the mochiweb request handler to handle requests for &#8216;api&#8217;:</p>
<pre class="brush: erlang;">
%% @author author &#60;author@example.com&#62;
%% @copyright YYYY author.

%% @doc Web server for myapp.

-module(myapp_web).
-author('author &#60;author@example.com&#62;').

-export([start/1, stop/0, loop/2]).

%% External API

start(Options) -&#62;
    {DocRoot, Options1} = get_option(docroot, Options),
    Loop = fun (Req) -&#62;
                   ?MODULE:loop(Req, DocRoot)
           end,
    mochiweb_http:start([{name, ?MODULE}, {loop, Loop} &#124; Options1]).

stop() -&#62;
    mochiweb_http:stop(?MODULE).

loop(Req, DocRoot) -&#62;
    &#34;/&#34; ++ Path = Req:get(path),
    case Req:get(method) of
        Method when Method =:= 'GET'; Method =:= 'HEAD' -&#62;
            case Path of
                &#34;api&#34; -&#62; Req:ok({&#34;text/html&#34;, [],[&#34;&#60;h1&#62;Congratulation&#60;/h1&#62;&#34;]}); % &#60;-- the 'api' request handler
                _ -&#62; Req:serve_file(Path, DocRoot)
            end;
        'POST' -&#62;
            case Path of
                _ -&#62;
                    Req:not_found()
            end;
        _ -&#62;
            Req:respond({501, [], []})
    end.

%% Internal API

get_option(Option, Options) -&#62;
    {proplists:get_value(Option, Options), proplists:delete(Option, Options)}.
</pre>
<p>As per <a href="http://jimmyg.org/blog/2007/multipart-post-with-erlang-and-mochiweb.html">James Gardner&#8217;s post <em>Streaming File Upload with Erlang and Mochiweb Multipart Post</em></a>, rebuild the request handler by running <em>make</em> in the <em>myapp</em> directory.  The mochiweb server will automatically restart</li>
<li>confirm the proxy is working by hitting http://domain/ and http://domain/api.  The former should return the nginx install confirmation page, and the latter should return the simple &#8220;Congratulation&#8221; page.</li>
</ol>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Sometimes it's the simple things]]></title>
<link>http://lesleyharrison.wordpress.com/2009/12/26/sometimes-its-the-simple-things/</link>
<pubDate>Sat, 26 Dec 2009 16:33:24 +0000</pubDate>
<dc:creator>lesleyharrison</dc:creator>
<guid>http://lesleyharrison.wordpress.com/2009/12/26/sometimes-its-the-simple-things/</guid>
<description><![CDATA[Have you ever wrestled with a problem for far too long, before realizing that the solution was actua]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Have you ever wrestled with a problem for far too long, before realizing that the solution was actually really simple?  I love to point and laugh when this happens to other people, but yesterday it happened to me.</p>
<p>A long time ago (on a server far, far away), I installed Lighttpd, and set up a very simple site.  The config file was only a few lines long &#8211; it pointed at the index page, and had the required mime-types for PHP and HTML.  For what I wanted at the time, that was fine.</p>
<p>I left the server for a long time, and completely forgot about how it was set up.</p>
<p>I decided to change the page that was on the server to a more useful wiki.  I installed MediaWiki, and everything looked OK until the installer completed, and I was greeted with an un-styled front page.</p>
<p>My first thought was that the paths were wrong.  I checked to make sure that there were no .htaccess rules that would affect how the page looked.  Lighttpd stores URL rewriting rules in config files (lighttpd.conf, or a mysite.conf file for each site), rather than in .htaccess, so checking that you&#8217;ve converted all the rules over to Lighttpd&#8217;s syntax is a good first step.</p>
<p>As far as I could see, everything was correct.  So, to me, the next obvious issue was folder permissions.  Everything in the /www folder should, in theory be owned by the wwwdata group and www user.  However, in this case I had used wget to download MediaWiki while logged in as an unrelated user, and I had <em>chgrp</em> / <em>chown</em>-ed the folders afterwards.  I thought that I may have made a mistake with the file permissions.</p>
<p>That turned out not to be the case.  After that, my troubleshooting skills failed me.  I tried re-installing Media Wiki, I even re-set up the site in Lighttpd &#8211; basically anything but checking that one darn config file.</p>
<p>Of course, after wasting far too much time on the problem, I went back to basics, and guess what &#8211; adding the mime information for .css files fixed the problem.  Yes, you can point and laugh now!</p>
<p>So, the moral of today&#8217;s story is &#8211; sometimes the most obvious things are worth looking at.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Log - 1:  Network Server and B/W Re-seller]]></title>
<link>http://tohin.wordpress.com/2009/12/26/log-1-network-server-and-bw-re-seller/</link>
<pubDate>Sat, 26 Dec 2009 08:45:32 +0000</pubDate>
<dc:creator>tohin</dc:creator>
<guid>http://tohin.wordpress.com/2009/12/26/log-1-network-server-and-bw-re-seller/</guid>
<description><![CDATA[Some Background Talk: It was way back when I first got my hand on linux in 2002. It was a Red-hat. M]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>Some Background Talk: </strong></p>
<p>It was way back when I first got my hand on linux in 2002. It was a Red-hat. My neighbour Zakir Uncle introduced it to me. He told me at that time, linux holds gr8 features and u can do so many things with it. But all I did was ( cd .. / cd. / mkdir / touch / ).  I removed linux after 1month cause it was boring( what do u expect from a 3month old experienced computer user? ). Later, I experiment with different linux versions ( fedora, mandrake); and did able to make it popular enough that my late cousin (she died in 2008), my little sister and even my aunt used linux. Just to play Shishanshu and Mahjong.</p>
<p>In February, 2009 jhoroTEK configured the network server at Skyinnova (experimental work), where we configured a central server with Fedora Core 10 and squid. Adnan made it a success. [ He was suppose to write an article on it. Hopefully he will put it sooner.] My  friend Harun-ur Rashid who is a B/W  re-seller in our area was using squid as a proxy server and tc for traffic shaping.  No visual admin section and no DHCP.  So I got the perfect opportunity to experiment at his place.</p>
<p><strong>For the Reader: </strong></p>
<p>It’s not a complete tutorial on Configuring a network Server using CENT OS rather an experience sharing.  If you can take the clues and see the rose line u will find the destiny <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  .  My task is still on-going;  if you have better suggestion then drop a comment.</p>
<p>If you want more details or consultancy then contact me.</p>
<p>Follow me on twitter  @neotohin  to see which step i am right now and some tips <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  .</p>
<p><strong>Things in my hand:</strong></p>
<ol>
<li>An 1 mbps B/W from ISP provider</li>
<li>A Core-2-duo Machine ( server ), A Pentium 4 client Machine)</li>
<li>1 switch,  1 hub</li>
<li>CentOS 5.2</li>
</ol>
<p><strong>Task : </strong></p>
<ol>
<li>Share the B/W with clients in sub-network</li>
<li>Traffic Shaping Each client will have different kind of B/W plan like  16KB to 64KB shared.</li>
<li>DHCP Server + MAC binding [ future PPP ]</li>
<li>Proxy Server</li>
<li>FTP, WEB server ( Simple extensions )</li>
<li>More interesting things to come <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
</ol>
<p>Let the Journey Begin ====================================</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Apt on CentOS 5]]></title>
<link>http://ntdt.wordpress.com/2009/12/25/apt-on-centos-5/</link>
<pubDate>Fri, 25 Dec 2009 08:01:46 +0000</pubDate>
<dc:creator>ntdt</dc:creator>
<guid>http://ntdt.wordpress.com/2009/12/25/apt-on-centos-5/</guid>
<description><![CDATA[Few steps to get apt on CentOS 5 $wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Few steps to get apt on CentOS 5<br />
<code><br />
$wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm<br />
$wget http://dag.wieers.com/rpm/packages/apt/apt-0.5.15lorg3.2-1.el5.rf.i386.rpm<br />
$sudo rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm apt-0.5.15lorg3.2-1.el5.rf.i386.rpm<br />
$sudo apt-get update<br />
$sudo apt-get install git<br />
</code></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Memainkan file multimedia di centos 5]]></title>
<link>http://sigitnote.wordpress.com/2009/12/24/memainkan-file-multimedia-di-centos-5/</link>
<pubDate>Thu, 24 Dec 2009 15:29:52 +0000</pubDate>
<dc:creator>sigit</dc:creator>
<guid>http://sigitnote.wordpress.com/2009/12/24/memainkan-file-multimedia-di-centos-5/</guid>
<description><![CDATA[Bagi yang sudah install linux centos mungkin akan mengalami kesulitan ketika baru pertama kali insta]]></description>
<content:encoded><![CDATA[Bagi yang sudah install linux centos mungkin akan mengalami kesulitan ketika baru pertama kali insta]]></content:encoded>
</item>
<item>
<title><![CDATA[Install flash on Redhat Machines]]></title>
<link>http://hsukumar.wordpress.com/2009/12/17/install-flash-on-redhat-machines/</link>
<pubDate>Thu, 17 Dec 2009 02:09:34 +0000</pubDate>
<dc:creator>hsukumar</dc:creator>
<guid>http://hsukumar.wordpress.com/2009/12/17/install-flash-on-redhat-machines/</guid>
<description><![CDATA[How to install flash plugin for firefox on centos/redhat There are many ways to get flash working on]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><h1>How to install flash plugin for firefox on centos/redhat</h1>
<div>
<p>There are many ways to get flash working on firefox, but here is a quick, easy, clean way to do it.</p>
<p>1) Go to http://www.adobe.com/go/getflashplayer</p>
<p>2) Download the tar.gz tarball</p>
<p>3) tar -zxf Flash_Player_10_for_Linux_.tar.gz</p>
<p>4) cd Flash_Player_10_for_Linux</p>
<p>5) Run the installer, when asked for the location of firefox, enter /usr/lib/mozilla…</p>
<p>If for some reasons you still experience problems… then manually copy the libflashplayer.so file which should be at the root of your untarred flash tarball to /usr/lib/mozilla/plugins/</p>
<p>5) cp libflashplayer.so /usr/lib/mozilla/plugins/</p>
<p>6) Once copied, restart firefox (or open it) and voila! enjoy <img src="http://alouche.net/blog/wp-includes/images/smilies/icon_smile.gif" alt=":)" /></p>
<p>Clean, easy, simple, fast and no hassle.</p>
<p>Cheers,</p>
</div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Linux, Security, LDAP: Local Authentication Fallback]]></title>
<link>http://blog.colovirt.com/2009/12/16/linux-security-ldap-local-authentication-fallback/</link>
<pubDate>Wed, 16 Dec 2009 17:49:33 +0000</pubDate>
<dc:creator>Kevin Goodman</dc:creator>
<guid>http://blog.colovirt.com/2009/12/16/linux-security-ldap-local-authentication-fallback/</guid>
<description><![CDATA[I have been setting up and integrating an LDAP authentication system into our infrastructure over th]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I have been setting up and integrating an LDAP authentication system into our infrastructure over the past few days.  This is just one small &#8220;got-cha&#8221; that I ran into.  The default setting in the OpenLDAP configuration (/etc/ldap.conf) is to continuously try reconnecting to the LDAP server on failure.  This is definitely not what I want to happen if we loose LDAP.  In this scenario, when connecting to the server via SSH, the session will hang and eventually timeout.  This even removes the ability to login with a local system account.<br />
<!--more--><strong>Example of the timeout when LDAP server is down:</strong></p>
<pre>testuser@workstation4-l:~$ ssh test123@ldapclientsrv
Connection closed by 172.16.0.192</pre>
<p><strong>To begin, lets look at a typical error that you would get on the system if LDAP communication was down.</strong></p>
<pre>Dec 13 12:52:58 ldapServer sshd[15965]: nss_ldap: failed to bind to LDAP server ldap://127.0.0.16: Can't contact LDAP server
Dec 13 12:52:58 ldapServer sshd[15965]: nss_ldap: reconnecting to LDAP server (sleeping 4 seconds)...
Dec 13 12:53:02 ldapServer sshd[15965]: nss_ldap: failed to bind to LDAP server ldap://127.0.0.16: Can't contact LDAP server
Dec 13 12:53:02 ldapServer sshd[15965]: nss_ldap: reconnecting to LDAP server (sleeping 8 seconds)...
Dec 13 12:53:10 ldapServer sshd[15965]: nss_ldap: failed to bind to LDAP server ldap://127.0.0.16: Can't contact LDAP server
Dec 13 12:53:10 ldapServer sshd[15965]: nss_ldap: reconnecting to LDAP server (sleeping 16 seconds)...</pre>
<p><strong>As noted before, I was unable to login with a local account.  Turns out that the problem was with the default &#8220;bind_policy&#8221; in /etc/ldap.conf.  Per the document:</strong></p>
<pre># Reconnect policy: hard (default) will retry connecting to
# the software with exponential backoff, soft will fail
# immediately.
#bind_policy hard</pre>
<p><strong>This was changed to:</strong></p>
<pre>bind_policy soft</pre>
<p><strong>Once this was changed, I brought up the firewall on the LDAP server and refused connections.  Ability to login via LDAP was gone, but the server did fail back to local system authentication</strong></p>
<p><strong>Note(s)</strong>: When failing back to local authentication, there is no error sent back to the client trying to login, only errors go to /var/log/secure file.  The server will just keep rejecting the users login until LDAP is back up.  At least this gives you the ability to get in with a local system account in an emergency.</p>
<p><strong>Example error to /var/log/secure when LDAP server is down and local authentication is rejecting the LDAP user received from the client:</strong></p>
<pre>Dec 13 12:59:59 ldapServer sshd[2588]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=172.16.0.22</pre>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[svn: warning: cannot set LC_CTYPE locale]]></title>
<link>http://navaroiss.wordpress.com/2009/12/16/svn-warning-cannot-set-lc_ctype-locale/</link>
<pubDate>Wed, 16 Dec 2009 14:38:08 +0000</pubDate>
<dc:creator>Rồ</dc:creator>
<guid>http://navaroiss.wordpress.com/2009/12/16/svn-warning-cannot-set-lc_ctype-locale/</guid>
<description><![CDATA[Sau khi cài Subverion trên server mọi thứ có vẻ hoạt động tốt nhưng khi dùng lệnh svn status hoặc cũ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Sau khi cài Subverion trên server mọi thứ có vẻ hoạt động tốt nhưng khi dùng lệnh svn status hoặc cũng command khác của svn thì nhận được thông báo:</p>
<p>[root@server ncs]# svn status<br />
svn: warning: cannot set LC_CTYPE locale<br />
svn: warning: environment variable LANG is en_US.UTF-8<br />
svn: warning: please check that your locale name is correct</p>
<p>Tìm trên mạng thấy khắc phục như vầy,</p>
<pre class="brush: bash;">

&#62;&#62;&#62; export LC_ALL = C
</pre>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[setting ipv4 vs ipv6 network precedence in redhat]]></title>
<link>http://tacticalvim.wordpress.com/2009/12/15/setting-ipv4-vs-ipv6-network-precedence-in-redhat/</link>
<pubDate>Tue, 15 Dec 2009 19:43:41 +0000</pubDate>
<dc:creator>troyengel</dc:creator>
<guid>http://tacticalvim.wordpress.com/2009/12/15/setting-ipv4-vs-ipv6-network-precedence-in-redhat/</guid>
<description><![CDATA[Short &amp; sweet &#8212; if you&#8217;re server is connected to a network which is advertising both]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Short &#38; sweet &#8212; if you&#8217;re server is connected to a network which is advertising both IPv4 and IPv6 information, you may sometimes get back the information in one format when you want it in another (application specific) that can cause problems. A simple way to tune that is the file:</p>
<p><strong>/etc/gai.conf</strong></p>
<p>Do a &#8216;<em>man gai.conf</em>&#8216; to get the details and some simple examples &#8211; not hard to understand, it&#8217;s how you can set a precedence list for network information (think like DNS MX precedence format) to be retrieved by getaddrinfo().</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[IPV6 unter Linux deaktivieren]]></title>
<link>http://trompetenkaefer.wordpress.com/2009/12/15/ipv6-unter-linux-deaktivieren/</link>
<pubDate>Tue, 15 Dec 2009 06:11:46 +0000</pubDate>
<dc:creator>trompetenkaefer</dc:creator>
<guid>http://trompetenkaefer.wordpress.com/2009/12/15/ipv6-unter-linux-deaktivieren/</guid>
<description><![CDATA[So kann man bei den verschiedenen Distributionen IPV6 ausschalten: Debian / Sidux / Ubuntu / Linux-M]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>So kann man bei den verschiedenen Distributionen IPV6 ausschalten:</p>
<p><strong>Debian / Sidux / Ubuntu / Linux-Mint:</strong></p>
<p>Als root die Datei <em>/etc/modprobe.d/aliases</em> öffnen<br />
und die Zeile</p>
<p><em>alias net-pf-10 ipv6 </em><br />
in<br />
<em>alias net-pf-10 off </em><br />
ändern.</p>
<p>Um das manuelle Laden des ipv6-Moduls zu verhindern kann noch die Zeile <em>alias ipv6 off </em> angehängt werden.</p>
<p><strong>Archlinux</strong></p>
<p>In der Datei <em>/etc/modprobe.d/modprobe.conf</em> die Zeilen </p>
<p><code>#Laden von IPV6-Modul verhindern<br />
alias net-pf-10 off</code></p>
<p>einfügen.</p>
<p><strong>Fedora 12 (gilt vermutlich auch für RedHat Enterprise 6 + CentOS 6)</strong></p>
<p>In die Datei <em>/etc/modprobe.d/blacklist.conf</em> folgende Zeilen eintragen:</p>
<p><code># ipv6 deaktiviert<br />
blacklist ipv6<br />
install ipv6 /bin/true</code></p>
<p><strong>OpenSuse 11.2</strong></p>
<p>Da IPV6 fest in den Kernel kompiliert wurde und sich über Yast nicht deaktivieren lässt, muss man bei Grub<br />
<em>/boot/grub/menu.lst</em> die Parameter <em>ipv6.disable=1</em> anhängen.</p>
<p><strong>Firefox / Iceweasel</strong></p>
<p>Damit auch bei Firefox IPV6 deaktiviert ist muss man inder Adresszeile <em>about:config</em> eingeben, anschließend den Wert des Strings <em>network.dns.disableIPv6</em> auf <em>true</em> setzen</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Linux Bare Metal Restore]]></title>
<link>http://trainridetothecity.wordpress.com/2009/12/13/linux-bare-metal-restore/</link>
<pubDate>Sun, 13 Dec 2009 02:27:01 +0000</pubDate>
<dc:creator>trainridetothecity</dc:creator>
<guid>http://trainridetothecity.wordpress.com/2009/12/13/linux-bare-metal-restore/</guid>
<description><![CDATA[At work I have been given the task of coming up with a procedure of bare metal restore of redhat ser]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>At work I have been given the task of coming up with a procedure of bare metal restore of redhat servers. There were two requirments.</p>
<p>1) Hot backing up<br />
2) Remote restore</p>
<p>After some researching this is the procedure I came up with. Please bear in mind this procedure has only been tested in model enviroment and do your own homework before using this as your DR plan.</p>
<p>A) Backup</p>
<p>Backup the mbr and the bootloader. First 512 bytes of the primary HD contains the partion table and the bootloader. Here is the command for that.</p>
<p>dd if=/dev/sda of=/backup/mbr.img bs=512 count=1</p>
<p>Ensure that you have the backup directory and correct HD.</p>
<p>Now we need to backup the filesystem. Linux is dynamically creating the following directories. So no need to take the backup of them.</p>
<p>1) /sys<br />
2) /proc<br />
3) /var/run<br />
4) /lost+found<br />
5) /tmp</p>
<p>You need to exclude the backup directories. You can use tar or rsync to take the backup, however if you use rsync ensure you preserve symlinks and file permissions. Here is the command to create the tar archive.</p>
<p>tar cvfpz /backup/root.tar.gz &#8211;exclude=sys &#8211;exclude=proc &#8211;exclude=var/run &#8211;exclude=tmp &#8211;exclude=lost+found &#8211;exclude=backup /</p>
<p>Take a backup of the /etc/fstab and partion table info from the following command.</p>
<p>fdisk -l &#62; /backup/fdisk.txt</p>
<p>B) Restore </p>
<p>Okay before restore lets crash the HD. Please beware this command shall ruin your HD, do not run this in the production enviroment. </p>
<p>dd if=/dev/random of=/dev/sda bs=512 count=100</p>
<p>Okay let&#8217;s start restoring.</p>
<p>You need a lInux live cd. Well I prefer a knoppix since it has all the useful tools.</p>
<p>Boot the server with the knoppix cd and restore the partion table. Since I am soundf this remotely I will be using iLo virtual media to mount the knoppix live cd.</p>
<p>dd if=/backup/mbr.img of=/dev/sda bs=512 count=1</p>
<p>Linux will not identify the HD until you reboot, however you can do the following as well. Run fdisk and write the partion table by pressing &#8216;w&#8217;. </p>
<p>Okay now let&#8217;s format the partions. This is where the copy of  fstab helps. You can run the following command for each partion.</p>
<p>mkfs.ext3 /dev/sda2 -L /<br />
mkfs.ext3 /dev/sda1 -L /boot</p>
<p>Now your partions are ready for the data. Let&#8217;s mount the devices. First create the mount point by running the following command. I am killing two birds with one command. I am creating rootfs and boot directories.</p>
<p>mkdir -p /rootfs/boot</p>
<p>Okay change directories, into cd /rootfs</p>
<p>Let&#8217;s extract the archive </p>
<p>tar xvzp /backup/root.tar.gz </p>
<p>Okay now we need to create the following directories.</p>
<p>mkdir /sys; mkdir /tmp; mkdir /lost+found; mkdir /proc; mkdir /var/run</p>
<p>Okay now you need to chroot into the /rootfs</p>
<p>mount -t proc /proc /rootfs/proc<br />
mount -o loop /dev /rootfs/dev</p>
<p>chroot /rootfs -c /bin/bash</p>
<p>Now you have mounted the filesystem. Run the following command to reinstall grub</p>
<p>grub-install /dev/sda</p>
<p>Okay fingers cross you have recovered your crashed server. Reboot the box you have resurrected your Linux box.</p>
<p>Things you need to know. This won&#8217;t work if you have a LVM. If your fstab has uid rather than block devices, you need to change it to block devices.</p>
<p>If you have grub2 grub reinstallation might change a bit.<br />
I will cover that in another post.</p>
<p>Okay something you might notice that I didn&#8217;t cover the backup directory. You have several options here. You can use a nfs or samba mount for that. Please keep in mind if you are using rsync as your backup method you cannot have the symlinks in a samba mount. So you need to use tar if you are using the samba option.</p>
<p>If you have a better way or see a mistake please comment. </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[use innodb_file_per_table=1 in your mysql config]]></title>
<link>http://tacticalvim.wordpress.com/2009/12/10/use-innodb_file_per_table1-in-your-mysql-config/</link>
<pubDate>Thu, 10 Dec 2009 18:08:28 +0000</pubDate>
<dc:creator>troyengel</dc:creator>
<guid>http://tacticalvim.wordpress.com/2009/12/10/use-innodb_file_per_table1-in-your-mysql-config/</guid>
<description><![CDATA[If you decide to use InnoDB in your MySQL, be aware that the default on Red Hat / CentOS is to lump ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>If you decide to use InnoDB in your MySQL, be aware that the default on Red Hat / CentOS is to lump everything together into one big massive file (<em>/var/lib/mysql/ibdata1</em> by default). At first glance you may not thing there&#8217;s anything wrong with this&#8230;until you read a <a href="http://bugs.mysql.com/bug.php?id=1287">design decision by the developers</a> (arguably a deficiency, as I believe it to be) that you can not reclaim disk space from the physical file after the data inside it has been deleted.</p>
<p>Set in your <strong>/etc/my.cnf</strong> this before you set any of your databases up (if it&#8217;s already running, you&#8217;ll probably want to rebuild it from scratch by mysqldump&#8217;ing it to a file, erasing the DB, then re-importing the data &#8211; plan your actions well!):</p>
<p><code>
<pre>
  [mysqld]
  innodb_file_per_table = 1
</pre>
<p></code></p>
<p><!--more--></p>
<p>The result is that each table in a database will now have it&#8217;s own discrete IDB (InnoDB) file in a subdirectory of the database name. When the files are unique, you can run an &#8216;OPTIMIZE LOCAL TABLE FOOBAR;&#8217; on it and it will in fact shrink in size, sometimes quite drastically. The Optimize process basically reads the records from the real file, writes them to a temporary file next to the real one, then when it&#8217;s done replaces the old real file with the new temporary one written.</p>
<p>A real case scenario is that we have a database that has a table which records &#8220;job complete&#8221; status, but only needs to retain that data for a short period of time (maybe 30 days) and then it can be purged. Regardless of the internal purging, if we were using the default &#8220;all innodb inside one file&#8221; setting that &#8216;ibdata1&#8242; would grow to huge proportions and could never shrink.</p>
<p><code>
<pre>
  1543503872  job_completion_log_item.ibd
   176160768  job_completion_log_item.ibd
</pre>
<p></code></p>
<p>That is a real result from just this morning &#8212; this aforementioned log tablespace was 1.5gig IDB file; we deleted 75% of the records not needed and it shrunk to a mere 175meg in size after running an OPTIMIZE on it. And that&#8217;s just one table alone, imagine your savings when you work on all of them.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[using php 5.3 with a mysql server using old_passwords=1]]></title>
<link>http://tacticalvim.wordpress.com/2009/12/10/using-php-5-3-with-a-mysql-server-using-old_passwords1/</link>
<pubDate>Thu, 10 Dec 2009 17:45:13 +0000</pubDate>
<dc:creator>troyengel</dc:creator>
<guid>http://tacticalvim.wordpress.com/2009/12/10/using-php-5-3-with-a-mysql-server-using-old_passwords1/</guid>
<description><![CDATA[A developer had some issues connecting to a MySQL server running on a RHEL/CentOS 5 machine with the]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>A developer had some issues connecting to a MySQL server running on a RHEL/CentOS 5 machine with the PHP 5.3 software that&#8217;s included/installed in the new OS X 10.6 Snow Leopard; it turns out there&#8217;s an issue with PHP being unable to connect if the MySQL server has accounts using the old_passwords scheme set to TRUE (old_passwords = 1 in your /etc/my.cnf for instance, the Red Hat 5 default).</p>
<p>A quick fix that won&#8217;t affect other things running is to dynamically turn off old_passwords and create your user a new account with the needed privileges on the database(s) in question; the two styles can coexist peacefully in your database. As your properly enabled root/admin MySQL account the scenario is:</p>
<pre class="brush: sql;">
set OLD_PASSWORDS = FALSE;
grant ALL privileges on DATABASENAME.* to 'NEWUSER'@'HOSTNAME' identified by 'PASSWORD';
flush privileges;
</pre>
<p>That&#8217;s all there is to it, no harm no foul. Replace above values as necessary for your particular installation (perhaps you only want to grant SELECT, UPDATE, INSERT, DELETE to them) and you&#8217;re off and running. A more complete transition might simply involve updating the needed password to the newer schema, just be sure that you won&#8217;t break any of the other running code/tools first.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[vSphere ESX4: Hot Add CPUs for Linux Guests]]></title>
<link>http://adaptivethinking.wordpress.com/2009/12/10/vsphere-esx4-hot-add-cpus-for-linux-guests/</link>
<pubDate>Thu, 10 Dec 2009 17:21:11 +0000</pubDate>
<dc:creator>virtualDCS</dc:creator>
<guid>http://adaptivethinking.wordpress.com/2009/12/10/vsphere-esx4-hot-add-cpus-for-linux-guests/</guid>
<description><![CDATA[Sometime ago within my post entitled vSphere ESX4: Hot Add Memory for Linux Guests, I promised to bl]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Sometime ago within my post entitled <a href="http://adaptivethinking.wordpress.com/2009/07/27/vsphere-esx4-hot-add-memory-for-linux-guests/" target="_blank">vSphere ESX4: Hot Add Memory for Linux Guests</a>, I promised to blog about hot add CPU support to the same VM.  As you may have guessed, I didn&#8217;t get around to writing it, and have subsequently found the area well covered elsewhere.</p>
<p>wila has knocked together a very clear procedure here <a href="http://communities.vmware.com/docs/DOC-10493" target="_blank">http://communities.vmware.com/docs/DOC-10493</a> which kinda makes my post unecessary.</p>
<p>My earlier post has been referenced as a resource by lamw for his helpful guide here: <a href="http://communities.vmware.com/docs/DOC-10492" target="_blank">http://communities.vmware.com/docs/DOC-10492</a></p>
<p style="text-align:center;"><a href="http://www.facebook.com/sharer.php?u=http://adaptivethinking.wordpress.com/2009/12/10/vsphere-esx4-hot-add-cpus-for-linux-guests/" target="_blank"><img style="border:0;margin:0;padding:0;" src="http://getsocialserver.wordpress.com/files/2008/05/gsb201m02.png" alt="Add to Facebook" /></a><a href="http://www.newsvine.com/_wine/save?u=http%3A%2F%2Fadaptivethinking.wordpress.com%2F2009%2F12%2F10%2Fvsphere-esx4-hot-add-cpus-for-linux-guests%2F&#38;h=vSphere%20ESX4%3A%20Hot%20Add%20CPUs%20for%20Linux%20Guests" target="_blank"><img style="border:0;margin:0;padding:0;" src="http://getsocialserver.wordpress.com/files/2008/05/gsb202m02.png" alt="Add to Newsvine" /></a><a href="http://digg.com/submit?phase=2&#38;url=http%3A%2F%2Fadaptivethinking.wordpress.com%2F2009%2F12%2F10%2Fvsphere-esx4-hot-add-cpus-for-linux-guests%2F&#38;title=vSphere%20ESX4%3A%20Hot%20Add%20CPUs%20for%20Linux%20Guests" target="_blank"><img style="border:0;margin:0;padding:0;" src="http://getsocialserver.wordpress.com/files/2008/05/gsb203m02.png" alt="Add to Digg" /></a><a href="http://del.icio.us/post?url=http%3A%2F%2Fadaptivethinking.wordpress.com%2F2009%2F12%2F10%2Fvsphere-esx4-hot-add-cpus-for-linux-guests%2F&#38;title=vSphere%20ESX4%3A%20Hot%20Add%20CPUs%20for%20Linux%20Guests" target="_blank"><img style="border:0;margin:0;padding:0;" src="http://getsocialserver.wordpress.com/files/2008/05/gsb204m02.png" alt="Add to Del.icio.us" /></a><a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fadaptivethinking.wordpress.com%2F2009%2F12%2F10%2Fvsphere-esx4-hot-add-cpus-for-linux-guests%2F&#38;title=vSphere%20ESX4%3A%20Hot%20Add%20CPUs%20for%20Linux%20Guests" target="_blank"><img style="border:0;margin:0;padding:0;" src="http://getsocialserver.wordpress.com/files/2008/05/gsb205m02.png" alt="Add to Stumbleupon" /></a><a href="http://reddit.com/submit?url=http%3A%2F%2Fadaptivethinking.wordpress.com%2F2009%2F12%2F10%2Fvsphere-esx4-hot-add-cpus-for-linux-guests%2F&#38;title=vSphere%20ESX4%3A%20Hot%20Add%20CPUs%20for%20Linux%20Guests" target="_blank"><img style="border:0;margin:0;padding:0;" src="http://getsocialserver.wordpress.com/files/2008/05/gsb206m02.png" alt="Add to Reddit" /></a><a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&#38;Description=&#38;Url=http%3A%2F%2Fadaptivethinking.wordpress.com%2F2009%2F12%2F10%2Fvsphere-esx4-hot-add-cpus-for-linux-guests%2F&#38;Title=vSphere%20ESX4%3A%20Hot%20Add%20CPUs%20for%20Linux%20Guests" target="_blank"><img style="border:0;margin:0;padding:0;" src="http://getsocialserver.wordpress.com/files/2008/05/gsb207m02.png" alt="Add to Blinklist" /></a><a href="http://ma.gnolia.com/bookmarklet/add?url=http%3A%2F%2Fadaptivethinking.wordpress.com%2F2009%2F12%2F10%2Fvsphere-esx4-hot-add-cpus-for-linux-guests%2F&#38;title=vSphere%20ESX4%3A%20Hot%20Add%20CPUs%20for%20Linux%20Guests" target="_blank"><img style="border:0;margin:0;padding:0;" src="http://getsocialserver.wordpress.com/files/2008/05/gsb208m02.png" alt="Add to Ma.gnolia" /></a><a href="http://www.technorati.com/faves?add=http%3A%2F%2Fadaptivethinking.wordpress.com%2F2009%2F12%2F10%2Fvsphere-esx4-hot-add-cpus-for-linux-guests%2F" target="_blank"><img style="border:0;margin:0;padding:0;" src="http://getsocialserver.wordpress.com/files/2008/05/gsb209m02.png" alt="Add to Technorati" /></a><a href="http://www.furl.net/storeIt.jsp?u=http%3A%2F%2Fadaptivethinking.wordpress.com%2F2009%2F12%2F10%2Fvsphere-esx4-hot-add-cpus-for-linux-guests%2F&#38;t=vSphere%20ESX4%3A%20Hot%20Add%20CPUs%20for%20Linux%20Guests" target="_blank"><img style="border:0;margin:0;padding:0;" src="http://getsocialserver.wordpress.com/files/2008/05/gsb210m02.png" alt="Add to Furl" /></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Exclude folders from zip - tar]]></title>
<link>http://sandeepverma.wordpress.com/2009/12/10/exclude-folders-from-zip-tar/</link>
<pubDate>Thu, 10 Dec 2009 15:52:50 +0000</pubDate>
<dc:creator>sandeepverma</dc:creator>
<guid>http://sandeepverma.wordpress.com/2009/12/10/exclude-folders-from-zip-tar/</guid>
<description><![CDATA[TAR &#8211; Tape Archive  (application/x-tar) TAR - svnlabs A common archive format used on Unix-lik]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>TAR</strong> &#8211; <em>Tape Archive  (</em>application/x-tar<em>)</em></p>
<div id="attachment_258" class="wp-caption alignleft" style="width: 138px"><em><em><img class="size-full wp-image-258 " title="TAR" src="http://blog.svnlabs.com/wp-content/uploads/2009/12/Torchlight_tar.png" alt="tar svnlabs" width="128" height="128" /></em></em><p class="wp-caption-text">TAR - svnlabs</p></div>
<p><em> </em>A common archive format used on Unix-like systems. Generally used in conjunction with compressors such as <a title="Gzip" href="http://en.wikipedia.org/wiki/Gzip">gzip</a>, <a title="Bzip2" href="http://en.wikipedia.org/wiki/Bzip2">bzip2</a>, <a title="Compress" href="http://en.wikipedia.org/wiki/Compress">compress</a> or <a title="Xz" href="http://en.wikipedia.org/wiki/Xz">xz</a> to create .tar.gz, .tar.bz2, .tar.Z or tar.xz files.</p>
<p># <strong>tar</strong> -cvvf foo.tar foo/ &#8211;exclude=&#8221;/home/svnlabs&#8221;</p>
<p># <strong>tar</strong> -cvzpP &#8211;file=/home/backup.tar.gz &#8211;exclude={/dev/*,/proc/*,/sys/*,/tmp/*} /</p>
<p>tar work with directory &#8220;/&#8221; except for /dev, /proc, /sys, /tmp <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Matching Pipeline]]></title>
<link>http://frenesssi.wordpress.com/2009/12/10/matching-pipeline/</link>
<pubDate>Thu, 10 Dec 2009 08:27:40 +0000</pubDate>
<dc:creator>jacobnix</dc:creator>
<guid>http://frenesssi.wordpress.com/2009/12/10/matching-pipeline/</guid>
<description><![CDATA[La siguiente versión del diagrama de flujo que desarrollé está mal!! ya que hay puntos que han cambi]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>La siguiente versión del diagrama de flujo que desarrollé está mal!! ya que hay puntos que han cambiado para el mapeo de los reads de 25bp hacia el genoma de referencia.</p>
<p><a href="http://frenesssi.wordpress.com/files/2009/12/matching.png"><img class="alignnone size-large wp-image-954" style="border:0 none;" title="Matching Pipeline" src="http://frenesssi.wordpress.com/files/2009/12/matching.png?w=1024" border="0" alt="" width="614" height="339" /></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Determining WHICH *nix distro is currently used...]]></title>
<link>http://digitalvectorz.wordpress.com/2009/12/10/determining-which-nix-distro-is-currently-used/</link>
<pubDate>Thu, 10 Dec 2009 01:49:59 +0000</pubDate>
<dc:creator>digitalvectorz</dc:creator>
<guid>http://digitalvectorz.wordpress.com/2009/12/10/determining-which-nix-distro-is-currently-used/</guid>
<description><![CDATA[&#8211;Edit. Originally, I had run into the issue of trying to determine the *nix distribution ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>&#8211;Edit.<br />
Originally, I had run into the issue of trying to determine the *nix distribution &#8211; a command that would tell me the distribution and the build and everythign else I wanted to know.  After reviewing some of the awesome comments left behind, here&#8217;s the updated perl script to determine the distribution (in Perl).</p>
<p style="padding-left:30px;"><code>#!/usr/bin/env perl<br />
use strict;<br />
use warnings;</code></p>
<p style="padding-left:30px;"><code>my ( $distro  );<br />
$distro = `lsb_release -i -s`;<br />
chomp $distro;</code></p>
<p style="padding-left:30px;"><code>my %installCmd = (<br />
"Fedora" =&#62; \&#38;fedora,<br />
"Ubuntu" =&#62; \&#38;ubuntu,<br />
);</code></p>
<p style="padding-left:30px;"><code>&#38;test();</p>
<p></code></p>
<p style="padding-left:30px;">
<p style="padding-left:30px;"><code>sub test {<br />
if ( exists $installCmd{$distro} ) {<br />
$installCmd{$distro}-&#62;();<br />
} else {<br />
print "Supported Distributions are: ". join(', ' , keys %installCmd) .  ".\n";<br />
exit;<br />
}<br />
}<br />
</code></p>
<p style="padding-left:30px;"><code>sub fedora { print "Hello from the Fedora Family!"; }<br />
sub ubuntu { print "Hello from UBUNTU!!!"; }</code></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Which Linux Distribution?]]></title>
<link>http://technozeal.wordpress.com/2009/12/08/which-linux-distribution/</link>
<pubDate>Tue, 08 Dec 2009 03:09:21 +0000</pubDate>
<dc:creator>technozeal</dc:creator>
<guid>http://technozeal.wordpress.com/2009/12/08/which-linux-distribution/</guid>
<description><![CDATA[Deciding which Linux distribution to install is more of a personal choice. You should install a few ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:justify;">Deciding which Linux distribution to install is more of a personal choice. You should install a few of them to see which version do you like. <span style="background-color:#ffffff;">However, there are some characteristics that could identify among the different distribution. The most popular Linux distribution is Fedora and Ubuntu.</span></p>
<p style="text-align:justify;"><span style="background-color:#ffffff;"><strong>Ubuntu</strong></span></p>
<p style="text-align:justify;">If you are new in Linux, Ubuntu is the only choice. Ubuntu is design for people who are migrating from Windows or Mac. It is novice friendly and easy to use. Its documentation is very rich and clear. Ubuntu also has a very large support community. Furthermore, Ubuntu focus its feature enhancement more on the desktop experience. Compare to Fedora, Ubuntu is more concern of stability and therefore it won’t adopt any new technology that is too new and unstable.</p>
<p style="text-align:justify;">If you want a stable and user-friendly desktop experience, Ubuntu is the choice. If you do not like to tinker with operating system and just want to use it for normal usage, choose Ubuntu.</p>
<p style="text-align:justify;"><span style="background-color:#ffffff;"><strong>Fedora</strong></span></p>
<p style="text-align:justify;">Fedora, however, is the most technically advanced distribution. Any new technology will be adopted by Fedora first.  If you want the latest and most advanced technology, use Fedora. Therefore, Fedora is not as stable as Ubuntu. Sometime you would get a problematic kernel update which forces you to switch back to older kernel for a while. Fedora is more suitable for season Linux user who wants to try out the latest. You must not be afraid of tinkering with the operating system when using Fedora. If you are technically inclined but new to Linux, you could try Fedora. The support community for Fedora is good.</p>
<p style="text-align:justify;">For feature enhancement, Fedora is more concern of security and it may include enterprise feature which might not benefit you. Fedora is the test bed for trying out new technology before such technology is adopted by its sponsor Linux Red Hat in their enterprise operating system. If you are an IT professional considering adopting a new skills in Linux administration, Fedora is the choice. By learning Fedora, you will be sure that Linux Red Hat would adopt some of the technology eventually. For anyone who would like to learn some system administration that could help in their career in IT, Fedora is he choice.</p>
<p style="text-align:justify;"><span style="background-color:#ffffff;"><strong>Enterprise: Linux Red Hat and CentOS</strong></span></p>
<p style="text-align:justify;">In the enterprise market, Linux Red Hat is the most popular open source distribution. However, Linux Red Hat is not free. You can download Red Hat for a free trial. After which, you have to pay for any updates and support. For those looking to learn the skills in administering Linux Red Hat, you could use Fedora or CentOS. CentOS is very similar to Linux Red Hat. In fact, what CentOS did is to get the source code from Linux Red Hat, remove its trade mark and marketed as CentOS.</p>
<p style="text-align:justify;">Please bear in mind that CentOS is not 100% compatible with Linux. CentOS is trying to be as similar to Red Hat as possible. I could say that CentOS is 99% compatible with Linux Red Hat. For those who want to learn Red Hat administration, CentOS is the choice because you can download it for free. In the enterprise market, some companies try out CentOS before adopting Linux Red Hat. There are some companies who would not like to pay for updates and support would use CentOS operationally.</p>
<p style="text-align:justify;"><span style="background-color:#ffffff;"><strong>Mobile Distribution: Knoppix and DSL</strong></span></p>
<p style="text-align:justify;">Beside the two popular desktop distributions Fedora and Ubuntu, I would like to introduce you to some light weight and mobile distribution. Such distribution is not rich in software but it is good enough for simple usage. Knoppix contains in a bootable CD with a collection of GNU/Linux software. There is no need to install Knoppix to the hard disk as you can boot it up from CD.</p>
<p style="text-align:justify;">Another mobile distribution is DSL (Damn Small Linux). It is derived from Knoppix and it is much smaller in size. It contains only 50MB and could be stored in a thumb drive. Mobile distribution could be used for demonstrative or educational purpose. However, Linux administrator uses it frequently for hardware troubleshooting or repair.</p>
<p style="text-align:justify;"><span style="background-color:#ffffff;"><strong>Distribution for Hardcore Geek: Gentoo and LFS</strong></span></p>
<p style="text-align:justify;">Gentoo Linux was designed for power users. Its installation could be cumbersome although recently it includes an installer to simplify the installation. If you would like to modify your operating system to your liking, Gentoo could be your choice. Gentoo also got a good support community with comprehensive documentation.  Gentoo users are more technically inclined. In fact, Gentoo forum provide a lot of the highly technical solution to the common problem in other distribution.</p>
<p style="text-align:justify;">If you want to build Linux from scratch, you should consider LFS project. Linux From Scratch (LFS) is a project that provides you with the steps necessary to build your own custom Linux system. The most important reason for using LFS is to learn how a Linux system works internally. Building an LFS system teaches you about all that makes Linux tick, how things work together, and depend on each other. Along the way you could customize it to your own taste and needs.</p>
<p style="text-align:justify;"><span style="background-color:#ffffff;"><strong>Debian</strong></span></p>
<p style="text-align:justify;">Finally, I would like to mention Debian. Before Ubuntu arrives, Debian got the largest support community with a large collection of software. Debian also got the largest group of developers working on the project. The existence of Ubuntu, which uses the base code of Debian, split up the manpower and resource from Debian. In fact, a lots of other Linux distribution are derived from Debian.</p>
<p style="text-align:justify;"><span style="background-color:#ffffff;"><strong>Usage</strong></span></p>
<p style="text-align:justify;">With all the different Linux distributions mentioned above. I would like to highlight that the usage between these distributions can be very different especially in the area of software installation and distribution. We can categorize most Linux distribution into 2 classes.</p>
<p style="text-align:justify;">The first class is the Red Hat class of distributions. Red Hat uses rpm files to package their software and it uses yum for software update and distribution. Red Hat class distribution includes Linux Red Hat, Fedora and CentOS.</p>
<p style="text-align:justify;">The other class, is the Debian class of distributions. Obviously, these distributions use the base code of Debian. Debian uses deb package for software packaging and it uses apt-get for updates and distributions. Debian class of Linux includes Ubuntu, Kubuntu, Knoppix and DSL (via Knoppix).</p>
<p style="text-align:justify;">
<p style="text-align:justify;">I hope the analysis above will help you to make up your mind on which Linux distribution to choose.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Linux, Filesystem: GNOME Virtual File System (GVFS) Remote Connectivity CLI]]></title>
<link>http://blog.colovirt.com/2009/12/07/linux-filesystem-gnome-virtual-file-system-gvfs-remote-connectivity-cli/</link>
<pubDate>Mon, 07 Dec 2009 17:47:46 +0000</pubDate>
<dc:creator>Kevin Goodman</dc:creator>
<guid>http://blog.colovirt.com/2009/12/07/linux-filesystem-gnome-virtual-file-system-gvfs-remote-connectivity-cli/</guid>
<description><![CDATA[When not using NFS, Linux administrators generally move files from one server to the next via SFTP o]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>When not using NFS, Linux administrators generally move files from one server to the next via SFTP or FTP.  This can sometimes be a headache when needing to move large amounts of files between the systems.  This is where I like <strong>GVFS</strong> (GNOME Virtual File System).  This subsystem allows you to mount remote systems via the following protocols to a local directory tree:</p>
<li>SSH</li>
<li>FTP</li>
<li>CIFS (Windows shares)</li>
<li>WebDav (HTTP)</li>
<li>Secure WebDav (HTTPS)
<p><!--more--><br />
Above are the common protocols supported, but there is support for more.  Using GVFS to mount the remote filesystem to yours allows you to create and move files to and from the remote system using typical &#8220;cp&#8221;, &#8220;rm&#8221;, and &#8220;mv&#8221; commands.  This makes things even easier if you are working through an X windows console.  Just bring up the remote directory structure through a file manager application and work from there.  Gnome also uses GVFS to manage USB based storage.  The following will go through manually connecting to a server using GVFS.<strong>Move into the &#8220;.gvfs&#8221; filesystem in the users home directory.  Unless Gnome has automatically mounted a device, this filesystem should be empty.</strong></p>
<pre>user01@LinuxDesk:~$ cd ~/.gvfs</pre>
<p><strong>In the below example, a remote servers filesystem will be mounted over an SSH/SFTP session.</strong></p>
<pre>user01@LinuxDesk:~/.gvfs$ gvfs-mount ssh://user05@SftpServer02
Enter password
Password:</pre>
<p><strong>Verify that the location has been mounted.</strong></p>
<pre>user01@LinuxDesk:~/.gvfs$ ls
sftp for user05 on SftpServer02</pre>
<p><strong>The SFTP was mounted and we can now traverse the remote servers filesystem as if it were our own.</strong></p>
<pre>user01@LinuxDesk:~/.gvfs$ cd sftp\ for\ user05\ on\ SftpServer02/

user01@LinuxDesk:~/.gvfs/sftp for user05 on SftpServer02$ ls
app  boot  etc   hs_err_pid15240.log  lib         media  mnt  opt   relay  sbin     srv  tmp  var
bin  dev   home  hs_err_pid8660.log   lost+found  misc   net  proc  root   selinux  sys  usr</pre>
<p><strong>Since we logged into the SSH/SFTP system using user &#8220;user05&#8243;, we can write to any direcotry that remote user has access to.</strong></p>
<pre>user01@LinuxDesk:~/.gvfs/sftp for user05 on SftpServer02$ cd home/user05/</pre>
<p><strong>Below creates a new file &#8220;asdf&#8221; containing the text &#8220;asdfasdf&#8221;.  Here we are just testing write capability to the remote server</strong></p>
<pre>user01@LinuxDesk:~/.gvfs/sftp for user05 on SftpServer02/home/user05$ echo "asdfasdf" &#62; asdf
user01@LinuxDesk:~/.gvfs/sftp for user05 on SftpServer02/home/user05$ cat asdf
asdfasdf</pre>
<p><strong>&#8220;gvfs-mount&#8221; can also be used to list all currently mounted gvfs systems.  Below shows only the sftp session.</strong></p>
<pre>user01@LinuxDesk:~$ gvfs-mount -l
Mount(0): sftp on SftpServer02 -&#62; sftp://SftpServer02/
  Type: GDaemonMount</pre>
<p><strong>For reference, the following shows my 4gig USB drive that was automatically mounted when attached to the workstation through Gnome.</strong></p>
<pre>user01@LinuxDesk:~$ gvfs-mount -l
Drive(0): USB Drive
  Type: GProxyDrive (GProxyVolumeMonitorHal)
  Volume(0): 4.1 GB Media
    Type: GProxyVolume (GProxyVolumeMonitorHal)
    Mount(0): 4.1 GB Media -&#62; file:///media/disk
      Type: GProxyMount (GProxyVolumeMonitorHal)
Mount(0): sftp on SftpServer02 -&#62; sftp://SftpServer02/
  Type: GDaemonMount</pre>
<p><strong>GVFS mount points can be un-mounted using the &#8220;-u&#8221; argument.  Below will un-mount the remote ssh server.</strong></p>
<pre>user01@LinuxDesk:~/.gvfs$ gvfs-mount -u ssh://user05@SftpServer02</pre>
<p><strong>Notes: GVFS contains one master daemon (gvfsd) which tracks current GVFS mounts.  Each mount is created as an individual daemon with it&#8217;s own process.  Knowing this, we can find the actual gvfsd process ID that the sftp connection is running under.</strong></p>
<pre>user01@LinuxDesk:~/.gvfs$  ps -ef &#124; grep gvfsd-sftp
user01  8022     1  0 10:34 ?        00:00:00 /usr/lib/gvfs/gvfsd-sftp --spawner :1.8 /org/gtk/gvfs/exec_spaw/21</pre>
</li>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[A Brief description of installing MRTG on CentOS5.3 with Lighttpd]]></title>
<link>http://hoball.wordpress.com/2009/12/07/a-brief-description-of-installing-mrtg-on-centos5-3-with-lighttpd/</link>
<pubDate>Mon, 07 Dec 2009 11:06:40 +0000</pubDate>
<dc:creator>hoball</dc:creator>
<guid>http://hoball.wordpress.com/2009/12/07/a-brief-description-of-installing-mrtg-on-centos5-3-with-lighttpd/</guid>
<description><![CDATA[Requirements: net-snmp, net-snmp-utils, mrtg, lighttpd mrtg : Multi Router Traffic Grapher net-snmp ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Requirements: net-snmp, net-snmp-utils, mrtg, lighttpd</p>
<blockquote><p><strong>mrtg</strong> : Multi Router Traffic Grapher</p>
<p><strong>net-snmp</strong> and <strong>net-snmp-utils</strong> : SNMP (Simple Network Management Protocol) is a protocol used for network management. The NET-SNMP project includes various SNMP tools. net-snmp package contains the snmpd and snmptrapd daemons, documentation, etc. You also want to install the net-snmp-utils package, which contains NET-SNMP utilities.</p></blockquote>
<p><strong>Install the packages</strong></p>
<blockquote><p><code># yum install mrtg net-snmp net-snmp-utils</code></p></blockquote>
<p><strong>Configure snmpd.conf</strong></p>
<blockquote><p><code># cp /etc/snmpd/snmpd.conf /etc/snmpd/snmpd.conf.factory-default </code></p>
<p><code># vi /etc/snmpd/snmpd.conf</code></p></blockquote>
<p><strong>Comment out the contents, append: (<a title="http://www.sofee.cn/blog/2006/10/21/49/" href="http://www.sofee.cn/blog/2006/10/21/49/">http://www.sofee.cn/blog/2006/10/21/49/</a>)</strong></p>
<blockquote>
<pre>##############################################################
# Added by Justin
## sec.name source community
com2sec local   localhost       public
com2sec lan     192.168.1.0/24  public

## group.name sec.model sec.name
group   MyRWGroup       v1      local
group   MyRWGroup       v2c     local
group   MyRWGroup       usm     local
group   MyROGroup       v1      lan
group   MyROGroup       v2c     lan
group   MyROGroup       usm     lan

view all    included  .1                               80
#view mib2   included  .iso.org.dod.internet.mgmt.mib-2 fc

## context sec.model sec.level prefix read write notif
access MyROGroup ""      any       noauth    exact      all    none   none
access MyRWGroup ""      any       noauth    exact      all    all    all
rocommunity  public
disk / 100000
disk /mnt/share 500000
##############################################################</pre>
</blockquote>
<p><strong>Save and close the file</strong></p>
<blockquote><p><code># chkconfig snmpd on</code><br />
<code># service snmpd restart</code></p></blockquote>
<p><strong>Make sure you see interface IP, by running the following command:</strong></p>
<blockquote><p><code># snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndex</code></p></blockquote>
<p>Sample Outputs:</p>
<blockquote>
<pre><code>IP-MIB::ipAdEntIfIndex.123.xx.yy.zzz = INTEGER: 2
IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1</code></pre>
</blockquote>
<h5>Configure MRTG</h5>
<blockquote><p><code># vi /etc/mrtg/mrtg.cfg</code></p>
<p>OR</p>
<p><code># /usr/bin/cfgmaker –global ‘WorkDir: /var/www/mrtg’ –output /etc/mrtg/mrtg.cfg public@127.0.0.1</code></p></blockquote>
<blockquote><p>Create the html file</p>
<p><code># indexmaker --output=/var/www/mrtg/index.html /etc/mrtg/mrtg.cfg</code></p></blockquote>
<p><strong>Configure Lightttpd</strong></p>
<blockquote><p><code># vi /etc/lighttpd/lighttpd.conf</code></p></blockquote>
<blockquote><p>Add a new alias:</p></blockquote>
<blockquote><p><code> alias.url + ( "/mrtg" =&#62; "/var/www/mrtg/www" )</code></p></blockquote>
<blockquote><p>or Append the alias:</p>
<p><code> alias.url += ( "/mrtg" =&#62; "/var/www/mrtg/www" )</code></p></blockquote>
<p><strong>Please read the followings for detailed tutorials or documentation.</strong></p>
<p>English Tutorials:</p>
<p><a title="http://www.cyberciti.biz/faq/centos-fedora-linux-multi-router-traffic-grapher-tutorial/" href="http://www.cyberciti.biz/faq/centos-fedora-linux-multi-router-traffic-grapher-tutorial/">http://www.cyberciti.biz/faq/centos-fedora-linux-multi-router-traffic-grapher-tutorial/</a></p>
<p>Chinese Tutorials:</p>
<p><a title="http://lincf0315.blogspot.com/2007/04/mrtgcentos.html" href="http://lincf0315.blogspot.com/2007/04/mrtgcentos.html">http://lincf0315.blogspot.com/2007/04/mrtgcentos.html</a></p>
<p><a title="http://forum.icst.org.tw/phpbb/viewtopic.php?t=14871" href="http://forum.icst.org.tw/phpbb/viewtopic.php?t=14871">http://forum.icst.org.tw/phpbb/viewtopic.php?t=14871</a></p>
<p><a href="http://www.lslnet.com/linux/f/docs1/i05/big5132597.htm">http://www.lslnet.com/linux/f/docs1/i05/big5132597.htm</a></p>
<p><a title="http://www.sofee.cn/blog/2006/10/21/49/" href="http://www.sofee.cn/blog/2006/10/21/49/">http://www.sofee.cn/blog/2006/10/21/49/</a></p>
<p>Official documentation:</p>
<p><a title="http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html" href="http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html">http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html</a></p>
<p><a title="http://oss.oetiker.ch/mrtg/doc/mrtg-unix-guide.en.html" href="http://oss.oetiker.ch/mrtg/doc/mrtg-unix-guide.en.html">http://oss.oetiker.ch/mrtg/doc/mrtg-unix-guide.en.html</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[CentOS]]></title>
<link>http://ferygondez.wordpress.com/2009/12/05/centos/</link>
<pubDate>Sat, 05 Dec 2009 23:52:10 +0000</pubDate>
<dc:creator>ferygondez</dc:creator>
<guid>http://ferygondez.wordpress.com/2009/12/05/centos/</guid>
<description><![CDATA[CentOS adalah sebuah distribusi linux yang merupakan turunan dari RedHatEntherprise (RHEL) semua yan]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://centos.org"><img class="alignnone size-full wp-image-71" title="centos_icon_60" src="http://ferygondez.wordpress.com/files/2009/12/centos_icon_60.png" alt="" width="63" height="60" /></a>CentOS adalah sebuah distribusi linux yang merupakan turunan dari RedHatEntherprise (RHEL)</p>
<p style="text-align:justify;">semua yang ada pada centos baik fitur, command dan aplikasi sama persis dengan RHEL,,jdi bagi yang sudah familiar dengan centos pasti bisa menggunakan RHEL, nah sekarang redhat telah menghentikan distrubusi redhat linux itu <!--more selengkapnya-->sendiri dan menggantikannya dengan fedora linux,, fedora bisa dikatakan sebagai model untuk ujicoba untuk dikeluarkannya RHEL versi terbaru&#8230;..</p>
<p style="text-align:justify;">centos dapat kita download dari situs www.centos.org yang saat ini memiliki versi terakhir 5.4,, centos mendukung tipe processor mulai i386,ppc,amd_64 dan sparc.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[got r00t?]]></title>
<link>http://bashinglinux.wordpress.com/2009/12/05/got-r00t/</link>
<pubDate>Sat, 05 Dec 2009 21:02:43 +0000</pubDate>
<dc:creator>malkodan</dc:creator>
<guid>http://bashinglinux.wordpress.com/2009/12/05/got-r00t/</guid>
<description><![CDATA[Introduction Landing in a new startup company has its cons and pros. The pros being: You can do almo]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><h4>Introduction</h4>
<p>Landing in a new startup company has its cons and pros.<br />
The pros being:</p>
<ol>
<li>You can do almost whatever you want</li>
</ol>
<p>The cons:</p>
<ol>
<li>You have to do it from scracth!</li>
</ol>
<h4>The Developers</h4>
<p>Linux developers are not dumb. They can&#8217;t be. If they were dumb, they couldn&#8217;t have developed anything on Linux. They might have been called developers on some other platforms.<br />
I was opted quite early about the question of:<br />
&#8220;Am I, as a SysAdmin, going to give those Linux developers root access on their machines?&#8221;</p>
<p>Why not:</p>
<ol>
<li>They can cause a mess and break their system in a second.<br />
A fellow developer (the chowner) who ran:</p>
<pre><code>
# chown -R his_username:his_group *
</code></pre>
<p>He came to me saying &#8220;My Linux workstation stopped working well!!!&#8221;<br />
Later on I also discovered he was at /, when performing this command! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
For his defence he added: &#8220;But I stopped the command quickly! after I saw the mistake!&#8221;</li>
<li>And there&#8217;s no 2, I think this is the only main reason, given that these are actually people I generally trust.</li>
</ol>
<p>Why yes:</p>
<ol>
<li>They&#8217;ll bother me less with small things such as mounting/umounting media.</li>
<li>If they need to perform any other administrative action &#8211; they&#8217;ll <em>learn</em> from it.</li>
<li>Heck, it&#8217;s their own workstation, if they really want, they&#8217;ll get root access, so who am I to play god with them?</li>
</ol>
<p>Choosing the former and letting the developers rejoice with their root access on their machines, I had to perform some proactive actions in order to avoid unwanted situations I might encounter.</p>
<h4>Installation</h4>
<p>Your flavor of installation should be idempotent, in terms of letting the user destroy his workstation, but still be able to reinstall and get to the same position.<br />
Let&#8217;s take for example the chowner developer. His workstation was ruined. I never even thought of starting to change back permissions to their originals. It would cause much more trouble in the long run than any good.<br />
We reinstalled his workstation and after 15 minutes he was happy again to continue development.</p>
<p>Automatic network installations are too easy to implement today on Linux. If you don&#8217;t have one, you must be living in the medieval times or so.<br />
I can give you one suggestion though about partitioning &#8211; make sure your developers have a /home on a different partition. It&#8217;ll be easier when reinstalling to preserve /home and remove all the rest.</p>
<h4>Consolidating software</h4>
<p>I consider installing non-packaged software םn Linux a very dirty action.<br />
The reasons for that are:</p>
<ol>
<li>You can&#8217;t uninstall it using standard ways</li>
<li>You can&#8217;t upgrade it using standard ways</li>
<li>You can&#8217;t keep track of it</li>
</ol>
<p>In addition to installing packaged software, you must also have all your workstations and server synchronize against the same software repositories.<br />
If user A installs software from repository A and user B from repository B, they might run into different behavior on their software.<br />
Have you ever heard: &#8220;How come it works on my computer and doesn&#8217;t work on yours??&#8221;<br />
As a SysAdmin, you must eliminate the possibilities of this to happen to a zero.</p>
<p>How do you do it?<br />
Well, using CentOS &#8211; use a YUM repository and cache whatever packages you need from the various internet repositories out there.<br />
Debian? &#8211; just the same &#8211; just with apt.</p>
<p>Remember &#8211; if you have any software on workstations that is not well packaged or not well controlled &#8211; you&#8217;ll run into awkward situations very soon.</p>
<h4>Today</h4>
<p>Up until today Linux developers in my company still posses their root access, but they barely use it. To be honest I don&#8217;t think they even really need it. However, they have it. It is also about educating the developers that they are given the root access because they are being trusted. If they blew it, it&#8217;s mostly their fault, not yours.</p>
<p>I&#8217;ll continue to let them be root when needed. They have proved worthy so far.<br />
And I&#8217;ll ask you another question &#8211; do you really think that someone who can&#8217;t handle his own workstation be a good developer? &#8211; <strong>think again!</strong></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[wicd Installation on CentOS 5.4]]></title>
<link>http://marionote.wordpress.com/2009/12/03/wicd-installation-on-centos-5-4/</link>
<pubDate>Thu, 03 Dec 2009 22:11:52 +0000</pubDate>
<dc:creator>mariojump</dc:creator>
<guid>http://marionote.wordpress.com/2009/12/03/wicd-installation-on-centos-5-4/</guid>
<description><![CDATA[Wicd can be installed on CentOS 5.4 with the following commands. $ wget http://downloads.wicd.net/pk]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Wicd can be installed on CentOS 5.4 with the following commands.</p>
<p>$ wget <a href="http://downloads.wicd.net/pkgs/stable/1.6.x/1.6.2/CentOS_5/wicd-1.6.2-2.1.i386.rpm" target="_blank">http://downloads.wicd.net/pkgs/stable/1.6.x/1.6.2/CentOS_5/wicd-1.6.2-2.1.i386.rpm</a><br />
$ wget <a href="http://packages.sw.be/python-urwid/python-urwid-0.9.8.2-1.el5.rf.i386.rpm" target="_blank">http://packages.sw.be/python-urwid/python-urwid-0.9.8.2-1.el5.rf.i386.rpm</a><br />
# rpm -Uvh python-urwid-0.9.8.2-1.el5.rf.i386.rpm wicd-1.6.2-2.1.i386.rpm</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Linux - How to install centOS, PXE centOS, Network centOS]]></title>
<link>http://shamuntoha.wordpress.com/2009/12/02/linux-how-to-install-centos/</link>
<pubDate>Wed, 02 Dec 2009 17:35:11 +0000</pubDate>
<dc:creator>shamuntoha</dc:creator>
<guid>http://shamuntoha.wordpress.com/2009/12/02/linux-how-to-install-centos/</guid>
<description><![CDATA[Installation: 1. CD ROM &#8211; you can take 1of6.iso file (later you can use yum to install rest) o]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Installation:</p>
<p>1. CD ROM &#8211; you can take 1of6.iso file (later you can use yum to install rest)</p>
<p>or</p>
<p>2. Making a DVD ( making a DVD whill show sometimes this error)</p>
<p>Unable to find boot image: linux<br />
boot:</p>
<p>Note: i just saw kind of bug with few BIOS and SYSTEMS (in my case TravelMate 290 laptop didnt worked)</p>
<p>or</p>
<p>3. PXE Boot</p>
<p style="text-align:center;"><a href="http://shamuntoha.wordpress.com/files/2009/12/pxe.jpg"><img class="size-full wp-image-272 aligncenter" title="pxe" src="http://shamuntoha.wordpress.com/files/2009/12/pxe.jpg" alt="" width="480" height="236" /></a></p>
<p style="text-align:center;">
<p style="text-align:left;"><strong>What i need?</strong></p>
<p style="text-align:left;">a. TFTP (non secure ftp server)</p>
<p style="text-align:left;">b. DHCP server (basic)</p>
<p style="text-align:left;">or</p>
<p style="text-align:left;">b. DHCP server (advanced)</p>
<p style="text-align:left;">If you own a Router which can handle the dd-wrt firmware you don&#8217;t have to  disable the dhcp service in the router. Just open the  &#8216;Administration&#8217;-&#62;&#8217;Services&#8217; tab and enable &#8216;DNSMasq&#8217; and in the &#8216;Additional  DNS Options&#8217; input field enter  &#8216;<strong>dhcp-boot=pxelinux.0,<em>tfptd-hostname</em>,<em>tftpd-ip</em></strong>&#8216;. Replace  <strong><em>tfptd-hostname</em></strong> with the hostname of your tftpd machine and  <strong><em>tftpd-ip</em></strong> with the ip-address of you tfptd. Thats all. Nice  articel. Can&#8217;t wait until the next comes out, which handles the PXE and  NFS-Root. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p style="text-align:left;">
<p style="text-align:left;">c. centOS stored somewhere</p>
<p style="text-align:left;">
<p style="text-align:left;">Note: http://www.debian-administration.org/articles/478</p>
<p style="text-align:left;">
<p style="text-align:left;">
</div>]]></content:encoded>
</item>

</channel>
</rss>
