<?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>freebsd | /var/logs/paulooi.log</title>
	<atom:link href="https://logs.paulooi.com/tag/freebsd/feed" rel="self" type="application/rss+xml" />
	<link>https://logs.paulooi.com</link>
	<description>Systems Admin, Web Development and etc</description>
	<lastBuildDate>Sun, 22 Dec 2013 14:59:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>How to Enable Subject Header Logging in Exim&#8217;s main_log</title>
		<link>https://logs.paulooi.com/how-to-enable-subject-header-logging-in-exims-main_log.php</link>
					<comments>https://logs.paulooi.com/how-to-enable-subject-header-logging-in-exims-main_log.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Wed, 20 Nov 2013 14:14:05 +0000</pubDate>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Exim]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[mailserver]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=1411</guid>

					<description><![CDATA[<p>Yes, I have stopped writing since 2011 😉 All the latest posts are interesting article I read and wish to share with you. I&#8217;ve been maintaining a customer mailserver since 2003, growing from 30 users to 200+ users today, it...</p>
The post <a href="https://logs.paulooi.com/how-to-enable-subject-header-logging-in-exims-main_log.php">How to Enable Subject Header Logging in Exim’s main_log</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p>Yes, I have stopped writing since 2011 <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;" /> All the latest posts are interesting article I read and wish to share with you. </p>
<p>I&#8217;ve been maintaining a customer mailserver since 2003, growing from 30 users to 200+ users today, it seems how big and fast the company grown, good thing they still engaged me on maintaining their mail/web server. </p>
<p><strong>Turn On Subject Header on Exim Logging</strong></p>
<p>Turning on Subject Header on Exim logging make your life easier for troubleshooting purpose. By default, exim&#8217;s logging on mainlog does not provide Subject Header, to turn on follow the steps below;</p>
<ul>
<li>1. Edit Exim&#8217;s main config file, using /usr/local/exim/configure </li>
<li>2. On the main/global config, usually before ACL section, add the line below</li>
<pre>
<code>
log_selector = +subject +delivery_size +size_reject
</code>
</pre>
<li>Above log_selector include logging the delivery size of the email, and size_reject. If the email is rejected by the server, you can find out what was the rejected size.</li>
</ul>
<p>That&#8217;s it. Will try to pen down stuff more often <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-enable-subject-header-logging-in-exims-main_log.php">How to Enable Subject Header Logging in Exim’s main_log</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-subject-header-logging-in-exims-main_log.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>Reverse DNS Lookup with Dig</title>
		<link>https://logs.paulooi.com/reverse-dns-lookup-with-dig.php</link>
					<comments>https://logs.paulooi.com/reverse-dns-lookup-with-dig.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Sat, 22 Jan 2011 11:51:28 +0000</pubDate>
				<category><![CDATA[Systems]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[dns server]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[ip address]]></category>
		<category><![CDATA[reverse dns]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=1127</guid>

					<description><![CDATA[<p>Reverse DNS, in simple explanation it means that resolve your IP address into hostname. Nowaday it became a must have requirement for mail server&#8217;s IP address. It is also one of the method to determine your mail server IP is...</p>
The post <a href="https://logs.paulooi.com/reverse-dns-lookup-with-dig.php">Reverse DNS Lookup with Dig</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p>Reverse DNS, in simple explanation it means that resolve your IP address into hostname. Nowaday it became a must have requirement for mail server&#8217;s IP address. It is also one of the method to determine your mail server IP is glue to the hostname. </p>
<p>Here is how to find out the reverse DNS IP address is pointed to which DNS server for zone delegation.</p>
<pre>
<code>
dig -x 175.136.188.90

; <<>> DiG 9.6.0-APPLE-P2 <<>> -x 175.136.188.90
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 21938
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;90.188.136.175.in-addr.arpa.   IN      PTR

;; AUTHORITY SECTION:
136.175.in-addr.arpa.   10800   IN      SOA     ns1.tm.net.my. dnsadm.tmnet.com.my. 2011012113 10800 3600 604800 86400

;; Query time: 37 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Sat Jan 22 19:39:12 2011
;; MSG SIZE  rcvd: 111
</pre>
<p></code></p>
<p>The result above shown </p>
<ul>
<li>The SOA record shown the IP Address is pointed to ns1.tm.net.my for reverse DNS delegation.</li>
<li>The zone 136.175.in-addr.arpa is delegating the IP 175.136.188.90</li>
</ul>
<p>This command is pretty useful when you want to find out is the reverse DNS delegation works correctly. </p>The post <a href="https://logs.paulooi.com/reverse-dns-lookup-with-dig.php">Reverse DNS Lookup with Dig</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/reverse-dns-lookup-with-dig.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Fixed Cacti Spine 0.8.7g Problem on FreeBSD</title>
		<link>https://logs.paulooi.com/fixed-cacti-spine-0-8-7g-problem-on-freebsd.php</link>
					<comments>https://logs.paulooi.com/fixed-cacti-spine-0-8-7g-problem-on-freebsd.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Wed, 27 Oct 2010 00:59:04 +0000</pubDate>
				<category><![CDATA[Application]]></category>
		<category><![CDATA[cacti]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[graph]]></category>
		<category><![CDATA[rra]]></category>
		<category><![CDATA[rrd]]></category>
		<category><![CDATA[spine]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=1078</guid>

					<description><![CDATA[<p>On latest release of Cacti Spine 0.8.7g, it has new Multi threaded host polling feature. After upgrade Cacti Spine from version 0.8.7e to 0.8.7g, the graphing stopped working on FreeBSD 8.1 box. When we check the process with &#8220;top&#8221; command,...</p>
The post <a href="https://logs.paulooi.com/fixed-cacti-spine-0-8-7g-problem-on-freebsd.php">Fixed Cacti Spine 0.8.7g Problem on FreeBSD</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/2010/10/89BAJ-03-29-Giant-cacti.jpg"><img fetchpriority="high" decoding="async" src="https://logs.paulooi.com/wp-content/uploads/2010/10/89BAJ-03-29-Giant-cacti-202x300.jpg" alt="" title="89BAJ-03-29-Giant-cacti" width="202" height="300" class="alignleft size-medium wp-image-1081" srcset="https://logs.paulooi.com/wp-content/uploads/2010/10/89BAJ-03-29-Giant-cacti-202x300.jpg 202w, https://logs.paulooi.com/wp-content/uploads/2010/10/89BAJ-03-29-Giant-cacti.jpg 480w" sizes="(max-width: 202px) 100vw, 202px" /></a>On latest release of Cacti Spine 0.8.7g, it has new Multi threaded host polling feature. After upgrade Cacti Spine from version 0.8.7e to 0.8.7g, the graphing stopped working on FreeBSD 8.1 box. When we check the process with &#8220;top&#8221; command, it seems like spine process is hang and it utilizes 100% of CPU usage. </p>
<p>While doing verbose logging on spine, we saw the message &#8220;Spine Timed Out While Processing Hosts Internal&#8221; freezing until it reaches the script time out at 40 seconds. The logs didn&#8217;t provide much info and the actual fixes are available at <a href="http://www.cacti.net/spine_download_patches.php">Cacti Official Spine Patches website</a>. After apply the patches, Spine 0.8.7g is working on the FreeBSD&#8217;s box. Most of our packages installation are through FreeBSD ports, I guess that we have to check on Cacti&#8217;s Official website to look for patches. Or the maintainer should grab the latest patches and update from FreeBSD ports <img src="https://s.w.org/images/core/emoji/16.0.1/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>If Spine installation is from FreeBSD ports. Here is the step by step to fixed Spine 0.8.7g problem. </p>
<ul>
<li>Go to /usr/ports/net-mgmt/cacti-spine/</li>
<li>Perform make clean to wipe off previous compiled files</li>
<li>Do make extract to extract the source files</li>
<li>On current directory, go to work/cacti-spine-0.8.7g/</li>
<li>Download the latest patch from Cacti&#8217;s website and apply the patches</li>
<li>Make to build the app from patches</li>
<li>Make deinstall to uninstall current cacti</li>
<li>and finally make install to install patched spine into binary folder.</li>
</ul>
<pre>
<code>
shell> cd /usr/ports/net-mgmt/cacti-spine/
shell> make clean
shell> make extract 
shell> cd work/cacti-spine-0.8.7g/
shell> wget http://www.cacti.net/downloads/spine/patches/0.8.7g/unified_issues.patch
shell> patch -p1 -N < unified_issues.patch
shell> make 
shell> make deinstall
shell> make install
</code>
</pre>The post <a href="https://logs.paulooi.com/fixed-cacti-spine-0-8-7g-problem-on-freebsd.php">Fixed Cacti Spine 0.8.7g Problem on FreeBSD</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/fixed-cacti-spine-0-8-7g-problem-on-freebsd.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Setup Sendmail Smart Relay in FreeBSD</title>
		<link>https://logs.paulooi.com/setup-sendmail-smart-relay-in-freebsd.php</link>
					<comments>https://logs.paulooi.com/setup-sendmail-smart-relay-in-freebsd.php#comments</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Thu, 09 Sep 2010 04:11:00 +0000</pubDate>
				<category><![CDATA[Systems]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[relay]]></category>
		<category><![CDATA[sendmail]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=1049</guid>

					<description><![CDATA[<p>It&#8217;s good that to route all your outgoing email to a relay server for centralize management. Compiling Sendmail&#8217;s Smart Relay options in FreeBSD is slightly different from Linux machine. But it&#8217;s fairly easy to do so. Just follow the steps...</p>
The post <a href="https://logs.paulooi.com/setup-sendmail-smart-relay-in-freebsd.php">Setup Sendmail Smart Relay in FreeBSD</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/2010/09/349574996_ffd563b65f.jpg"><img decoding="async" src="https://logs.paulooi.com/wp-content/uploads/2010/09/349574996_ffd563b65f-300x199.jpg" alt="" title="349574996_ffd563b65f" width="300" height="199" class="alignleft size-medium wp-image-1050" srcset="https://logs.paulooi.com/wp-content/uploads/2010/09/349574996_ffd563b65f-300x199.jpg 300w, https://logs.paulooi.com/wp-content/uploads/2010/09/349574996_ffd563b65f.jpg 500w" sizes="(max-width: 300px) 100vw, 300px" /></a>It&#8217;s good that to route all your outgoing email to a relay server for centralize management. Compiling Sendmail&#8217;s Smart Relay options in FreeBSD is slightly different from Linux machine. But it&#8217;s fairly easy to do so. Just follow the steps below, and I assume you already have your own email relay server to relay to. </p>
<p>Go to /etc/mail<br />
run &#8220;make&#8221; command for the first time to generate &#8220;yourdomain&#8221;.cf and &#8220;yourdomain&#8221;.submit.cf / &#8220;yourdomain&#8221;.mc and &#8220;yourdomain&#8221;.submit.mc file</p>
<pre>
<code>
shell> cd /etc/mail
shell> make
shell> cp freebsd.mc "yourhostname".mc
/usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/   /usr/share/sendmail/cf/m4/cf.m4 "yourhostname".mc > "yourhostname".cf
cp freebsd.submit.mc "yourhostname".submit.mc
/usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/   /usr/share/sendmail/cf/m4/cf.m4 "yourhostname".submit.mc > "yourhostname"submit.cf
</code>
</pre>
<p>After mc and mf files have generated. Edit <yourdomain>.mc file, look for line below. Change the SMART HOST to your email server&#8217;s hostname. It must be hostname and you CAN&#8217;T configure IP Address for SMART HOST.</p>
<pre>
<code>
shell> vi "yourdomain".mc

dnl define(`SMART_HOST', `your.isp.mail.server')
define(`SMART_HOST', `relay.server.hostname')
</code>
</pre>
<p>Next copy &#8220;define(`SMART_HOST&#8217;, `relay.server.hostname&#8217;)&#8221; and paste it in &#8220;yourhostname&#8221;.submit.mc. It must be placed before the line of &#8220;msp&#8221; feature. </p>
<pre>
<code>
define(`SMART_HOST', `relay.server.hostname')
FEATURE(`msp', `[127.0.0.1]')dnl
</pre>
<p></code></p>
<p>After configuration has been made, now run "make install" to generate the cf file and replace sendmail.cf and submit.cf </p>
<pre>
<code>
shell> make install
shell> /usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/   /usr/share/sendmail/cf/m4/cf.m4 "yourhostname".mc >  "yourhostname".cf
install -m 444  "yourhostname".cf /etc/mail/sendmail.cf
/usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/   /usr/share/sendmail/cf/m4/cf.m4  "yourhostname".submit.mc >  "yourhostname".submit.cf
install -m 444 iyot.time.com.my.submit.cf /etc/mail/submit.cf
</pre>
<p></code></p>
<p>You are basically done, now. Just restart sendmail services. </p>
<pre>
<code>
shell> /etc/rc.d/sendmail restart
shell> Cannot 'restart' sendmail. Set sendmail_enable to YES in /etc/rc.conf or use 'onerestart' instead of 'restart'.
Stopping sendmail_submit.
Waiting for PIDS: 64903.
</code>
</pre>
<p>Ignore the line to change sendmail_enable to YES if your server just do email submit and it doesn't act as incoming email.</p>The post <a href="https://logs.paulooi.com/setup-sendmail-smart-relay-in-freebsd.php">Setup Sendmail Smart Relay in FreeBSD</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/setup-sendmail-smart-relay-in-freebsd.php/feed</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>How to Create User with useradd in FreeBSD</title>
		<link>https://logs.paulooi.com/how-to-create-user-with-useradd-in-freebsd.php</link>
					<comments>https://logs.paulooi.com/how-to-create-user-with-useradd-in-freebsd.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Fri, 09 Jul 2010 01:53:55 +0000</pubDate>
				<category><![CDATA[Systems]]></category>
		<category><![CDATA[adduser]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[groupadd]]></category>
		<category><![CDATA[groupdel]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[lock]]></category>
		<category><![CDATA[pw]]></category>
		<category><![CDATA[systems]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[unlock]]></category>
		<category><![CDATA[useradd]]></category>
		<category><![CDATA[userdel]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=1019</guid>

					<description><![CDATA[<p>You can invoke &#8220;adduser&#8221; command in FreeBSD in order to create new user. Adduser will prompt you for user info like name, uid, gid, shell environment and etc. But sometime we would like to create user access through Bash script....</p>
The post <a href="https://logs.paulooi.com/how-to-create-user-with-useradd-in-freebsd.php">How to Create User with useradd in FreeBSD</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p>You can invoke &#8220;adduser&#8221; command in FreeBSD in order to create new user. Adduser will prompt you for user info like name, uid, gid, shell environment and etc. But sometime we would like to create user access through Bash script. &#8220;useradd&#8221; command is the good way to do it. </p>
<p>In Linux, using &#8220;useradd&#8221; is pretty common for creating new user access. You can also use &#8220;useradd&#8221; in FreeBSD, but not directly invoke &#8220;useradd&#8221; command. Below is the sample of creating new user in FreeBSD with &#8220;useradd&#8221;.</p>
<pre>
<code>
shell> pw useradd cheryl -c 'Cheryl Windows Admin' -d /home/cheryl -s /usr/local/bin/bash
</code>
</pre>
<p>New user account is created, but don&#8217;t forgot to set password for the account </p>
<pre>
<code>
shell> passwd cheryl
</code>
</pre>
<p>You can run other command like &#8220;userdel&#8221;, &#8220;usermod&#8221;, &#8220;usershow&#8221;, &#8220;groupadd&#8221;, &#8220;groupdel&#8221;, &#8220;groupmod&#8221;, &#8220;lock&#8221;, &#8220;unlock&#8221; on FreeBSD by using the &#8220;pw&#8221; command.  </p>The post <a href="https://logs.paulooi.com/how-to-create-user-with-useradd-in-freebsd.php">How to Create User with useradd in FreeBSD</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-create-user-with-useradd-in-freebsd.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Razor2 Error: No such file or directory report requires authentication</title>
		<link>https://logs.paulooi.com/razor2-error-no-such-file-or-directory-report-requires-authentication.php</link>
					<comments>https://logs.paulooi.com/razor2-error-no-such-file-or-directory-report-requires-authentication.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Tue, 06 Jul 2010 06:14:57 +0000</pubDate>
				<category><![CDATA[Systems]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[razor]]></category>
		<category><![CDATA[report]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[spam assasssin]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=1013</guid>

					<description><![CDATA[<p>While doing Spam Report on SpamAssassin, I came across this error message, reporter: razor2 report failed: No such file or directory report requires authentication at /usr/local/lib/perl5/site_perl/5.x.x/Mail/SpamAssassin/Plugin/Razor2.pm line 180. at /usr/local/lib/perl5/site_perl/5.x.x/Mail/SpamAssassin/Plugin/Razor2.pm line 330. I checked the file existed, so It&#8217;s something...</p>
The post <a href="https://logs.paulooi.com/razor2-error-no-such-file-or-directory-report-requires-authentication.php">Razor2 Error: No such file or directory report requires authentication</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p>While doing Spam Report on SpamAssassin, I came across this error message,</p>
<pre>
<code>
reporter: razor2 report failed: No such file or directory report requires authentication at /usr/local/lib/perl5/site_perl/5.x.x/Mail/SpamAssassin/Plugin/Razor2.pm line 180. at /usr/local/lib/perl5/site_perl/5.x.x/Mail/SpamAssassin/Plugin/Razor2.pm line 330.
</code>
</pre>
<p>I checked the file existed, so It&#8217;s something to do with Razor authentication. This is what you need to do fix the error message from SpamAssassin. </p>
<pre>
<code>
shell> razor-admin -create
shell> razor-admin -register
</code>
</pre>The post <a href="https://logs.paulooi.com/razor2-error-no-such-file-or-directory-report-requires-authentication.php">Razor2 Error: No such file or directory report requires authentication</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/razor2-error-no-such-file-or-directory-report-requires-authentication.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Upgrade to php52 on FreeBSD</title>
		<link>https://logs.paulooi.com/upgrade-to-php52-on-freebsd.php</link>
					<comments>https://logs.paulooi.com/upgrade-to-php52-on-freebsd.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Fri, 02 Jul 2010 03:48:55 +0000</pubDate>
				<category><![CDATA[Systems]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ports]]></category>
		<category><![CDATA[portsnap]]></category>
		<category><![CDATA[portupgrade]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=1006</guid>

					<description><![CDATA[<p>By default, after portsnap to latest FreeBSD port tree, it will upgrade your php5.2 to php5.3 automatically. There isn&#8217;t any option where you can to remain your PHP version to 5.2. In order to keep my PHP applications running on...</p>
The post <a href="https://logs.paulooi.com/upgrade-to-php52-on-freebsd.php">Upgrade to php52 on FreeBSD</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p>By default, after portsnap to latest FreeBSD port tree, it will upgrade your php5.2 to php5.3 automatically. There isn&#8217;t any option where you can to remain your PHP version to 5.2. </p>
<p>In order to keep my PHP applications running on PHP version 5.2, what I did is upgrade all php5-* packages to php52-*, but it will be a little waste of time if doing it manually, port by port. </p>
<p>So I written this simple bash to output me the packages of php5-* which need to upgrade to php52-*</p>
<pre>
<code>
for d in `portversion -vL= | grep php5 | awk '{print $1}'`; do  OLD=`echo $d | cut -d - -f 1,2`; NEW=`echo $d | sed s/php5/php52/ | cut -d - -f 1,2`; THEPATH=`whereis $NEW | awk '{print $2}' | cut -d / -f 4,5`; echo "portupgrade -o $THEPATH $OLD && \\"; done
</code>
</pre>
<p>The bash will actually output </p>
<pre>
<code>
portupgrade -o textproc/php52-simplexml php5-simplexml && \
portupgrade -o devel/php52-spl php5-spl && \
portupgrade -o databases/php52-sqlite php5-sqlite && \
portupgrade -o devel/php52-tokenizer php5-tokenizer && \
portupgrade -o textproc/php52-xml php5-xml && \
portupgrade -o textproc/php52-xmlreader php5-xmlreader && \
portupgrade -o textproc/php52-xmlwriter php5-xmlwriter && \
portupgrade -o archivers/php52-zip php5-zip && \
portupgrade -o archivers/php52-zlib php5-zlib && \ 
</code>
</pre>
<p>Before upgrading the php extensions package, upgrade your php52 as below</p>
<pre>
<code>
portupgrade -o lang/php52 php5
</code>
</pre>
<p>On the last time, remember to remove &#8220;&#038;&#038; \&#8221;, or you can press enter key twice to activate the upgrade. </p>The post <a href="https://logs.paulooi.com/upgrade-to-php52-on-freebsd.php">Upgrade to php52 on FreeBSD</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/upgrade-to-php52-on-freebsd.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Bind Error: &#8220;max open files (3520) is smaller than max sockets (4096)&#8221;</title>
		<link>https://logs.paulooi.com/bind-error-max-open-files-3520-is-smaller-than-max-sockets-4096.php</link>
					<comments>https://logs.paulooi.com/bind-error-max-open-files-3520-is-smaller-than-max-sockets-4096.php#comments</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Mon, 28 Jun 2010 08:34:30 +0000</pubDate>
				<category><![CDATA[Systems]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[sysctl]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=1002</guid>

					<description><![CDATA[<p>Just notice one of the DNS server has the error message 28-Jun-2010 16:28:24.283 general: max open files (3520) is smaller than max sockets (4096) It&#8217;s something to do with kernel setting, on FreeBSD, configure the following shell> sysctl kern.maxfiles=4096 shell>...</p>
The post <a href="https://logs.paulooi.com/bind-error-max-open-files-3520-is-smaller-than-max-sockets-4096.php">Bind Error: “max open files (3520) is smaller than max sockets (4096)”</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p>Just notice one of the DNS server has the error message</p>
<pre>
<code>
28-Jun-2010 16:28:24.283 general: max open files (3520) is smaller than max sockets (4096)
</code>
</pre>
<p>It&#8217;s something to do with kernel setting, on FreeBSD, configure the following</p>
<pre>
<code>
shell> sysctl kern.maxfiles=4096  
shell> sysctl kern.maxfilesperproc=4096
</code>
</pre>
<p>Alternatively, put the above configuration on /etc/sysctl.conf in order to configure it at start up level. </p>The post <a href="https://logs.paulooi.com/bind-error-max-open-files-3520-is-smaller-than-max-sockets-4096.php">Bind Error: “max open files (3520) is smaller than max sockets (4096)”</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/bind-error-max-open-files-3520-is-smaller-than-max-sockets-4096.php/feed</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Change or Set User Password in FreeBSD</title>
		<link>https://logs.paulooi.com/change-or-set-user-password-in-freebsd.php</link>
					<comments>https://logs.paulooi.com/change-or-set-user-password-in-freebsd.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Fri, 04 Jun 2010 14:51:02 +0000</pubDate>
				<category><![CDATA[Systems]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[userid]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=1000</guid>

					<description><![CDATA[<p>If you notice, during FreeBSD installation, it doesn&#8217;t have a step by step installation guides for creating user&#8217;s password for login credential. By default, FreeBSD installation only come with user &#8220;root&#8221;, and it doesn&#8217;t prompts for password setting for default...</p>
The post <a href="https://logs.paulooi.com/change-or-set-user-password-in-freebsd.php">Change or Set User Password in FreeBSD</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p>If you notice, during FreeBSD installation, it doesn&#8217;t have a step by step installation guides for creating user&#8217;s password for login credential. By default, FreeBSD installation only come with user &#8220;root&#8221;, and it doesn&#8217;t prompts for password setting for default user &#8220;root&#8221;. After installation, you can login to FreeBSD with user &#8220;root&#8221;, no password.</p>
<p>So, it&#8217;s advise that to set user&#8217;s password after installation. You can set or change user&#8217;s password in FreeBSD with passwd command. </p>
<p>Try to have your password in alphanumeric combination, meaning alphabets + numbers and at least 6 characters long. You can do some creative password combination like &#8220;go2HELL&#8221;, &#8220;1amN00b1nUn1x&#8221;, &#8220;BUYm3b33r&#8221;, &#8220;h3ySumm3rH0t&#8221; and etc. Please do remember, the password is case sensitive too.</p>
<p><strong>To Set Password for Default User &#8220;root&#8221;</strong></p>
<p>To set the password;</p>
<ul>
<li>type: passwd</li>
<li>input your password twice</li>
</ul>
<p>To change your password, use the same command and it will prompt you for current password before putting the new one.</p>
<p><strong>To Set or Change Password for Other Userid</strong></p>
<p>Login as &#8220;root&#8221; and change user&#8217;s password, in example userid foo</p>
<ul>
<li>Type: passwd foo </li>
<li>Input your password twice</li>
</ul>The post <a href="https://logs.paulooi.com/change-or-set-user-password-in-freebsd.php">Change or Set User Password in FreeBSD</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/change-or-set-user-password-in-freebsd.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
