One fine day, the server disk usage report that, the one of the partitions is almost full. After some searching, the database directory at /var/db/mysql/ (FreeBSD) or /var/lib/mysql/ (Linux) is occupying most disk space. Listing the directory only to found out that mysql-bin.0000* are the ones that is occupying the disk space. What are these [...]

Jason Dixon has made available the last 4 videos from DCBSDCon 2009. The last video marks the 50th video uploaded to the BSDConferences YouTube channel. This channel was created less than 5 months ago and now has 924 subscribers from authenticated YouTube users, and the videos have been viewed over 76,000 times by users from around the worl [...]

Jason Dixon has made available the last 4 videos from DCBSDCon 2009. The last video marks the 50th video uploaded to the BSDConferences YouTube channel. This channel was created less than 5 months ago and now has 924 subscribers from authenticated YouTube users, and the videos have been viewed over 76,000 times by users from around the worl [...]

Leslie Hawthorne from Google today announced the students selected to participate in this year\'s Google Summer of Code. Among the 1,000 students from 70 countries participating in this program, 20 will be working on FreeBSD projects, 11 on NetBSD projects, and 5 on DragonFly BSD projects.Keep an eye on the FreeBSD wiki and mailing lists for [...]

Leslie Hawthorne from Google today announced the students selected to participate in this year\'s Google Summer of Code. Among the 1,000 students from 70 countries participating in this program, 20 will be working on FreeBSD projects, 11 on NetBSD projects, and 5 on DragonFly BSD projects.Keep an eye on the FreeBSD wiki and mailing lists for [...]

Thanks to Jason Dixon and Will Backman, the first 8 videos from the first DCBSDCon are now available in the BSDConferences YouTube channel. The audio quality for these is better than many of the previous conference videos because Jason was able to sync the audio with a direct recording from the podium taken by Will. These videos were also [...]

Thanks to Jason Dixon and Will Backman, the first 8 videos from the first DCBSDCon are now available in the BSDConferences YouTube channel. The audio quality for these is better than many of the previous conference videos because Jason was able to sync the audio with a direct recording from the podium taken by Will. These videos were also [...]

A short tip. For searching in vim, enter the \"Command-line\" mode by type a colon (\":\") in \"Normal\" mode (Esc twice at any time) and type \"set ignorecase\" for case-insensitive search.e.g.:set ignorecaseAdditionally, for \"next\" occurrence or match, type \"n\" or \"N\" for \"previous\" occurred match.Ciao !!!

This is another follow up post on DHCP aka Dynamic Host Configuration Protocol, which posted first in here and then here. FreeBSD are commonly used as a server. One might ask why does it needs to auto assign IP using DHCP ? Should not it running static IP so that the server are contacted by the host always (Read more...)

When cleaning up some config file with hundreds of lines, browsing up and down just to find the key word can be eye dazzling, in the pungent way. :)The good thing about vim is, it is able to find any text you want using the "Search" command (/) in the "Normal" mode ( (Read more...)

UPDATE : Check out recent committed /usr/ports/www/spawn-fcgi/, it comes with a better spawn-fcgi rc.d script. Please use the script from the post. However, the spawn-fcgi.sh provided does not have option to run via unix socket. I have submitted the patch.
Few days ago, I posted a write-up, FreeBSD : php-cgi spawn-fcgi rc.d script for nginx, [...]

I have been working on parallel round-robin web clusters (is this the right term?) using 2 x FreeBSD 7.1 AMD64 boxes, nginx (patched with fair upstream), apache + php (backend), glusterfs, tinydns (sitting on another box, a name server, for round robin A record) and mysql multi-master replication. The setup is mainly making use of round-robi [...]

Years ago, I bought a 3Com 3C1 CF card. This card was an early attempt by 3Com to minimize the power usage of the traditional 3C589 line of cards. These cards were important for the early palm-sized PDAs that were on the market. Through a number of different connections, I was able to get documentation on the 3c1. At the (Read more...)

Printing variables or text within bash script is good for debugging. It can trace which line or variables is having problem. echo is the commonly is used for such debugging purpose. But some times we need it to print tabs, new line & other escape strings in a one liner bash. One way to do it is using printf : (Read more...)

I was busy working on glusterfs ports for FreeBSD. Still some issues to be ironed out before it can be submitted to the upstream. At same the time, I set up web servers running nginx with php5 via fastcgi. FreeBSD doesn’t have rc.d script to trigger spawn-fcgi process. So I wrote a quick one. Below is the script.
#!/bin/sh
#
(Read m [...]

In Firefox, when clicking on a URL link with "telnet://", firefox browser would pop up an error message "Firefox doesn't know how to open this address, because the protocol (telnet) isn't associated with any program.". It is due to the browser have not register a helper application to run the URL link with " [...]

The mutt is not just an email client, it is also very useful in bash script. mutt's CLI (command line interface) parameter can be called and execute without starting the email client interactively, ideal to run it within bash script to send email. mutt is also able to control from config file, ~/.muttrc, with a rich feature set (Read mo [...]

Epoch dates are seconds started from 1st January, 1970. It is a common date and time representation, especially in unix and linux world. It provides a way to convert time stamp in a much easier way for programming calculation, an integer. Below are one of the way to convert epoch timestamps to a readable format :Read more »

Every few months/years I take all the cards that I have in my collection and start to run through them testing to see what\'s working in FreeBSD and what\'s broken. Over the past year or two I\'ve neglected this task as I\'ve been involved in other things. After my last trip to Akihabara, I\'ve been playing with this stuff, so (Read more.. [...]