<?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; freebsd</title>
	<atom:link href="http://systems.takizo.com/tag/freebsd/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>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>Reverse DNS Lookup with Dig</title>
		<link>http://systems.takizo.com/2011/01/22/reverse-dns-lookup-with-dig/</link>
		<comments>http://systems.takizo.com/2011/01/22/reverse-dns-lookup-with-dig/#comments</comments>
		<pubDate>Sat, 22 Jan 2011 11:51:28 +0000</pubDate>
		<dc:creator>takizo</dc:creator>
				<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[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. Here is how to find out the reverse DNS IP address [...]]]></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>
]]></content:encoded>
			<wfw:commentRss>http://systems.takizo.com/2011/01/22/reverse-dns-lookup-with-dig/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixed Cacti Spine 0.8.7g Problem on FreeBSD</title>
		<link>http://systems.takizo.com/2010/10/27/fixed-cacti-spine-0-8-7g-problem-on-freebsd/</link>
		<comments>http://systems.takizo.com/2010/10/27/fixed-cacti-spine-0-8-7g-problem-on-freebsd/#comments</comments>
		<pubDate>Wed, 27 Oct 2010 00:59:04 +0000</pubDate>
		<dc:creator>takizo</dc:creator>
				<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[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. While [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://systems.takizo.com/wp-content/uploads/2010/10/89BAJ-03-29-Giant-cacti.jpg"><img src="http://systems.takizo.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" /></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 target="_blank" 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='http://systems.takizo.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </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>
]]></content:encoded>
			<wfw:commentRss>http://systems.takizo.com/2010/10/27/fixed-cacti-spine-0-8-7g-problem-on-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setup Sendmail Smart Relay in FreeBSD</title>
		<link>http://systems.takizo.com/2010/09/09/setup-sendmail-smart-relay-in-freebsd/</link>
		<comments>http://systems.takizo.com/2010/09/09/setup-sendmail-smart-relay-in-freebsd/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 04:11:00 +0000</pubDate>
		<dc:creator>takizo</dc:creator>
				<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[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. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://systems.takizo.com/wp-content/uploads/2010/09/349574996_ffd563b65f.jpg"><img src="http://systems.takizo.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" /></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>
]]></content:encoded>
			<wfw:commentRss>http://systems.takizo.com/2010/09/09/setup-sendmail-smart-relay-in-freebsd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Create User with useradd in FreeBSD</title>
		<link>http://systems.takizo.com/2010/07/09/how-to-create-user-with-useradd-in-freebsd/</link>
		<comments>http://systems.takizo.com/2010/07/09/how-to-create-user-with-useradd-in-freebsd/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 01:53:55 +0000</pubDate>
		<dc:creator>takizo</dc:creator>
				<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[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. In Linux, using &#8220;useradd&#8221; is pretty [...]]]></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>
]]></content:encoded>
			<wfw:commentRss>http://systems.takizo.com/2010/07/09/how-to-create-user-with-useradd-in-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Razor2 Error: No such file or directory report requires authentication</title>
		<link>http://systems.takizo.com/2010/07/06/razor2-error-no-such-file-or-directory-report-requires-authentication/</link>
		<comments>http://systems.takizo.com/2010/07/06/razor2-error-no-such-file-or-directory-report-requires-authentication/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 06:14:57 +0000</pubDate>
		<dc:creator>takizo</dc:creator>
				<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[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 to do with Razor authentication. This is what you need to do fix the error [...]]]></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>
]]></content:encoded>
			<wfw:commentRss>http://systems.takizo.com/2010/07/06/razor2-error-no-such-file-or-directory-report-requires-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade to php52 on FreeBSD</title>
		<link>http://systems.takizo.com/2010/07/02/upgrade-to-php52-on-freebsd/</link>
		<comments>http://systems.takizo.com/2010/07/02/upgrade-to-php52-on-freebsd/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 03:48:55 +0000</pubDate>
		<dc:creator>takizo</dc:creator>
				<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[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 PHP version 5.2, what I did is upgrade all php5-* packages to php52-*, but it [...]]]></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 &#038;&#038; \\"; done
