Myself, 2009 Welcome to my web site. This page can be reached from http://www.nattee.net/ and http://our.obor.us. Essential links are provided on the top of the page. For my classes, please go to teaching. I am also available on Twitter @nattee.

apache mod evasive

Posted on: Fri, 07/26/2013 - 11:41 By: dae

My server has been attacked for weeks. They were brute force trying to login to MoinMoin. MoinMoin is still fine, but the server load is too high and there are too many traffic.

mod_evasive and mod-security are life savers

mod-status and awstats are also helpful in debugging and detecting the problem.

Moving to FreeBSD desktop

Posted on: Thu, 07/25/2013 - 14:53 By: dae

Again, my desktop somehow stop working, so I reinstall with FreeBSD and kde4.

This is what I have to do


x system

/usr/port/x11/xorg /usr/port/x11/kde4

after that edit rc.conf and add dbus_enable="YES" hald_enable="YES" kdm4_enable="YES" linux_enable="YES"

reboot to kde4 and install these ports

/usr/ports/sysutils/fusefs-ntfs git mercurial smb4k

Fix Firefox

Firefox is ugly in the Default FreeBSD ports. This is what I have to do.

new OpenVPN

Posted on: Mon, 06/10/2013 - 00:11 By: dae

มีเพิ่มเติม 2 บรรทัด ให้ push routing ไปยัง client บรรทัดแรกบอกว่าทั้งหมดในจุฬาให้ใช้ผ่าน vpn บรรทัดที่สองบอกว่าต่อเข้า server ovpn ผ่านทาง network ปรกติ

push route
push route remote_host net_gateway 1

Desktop linux again

Posted on: Sun, 03/24/2013 - 23:28 By: dae

openSUSE 12.3 and openSUSE 13.1

ปุ่มปรับ backlight ไม่ work

เครื่อง asus zenbook ให้แก้โดยเพิ่ม kernel option

acpi_backlight=none acpi_osi=


sudo vi /etc/default/grub


GRUB_CMDLINE_LINUX_DEFAULT="resume=/dev/system/swap splash=silent quiet showopts"


GRUB_CMDLINE_LINUX_DEFAULT="resume=/dev/system/swap splash=silent quiet showopts acpi_backlight=none acpi_osi="

แล้วสั่ง sudo update-grub

Drupal feed importer

Posted on: Sun, 03/25/2012 - 20:52 By: dae

Recently, I have a chance to use drupal commerce with feed importer. Feed importer is very good because I can easily transfer data from MySQL to the website.

However, sometime the import process crash and I am stuck with importing page with xx% status and nothing can be done via UI.

To fix this, I have to manually edit the status of the import. Basically, all I have to do is to

update feeds_source set state = 'b:0;'; update feeds_source set fetcher_result='b:0;';

Check this .

Subscribe to