Archive for the ‘www.scratching.psybermonkey.net’ Category

Perl – Apple finally bump Perl to 5.12.3

Posted on July 27th, 2011 by "PsyberMonkey" from "Scratching My Needs"

$ /usr/bin/perl -v

This is perl 5, version 12, subversion 3 (v5.12.3) built for darwin-thread-multi-2level
(with 2 registered patches, see perl -V for more detail)

Copyright 1987-2010, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation 

(Read more...)

OSX – Macports upgrade outdated ports hits error

Posted on July 26th, 2011 by "PsyberMonkey" from "Scratching My Needs"

OS X Lion 10.7 just released and I've join in the club to upgrade my mac. As usual, macports needs to be refresh before knowing what it upgrade :
port -v selfupdate

Next, upgrade the ports as usual :Read more »

AboutBSD.net – We’re IPv6 ready!

Posted on June 3rd, 2011 by "PsyberMonkey" from "Scratching My Needs"

AboutBSD.net can be accessible through IPv6 using http://v6.aboutbsd.net ...

Puppet – How to list facts in facter in Puppet

Posted on May 20th, 2011 by "PsyberMonkey" from "Scratching My Needs"


Was messing around puppet and trying to get a list of "facts". Google & searching on puppet labs didn't return any luck. Most of the search result points to bug reports.

With no luck at all, I gotta skim through the docs to find the list of facts for my new toy (puppet). Stumble this link that actually points where

(Read more...)

Puppet – How to list facts in facter in Puppet

Posted on May 20th, 2011 by "PsyberMonkey" from "Scratching My Needs"


Was messing around puppet and trying to get a list of "facts". Google & searching on puppet labs didn't return any luck. Most of the search result points to bug reports.

With no luck at all, I gotta skim through the docs to find the list of facts for my new toy (puppet). Stumble this link that actually points where

(Read more...)

FreeBSD – CPU code in dmesg meanings

Posted on April 29th, 2011 by "PsyberMonkey" from "Scratching My Needs"

Platform :
FreeBSD








Objective :
What are those CPU features flags means in "dmesg", e.g.
Features=0xfebfbff&ltFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,
PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS&gt
Features2=0x82982203&ltSSE3,PCLMULQDQ,SSSE3,CX16,SSE4.1,SSE4.2,POPCNT,
AESNI,&ltb31&gt&gt
AMD Features=0x28100000&ltNX,RDTSCP,LM&gt
AMD Features2=0x1&ltLAHF&gt
Read more »

FreeBSD – CPU code in dmesg meanings

Posted on April 29th, 2011 by "PsyberMonkey" from "Scratching My Needs"

Platform :
FreeBSD








Objective :
What are those CPU features flags means in "dmesg", e.g.
Features=0xfebfbff&ltFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,
PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS&gt
Features2=0x82982203&ltSSE3,PCLMULQDQ,SSSE3,CX16,SSE4.1,SSE4.2,POPCNT,
AESNI,&ltb31&gt&gt
AMD Features=0x28100000&ltNX,RDTSCP,LM&gt
AMD Features2=0x1&ltLAHF&gt
Read more »

Exim – How to force deliver email from exim mail queue

Posted on April 25th, 2011 by "PsyberMonkey" from "Scratching My Needs"

Platform :
FreeBSD

Mail Server :
Exim

Purpose :
Make Exim to start deliver all frozen messages.
Read more »

Exim – How to force deliver email from exim mail queue

Posted on April 25th, 2011 by "PsyberMonkey" from "Scratching My Needs"

Platform :
FreeBSD

Mail Server :
Exim

Purpose :
Make Exim to start deliver all frozen messages.
Read more »

Mysql – Error about packet too big while importing sql database

Posted on April 22nd, 2011 by "PsyberMonkey" from "Scratching My Needs"












Q : While importing database in mysql, an error message pops out "ERROR 1153 (08S01) at line 232: Got a packet bigger than 'max_allowed_packet' bytes"
E.g.
$ mysql5 -u db_user -p db_table < db_table.sql 
Enter password: 
ERROR 1153 (08S01) at line 232: Got a packet bigger than 'max_allowed_packet' bytes
A : The file importing contains a statement that's probably