</code>
</pre>
<p>The bash will actually output </p>
<pre>
<code>
portupgrade -o textproc/php52-simplexml php5-simplexml &#038;&#038; \
portupgrade -o devel/php52-spl php5-spl &#038;&#038; \
portupgrade -o databases/php52-sqlite php5-sqlite &#038;&#038; \
portupgrade -o devel/php52-tokenizer php5-tokenizer &#038;&#038; \
portupgrade -o textproc/php52-xml php5-xml &#038;&#038; \
portupgrade -o textproc/php52-xmlreader php5-xmlreader &#038;&#038; \
portupgrade -o textproc/php52-xmlwriter php5-xmlwriter &#038;&#038; \
portupgrade -o archivers/php52-zip php5-zip &#038;&#038; \
portupgrade -o archivers/php52-zlib php5-zlib &#038;&#038; \
</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>
]]></content:encoded>
			<wfw:commentRss>http://systems.takizo.com/2010/07/02/upgrade-to-php52-on-freebsd/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>http://systems.takizo.com/2010/06/28/bind-error-max-open-files-3520-is-smaller-than-max-sockets-4096/</link>
		<comments>http://systems.takizo.com/2010/06/28/bind-error-max-open-files-3520-is-smaller-than-max-sockets-4096/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 08:34:30 +0000</pubDate>
		<dc:creator>takizo</dc:creator>
				<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[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> sysctl kern.maxfilesperproc=4096 Alternatively, put the above configuration on /etc/sysctl.conf in order to configure it at [...]]]></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>
]]></content:encoded>
			<wfw:commentRss>http://systems.takizo.com/2010/06/28/bind-error-max-open-files-3520-is-smaller-than-max-sockets-4096/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Change or Set User Password in FreeBSD</title>
		<link>http://systems.takizo.com/2010/06/04/change-or-set-user-password-in-freebsd/</link>
		<comments>http://systems.takizo.com/2010/06/04/change-or-set-user-password-in-freebsd/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 14:51:02 +0000</pubDate>
		<dc:creator>takizo</dc:creator>
				<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[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. So, [...]]]></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>
]]></content:encoded>
			<wfw:commentRss>http://systems.takizo.com/2010/06/04/change-or-set-user-password-in-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Change Hostname in Unix FreeBSD</title>
		<link>http://systems.takizo.com/2010/06/03/how-to-change-hostname-in-unix-freebsd/</link>
		<comments>http://systems.takizo.com/2010/06/03/how-to-change-hostname-in-unix-freebsd/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 12:17:04 +0000</pubDate>
		<dc:creator>takizo</dc:creator>
				<category><![CDATA[Systems]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://systems.takizo.com/?p=996</guid>
		<description><![CDATA[We have interesting hostname for our all our servers. Some of it is using Football Team like Manchester, Liverpool, Chelsea, Arsenal. Part of it is striker name like Rooney, Ronaldo and etc. We also have like meganfox, milla, jessicaalba for those &#8220;hot&#8221; &#8220;steamy&#8221; servers. Occasionally if the football team is not perform well, we will [...]]]></description>
			<content:encoded><![CDATA[<p>We have interesting hostname for our all our servers. Some of it is using Football Team like Manchester, Liverpool, Chelsea, Arsenal. Part of it is striker name like Rooney, Ronaldo and etc. We also have like meganfox, milla, jessicaalba for those &#8220;hot&#8221; &#8220;steamy&#8221; servers. Occasionally if the football team is not perform well, we will change the hostname for the server to other football team, for example Manchester to Chelsea. Yea.. We are not loyal support, we only support the no. 1 team. </p>
<p>Joking aside, <strong>how to change server hostname in Unix FreeBSD</strong>? There are 2 ways to do it, one is the easy way another is the geeky way. Depend on yourself, if you want to show your elite skills, do it with the text editor, or make the change with Sysinstall. </p>
<p><strong>Change Hostname in Unix FreeBSD with Sysinstall</strong></p>
<ul>
<li>In command line, type: sysinstall </li>
<li>Select Configure</li>
<li>Select Networking</li>
<li>Select Interfaces</li>
<li>Select your Network Interface Card (em0 em1 fxp0)</li>
<li>No IPV6 (Select yes if you are running on ipv6)</li>
<li>No DHCP (Select yes if you are running on dhcp)</li>
<li>host: should be your server name like chelsea</li>
<li>domain: should be your own domain like takizo.com</li>
<li>Select Ok</li>
<li>Exit, Exit, Exit</li>
<li>In command shell, type: hostname chelsea.takizo.com </li>
</ul>
<p>This will update your new hostname in Unix FreeBSD box. But please take note you will have extra junk in /etc/rc.conf. So it&#8217;s recommend to change your hostname in Unix FreeBSD with following method. </p>
<p><strong>Change Hostname in Unix FreeBSD in &#8220;Clean&#8221; Way</strong></p>
<ul>
<li>In command shell, type: hostname chelsea.takizo.com</li>
<li>Edit /etc/hosts with vi, change the existing hostname to your new hostname</li>
<li>Edit /etc/rc.conf with vi, on the &#8220;hostname&#8221; variable change the existing hostname to your new hostname </li>
</ul>
<p>This is the better approach in order to organize your /etc/rc.conf clean and clear. </p>
]]></content:encoded>
			<wfw:commentRss>http://systems.takizo.com/2010/06/03/how-to-change-hostname-in-unix-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

