<?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>takizo, not takezo &#187; Systems</title>
	<atom:link href="http://systems.takizo.com/category/systems/feed/" rel="self" type="application/rss+xml" />
	<link>http://systems.takizo.com</link>
	<description>the systems admin blog</description>
	<lastBuildDate>Fri, 25 Nov 2011 00:55:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Disable Vulnerabilities Check in FreeBSD Portupgrade</title>
		<link>http://systems.takizo.com/2011/07/19/disable-vulnerabilities-check-in-freebsd-portupgrade/</link>
		<comments>http://systems.takizo.com/2011/07/19/disable-vulnerabilities-check-in-freebsd-portupgrade/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 01:03:08 +0000</pubDate>
		<dc:creator>takizo</dc:creator>
				<category><![CDATA[Systems]]></category>

		<guid isPermaLink="false">http://systems.takizo.com/?p=1470</guid>
		<description><![CDATA[After perform FreeBSD portsnap, there are updates for PHP52 packages, but when I run portupgrade -vr php52*, it stopped and displayed portaudit error messages regarding php52 has vulnerabilities. Which is weird to me because isn&#8217;t that the updates are suppose to fix the vulnerabilities? To overcome the error building/upgrade the port, invoke the make argument [...]]]></description>
			<content:encoded><![CDATA[<p>After perform FreeBSD portsnap, there are updates for PHP52 packages, but when I run portupgrade -vr php52*, it stopped and displayed portaudit error messages regarding php52 has vulnerabilities. </p>
<p>Which is weird to me because isn&#8217;t that the updates are suppose to fix the vulnerabilities? </p>
<p>To overcome the error building/upgrade the port, invoke the make argument by allowing the portupgrade </p>
<pre>
<code>
# portupgrade -vr -m DISABLE_VULNERABILITIES=yes php52*
</code>
</pre>
<p>This will ignore the vulnerabilities error message and continue with portupgrade of php52 packages. It can be use for other ports upgrade when you see the vulnerability error messages. </p>
]]></content:encoded>
			<wfw:commentRss>http://systems.takizo.com/2011/07/19/disable-vulnerabilities-check-in-freebsd-portupgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert EDT timezone to GMT timezone</title>
		<link>http://systems.takizo.com/2011/07/11/convert-edt-timezone-to-gmt-timezone/</link>
		<comments>http://systems.takizo.com/2011/07/11/convert-edt-timezone-to-gmt-timezone/#comments</comments>
		<pubDate>Mon, 11 Jul 2011 07:21:51 +0000</pubDate>
		<dc:creator>takizo</dc:creator>
				<category><![CDATA[Application]]></category>
		<category><![CDATA[Systems]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[edt]]></category>
		<category><![CDATA[gmt]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[timezone]]></category>

		<guid isPermaLink="false">http://systems.takizo.com/?p=1445</guid>
		<description><![CDATA[I am confused with several different timezones in the world. Planning to attend an online seminar but the date/time is stated in EDT, how do I convert into GMT+8, which is my country timezone? I usually refer to the timezone conversion table at Eastern Time to GMT For example let say the online seminar is [...]]]></description>
			<content:encoded><![CDATA[<p><strong>I am confused with several different timezones in the world. Planning to attend an online seminar but the date/time is stated in EDT, how do I convert into GMT+8, which is my country timezone? </strong></p>
<p>I usually refer to the timezone conversion table at <a target="_blank" href="http://wwp.eastern-standard-time.com/convert/index.htm" target="_blank">Eastern Time to GMT</a></p>
<p>For example let say the online seminar is happening at EDT 21:00, it will be 01:00, +8 which is 09:00 (the next day) in my country. </p>
]]></content:encoded>
			<wfw:commentRss>http://systems.takizo.com/2011/07/11/convert-edt-timezone-to-gmt-timezone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Change MySQL Data Directory in Linux Centos</title>
		<link>http://systems.takizo.com/2011/07/02/how-to-change-mysql-data-directory-in-linux-centos/</link>
		<comments>http://systems.takizo.com/2011/07/02/how-to-change-mysql-data-directory-in-linux-centos/#comments</comments>
		<pubDate>Sat, 02 Jul 2011 06:04:37 +0000</pubDate>
		<dc:creator>takizo</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Systems]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[datadir]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mycnf]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://systems.takizo.com/?p=1413</guid>
		<description><![CDATA[By default Linux CentOS or other Linux Distro installation, MySQL data directory is stored in /var/db/mysql, how can I change it to other directory in example /db/mysql? It is always better to have MySQL Data Directory store in a specific partition/drive. It will help on performance and better management and scalability. You change change the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>By default Linux CentOS or other Linux Distro installation, MySQL data directory is stored in /var/db/mysql, how can I change it to other directory in example /db/mysql? </strong></p>
<p>It is always better to have MySQL Data Directory store in a specific partition/drive. It will help on performance and better management and scalability. You change change the data store directory in Linux by editing /etc/my.cnf file.</p>
<p>Edit /etc/my.cnf file</p>
<pre>
<code>
# vi /etc/my.cnf
</code>
</pre>
<p>Change the data directory structure</p>
<pre>
<code>
datadir=/db/mysql
socket=/db/mysql/mysql.sock
</code>
</pre>
<p>After the file has been updated, restart MySQL service.</p>
]]></content:encoded>
			<wfw:commentRss>http://systems.takizo.com/2011/07/02/how-to-change-mysql-data-directory-in-linux-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Find Out Public IP Address via Command Line in Unix/Linux Machine</title>
		<link>http://systems.takizo.com/2011/03/08/how-to-find-out-public-ip-address-via-command-line-in-unixlinux-machine/</link>
		<comments>http://systems.takizo.com/2011/03/08/how-to-find-out-public-ip-address-via-command-line-in-unixlinux-machine/#comments</comments>
		<pubDate>Tue, 08 Mar 2011 03:20:00 +0000</pubDate>
		<dc:creator>takizo</dc:creator>
				<category><![CDATA[Systems]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[ip address]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://systems.takizo.com/?p=1406</guid>
		<description><![CDATA[If you have more than 100 servers in your network; behind a firewall; lazy to access to documentation. Here is the alternative option to find out your machine&#8217;s public IP Address via command line $ wget -q -O - http://ipchicken.com &#124; grep -o -E '(^&#124;[[:space:]])[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*([[:space:]]&#124;$)' # By default, FreeBSD doesn't have wget, you can use [...]]]></description>
			<content:encoded><![CDATA[<p>If you have more than 100 servers in your network; behind a firewall; lazy to access to documentation. Here is the alternative option to find out your machine&#8217;s public IP Address via command line </p>
<pre>
<code>
$ wget -q -O - http://ipchicken.com |  grep -o -E '(^|[[:space:]])[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*([[:space:]]|$)'
# By default, FreeBSD doesn't have wget, you can use fetch instead
$ fetch -q -o - http://www.ipchicken.com | grep -o -E '(^|[[:space:]])[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*([[:space:]]|$)'
</code>
</pre>
<p>You need port 80 external/WAN access to perform the task. </p>
]]></content:encoded>
			<wfw:commentRss>http://systems.takizo.com/2011/03/08/how-to-find-out-public-ip-address-via-command-line-in-unixlinux-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Enable check_dns on Nagios Monitoring System</title>
		<link>http://systems.takizo.com/2011/02/25/how-to-enable-check_dns-on-nagios-monitoring-system/</link>
		<comments>http://systems.takizo.com/2011/02/25/how-to-enable-check_dns-on-nagios-monitoring-system/#comments</comments>
		<pubDate>Fri, 25 Feb 2011 15:14:12 +0000</pubDate>
		<dc:creator>takizo</dc:creator>
				<category><![CDATA[Application]]></category>
		<category><![CDATA[Systems]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[dns monitoring]]></category>
		<category><![CDATA[monitor dns]]></category>
		<category><![CDATA[nagios]]></category>

		<guid isPermaLink="false">http://systems.takizo.com/?p=1401</guid>
		<description><![CDATA[Most user who are new to Nagios doesn&#8217;t know there is a hidden plug-in called check_dns in Nagios Monitoring system. On FreeBSD server, the binary can be found at /usr/local/libexec/nagios. List the directory and you should see check_dns. check_dns usage is as below $ ./check_dns -H host [-s server] [-a expected-address] [-A] [-t timeout] [-w [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://systems.takizo.com/wp-content/uploads/2011/02/nagios-logo.gif"><img src="http://systems.takizo.com/wp-content/uploads/2011/02/nagios-logo.gif" alt="" title="nagios-logo" width="64" height="64" class="alignleft size-full wp-image-1402" /></a>Most user who are new to Nagios doesn&#8217;t know there is a hidden plug-in called check_dns in Nagios Monitoring system. On FreeBSD server, the binary can be found at <em>/usr/local/libexec/nagios</em>. List the directory and you should see check_dns. </p>
<p>check_dns usage is as below</p>
<pre>
<code>
$ ./check_dns -H host [-s server] [-a expected-address] [-A] [-t timeout] [-w warn] [-c crit]
</code>
</pre>
<p>Try to run the command as below and you will get the query result</p>
<pre>
<code>
$ ./check_dns -H systems.takizo.com -s 8.8.8.8
DNS OK: 0.012 seconds response time. systems.takizo.com returns 70.32.103.130|time=0.011703s;;;0.000000
</code>
</pre>
<p><span id="more-1401"></span><br />
Sweet, that is the DNS query plugin, it does DNS query check on your DNS host server and return the query time.<br />
Here is how to activate the monitoring, add the check_dns plug-in into Nagios&#8217; commands.cfg configuration file.</p>
<p>On FreeBSD server, it&#8217;s located at /usr/local/etc/nagios/objects/commands.cfg<br />
Edit the file commands.cfg and add the line below</p>
<pre>
<code>
define command {
        command_name    check_dns
        command_line       $USER1$/check_dns -H $ARG1$ -s $HOSTADDRESS$
}
</code>
</pre>
<ul>
<li>$ARG1$ is the argument you will parse into in the configuration</li>
<li>$HOSTADDRESS$ is your host on Nagios monitoring. </li>
</ul>
<p>Next, put the line below into service check configuration file </p>
<pre>
<code>
define service {
        use                                  generic-service
        host_name                       your-dns-host
        service_description          Check Google.com on DNS Server
        check_command              check_dns!www.google.com
}
</code>
</pre>
<p>Restart your Nagios service now </p>
<pre>
<code>
$ /usr/local/etc/rc.d/nagios restart
</code>
</pre>
<p>If it&#8217;s failed, you will the red color on the monitoring status. There are a lot other plug-ins can be explore too. Have fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://systems.takizo.com/2011/02/25/how-to-enable-check_dns-on-nagios-monitoring-system/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Free eBook: Alternative DNS Servers</title>
		<link>http://systems.takizo.com/2011/02/25/free-ebook-alternative-dns-servers/</link>
		<comments>http://systems.takizo.com/2011/02/25/free-ebook-alternative-dns-servers/#comments</comments>
		<pubDate>Fri, 25 Feb 2011 13:32:36 +0000</pubDate>
		<dc:creator>takizo</dc:creator>
				<category><![CDATA[Application]]></category>
		<category><![CDATA[Systems]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[bind dlz]]></category>
		<category><![CDATA[bind ldap]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[dns server]]></category>
		<category><![CDATA[ldap dns]]></category>
		<category><![CDATA[power dns]]></category>

		<guid isPermaLink="false">http://systems.takizo.com/?p=1394</guid>
		<description><![CDATA[Grab this 747 pages DNS eBook for Free; Written by Jan-Piet Mens, titled &#8220;Alternative DNS Servers&#8221;. I glance through at the eBook and found several interesting topics for DNS deployments. Bind DLZ &#8211; The Bind extension which can store your data in database MySQL, PostgreSQL and etc. NSD &#8211; A lot people didn&#8217;t know about [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://systems.takizo.com/wp-content/uploads/2011/02/20081027.exact-size.front_.jpg"><img src="http://systems.takizo.com/wp-content/uploads/2011/02/20081027.exact-size.front_-150x150.jpg" alt="" title="20081027.exact-size.front" width="150" height="150" class="alignleft size-thumbnail wp-image-1395" /></a> Grab this 747 pages DNS eBook for Free; Written by Jan-Piet Mens, titled &#8220;Alternative DNS Servers&#8221;. I glance through at the eBook and found several interesting topics for DNS deployments.</p>
<ul>
<li>Bind DLZ &#8211; The Bind extension which can store your data in database MySQL, PostgreSQL and etc.</li>
<li>NSD &#8211; A lot people didn&#8217;t know about Name Server Daemon, find out more from the eBook.</li>
<li>DNS Planning &#8211; Name Server deployment planning, capacity planning and how to scale.</li>
<li>PowerDNS &#8211; Configure and master it.</li>
<li>LDAP DNS &#8211; Deploy DNS server with LDAP.</li>
</ul>
<p>Alright, enough with the talks, where to download the eBook? It&#8217;s <a target="_blank" href="http://blog.fupps.com/2010/10/29/alternative-dns-servers-the-book-as-pdf/?ref=systems.takizo.com" target="_blank">FREE for Download here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://systems.takizo.com/2011/02/25/free-ebook-alternative-dns-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Find Your Closest Anycast DNS Server with Dig</title>
		<link>http://systems.takizo.com/2011/02/23/how-to-find-your-closest-anycast-dns-server-with-dig/</link>
		<comments>http://systems.takizo.com/2011/02/23/how-to-find-your-closest-anycast-dns-server-with-dig/#comments</comments>
		<pubDate>Wed, 23 Feb 2011 00:53:02 +0000</pubDate>
		<dc:creator>takizo</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Systems]]></category>
		<category><![CDATA[anycast dns]]></category>
		<category><![CDATA[dig]]></category>
		<category><![CDATA[dns query]]></category>
		<category><![CDATA[dns server]]></category>

		<guid isPermaLink="false">http://systems.takizo.com/?p=1391</guid>
		<description><![CDATA[Most ISP deploys Anycast DNS server on their network and bring the closest DNS server to their user for DNS resolver. You may see a DNS server with a single IP Address but there are multiple DNS Servers running on different geographical location. So which DNS server do you resolve it from? For example we [...]]]></description>
			<content:encoded><![CDATA[<p>Most ISP deploys Anycast DNS server on their network and bring the closest DNS server to their user for DNS resolver. You may see a DNS server with a single IP Address but there are multiple DNS Servers running on different geographical location. </p>
<p>So which DNS server do you resolve it from? For example we run a query on DNS F Root Server</p>
<pre>
<code>
$ dig @f.root-servers.net hostname.bind  txt ch +short
"lga1a.f.root-servers.org"
</code>
</pre>
<p>On the result, it shows that I am using lga1a.f.root-servers.org as resolver. Some DNS server does reply &#8220;chaos&#8221; (ch) request but some refuse; for example Google DNS and Open DNS Server. So if your ISP is running Anycast DNS, you can try to lookup where is the DNS server locate. </p>
<p>There is another command perform checking via &#8220;id.server&#8221; query, it only helpful when the DNS has server-id configured. </p>
<pre>
<code>
dig @k.root-servers.net id.server txt ch +short
"k2.tokyo.k.ripe.net"
</code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://systems.takizo.com/2011/02/23/how-to-find-your-closest-anycast-dns-server-with-dig/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to View Chinese Character with iTerm in Mac OSX</title>
		<link>http://systems.takizo.com/2011/01/31/how-to-view-chinese-character-with-iterm-in-mac-osx/</link>
		<comments>http://systems.takizo.com/2011/01/31/how-to-view-chinese-character-with-iterm-in-mac-osx/#comments</comments>
		<pubDate>Mon, 31 Jan 2011 05:40:28 +0000</pubDate>
		<dc:creator>takizo</dc:creator>
				<category><![CDATA[Systems]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[chinese character]]></category>
		<category><![CDATA[iterm]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mac osx]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[UTF-8]]></category>

		<guid isPermaLink="false">http://systems.takizo.com/?p=1389</guid>
		<description><![CDATA[I guess most people use iTerm in Mac OSX, me too I do have a lot Chinese character file, or rather MP3 to view in Chinese character. To enable Chinese character in iTerm, change the encoding to UTF-8 Open your iTerm Terminal Press Apple Command key + i Encoding, select UTF-8 Remember to click on [...]]]></description>
			<content:encoded><![CDATA[<p>I guess most people use iTerm in Mac OSX, me too <img src='http://systems.takizo.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I do have a lot Chinese character file, or rather MP3 to view in Chinese character.</p>
<p>To enable Chinese character in iTerm, change the encoding to UTF-8</p>
<pre>
<code>
Open your iTerm Terminal
Press Apple Command key + i
Encoding, select UTF-8
Remember to click on Update Default
</code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://systems.takizo.com/2011/01/31/how-to-view-chinese-character-with-iterm-in-mac-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exim: Restrict Authenticated Outgoing Email with Sender Domain</title>
		<link>http://systems.takizo.com/2011/01/27/exim-restrict-authenticated-outgoing-email-with-sender-domain/</link>
		<comments>http://systems.takizo.com/2011/01/27/exim-restrict-authenticated-outgoing-email-with-sender-domain/#comments</comments>
		<pubDate>Thu, 27 Jan 2011 01:13:00 +0000</pubDate>
		<dc:creator>takizo</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Systems]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[domain name]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[outgoing email]]></category>
		<category><![CDATA[smtp]]></category>
		<category><![CDATA[systems]]></category>

		<guid isPermaLink="false">http://systems.takizo.com/?p=1382</guid>
		<description><![CDATA[Most of the outgoing SMTP server allowed the user to set different sender email address once it is authenticated. But we might be in risk for allowing the user to send outgoing bulk/spam email via authenticated SMTP with different sender email address. In Exim mail MTA, it can restricts at the SMTP authenticated transport. accept [...]]]></description>
			<content:encoded><![CDATA[<p>Most of the outgoing SMTP server allowed the user to set different sender email address once it is authenticated. But we might be in risk for allowing the user to send outgoing bulk/spam email via authenticated SMTP with different sender email address. </p>
<p>In Exim mail MTA, it can restricts at the SMTP authenticated transport.</p>
<pre>
<code>
accept  authenticated = *
          sender_domains = < the_domain_name_1 > : < the_domain_name_2 >
          control       = submission
          control       = dkim_disable_verify
</code>
</pre>
<p>Usually local_domains is the list of the domain hosted on Exim mail server, it can be configured as below too. </p>
<pre>
<code>
accept  authenticated = *
          sender_domains = +local_domains
          control       = submission
          control       = dkim_disable_verify
</code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://systems.takizo.com/2011/01/27/exim-restrict-authenticated-outgoing-email-with-sender-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bash: How to Echo Tab and Newline</title>
		<link>http://systems.takizo.com/2011/01/24/bash-how-to-echo-tab-and-newline/</link>
		<comments>http://systems.takizo.com/2011/01/24/bash-how-to-echo-tab-and-newline/#comments</comments>
		<pubDate>Mon, 24 Jan 2011 08:31:50 +0000</pubDate>
		<dc:creator>takizo</dc:creator>
				<category><![CDATA[Systems]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[bash programming]]></category>
		<category><![CDATA[echo]]></category>
		<category><![CDATA[newline]]></category>
		<category><![CDATA[print result]]></category>
		<category><![CDATA[tab space]]></category>

		<guid isPermaLink="false">http://systems.takizo.com/?p=1135</guid>
		<description><![CDATA[While printing out result in bash, sometime we need to echo tab or newline for nice, gorgeous, maning looking format. The code below will NOT print tab space and newline echo "username\t password\n" In order to print tab and newline, invoke -e in the echo command ehco -e "username\t\t password\n"]]></description>
			<content:encoded><![CDATA[<p>While printing out result in bash, sometime we need to echo tab or newline for nice, gorgeous, maning looking format. The code below will NOT print tab space and newline</p>
<pre><code>
echo "username\t password\n"
</code>
</pre>
<p>In order to print tab and newline, invoke -e in the echo command</p>
<pre><code>
ehco -e "username\t\t password\n"
</code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://systems.takizo.com/2011/01/24/bash-how-to-echo-tab-and-newline/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