(Read more...)

Mysql – Error about packet too big while importing sql database

Posted on April 22nd, 2011 by "PsyberMonkey" from "Scratching My Needs"












Q : While importing database in mysql, an error message pops out "ERROR 1153 (08S01) at line 232: Got a packet bigger than 'max_allowed_packet' bytes"
E.g.
$ mysql5 -u db_user -p db_table < db_table.sql 
Enter password: 
ERROR 1153 (08S01) at line 232: Got a packet bigger than 'max_allowed_packet' bytes
A : The file importing contains a statement that's probably

(Read more...)

Subversion – Branching and merging to release, stable or something else

Posted on April 18th, 2011 by "PsyberMonkey" from "Scratching My Needs"

Previously, we talk about the basic stuff of Subversion. This is still basic stuff :p


Is about managing source codes by branching. Branching is a way to have 2 or more sets of source code with each has it's own development, but eventually, merging them into the main trunk.

Example, in most development, we normally have "development" & "release"

(Read more...)

Subversion – Branching and merging to release, stable or something else

Posted on April 18th, 2011 by "PsyberMonkey" from "Scratching My Needs"

Previously, we talk about the basic stuff of Subversion. This is still basic stuff :p


Is about managing source codes by branching. Branching is a way to have 2 or more sets of source code with each has it's own development, but eventually, merging them into the main trunk.

Example, in most development, we normally have "development" & "release"

(Read more...)

FreeBSD – How to check what services or port opening in tcp/udp

Posted on April 15th, 2011 by "PsyberMonkey" from "Scratching My Needs"

Platform :
FreeBSD

How to :
List/show what services or port is listening/opening.

Installation :
The command comes with base system.
Read more »

FreeBSD – How to check what services or port opening in tcp/udp

Posted on April 15th, 2011 by "PsyberMonkey" from "Scratching My Needs"

Platform :
FreeBSD

How to :
List/show what services or port is listening/opening.

Installation :
The command comes with base system.
Read more »

Nagios – Time within nagios is incorrect

Posted on April 12th, 2011 by "PsyberMonkey" from "Scratching My Needs"

Platform :
FreeBSD

Server :
Nagios

Problem :
Nagios's time stamp are incorrect, e.g. the comments section, the log file's time stamp. But the server's date, time & time zone are correct.

Cause :
Nagios configuration needs to specify the time zone offset, as well as the Apache's CGI module. These both settings make sure that nagios's time is in

(Read more...)

Nagios – Time within nagios is incorrect

Posted on April 12th, 2011 by "PsyberMonkey" from "Scratching My Needs"

Platform :
FreeBSD

Server :
Nagios

Problem :
Nagios's time stamp are incorrect, e.g. the comments section, the log file's time stamp. But the server's date, time & time zone are correct.

Cause :
Nagios configuration needs to specify the time zone offset, as well as the Apache's CGI module. These both settings make sure that nagios's time is in

(Read more...)

AboutBSD.net – 20110411 Is back online, most of it

Posted on April 11th, 2011 by "PsyberMonkey" from "Scratching My Needs"

Managed to moved the site to another server and brought it back. If you're still seeing the "... Check back later ..." message, it is because the DNS record have not yet been refresh. Check back in another few hours.

The RSS feeds are up though. :)

AboutBSD.net – 20110411 Is back online, most of it

Posted on April 11th, 2011 by "PsyberMonkey" from "Scratching My Needs"

Managed to moved the site to another server and brought it back. If you're still seeing the "... Check back later ..." message, it is because the DNS record have not yet been refresh. Check back in another few hours.

The RSS feeds are up though. :)

bash – working with ps

Posted on April 8th, 2011 by "PsyberMonkey" from "Scratching My Needs"

Platform :
FreeBSD

Objective :
To grab the process details of a pid, without resorting to parse the output of process status command , "ps" :
E.g.
ps aux | grep -i pid
Read more »