<?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>Systems | /var/logs/paulooi.log</title>
	<atom:link href="https://logs.paulooi.com/category/systems/feed" rel="self" type="application/rss+xml" />
	<link>https://logs.paulooi.com</link>
	<description>Systems Admin, Web Development and etc</description>
	<lastBuildDate>Fri, 19 Mar 2021 09:54:59 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>How to Rsync from Remote Server to Synology</title>
		<link>https://logs.paulooi.com/how-to-rsync-from-remote-server-to-synology.php</link>
					<comments>https://logs.paulooi.com/how-to-rsync-from-remote-server-to-synology.php#comments</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Tue, 21 Jul 2015 04:33:33 +0000</pubDate>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[Systems]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[synology]]></category>
		<category><![CDATA[sysadmin]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=1757</guid>

					<description><![CDATA[<p>I hava a synology at home, mainly use to store important files, and realize beside have a backup of my server files on dropbox, may be it can have another copy in Synology as well. I explored the possibility of...</p>
The post <a href="https://logs.paulooi.com/how-to-rsync-from-remote-server-to-synology.php">How to Rsync from Remote Server to Synology</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p>I hava a synology at home, mainly use to store important files, and realize beside have a backup of my server files on dropbox, may be it can have another copy in Synology as well. I explored the possibility of rsync the backup either on dropbox or server into synology, and&#8230; it works!</p>
<p>Here is what you need to prepare before proceed with the backup. </p>
<p>1. Create a directory for backup. i.e folder name of ServerBackup. Go to &#8220;Control Panel&#8221; -> &#8220;Shared Folder&#8221;. </p>
<p>2. Enable SSH on Synology. Go to &#8220;Control Panel&#8221; -> &#8220;Terminal &#038; SNMP&#8221; -> &#8220;Enable SSH Service&#8221;. If you option to change the SSH port or not <img src="https://s.w.org/images/core/emoji/16.0.1/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p><a href="https://logs.paulooi.com/wp-content/uploads/2015/07/synology-backup-enablessh.png"><img decoding="async" src="https://logs.paulooi.com/wp-content/uploads/2015/07/synology-backup-enablessh-300x140.png" alt="synology-backup-enablessh" width="300" height="140" class="aligncenter size-medium wp-image-1758" srcset="https://logs.paulooi.com/wp-content/uploads/2015/07/synology-backup-enablessh-300x140.png 300w, https://logs.paulooi.com/wp-content/uploads/2015/07/synology-backup-enablessh.png 594w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>3. Try to ssh into Synology with username &#8220;root&#8221;. The root password is the same with &#8220;admin&#8221;. </p>
<p>If are you done, let&#8217;s do it. </p>
<p><strong>Generate SSH Key</strong></p>
<p>You wouldn&#8217;t want to key in password whenever want to access to the server to grab the file. Generate a &#8220;custom&#8221; ssh key which will be used for synology. Remember, please do not set the password. Give you ssh file a &#8220;special name&#8221;, DO NOT use the default. I.e we used synobackup, there are 2 files will be generate </p>
<p>1. synobackup &#8211; This is the private key files<br />
2. synobackup.pub &#8211; This is the public key which will be placed on the remote server. </p>
<p><a href="https://logs.paulooi.com/wp-content/uploads/2015/07/synology-backup-sshkey.png"><img fetchpriority="high" decoding="async" src="https://logs.paulooi.com/wp-content/uploads/2015/07/synology-backup-sshkey-300x231.png" alt="synology-backup-sshkey" width="300" height="231" class="aligncenter size-medium wp-image-1759" srcset="https://logs.paulooi.com/wp-content/uploads/2015/07/synology-backup-sshkey-300x231.png 300w, https://logs.paulooi.com/wp-content/uploads/2015/07/synology-backup-sshkey.png 537w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>Next, we will copy this 2 files into Synology folder ServerBackup. We create a folder name &#8220;scripts&#8221;, and the file will be placed in synology</p>
<p>1. /Volume/ServerBackup/scripts/synobackup<br />
2. /Volume/ServerBackup/scripts/synobackup.pub</p>
<p>We will copy the key on synobackup.pub into remote server&#8217;s ssh directory &#8220;.ssh/authorized_keys&#8221; for the user&#8217;s home directory where you will login with the username later. i.e &#8220;/home/takizo/.ssh/authorized_keys&#8221;</p>
<p><a href="https://logs.paulooi.com/wp-content/uploads/2015/07/synology-backup-homeauthorizedkey.png"><img decoding="async" src="https://logs.paulooi.com/wp-content/uploads/2015/07/synology-backup-homeauthorizedkey-300x101.png" alt="synology-backup-homeauthorizedkey" width="300" height="101" class="aligncenter size-medium wp-image-1760" srcset="https://logs.paulooi.com/wp-content/uploads/2015/07/synology-backup-homeauthorizedkey-300x101.png 300w, https://logs.paulooi.com/wp-content/uploads/2015/07/synology-backup-homeauthorizedkey.png 453w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>Ok.. we are done with ssh thingy. Let&#8217;s write some script. </p>
<p><strong>Simple Scripting</strong></p>
<p>Next, we will do some scripting as below. </p>
<pre>
#!/bin/ash

#This is the private key
PRIVKEY="/volume/ServerBackup/scripts/snology"

#This is the folder you would like to backup from
HOSTFOLDER=/backup/*

#This is the folder you would like to backup to Synology
DESTFOLDER="/volume/ServerBackup/database/server-godzilla/"

#We will be using rsync in synology, this will do the rync! 
/usr/syno/bin/rsync -avz -e "ssh -p7777 -i $PRIVKEY" takizo@godzilla.takizo.com:$HOSTFOLDER $DESTFOLDER
</pre>
<p>Save the script above into your Synology backup folder which created earlier &#8220;/volume/ServerBackup/scripts/database.backup.sh&#8221; </p>
<p>Please take note that the remote folder is define by yourself. We are done with the script, it&#8217;s time to Execute it! </p>
<p><strong>Configure the Backup Script</strong></p>
<p>Due to it&#8217;s the first time access to the remote server, you need to manually run the script in shell to accept the SSH session. We are almost there. </p>
<p>SSH to Synology server </p>
<pre>
ssh -p2222 root@your_synology_ip
mydisk> cd /volume/ServerBackup/scripts
mydisk> ./database.backup.sh
The authenticity of host '[godzilla.takizo.com]:2222 ([123.456.123.111]:2222)' can't be established.
ECDSA key fingerprint is f7:9b:d6:92:7b:33.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[godzilla.takizo.com]:2222,[123.456.123.111]:2222' (ECDSA) to the list of known hosts.
receiving incremental file list
20150721122502.dbbackup.tar.gz

sent 42 bytes  received 18901016 bytes  1021678.81 bytes/sec
total size is 18997573  speedup is 1.01
</pre>
<p>The important part for this action is this line</p>
<pre>
Warning: Permanently added '[godzilla.takizo.com]:2222,[123.456.123.111]:2222' (ECDSA) to the list of known hosts.
</pre>
<p>This will add the host into /root/.ssh/known_hosts, when the script is run next time, it will not prompt the message again.</p>
<p><strong>Setup the Task on Synology</strong></p>
<p>Since the script is working perfectly fine. The last step is add it into Synology&#8217;s Task Schedule. </p>
<p>1. Go to &#8220;Control Panel&#8221; -> &#8220;Task Schedule&#8221;<br />
2. Create &#8220;User defined-script&#8221;<br />
3. Give a meaningful name for your &#8220;Task&#8221;<br />
4. User choose &#8220;root&#8221; or any user you prefer<br />
5. User-defined script: The script you created earlier inside Synology folder, &#8220;/volume/ServerBackup/scripts/database.backup.sh&#8221;<br />
6. Put up a schedule for this, how often it should run and at what time. </p>
<p>After the schedule has been created, try run it again and check is the files transfer into your Synology folder (if you don&#8217;t have new copy of file in the server, delete the files earlier being rsync into synology).</p>
<p>Yep, basically you have another copy of backup on synology! Enjoy backup more stuff from remote server <img src="https://s.w.org/images/core/emoji/16.0.1/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>The post <a href="https://logs.paulooi.com/how-to-rsync-from-remote-server-to-synology.php">How to Rsync from Remote Server to Synology</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/how-to-rsync-from-remote-server-to-synology.php/feed</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>How to Disallow or Rate Limit Web Server Mail in Exim</title>
		<link>https://logs.paulooi.com/how-to-disallow-or-rate-limit-web-server-mail-in-exim.php</link>
					<comments>https://logs.paulooi.com/how-to-disallow-or-rate-limit-web-server-mail-in-exim.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Tue, 25 Mar 2014 01:49:58 +0000</pubDate>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Systems]]></category>
		<category><![CDATA[acl]]></category>
		<category><![CDATA[Exim]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mail server]]></category>
		<category><![CDATA[php]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=1666</guid>

					<description><![CDATA[<p>Recently one of the apache webserver&#8217;s vhost was compromise and allow spammer to use the script to perform massive outgoing email spam. As usual, due to un-patch WordPress&#8217;s engine from a user on the web server. Ended up the &#8220;hacker&#8221;...</p>
The post <a href="https://logs.paulooi.com/how-to-disallow-or-rate-limit-web-server-mail-in-exim.php">How to Disallow or Rate Limit Web Server Mail in Exim</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p>Recently one of the apache webserver&#8217;s vhost was compromise and allow spammer to use the script to perform massive outgoing email spam. As usual, due to un-patch WordPress&#8217;s engine from a user on the web server. Ended up the &#8220;hacker&#8221; been using the PHP&#8217;s mail() function sending a massive 100k++ outgoing email to email provider such as yahoo mail and gmail. <span id="more-1666"></span></p>
<p>There were a lot email queue in Exim&#8217;s queue, due to the blockage from recipient server. Unfortunately WordPress doesn&#8217;t have SMTP setting for outgoing email notification, it has to rely on third party plugins. </p>
<p>Here is what we implement on SMTP MTA to deny/rate limit outgoing from PHP&#8217;s mail() function. </p>
<p>On Exim config file, before hitting ACL configuration, place this config for non-smtp setting</p>
<pre>
<code>
acl_not_smtp = acl_check_not_smtp
</code>
</pre>
<p>After &#8220;begin acl&#8221; section, place this config </p>
<pre>
<code>
acl_check_not_smtp:

  deny
        senders = www@domain.com
        message = sorry server is offline

  deny
        ratelimit = 20 / 1h / strict / $sender_address_domain
        senders = *@domain.com
        message = sorry server is offline

  accept
</code>
</pre>
<p>The first rule is totally deny anything from apache&#8217;s vhost. It means non of the apache&#8217;s vhost can send outgoing email with PHP mail() function. If you are not comfortable with this. Can try on the second rules, which is rate limit the outgoing email, which can help to eliminate the massive outgoing email happened on apache web server UID. </p>
<p>Have fun controlling and fight with the spam <img src="https://s.w.org/images/core/emoji/16.0.1/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /> </p>The post <a href="https://logs.paulooi.com/how-to-disallow-or-rate-limit-web-server-mail-in-exim.php">How to Disallow or Rate Limit Web Server Mail in Exim</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/how-to-disallow-or-rate-limit-web-server-mail-in-exim.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Twitter, NYTimes and Huff Po Whois and DNS records altered, Syrian Electronic Army takes responsibility</title>
		<link>https://logs.paulooi.com/twitter-nytimes-and-huff-po-whois-and-dns-records-altered-syrian-electronic-army-takes-responsibility.php</link>
					<comments>https://logs.paulooi.com/twitter-nytimes-and-huff-po-whois-and-dns-records-altered-syrian-electronic-army-takes-responsibility.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Wed, 28 Aug 2013 02:34:19 +0000</pubDate>
				<category><![CDATA[lost+found]]></category>
		<category><![CDATA[Systems]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[NYTimes]]></category>
		<category><![CDATA[twitter]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=1590</guid>

					<description><![CDATA[<p>At approximately 3pm PST, the Syrian Electronic Army seemingly hacked into Twitter, Huffington Post and NY Times’ registry accounts altering contact details, and more significantly, DNS records. Modifying DNS records of a domain will allow SEA to redirect visitors to...</p>
The post <a href="https://logs.paulooi.com/twitter-nytimes-and-huff-po-whois-and-dns-records-altered-syrian-electronic-army-takes-responsibility.php">Twitter, NYTimes and Huff Po Whois and DNS records altered, Syrian Electronic Army takes responsibility</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p><a href="https://logs.paulooi.com/wp-content/uploads/2013/08/twitter-dns-changed.png"><img loading="lazy" decoding="async" src="https://logs.paulooi.com/wp-content/uploads/2013/08/twitter-dns-changed-285x300.png" alt="twitter-dns-changed" width="285" height="300" class="aligncenter size-medium wp-image-1591" srcset="https://logs.paulooi.com/wp-content/uploads/2013/08/twitter-dns-changed-285x300.png 285w, https://logs.paulooi.com/wp-content/uploads/2013/08/twitter-dns-changed.png 662w" sizes="auto, (max-width: 285px) 100vw, 285px" /></a></p>
<p>At approximately 3pm PST, the Syrian Electronic Army seemingly hacked into Twitter, Huffington Post and NY Times’ registry accounts altering contact details, and more significantly, DNS records. Modifying DNS records of a domain will allow SEA to redirect visitors to any site of their choosing.</p>
<p>Contact details for the Twitter.com domain were changed, but it’s reasonable to assume that if the SEA had the ability to change contact information, they may very well have had the ability to change DNS records and point the Twitter.com domain elsewhere, redirecting visitors and users.</p>
<p>The SEA also altered the DNS records for twimg.com which Twitter uses for virtually all CSS, JS, images, cookies and more. This means for many users, Twitter.com wouldn’t load correctly and avatars were unavailable across many Twitter clients.</p>
<p>[Story via <a href="http://j.mp/19LTeCj" target="_blank">TNW</a>]</p>The post <a href="https://logs.paulooi.com/twitter-nytimes-and-huff-po-whois-and-dns-records-altered-syrian-electronic-army-takes-responsibility.php">Twitter, NYTimes and Huff Po Whois and DNS records altered, Syrian Electronic Army takes responsibility</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/twitter-nytimes-and-huff-po-whois-and-dns-records-altered-syrian-electronic-army-takes-responsibility.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Control Your Computer From Anywhere on Ipad with Parallels Access</title>
		<link>https://logs.paulooi.com/control-your-computer-from-anywhere-on-ipad-with-parallels-access.php</link>
					<comments>https://logs.paulooi.com/control-your-computer-from-anywhere-on-ipad-with-parallels-access.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Wed, 28 Aug 2013 02:21:20 +0000</pubDate>
				<category><![CDATA[Application]]></category>
		<category><![CDATA[Systems]]></category>
		<category><![CDATA[Parallels]]></category>
		<category><![CDATA[remote access]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=1583</guid>

					<description><![CDATA[<p>Parallels Access turns your iPad into a porthole to your more powerful (and heavier) Windows or Mac computers somewhere else. Connecting the your iPad to your remote machine through the cloud is the (relatively) easy part. The real magic is...</p>
The post <a href="https://logs.paulooi.com/control-your-computer-from-anywhere-on-ipad-with-parallels-access.php">Control Your Computer From Anywhere on Ipad with Parallels Access</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p><a href="https://logs.paulooi.com/wp-content/uploads/2013/08/parallels-access-osx1.jpg"><img loading="lazy" decoding="async" src="https://logs.paulooi.com/wp-content/uploads/2013/08/parallels-access-osx1-300x168.jpg" alt="Parallels Access OSX" width="300" height="168" class="aligncenter size-medium wp-image-1585" srcset="https://logs.paulooi.com/wp-content/uploads/2013/08/parallels-access-osx1-300x168.jpg 300w, https://logs.paulooi.com/wp-content/uploads/2013/08/parallels-access-osx1.jpg 970w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>Parallels Access turns your iPad into a porthole to your more powerful (and heavier) Windows or Mac computers somewhere else. Connecting the your iPad to your remote machine through the cloud is the (relatively) easy part. The real magic is how Parallels Access elegantly shrinks your desktop applications into manageable tablet apps. <span id="more-1583"></span></p>
<p>Parallels Access is a subscription service that links your computer to your iPad. As long as both ends are connected to the Internet, you should be able to connect.</p>
<p><a href="https://logs.paulooi.com/wp-content/uploads/2013/08/parallels-access.jpg"><img loading="lazy" decoding="async" src="https://logs.paulooi.com/wp-content/uploads/2013/08/parallels-access-300x168.jpg" alt="parallels-access" width="300" height="168" class="aligncenter size-medium wp-image-1586" srcset="https://logs.paulooi.com/wp-content/uploads/2013/08/parallels-access-300x168.jpg 300w, https://logs.paulooi.com/wp-content/uploads/2013/08/parallels-access.jpg 970w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>[Story via <a href="http://j.mp/1dNBJ74" title="Parellels Access" target="_blank">Gizmodo</a>]</p>The post <a href="https://logs.paulooi.com/control-your-computer-from-anywhere-on-ipad-with-parallels-access.php">Control Your Computer From Anywhere on Ipad with Parallels Access</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/control-your-computer-from-anywhere-on-ipad-with-parallels-access.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Disable Vulnerabilities Check in FreeBSD Portupgrade</title>
		<link>https://logs.paulooi.com/disable-vulnerabilities-check-in-freebsd-portupgrade.php</link>
					<comments>https://logs.paulooi.com/disable-vulnerabilities-check-in-freebsd-portupgrade.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Tue, 19 Jul 2011 01:03:08 +0000</pubDate>
				<category><![CDATA[Systems]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=1470</guid>

					<description><![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. Which is weird to me because isn&#8217;t that the updates are suppose...</p>
The post <a href="https://logs.paulooi.com/disable-vulnerabilities-check-in-freebsd-portupgrade.php">Disable Vulnerabilities Check in FreeBSD Portupgrade</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></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>The post <a href="https://logs.paulooi.com/disable-vulnerabilities-check-in-freebsd-portupgrade.php">Disable Vulnerabilities Check in FreeBSD Portupgrade</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/disable-vulnerabilities-check-in-freebsd-portupgrade.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Convert EDT timezone to GMT timezone</title>
		<link>https://logs.paulooi.com/convert-edt-timezone-to-gmt-timezone.php</link>
					<comments>https://logs.paulooi.com/convert-edt-timezone-to-gmt-timezone.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Mon, 11 Jul 2011 07:21:51 +0000</pubDate>
				<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[<p>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...</p>
The post <a href="https://logs.paulooi.com/convert-edt-timezone-to-gmt-timezone.php">Convert EDT timezone to GMT timezone</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></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 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>The post <a href="https://logs.paulooi.com/convert-edt-timezone-to-gmt-timezone.php">Convert EDT timezone to GMT timezone</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/convert-edt-timezone-to-gmt-timezone.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Change MySQL Data Directory in Linux Centos</title>
		<link>https://logs.paulooi.com/how-to-change-mysql-data-directory-in-linux-centos.php</link>
					<comments>https://logs.paulooi.com/how-to-change-mysql-data-directory-in-linux-centos.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Sat, 02 Jul 2011 06:04:37 +0000</pubDate>
				<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[<p>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...</p>
The post <a href="https://logs.paulooi.com/how-to-change-mysql-data-directory-in-linux-centos.php">How to Change MySQL Data Directory in Linux Centos</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></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>The post <a href="https://logs.paulooi.com/how-to-change-mysql-data-directory-in-linux-centos.php">How to Change MySQL Data Directory in Linux Centos</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/how-to-change-mysql-data-directory-in-linux-centos.php/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>https://logs.paulooi.com/how-to-find-out-public-ip-address-via-command-line-in-unixlinux-machine.php</link>
					<comments>https://logs.paulooi.com/how-to-find-out-public-ip-address-via-command-line-in-unixlinux-machine.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Tue, 08 Mar 2011 03:20:00 +0000</pubDate>
				<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[<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 $ wget -q -O - http://ipchicken.com...</p>
The post <a href="https://logs.paulooi.com/how-to-find-out-public-ip-address-via-command-line-in-unixlinux-machine.php">How to Find Out Public IP Address via Command Line in Unix/Linux Machine</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></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>The post <a href="https://logs.paulooi.com/how-to-find-out-public-ip-address-via-command-line-in-unixlinux-machine.php">How to Find Out Public IP Address via Command Line in Unix/Linux Machine</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/how-to-find-out-public-ip-address-via-command-line-in-unixlinux-machine.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Enable check_dns on Nagios Monitoring System</title>
		<link>https://logs.paulooi.com/how-to-enable-check_dns-on-nagios-monitoring-system.php</link>
					<comments>https://logs.paulooi.com/how-to-enable-check_dns-on-nagios-monitoring-system.php#comments</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Fri, 25 Feb 2011 15:14:12 +0000</pubDate>
				<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[<p>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...</p>
The post <a href="https://logs.paulooi.com/how-to-enable-check_dns-on-nagios-monitoring-system.php">How to Enable check_dns on Nagios Monitoring System</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p><a href="https://logs.paulooi.com/wp-content/uploads/2011/02/nagios-logo.gif"><img loading="lazy" decoding="async" class="alignleft size-full wp-image-1402" title="nagios-logo" src="https://logs.paulooi.com/wp-content/uploads/2011/02/nagios-logo.gif" alt="" width="64" height="64" /></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 $HOSTADDRESS$ -s $ARG1$
}
</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>The post <a href="https://logs.paulooi.com/how-to-enable-check_dns-on-nagios-monitoring-system.php">How to Enable check_dns on Nagios Monitoring System</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/how-to-enable-check_dns-on-nagios-monitoring-system.php/feed</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>Free eBook: Alternative DNS Servers</title>
		<link>https://logs.paulooi.com/free-ebook-alternative-dns-servers.php</link>
					<comments>https://logs.paulooi.com/free-ebook-alternative-dns-servers.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Fri, 25 Feb 2011 13:32:36 +0000</pubDate>
				<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[<p>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...</p>
The post <a href="https://logs.paulooi.com/free-ebook-alternative-dns-servers.php">Free eBook: Alternative DNS Servers</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p><a href="https://logs.paulooi.com/wp-content/uploads/2011/02/20081027.exact-size.front_.jpg"><img loading="lazy" decoding="async" src="https://logs.paulooi.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 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>The post <a href="https://logs.paulooi.com/free-ebook-alternative-dns-servers.php">Free eBook: Alternative DNS Servers</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/free-ebook-alternative-dns-servers.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
