Upgrade existing Perl 5.12 to Perl 5.18 on FreeBSD 9

Recently I’ve been trying to update the perl package on my FreeBSD box to the latest version 5.18 without any success. Here’s a snippet of the error message: So I turned to Google to see if other people experienced the same thing as me. According to an answer to a similar question about upgrading perl on serverfault.com, one should read document frequently. Let’s do it. I’m using Portmaster, and I’d like to upgrade from perl5....

October 30, 2013 · 1 min · 118 words · kenno

ZFS on CentOS

First we need to add the ZFS on Linux repository to our system by installing a zfs-release package as shown below: $ sudo yum localinstall --nogpgcheck http://archive.zfsonlinux.org/epel/zfs-release-1-3.el6.noarch.rpm $ sudo yum install zfs Once, zfs has been installed, we can create a storage pool. There’re many RAID configuration to choose from, and I’m not going to get into it. However, if you want to learn more, you can read this ZFS Administration article which explains in great detail about ZFS RAID(Z)....

October 8, 2013 · 1 min · 144 words · kenno

Portsnap snapshot corrupt

ថ្ងៃ​នេះខ្ញុំ​​មាន​បញ្ហា​ជាមួយ​ portsnap លើ​ FreeBSD ស៊ើវើ។ ពេល​ខ្ញុំ​រត់​ខំម៉ាន​ portsnap fetch upate មាន​ពត៌មាន​ដូច​នេះ តាម​ប្លក់នេះ របៀប​ជួសជុល​វា មិន​ពិបាកទេ។ Source: http://neonpulse.net/2008/11/20/portsnap-corrupt-snapshot/

October 7, 2013 · 1 min · 15 words · kenno

E: Internal Error, No file name for libapt-pkg4.12

When I tried to update an Ubuntu (12.04) machine with the usual apt-get command, this error message came up: Reading this post (http://ubuntuforums.org/showthread.php?t=2045321), one way to fix it is to download liapt-pkg4.12 and re-install it: This seems did the trick.

October 3, 2013 · 1 min · 40 words · kenno

បញ្ចូល​ Upstream Version នៃ Node.js ក្នុង Ubuntu 12.04

$ sudo apt-get install python-software-properties $ sudo apt-add-repository ppa:chris-lea/node.js $ sudo apt-get update $ sudo apt-get install nodejs ឆែក​មើល: $ node -v v0.10.20

October 1, 2013 · 1 min · 23 words · kenno

Turn color on for git status

The following command will update the Git’s global configuration to set the color.ui to true. $ git config --global color.ui true Ref: https://ask.fedoraproject.org/question/10434

September 26, 2013 · 1 min · 23 words · kenno

Changing ZFS pool to use disk ID instead of disk assignment

This what I have: # zpool status pool: tank state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 sdb ONLINE 0 0 0 sdc ONLINE 0 0 0 sdd ONLINE 0 0 0 To convert the pool to use disk’s ID instead of device files such as /dev/sda, we need to export the storage pool. # zpool export tank After this command is executed, the pool tank is no longer visible on the system....

September 20, 2013 · 1 min · 162 words · kenno

Install Python 3 on CentOS 6

The latest release of Python 3 is 3.3.2, and there’s no package available on CentOS repo via yum. The following steps explains how to manually get Python 3 onto a CentOS system: Install development tools # yum groupinstall "Development Tools" # yum install zlib-devel bzip2-devel openssl-devel \ ncurses-devel sqlite-devel readline-devel tk-devel Download and install Python $ wget http://python.org/ftp/python/3.3.2/Python-3.3.2.tar.bz2 $ tar xjf Python-3.3.2.tar.bz2 $ cd Python-3.3.2 $ ./configure --prefix=/opt/python3 $ make $ make install</pre> Test...

September 4, 2013 · 1 min · 81 words · kenno

How to fix PuppetDB SSL error

If you don’t know what PuppetDB is, this post probably will not be any useful to you. But if you wanna find out or learn about it, here is the link: http://docs.puppetlabs.com/puppetdb/latest/index.html. For PuppetDB to work, we need to generate SSL certificates from a Puppet master’s SSL certificate. In my case, I need to re-configure this PuppetDB to a new Puppet mater which sits on the same server. Here’s how it was done:...

August 22, 2013 · 1 min · 133 words · kenno

FreeBSD configure: error: XML::Parser perl module is required for intltool

If you get this error message on a FreeBSD host, you may need to reinstall p5-XML-Parser.

July 24, 2013 · 1 min · 16 words · kenno